/* =============================================================
   ПК «Формула» — главная страница (home)
   Палитра и шрифты наследуют фирменный стиль лендинга Абиотоника.
   ============================================================= */

:root {
	--pkf-paper:  #FBF7EE;
	--pkf-straw:  #F3EBD6;
	--pkf-cocoa:  #39251A;
	--pkf-cocoa-70: rgba(57, 37, 26, .7);
	--pkf-yellow: #FED525;
	--pkf-yellow-soft: #FFE979;
	--pkf-royal:  #2B4BC4;
	--pkf-white:  #FFFFFF;
	--pkf-line:   rgba(57, 37, 26, .14);
	--pkf-radius: 18px;
	--pkf-display: 'Montserrat', system-ui, sans-serif;
	--pkf-body:    'Roboto', system-ui, sans-serif;
	--pkf-hand:    'Caveat', cursive;
}

/* сброс/база — только внутри #pkfh, чтобы не задеть остальной сайт */
#pkfh * { box-sizing: border-box; }
#pkfh {
	font-family: var(--pkf-body);
	color: var(--pkf-cocoa);
	background: var(--pkf-paper);
	line-height: 1.6;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
#pkfh img { max-width: 100%; height: auto; display: block; }
#pkfh a { color: inherit; text-decoration: none; }
#pkfh h1, #pkfh h2, #pkfh h3, #pkfh h4 { margin: 0 0 .5em; font-family: var(--pkf-display); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
#pkfh p { margin: 0 0 1em; }

.pkfh-container { width: min(1180px, 92%); margin: 0 auto; }
.pkfh-section { padding: clamp(56px, 8vw, 110px) 0; }
.pkfh-section--straw { background: var(--pkf-straw); }
.pkfh-section--cocoa { background: var(--pkf-cocoa); color: #F4EDE2; }
.pkfh-section--cocoa h2, .pkfh-section--cocoa h3 { color: #fff; }

.pkfh-eyebrow {
	display: inline-block;
	font-family: var(--pkf-display);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--pkf-royal);
	padding: .45em 1em;
	border-radius: 999px;
	margin-bottom: 1.1em;
}
.pkfh-h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.pkfh-lead { font-size: 1.1rem; color: var(--pkf-cocoa-70); max-width: 60ch; }
.pkfh-section--cocoa .pkfh-lead { color: rgba(244, 237, 226, .8); }

/* кнопки */
.pkfh-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--pkf-display);
	font-weight: 700;
	font-size: 1rem;
	padding: 15px 30px;
	border-radius: 999px;
	background: var(--pkf-cocoa);
	color: #fff !important;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pkfh-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(57, 37, 26, .22); }
