/* v3.3.0 — рефакторинг v3.2.3. Общие токены, компоненты и адаптация. */
:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #1d353e;
  --muted: #4c6268;
  --line: #d7dfdd;
  --green: #184959;
  --serif: Georgia, "Times New Roman", serif;
  --tint: #eaf0ef;
  --button-shadow: 0 2px 5px rgb(20 40 46 / 17%);
  --button-shadow-hover: 0 4px 9px rgb(20 40 46 / 21%);
  --button-shadow-pressed: 0 1px 2px rgb(20 40 46 / 16%);
  --card-shadow: 0 4px 14px rgb(20 40 46 / 13%), 0 1px 3px rgb(20 40 46 / 9%);
  --card-shadow-hover: 0 8px 22px rgb(20 40 46 / 20%), 0 2px 5px rgb(20 40 46 / 10%);
  --card-shadow-pressed: 0 2px 5px rgb(20 40 46 / 16%);
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-34: 34px;
  --space-36: 36px;
  --space-40: 40px;
  --space-42: 42px;
  --space-44: 44px;
  --space-48: 48px;
  --site-radius-sm: 4px;
  --site-radius-control: 5px;
  --site-radius-md: 6px;
  --site-radius-lg: 8px;
  --site-radius-xl: 12px;
  --shadow-popover: 0 6px 20px #0002;
  --shadow-feature: 0 8px 22px rgba(29,53,62,.05);
  --shadow-cookie: 0 6px 24px rgb(0 0 0 / 18%);
  --shadow-cookie-button: 0 2px 5px rgb(0 0 0 / 12%);
  --z-skip: 3;
  --z-dropdown: 5;
  --z-cookie: 1000;
  --focus-ring: var(--green);
  --touch-target: 44px;
}