.pkfh-btn--yellow { background: var(--pkf-yellow); color: var(--pkf-cocoa) !important; }
.pkfh-btn--ghost { background: transparent; color: var(--pkf-cocoa) !important; border: 2px solid var(--pkf-cocoa); }
.pkfh-btn--ghost:hover { background: var(--pkf-cocoa); color: #fff !important; }
.pkfh-btn--lg { font-size: 1.08rem; padding: 17px 38px; }
.pkfh-btn .pkfh-btn__arrow { font-size: 1.1em; transition: transform .18s ease; }
.pkfh-btn:hover .pkfh-btn__arrow { transform: translateX(3px); }

/* ---------- шапка ---------- */
.pkfh-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 247, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pkf-line); }
.pkfh-header__in { display: flex; align-items: center; gap: 28px; padding: 12px 0; }
.pkfh-logo { flex: none; line-height: 0; }
#pkfh .pkfh-logo img { width: 200px !important; max-width: 200px !important; height: auto !important; }
.pkfh-nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: nowrap; }
.pkfh-nav a { font-weight: 600; font-size: .92rem; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .18s; white-space: nowrap; }
.pkfh-nav a:hover { border-color: var(--pkf-yellow); }
.pkfh-header__cta { margin-left: 8px; }
.pkfh-btn--sm { padding: 11px 22px; font-size: .92rem; }
.pkfh-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.pkfh-burger span { width: 26px; height: 2.5px; background: var(--pkf-cocoa); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- hero ---------- */
.pkfh-hero { position: relative; padding: clamp(50px, 7vw, 90px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.pkfh-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.pkfh-hero__badge {
	display: inline-flex; align-items: center; gap: 9px;
	background: #fff;
	border: 1px solid var(--pkf-line);
	border-radius: 999px;
	padding: .5em 1.1em;
	font-weight: 600; font-size: .92rem;
	margin-bottom: 1.4em;
}
.pkfh-hero__badge svg { flex: none; }
.pkfh-h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
.pkfh-h1 span { color: var(--pkf-royal); }
.pkfh-hero__sub { font-size: 1.18rem; color: var(--pkf-cocoa-70); margin: 1.2em 0 1.8em; max-width: 52ch; }
.pkfh-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.pkfh-hero__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.pkfh-hero__hex {
	position: absolute; inset: 50% auto auto 50%;
	width: 400px; height: 440px;
	transform: translate(-50%, -50%) rotate(8deg);
	background: var(--pkf-yellow);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	z-index: 1;
}
.pkfh-hero__bottle { position: relative; z-index: 2; max-height: 460px; width: auto; max-width: 70%; filter: drop-shadow(0 30px 40px rgba(57, 37, 26, .25)); animation: pkfhFloat 5.5s ease-in-out infinite; }
@keyframes pkfhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ---------- доверие / цифры ---------- */
.pkfh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; background: #fff; border: 1px solid var(--pkf-line); border-radius: var(--pkf-radius); padding: 34px clamp(20px, 4vw, 48px); }
.pkfh-stat { text-align: center; }
.pkfh-stat__num { font-family: var(--pkf-display); font-weight: 900; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--pkf-royal); line-height: 1; }
.pkfh-stat__txt { font-size: .9rem; color: var(--pkf-cocoa-70); margin-top: 6px; }

/* ---------- о компании ---------- */
.pkfh-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.pkfh-checks { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 14px; }
.pkfh-checks li { position: relative; padding-left: 36px; font-weight: 500; }
.pkfh-checks li::before {
	content: ''; position: absolute; left: 0; top: 2px;
	width: 22px; height: 22px;
	background: var(--pkf-yellow);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.pkfh-checks li::after {
	content: '✓'; position: absolute; left: 5px; top: 2px;
	font-size: .8rem; font-weight: 800; color: var(--pkf-cocoa);
}
.pkfh-about__media { position: relative; display: flex; align-items: center; justify-content: center; }
.pkfh-about__media img { border-radius: var(--pkf-radius); }

/* молекула в hero — только для мобильной версии */
.pkfh-hero__molecule-mobile { display: none; }

/* молекулярная решётка вокруг логотипа */
.pkfh-molecule {
	position: relative;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pkfh-molecule__canvas {
	position: absolute;
	inset: -8%;
	width: 116%;
	height: 116%;
}
.pkfh-molecule__logo {
	position: relative;
	z-index: 2;
	width: min(360px, 78%);
	height: auto;
	border-radius: 0 !important;
	filter: drop-shadow(0 12px 28px rgba(57, 37, 26, .2));
}

/* ---------- флагман: Абиотоник ---------- */
.pkfh-flagship__card {
	display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: center;
	background: #fff; border: 1px solid var(--pkf-line); border-radius: 26px;
	padding: clamp(28px, 4vw, 56px);
	box-shadow: 0 30px 60px rgba(57, 37, 26, .08);
}
.pkfh-flagship__media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.pkfh-flagship__hex {
	position: absolute; inset: 50% auto auto 50%;
	width: 280px; height: 308px;
	transform: translate(-50%, -50%) rotate(8deg);
	background: var(--pkf-yellow-soft);
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.pkfh-flagship__bottle { position: relative; z-index: 2; max-height: 360px; width: auto; max-width: 65%; filter: drop-shadow(0 22px 30px rgba(57, 37, 26, .22)); }
.pkfh-flagship__tag { display: inline-block; font-family: var(--pkf-display); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--pkf-royal); margin-bottom: .8em; }
.pkfh-flagship h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.pkfh-flagship__feat { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.pkfh-flagship__feat li { position: relative; padding-left: 22px; font-size: .96rem; }
.pkfh-flagship__feat li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--pkf-royal); }
.pkfh-flagship__cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.pkfh-flagship__cta > .pkfh-btn { width: 100%; justify-content: center; }
.pkfh-flagship__mp { display: flex; gap: 10px; }
.pkfh-flagship__mp .pkfh-mp { flex: 1; }
.pkfh-mp { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-family: var(--pkf-display); font-weight: 800; font-size: .82rem; letter-spacing: .02em; padding: .65em 1.3em; border-radius: 999px; color: #fff !important; }
.pkfh-mp--ozon { background: #005BFF; }
.pkfh-mp--wb { background: #CB11AB; }

/* ---------- линейка продуктов ---------- */
.pkfh-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.pkfh-product {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--pkf-line); border-radius: var(--pkf-radius);
	padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.pkfh-product:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(57, 37, 26, .1); }
.pkfh-product--soon { opacity: .92; }
.pkfh-product__ico { width: 64px; height: 64px; border-radius: 16px; background: var(--pkf-straw); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pkfh-product__ico img { width: 40px; height: 40px; }
.pkfh-product h3 { font-size: 1.25rem; margin-bottom: .35em; }
.pkfh-product p { font-size: .95rem; color: var(--pkf-cocoa-70); flex: 1; }
.pkfh-product__badge { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; margin-bottom: 14px; }
.pkfh-product__badge--live { background: var(--pkf-yellow); color: var(--pkf-cocoa); }
.pkfh-product__badge--soon { background: var(--pkf-line); color: var(--pkf-cocoa-70); }
.pkfh-product__link { margin-top: 18px; font-family: var(--pkf-display); font-weight: 700; font-size: .95rem; color: var(--pkf-royal); display: inline-flex; align-items: center; gap: 6px; }
.pkfh-product__link span { transition: transform .18s ease; }
.pkfh-product:hover .pkfh-product__link span { transform: translateX(4px); }
.pkfh-product__soon-txt { margin-top: 18px; font-weight: 600; font-size: .9rem; color: var(--pkf-cocoa-70); }

/* ---------- почему мы ---------- */
.pkfh-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.pkfh-why__card { background: var(--pkf-paper); border: 1px solid var(--pkf-line); border-radius: var(--pkf-radius); padding: 32px 28px; }
.pkfh-section--cocoa .pkfh-why__card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.pkfh-why__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--pkf-yellow); color: var(--pkf-cocoa); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; font-family: var(--pkf-display); }
.pkfh-why__card h3 { font-size: 1.2rem; }
.pkfh-why__card p { margin: 0; font-size: .96rem; }
.pkfh-section--cocoa .pkfh-why__card p { color: rgba(244,237,226,.8); }

/* ---------- CTA ---------- */
.pkfh-cta { text-align: center; }
.pkfh-cta__box {
	background: linear-gradient(135deg, var(--pkf-cocoa), #4d3322);
	border-radius: 28px;
	padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
	color: #fff;
}
.pkfh-cta__box h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.pkfh-cta__box p { color: rgba(255,255,255,.82); max-width: 54ch; margin-inline: auto; }
.pkfh-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1.6em; }

/* ---------- подвал ---------- */
.pkfh-footer { background: var(--pkf-cocoa); color: #C9BBB0; padding: clamp(44px, 6vw, 72px) 0 28px; }
.pkfh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pkfh-footer__logo { width: 190px; height: auto; margin-bottom: 14px; }
.pkfh-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.pkfh-footer p { margin: 0 0 .7em; font-size: .95rem; }
.pkfh-footer a:hover { color: #fff; }
.pkfh-footer__flag { display: inline-block; vertical-align: -2px; width: 1.15em; height: auto; margin-right: .35em; border-radius: 2px; }
.pkfh-footer__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(201,187,176,.7); }

/* ---------- анимации появления ---------- */
.pkfh-io { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.pkfh-io.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
	.pkfh-nav { display: none; }
	.pkfh-products, .pkfh-why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
	.pkfh-header__cta { display: none; }
	.pkfh-burger { display: flex; }
	.pkfh-nav.is-open {
		display: flex; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; gap: 0;
		background: var(--pkf-paper); border-bottom: 1px solid var(--pkf-line);
		box-shadow: 0 18px 30px rgba(57,37,26,.12);
	}
	.pkfh-nav.is-open a { padding: 14px 6%; border-bottom: 1px solid var(--pkf-line); }
	.pkfh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.pkfh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.pkfh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.pkfh-hero__grid { grid-template-columns: 1fr; }
	.pkfh-hero__stage { display: none; }
	/* молекула с логотипом: показываем в hero (после кнопок), скрываем в «О компании» */
	.pkfh-hero__molecule-mobile { display: flex; margin: 40px 0 26px; }
	.pkfh-hero__molecule-mobile .pkfh-molecule { max-width: 320px; }
	#about .pkfh-about__media { display: none; }
	.pkfh-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
	.pkfh-about__grid { grid-template-columns: 1fr; }
	.pkfh-flagship__card { grid-template-columns: 1fr; }
	.pkfh-flagship__media { min-height: 280px; }
	.pkfh-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
	#pkfh { font-size: 16px; }
	.pkfh-products, .pkfh-why { grid-template-columns: 1fr; }
	.pkfh-flagship__feat { grid-template-columns: 1fr; }
	.pkfh-hero__cta .pkfh-btn, .pkfh-cta__btns .pkfh-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.pkfh-io { opacity: 1; transform: none; transition: none; }
	.pkfh-hero__bottle { animation: none; }
}

/* флаг + «Сделано в России» — на одной строке, не разрываются */
.pkfh-madein { display: inline-flex; align-items: center; white-space: nowrap; }
.pkfh-madein .pkfh-footer__flag { margin-right: .4em; flex: none; }