/* Компоненты и состояния */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.58 "Segoe UI", Arial, sans-serif; }
.wrap { margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -100px; padding: var(--space-10); background: white; z-index: var(--z-skip, 3); }
.skip:focus { top: 10px; }
.header { border-bottom: 1px solid var(--line); }
.head-inner, .foot, .main-nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-24); }
.head-inner { justify-content: space-between; }
.brand { font: bold 28px/1.1 var(--serif); text-decoration: none; }
.brand span { font-weight: 400; }
.main-nav a { padding-block: var(--space-6); color: var(--muted); text-decoration: none; font-size: .95rem; }
.main-nav .catalog-download { padding: var(--space-6) var(--space-12); border: 1px solid var(--green); border-radius: var(--site-radius-sm); color: var(--green); font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav [aria-current], .main-nav .section-active { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
main { padding-block: var(--space-34) 68px; min-height: 62vh; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.13; overflow-wrap: break-word; }
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.028em; }
h3 { font-size: 1.45rem; }
p { margin: .8em 0 1.1em; }
p.lead { max-width: 55ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.overline { font-size: .73rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.overline a { text-decoration: none; }
.hero { display: grid; overflow: hidden; }
.hero-copy { align-self: center; }
.hero .overline { margin: 0 0 var(--space-20); }
.hero em { font-weight: 400; }
.hero picture { min-width: 0; display: block; background: #ddd8cb; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .actions { margin-top: var(--space-24); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7em; border: 1px solid var(--green); background: var(--green); padding: 11px var(--space-18); color: white; text-decoration: none; cursor: pointer; font: 600 .95rem/1.4 "Segoe UI", Arial, sans-serif; }
.button:hover { color: white; }
.outline { background: transparent; color: var(--green); }
.band h2 { margin-bottom: var(--space-24); }
.cat-grid, .product-grid, .cert-grid { display: grid; gap: var(--space-20); grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { display: block; border: 1px solid var(--line); border-radius: var(--site-radius-xl); overflow: hidden; background: #fff; text-decoration: none; }
.card:hover, .cert:hover { border-color: #779281; }
.card > div { padding: 15px var(--space-18) var(--space-18); }
.card img { display: block; width: 100%; height: auto; object-fit: cover; }
.card p, .cert p { margin: .55em 0 0; color: var(--muted); }
.product img { object-fit: contain; }
.product h2, .cert h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.company { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-30); padding: 35px 0; border-top: 1px solid var(--line); }
.company p:first-child { margin-top: 0; }
.text-link { color: var(--green); text-underline-offset: 3px; }
.crumbs { margin-bottom: var(--space-24); color: var(--muted); font-size: .87rem; }
.crumbs ol { display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: var(--space-4) var(--space-10); list-style: none; }
.crumbs li + li::before { content: "/"; padding-right: var(--space-10); color: var(--muted); }
.intro { padding-block: clamp(var(--space-18), 3vw, 52px) var(--space-34); }
.narrow { max-width: 670px; margin-inline: auto; }
.cert-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cert { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: var(--space-20); padding: var(--space-20); border: 1px solid var(--line); border-radius: var(--site-radius-xl); background: white; }
.cert-img img { display: block; width: 100%; }
.cert .text-link { display: inline-block; margin-top: var(--space-10); }
.product-view { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); align-items: start; gap: clamp(var(--space-30),5vw,80px); }
.pack { display: block; width: 100%; height: auto; max-height: 590px; object-fit: contain; border-radius: var(--site-radius-xl); background: var(--tint); }
.product-view h1 { font-size: clamp(2.1rem,4vw,3.6rem); }
.ingredients { margin: 25px 0; padding: var(--space-18) var(--space-22); border-radius: var(--site-radius-md); background: var(--tint); }
.ingredients p:last-child { margin-bottom: 0; }
.ingredients h2 { font-size: 1.8rem; }
.ingredients h3 { font-size: 1.2rem; margin-top: 1em; }
#form-status { color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-weight: 600; margin: var(--space-14) 0 5px; }
input[type=email], textarea { width: 100%; border: 1px solid #93a49a; border-radius: var(--site-radius-md); padding: var(--space-10); font: inherit; }
textarea { resize: vertical; }
.consent { display: flex; align-items: baseline; gap: 9px; font-weight: 400; margin: 15px 0 var(--space-20); }
fieldset:disabled .button { background: #e0e5dd; color: #43554b; border-color: #bdc8bf; cursor: default; }
footer { border-top: 1px solid var(--line); }
.foot { padding-block: var(--space-22) var(--space-30); font-size: .9rem; color: var(--muted); }
.foot span { margin-right: auto; }
.wrap { width: min(1256px, 91%); }
.header { background: #fffefa; }
.head-inner { min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-12); color: #193e4b; letter-spacing: 0; }
.brand .monogram { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #abc0c2; border-radius: 50%; font: italic 22px/1 Georgia,serif; letter-spacing: -3px; padding-right: 3px; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy b { font: 500 21px/1.1 Georgia,serif; }
.brand-copy small { font: 500 11px/1.35 "Segoe UI",sans-serif; letter-spacing: .035em; color: var(--muted); }
.main-nav { gap: clamp(var(--space-14), 1.8vw, 29px); }
.main-nav .write-link { min-width: 10em; text-align: center; border: 1px solid var(--green); border-radius: var(--site-radius-sm); background: var(--green); color: white; }
main { padding-top: var(--space-28); }
.hero { grid-template-columns: 1.11fr 1fr; background: var(--tint); border: 1px solid #d5dedd; border-radius: var(--site-radius-lg); }
.hero-copy { padding: clamp(26px,3.7vw,56px); }
.hero h1 { font-size: clamp(2.8rem,4.55vw,4.7rem); line-height: 1.03; letter-spacing: -.046em; }
.hero h1 em { display: block; max-width: 12ch; color: #37616d; font-style: italic; }
.hero-dash { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.hero .overline { color: #355c67; letter-spacing: .12em; margin-bottom: var(--space-20); }
.hero .lead { margin-top: var(--space-20); font-size: clamp(1rem,1.4vw,1.15rem); max-width: 49ch; }
.hero picture { position: relative; min-height: 360px; }
.hero picture img { position: absolute; inset: 0; max-height: none; object-position: 50% 54%; }
.actions { gap: var(--space-14) 21px; }
.button { border-radius: var(--site-radius-sm); }
.button:hover { background: #0e3440; }
.download-link, .text-link { color: var(--green); text-underline-offset: 4px; }
.download-link { font-size: .96rem; font-weight: 600; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-24); margin-bottom: var(--space-22); }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); max-width: 36ch; margin: 0; font-size: .96rem; }
.band { margin: clamp(var(--space-40),4.4vw,64px) 0; }
.cat-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: var(--space-18); }
.cat-grid > a { grid-column: span 2; }
.cat-grid > a:nth-child(n/**/+4) { grid-column: span 3; }
.category, .product, .cert { border-radius: var(--site-radius-md); transition: border-color .15s; }
.category:hover, .product:hover, .cert:hover { border-color: #577880; }
.category > div { position: relative; padding-right: var(--space-48); }
.category-arrow { position: absolute; top: 14px; right: 16px; color: var(--green); }
.card img { aspect-ratio: 2 / 1; }
.product img { aspect-ratio: 1.4; background: var(--tint); }
.intro h1 { max-width: 22ch; font-size: clamp(2.45rem,4.5vw,4.2rem); }
main:has(.cat-grid, .product-grid) > .intro { margin-bottom: var(--space-24); padding: clamp(var(--space-22), 3.2vw, var(--space-44)); border: 1px solid var(--line); border-radius: var(--site-radius-lg); background: var(--tint); }
main:has(.product-grid) > .intro > :last-child { margin-bottom: 0; }
.intro .lead { max-width: 64ch; }
.intro p:not(.overline) { max-width: 72ch; }
.hint, .related, .afterword { color: var(--muted); }
.related { margin-top: 26px; font-size: .94rem; }
.product-view details { margin: var(--space-20) 0 var(--space-24); padding: var(--space-14) 0; border-block: 1px solid var(--line); }
.product-view summary { cursor: pointer; color: var(--green); font-weight: 600; }
.product-view details p { margin-bottom: 0; }
.profile { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(var(--space-24),5vw,70px); align-items: center; }
.profile > div { max-width: 680px; }
.profile .overline { margin-top: 0; }
.profile-portrait { display: block; width: 100%; max-width: 480px; height: auto; justify-self: center; border-radius: var(--site-radius-lg); }
.partner-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-24); }
.partner-gallery figure { margin: 0; min-width: 0; }
.partner-gallery a { display: block; }
.partner-gallery img, .partner-gallery video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--site-radius-lg); }
.partner-gallery figcaption { margin-top: var(--space-8); color: var(--muted); }
.profile .actions, form .actions { margin-top: var(--space-22); }
.qr { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-18) var(--space-30); margin-top: var(--space-16); padding: clamp(var(--space-16),3vw,var(--space-30)); border: 1px solid var(--line); border-radius: var(--site-radius-md); background: white; }
.qr img { width: 130px; height: auto; }
.qr > div { flex: 1 1 260px; max-width: 65ch; }
.qr h2, .contact-layout h2, .text-section h2, .download-band h2 { font-size: clamp(1.5rem,2.4vw,2rem); }
.contact-layout { display: grid; }
.contact-layout > aside { align-self: start; background: #edf1ee; padding: var(--space-24); border-radius: var(--site-radius-md); }
.contact-list { font-style: normal; }
.contact-row { justify-content: space-between; flex-wrap: wrap; text-decoration: none; }
.contact-row:hover strong { text-decoration: underline; }
.contact-row span { color: var(--muted); font-size: .9rem; }
.contact-row strong { font-size: .98rem; font-weight: 600; overflow-wrap: anywhere; }
.legal { max-width: 755px; }
.notice { background: #f2eee3; color: #554b37; padding: 11px 15px; border-left: 3px solid #ae925d; font-size: .95rem; }
.text-section { margin: var(--space-30) 0; }
.download-band { margin-top: var(--space-40); padding: var(--space-24); background: var(--tint); border-radius: var(--site-radius-md); }
footer { background: var(--tint); }
.footer-grid { padding-block: var(--space-30); display: grid; grid-template-columns: 1.12fr .7fr 1fr; gap: var(--space-20) var(--space-30); }
.footer-grid .text-link { display: block; width: fit-content; padding-block: 3px; font-size: .91rem; }
.footer-name { font: 1.6rem Georgia,serif; text-decoration: none; }
.footer-grid p, .copyright { color: var(--muted); font-size: .86rem; }
.copyright { border-top: 1px solid #cfdbd8; }
.hero .partner-visual { background: #e5d9c6; }
.hero .partner-visual img { object-position: 30% top; }
.menu-toggle { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }
.appearance-settings { position: relative; color: var(--ink); }
.appearance-settings summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--green); cursor: pointer; list-style: none; border-radius: var(--site-radius-control); }
.appearance-settings summary::-webkit-details-marker { display: none; }
.appearance-settings summary:hover, .appearance-settings[open] summary { background: var(--tint, #edf2ec); }
.appearance-settings .settings-gear { font: 24px/1 "Segoe UI Symbol", sans-serif; }
.appearance-settings .settings-name { display: none; }
.appearance-settings fieldset { position: absolute; z-index: var(--z-dropdown, 5); top: 100%; right: 0; width: max-content; min-width: 220px; margin: 0; padding: 0 var(--space-12) var(--space-8); border: 1px solid var(--line); border-radius: var(--site-radius-md); background: var(--panel, #fffefa); box-shadow: var(--shadow-popover); }
.appearance-settings legend { float: left; width: 100%; padding: var(--space-10) 5px var(--space-4); font-weight: 600; }
.appearance-settings label { clear: both; display: flex; align-items: center; gap: var(--space-10); padding: var(--space-6); min-height: 44px; cursor: pointer; }
.appearance-settings input { margin: 0; accent-color: var(--green); }
:root[data-color-profile] { --panel: #fff; --action: var(--green); }
:root[data-color-profile="vip"] { --action-hover: rgb(21.25 64.6 48.45); --paper: #f3f6f2; --ink: #193f32; --muted: #506358; --line: #cedbd2; --green: #194c39; --tint: #e6f3e9; }
:root[data-color-profile="lavender"] { --action-hover: rgb(98.6 42.5 186.15); --paper: #f5f6f9; --ink: #242334; --muted: #636175; --line: #dfdce8; --green: #7432db; --tint: #f1ebff; }
:root[data-color-profile="sapphire"] { --action-hover: rgb(30.6 63.75 102.85); --paper: #f0f3f7; --ink: #202b3b; --muted: #546174; --line: #d4dce6; --green: #244b79; --tint: #e9eff7; }
:root[data-color-profile="pearl"] { --action-hover: rgb(93.5 75.65 54.4); --paper: #f5f1e9; --panel: #fffdf8; --ink: #37332e; --muted: #655c52; --line: #ddd4c7; --green: #6e5940; --tint: #eee6d8; }
:root[data-color-profile="emerald"] { --action-hover: rgb(6.8 90.95 81.6); --paper: #eef5f3; --ink: #173d39; --muted: #4b6864; --line: #ccddd8; --green: #086b60; --tint: #e0f0ea; }
:root[data-color-profile="plum"] { --action-hover: rgb(102 68 135.15); color-scheme: dark; --paper: #19151f; --panel: #272130; --ink: #f3edf5; --muted: #c5b9cd; --line: #55445e; --green: #dbb7fa; --tint: #362b43; --action: #78509f; --button-shadow: 0 2px 5px rgb(0 0 0 / 42%), 0 0 0 1px rgb(255 255 255 / 5%); --button-shadow-hover: 0 4px 9px rgb(0 0 0 / 48%); --button-shadow-pressed: 0 1px 2px rgb(0 0 0 / 32%); --card-shadow: 0 5px 16px rgb(0 0 0 / 48%), 0 0 0 1px rgb(255 255 255 / 6%); --card-shadow-hover: 0 9px 25px rgb(0 0 0 / 58%), 0 0 0 1px rgb(255 255 255 / 10%); --card-shadow-pressed: 0 2px 5px rgb(0 0 0 / 42%); }
:root[data-color-profile] :is(.header, .card, .cert, .qr, .skip) { background-color: var(--panel); }
:root[data-color-profile] .brand { color: var(--ink); }
:root[data-color-profile] :is(.hero h1 em, .hero .overline) { color: var(--green); }
:root[data-color-profile] :is(.brand .monogram, .hero, .copyright, .contact-row) { border-color: var(--line); }
:root[data-color-profile] :is(.card, .cert):hover { border-color: var(--green); }
:root[data-color-profile] :is(.contact-layout > aside, .notice) { background: var(--tint); color: var(--ink); }
:root[data-color-profile] .notice { border-color: var(--green); }
:root[data-color-profile] :is(input[type=email], textarea) { border-color: var(--muted); background: var(--panel); color: var(--ink); }
:root[data-color-profile] :is(.button:not(.outline), .main-nav .write-link) { background: var(--action); border-color: var(--action); color: #fff; }
:root[data-color-profile] .button:hover { background: var(--action-hover, var(--action)); color: #fff; }
:root[data-color-profile] fieldset:disabled .button { background: var(--tint); border-color: var(--line); color: var(--muted); }
:is(button, .button, .main-nav .write-link, .appearance-settings summary) { box-shadow: var(--button-shadow); }
.slider-dots button { border-radius: var(--site-radius-md); }
@media (prefers-reduced-motion:no-preference) {
  :is(button, .button, .appearance-settings summary) { transition: box-shadow .16s ease, transform .16s ease, background-color .16s ease; }
}
@media (hover:hover) {
  :is(button:not(:disabled), .button:not(button), .appearance-settings summary):hover { box-shadow: var(--button-shadow-hover); transform: translateY(-1px); }
}
:is(button:not(:disabled), .button:not(button), .appearance-settings summary):active { box-shadow: var(--button-shadow-pressed); transform: translateY(1px); }
fieldset:disabled .button { box-shadow: var(--button-shadow); transform: none; }
@media (prefers-reduced-motion:reduce) {
  :is(button, .button, .appearance-settings summary):is(:hover, :active) { transform: none; }
}
.contact-intro .lead { max-width: 65ch; }
.contact-layout { gap: clamp(var(--space-20), 4vw, var(--space-48)); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.contact-layout > aside, .contact-layout > section { padding: clamp(var(--space-12), 2.5vw, var(--space-28)); background: var(--panel, #fffefa); border: 1px solid var(--line); border-radius: var(--site-radius-lg); min-width: 0; }
:root[data-color-profile] .contact-layout > aside { background: var(--panel); }
.contact-layout h2 { margin: 0 0 var(--space-12); }
.contact-list { margin-top: var(--space-4); }
.contact-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto); gap: var(--space-8); align-items: center; min-height: 65px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .contact-caption { display: flex; gap: 9px; align-items: center; min-width: 0; }
.contact-row .contact-icon { flex: 0 0 28px; width: 28px; height: 28px; display: block; }
.contact-icon svg { display: block; width: 100%; height: 100%; }
.contact-row .contact-label { font-size: .94rem; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-row .contact-value { color: var(--green); font-size: .94rem; text-align: right; min-width: 0; }
.contact-row .contact-copy { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-6); min-height: 42px; padding: 7px var(--space-10); border: 1px solid var(--green); border-radius: var(--site-radius-md); background: var(--panel, #fffefa); color: var(--green); font: 600 .92rem/1.3 "Segoe UI", Arial, sans-serif; cursor: pointer; max-width: 100%; }
.contact-copy .copy-icon { flex: 0 0 17px; width: 17px; height: 17px; color: inherit; }
.copy-icon svg { display: block; width: 100%; height: 100%; }
.contact-copy .copy-username { font: inherit; color: inherit; overflow-wrap: anywhere; }
#copy-contact-status { color: var(--muted); font-size: .9rem; margin: var(--space-8) 0 0; }
#copy-contact-status:empty { margin: 0; }
.contact-layout #form-status:empty { margin: 0; }
.contact-layout form .notice { margin-top: var(--space-12); }
.contact-layout form .consent { align-items: flex-start; }
.contact-layout form .consent input { flex-shrink: 0; margin-top: .35em; }
.contact-layout form .actions { margin-top: var(--space-16); }
.site-legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-8) var(--space-28); padding-block: var(--space-20); text-align: center; font-size: .91rem; }
.copyright { border-color: var(--line); padding-block: var(--space-12) var(--space-18); text-align: center; }
.main-nav .write-link { display: inline-grid; grid-template-columns: minmax(0, 1fr); place-items: center; flex: 0 0 auto; inline-size: 17rem; min-inline-size: 0; max-inline-size: 100%; block-size: 46px; min-block-size: 46px; max-block-size: 46px; padding: var(--space-6) var(--space-12); line-height: 1.2; text-decoration: none; white-space: normal; animation: none; box-shadow: var(--button-shadow); }
.main-nav .write-link .nav-contact-label { grid-area: 1 / 1; min-width: 0; text-align: center; pointer-events: none; }
.nav-contact-purchase { opacity: 1; }
.nav-contact-write { opacity: 0; }
@media (prefers-reduced-motion:no-preference) {
  .nav-contact-purchase { animation: nav-contact-purchase 6s linear infinite; }
  .nav-contact-write { animation: nav-contact-write 6s linear infinite; }
  .main-nav .write-link { transition: box-shadow .16s ease, background-color .16s ease; }
  a.card:is(.category, .product) { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
}
@keyframes nav-contact-purchase { 0%, 45%, 100% { opacity: 1; } 50%, 95% { opacity: 0; } }
@keyframes nav-contact-write { 0%, 45%, 100% { opacity: 0; } 50%, 95% { opacity: 1; } }
.main-nav .write-link:is(:hover, :focus-visible) { box-shadow: var(--button-shadow-hover); text-decoration: none; }
.main-nav .write-link:active { box-shadow: var(--button-shadow-pressed); }
a.card:is(.category, .product) { box-shadow: var(--card-shadow); cursor: pointer; }
a.card:is(.category, .product):focus-visible { box-shadow: var(--card-shadow-hover); border-color: var(--green); }
@media (hover:hover) and (pointer:fine) {
  a.card:is(.category, .product):hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); border-color: var(--green); }
}
a.card:is(.category, .product):active { box-shadow: var(--card-shadow-pressed); transform: translateY(1px); }
@media (prefers-reduced-motion:reduce) {
  a.card:is(.category, .product):is(:hover, :active) { transform: none; }
}
.hero-product .hero-note { color: var(--muted); max-width: 54ch; margin-bottom: 0; }
.hero-shot { min-width: 0; display: block; background: #ddd8cb; }
.hero-shot img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: 50% 52%; display: block; }
.home-value-head { align-items: start; }
.feature-grid { display: grid; gap: var(--space-18); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { padding: var(--space-22) var(--space-20); border: 1px solid var(--line); border-radius: var(--site-radius-lg); background: #fff; box-shadow: var(--shadow-feature); }
.feature-card h3 { margin-bottom: var(--space-12); font-size: 1.3rem; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card p + p { margin-top: .8em; }
.feature-card-links p { margin-top: .7em; }
.hero-shot-main img { object-position: 50% 0% !important; }
@supports (background-color: color-mix(in srgb, black, white)) {
  :root[data-color-profile] .button:hover { background-color: color-mix(in srgb, var(--action), black 15%); }
}

/* Адаптивность: сгруппированные точки переключения */
@media (max-width:1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:900px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cert-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cat-grid > a, .cat-grid > a:nth-child(n/**/+4) { grid-column: auto; }
  .head-inner { gap: var(--space-10); }
  .main-nav { gap: 11px; }
  .head-inner.has-mobile-menu { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-12); padding-block: var(--space-12); }
  .has-mobile-menu .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .has-mobile-menu .monogram { flex-shrink: 0; }
  .has-mobile-menu .brand-copy { min-width: 0; }
  .has-mobile-menu .menu-toggle { display: grid; place-items: center; grid-column: 2; grid-row: 1; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--site-radius-control); background: var(--panel, #fffefa); color: var(--green); cursor: pointer; }
  .has-mobile-menu .main-nav { display: none; grid-column: 1 / -1; width: 100%; }
  .has-mobile-menu.menu-open .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--space-8); border-top: 1px solid var(--line); }
  .has-mobile-menu .main-nav a { min-height: 44px; padding: var(--space-10) var(--space-12); font-size: .95rem; }
  .has-mobile-menu .main-nav .write-link { margin-top: var(--space-8); }
  .appearance-settings summary { justify-content: flex-start; gap: var(--space-8); padding-inline: var(--space-12); }
  .appearance-settings .settings-name { display: inline; }
  .appearance-settings fieldset { position: static; width: 100%; margin-block: var(--space-4); box-shadow: none; }
  .contact-layout { grid-template-columns: minmax(0,1fr); }
  .has-mobile-menu .main-nav .write-link { inline-size: 100%; padding: var(--space-6) var(--space-10); min-height: 46px; }
  .hero-shot-main img { object-position: 50% 6% !important; }
}
@media (max-width:700px) {
  .head-inner { align-items: start; gap: var(--space-8); padding-block: 15px; flex-direction: column; }
  .hero, .company, .product-view { grid-template-columns: 1fr; }
  .hero picture img { object-fit: cover; }
  .company { gap: var(--space-12); }
  .product-view { gap: var(--space-12); }
  .pack { max-height: 350px; }
  .foot span { width: 100%; }
  .wrap { width: min(92%,590px); }
  .head-inner { min-height: auto; }
  .brand .monogram { width: 36px; height: 36px; font-size: 20px; }
  .brand-copy b { font-size: 19px; }
  .main-nav { gap: 3px 13px; }
  .main-nav a { font-size: .87rem; }
  main { padding-top: var(--space-16); }
  .hero, .profile { grid-template-columns: 1fr; }
  .hero-copy { padding: 26px var(--space-22); }
  .hero h1 { font-size: clamp(2.4rem,8.8vw,3.2rem); }
  .hero h1 em { max-width: 14ch; }
  .hero .overline { font-size: .64rem; margin-bottom: var(--space-12); }
  .hero .lead { margin-top: var(--space-14); }
  .hero picture { min-height: 0; aspect-ratio: 1.85; }
  .hero picture img { height: 100%; object-position: 50% 58%; }
  .section-head { align-items: start; flex-direction: column; gap: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero .partner-visual { aspect-ratio: 1402 / 1122; }
  .hero .partner-visual img { max-height: none; }
  .hero-shot img { max-height: 340px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width:600px) {
  .site-legal-links { flex-direction: column; gap: var(--space-10); }
}
@media (max-width:520px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 76px minmax(0,1fr); gap: 13px; padding: var(--space-14); }
  .cat-grid, .footer-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 2px var(--space-12); }
  .hero .actions { gap: var(--space-12); }
  .hero .actions .button { padding: var(--space-10) var(--space-12); font-size: .86rem; }
  .hero .download-link { font-size: .88rem; }
}
@media (max-width:380px) {
  .contact-row { gap: var(--space-6); }
  .contact-row .contact-caption { gap: var(--space-6); }
  .contact-row .contact-icon { flex-basis: 24px; width: 24px; height: 24px; }
  .contact-row .contact-label, .contact-row .contact-value { font-size: .86rem; }
  .contact-row .contact-copy { font-size: .86rem; padding-inline: var(--space-6); gap: var(--space-4); }
}
@media (min-width:1440px) {
  .wrap { width: min(91%, 2560px); }
  .head-inner { gap: var(--space-12) var(--space-32); }
  main { padding-block: var(--space-34) 76px; }
  .partner-hero { max-width: 1920px; margin-inline: auto; }
  .hero-copy { padding: clamp(var(--space-48), 4vw, 90px); }
  .hero .lead { max-width: 56ch; }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(var(--space-20), 1.6vw, var(--space-32)); }
  .cat-grid > a, .cat-grid > a:nth-child(n/**/+4) { grid-column: auto; }
  .category > div { padding-right: var(--space-34); }
  .category-arrow { right: 12px; }
  .category h3 { font-size: clamp(1.25rem, 1.45vw, 1.65rem); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(var(--space-20), 1.5vw, var(--space-30)); }
  main:has(.product-view), main:has(.intro.profile) { max-width: 1920px; }
  .product-view { gap: clamp(52px, 4.4vw, 100px); }
  .product-view > div { min-width: 0; max-width: 90ch; }
  .pack { max-height: 780px; }
  .profile > div:first-child { max-width: 78ch; }
  .profile-portrait { max-width: 650px; }
  main .profile .portrait-slider { max-width: 650px; }
  main:has(.contact-layout) { max-width: 1680px; }
  .contact-layout { gap: clamp(var(--space-34), 3vw, 64px); }
  .contact-layout > aside, .contact-layout > section { padding: clamp(26px, 2.4vw, var(--space-42)); }
}
@media (min-width:1920px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-grid .card > div, .product-grid .card > div { padding-block: var(--space-20) var(--space-24); }
}
@media (max-width:900px) and (min-width:701px) {
  .hero:has(.partner-visual) { grid-template-columns: 1fr 1fr; }
  .hero .partner-visual img { object-fit: contain; object-position: center; }
}
@media (min-width:901px) and (max-width:1199px) {
  .head-inner { flex-direction: column; align-items: flex-start; gap: var(--space-8); padding-block: var(--space-12); }
  .main-nav { width: 100%; gap: var(--space-8) var(--space-14); }
  .main-nav a { font-size: .89rem; }
}

:root[data-color-profile="plum"] .feature-card { background: var(--panel); }

/* Доступность: обычный фокус сохранён, дополнительные состояния и сенсорные цели. */
:focus-visible { outline-color: var(--focus-ring); }
:where(a, button, summary, input, textarea):focus-visible { scroll-margin-block: 12px; }
@media (pointer: coarse) {
  .contact-row .contact-copy, :root .analytics-choice-button, :root .slider-controls button, :root .cert-viewer button { min-height: var(--touch-target); }
  :root .slider-arrow, :root .cert-viewer button { min-width: var(--touch-target); }
  :root .slider-dots button { min-width: 30px; }
  :root .analytics-settings-link { min-height: var(--touch-target); }
  .contact-layout .consent { min-height: var(--touch-target); cursor: pointer; }
  .contact-layout .consent input { width: 20px; height: 20px; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight !important; }
  .slider-dots button[aria-pressed="true"]::before { background: Highlight; border-color: Highlight; forced-color-adjust: none; }
}
@media (prefers-contrast: more) {
  :focus-visible { outline-width: 4px; }
  :is(.card, .feature-card, .certificate-card, .contact-layout > aside, .contact-layout > section) { border-color: var(--muted); }
}
/* Печать: отдельный светлый режим, без меню, формы и интерактивных панелей. */
@media print {
  :root, :root[data-color-profile] {
    color-scheme: light !important; --paper: white !important; --panel: white !important;
    --ink: #111 !important; --muted: #333 !important; --line: #aaa !important;
    --green: #222 !important; --tint: white !important; --action: #222 !important;
  }
  *, *::before, *::after { box-shadow: none !important; animation: none !important; transition: none !important; }
  body { background: white !important; color: #111 !important; font-size: 10.5pt; }
  .wrap, .cert-page .container, main { width: 100% !important; max-width: none !important; }
  .header, .main-nav, .menu-toggle, .appearance-settings, .skip, .analytics-choice, .analytics-settings-link,
  .slider-controls, .slider-count, .cert-viewer, #feedback, .certificate-zoom { display: none !important; }
  main { min-height: 0; padding: 0 !important; }
  h1 { font-size: 24pt !important; } h2 { font-size: 17pt !important; } h3 { font-size: 13pt !important; }
  h1, h2, h3 { break-after: avoid; }
  .hero, .profile, .product-view, .contact-layout, .company { display: block; }
  .hero { border: 0 !important; background: white !important; }
  .hero picture { background: white !important; }
  .contact-row .contact-copy { border: 0; background: transparent; padding: 0; min-height: 0; }
  .contact-copy .copy-icon { display: none; }
  .hero-copy, .intro, .cert-page .inner-hero, .cert-page .section { padding: 8pt 0 !important; }
  .hero-shot img, .hero picture img { position: static; width: auto; max-width: 100%; max-height: 180pt; object-fit: contain; margin-inline: auto; }
  .hero picture { min-height: 0; aspect-ratio: auto; }
  .pack, .profile-portrait { max-height: 220pt; width: auto; max-width: 100%; }
  .portrait-slider { max-width: 220pt !important; }
  .cat-grid, .product-grid, .feature-grid, .standards-grid, .certificates-grid, .cert-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8pt !important; }
  .cat-grid > a { grid-column: auto !important; }
  .card, .feature-card, .certificate-card, .cert, .qr, .ingredients { break-inside: avoid; }
  .certificate-card { grid-template-columns: minmax(70pt,.6fr) minmax(0,1fr) !important; }
  .button, .outline { color: #111 !important; background: white !important; border-color: #777 !important; }
  .band { margin-block: 12pt; }
  .site-legal-links { display: none; }
  a { text-decoration: underline; }
}
