:is(.site-header, .site-footer, .cookie-consent) .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .78rem 1.25rem; color: white; background: var(--color-blue); border: 1px solid var(--color-blue); border-radius: 999px; text-decoration: none; font-size: .9rem; line-height: 1.15; font-weight: 740; transition: background var(--transition), transform var(--transition), color var(--transition); }
:is(.site-header, .site-footer, .cookie-consent) .button:hover { background: var(--color-blue-deep); transform: translateY(-1px); }
:is(.site-header, .site-footer, .cookie-consent) .button--compact { min-height: 40px; padding: .6rem 1rem; font-size: .8rem; }
:is(.site-header, .site-footer, .cookie-consent) .button--small { min-height: 42px; font-size: .8rem; }
:is(.site-header, .site-footer, .cookie-consent) .text-button { border: 0; padding: .5rem; color: var(--color-blue); background: transparent; cursor: pointer; text-decoration: underline; }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(202,217,223,.8); backdrop-filter: blur(15px); }
.site-header__inner { position: relative; min-width: 0; height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 210px; height: auto; }
.brand__since { flex: 0 0 auto; margin-left: -.7rem; padding-left: 1rem; border-left: 1px solid var(--color-line); color: var(--color-muted); font-size: .62rem; font-weight: 720; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.site-header__nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
.site-header__nav a { font-size: .82rem; text-decoration: none; }
.site-header__nav a:hover { color: var(--color-blue); }
.site-header__menu { display: none; }
.mini-diagnostic__result .button { margin-right: .5rem; }
.site-footer { padding: var(--space-7) 0 var(--space-4); color: #d5e6ed; background: #082f43; }
.site-footer__grid { display: grid; grid-template-columns: 1.15fr repeat(5, minmax(110px, .52fr)); gap: clamp(1.25rem, 2.2vw, 2.5rem); }
.brand--footer { width: min(100%, 520px); }
.brand--footer img { width: 100%; }
.site-footer__grid > div p { max-width: 420px; margin-top: 1.5rem; color: #aac3cf; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.site-footer nav h2 { margin-bottom: .7rem; color: white; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer nav a { color: #bdd1da; font-size: .83rem; text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.15); color: #8eabb8; font-size: .68rem; }
.site-footer__bottom a { color: inherit; }
.site-footer__bottom .site-footer__legal { min-width: 0; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .35rem 1rem; margin-left: auto; }
.site-footer__legal a, .site-footer__legal .text-button { color: inherit; font-size: inherit; line-height: 1.35; white-space: nowrap; }
.site-footer__legal .text-button { padding: 0; }
.cookie-consent { position: fixed; z-index: 500; right: 1rem; bottom: 1rem; left: 1rem; }
.cookie-consent[hidden] { display: none; }
.cookie-consent__shell { width: min(100%, 1120px); margin-inline: auto; padding: clamp(1.2rem, 3vw, 2rem); background: white; border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: 0 24px 70px rgba(7,42,61,.24); }
.cookie-consent h2 { margin: .35rem 0 .7rem; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.cookie-consent p { max-width: 850px; margin: 0; color: var(--color-muted); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.cookie-consent__panel { display: grid; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--color-line); }
.cookie-consent__panel[hidden] { display: none; }
.cookie-consent__panel label { display: flex; gap: .55rem; align-items: center; }
.cookie-consent__panel > div { display: flex; flex-wrap: wrap; gap: .75rem; }
.mini-diagnostic__result .mini-diagnostic__actions .button { margin: 0; min-height: 44px; }
.mini-diagnostic__actions .text-button { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1100px) {
.site-header__nav { display: none; }
.site-header__menu { position: relative; display: block; margin-left: auto; }
.site-header__menu summary { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: .65rem .85rem; color: var(--color-blue); border: 1px solid var(--color-line); border-radius: var(--radius-pill); cursor: pointer; font-size: .76rem; font-weight: 740; list-style: none; }
.site-header__menu summary::-webkit-details-marker { display: none; }
.site-header__menu[open] summary { color: white; background: var(--color-blue); border-color: var(--color-blue); }
.site-header__menu nav { position: fixed; z-index: 120; top: var(--header-height); left: 0; right: 0; width: auto; display: grid; padding: .65rem 16px 1rem; background: white; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); box-shadow: 0 18px 44px rgba(20,87,122,.16); }
.site-header__menu nav a { min-height: 44px; display: flex; align-items: center; padding: .6rem .75rem; text-decoration: none; border-radius: var(--radius-control); }
.site-header__menu nav a:hover { color: var(--color-blue); background: var(--color-sky-soft); }
.site-header .button { margin-left: 0; }
.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
.site-header__inner { gap: .75rem; }
.brand img { width: 120px; }
.brand__since { position: absolute; left: 39px; top: 41px; margin: 0; padding: 0; border: 0; font-size: .48rem; letter-spacing: .04em; }
.brand--footer { width: min(100%, 520px); }
.brand--footer img { width: 100%; }
.site-header .button { min-width: 0; flex: 0 0 88px; min-height: 44px; padding-inline: .55rem; font-size: 0; }
.site-header .button::after { content: "Обсудить"; font-size: .72rem; }
.site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
.site-footer__bottom { align-items: flex-start; flex-direction: column; gap: .75rem; }
.site-footer__bottom .site-footer__legal { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; margin-left: 0; }
.site-footer__legal a, .site-footer__legal .text-button { min-width: 0; white-space: normal; text-align: left; }
.cookie-consent { right: .5rem; bottom: .5rem; left: .5rem; }
.cookie-consent__actions, .cookie-consent__panel > div { align-items: stretch; flex-direction: column; }
.cookie-consent__actions .button, .cookie-consent__panel .button { width: 100%; }
}

/* The shared header is sticky in normal flow, unlike the source overlay. */
:root { --aifood-nav-height: 44px; --sticky-offset: calc(var(--header-height) + var(--aifood-nav-height) + 18px); }
.site-header { height: auto; color: var(--color-blue-ink); }
.site-header__inner { height: var(--header-height); }
.aifood-section-nav { background: var(--color-paper); border-top: 1px solid var(--color-line); }
.aifood-section-nav__inner { position: relative; height: var(--aifood-nav-height); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.aifood-section-nav__title { color: var(--color-blue); font-size: .75rem; font-weight: 740; text-decoration: none; white-space: nowrap; }
.aifood-section-nav__context { display: flex; align-items: center; gap: 1rem; }
.aifood-section-nav__parent { color: var(--color-muted-ink); font-size: .72rem; text-decoration: none; white-space: nowrap; }
.aifood-section-nav__links { display: flex; align-items: center; gap: 1.7rem; }
.aifood-section-nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; text-decoration: none; }
.aifood-section-nav a:hover { color: var(--color-blue); text-decoration: underline; }
.aifood-section-nav__menu { display: none; }
.site-header__progress { position: absolute; inset: auto 0 0; height: 3px; overflow: hidden; pointer-events: none; background: var(--color-sky-soft); }
.site-header__progress span { display: block; width: 100%; height: 100%; background: var(--color-blue); transform: scaleX(0); transform-origin: left center; }
.site-header .brand img { display: block; max-width: 100%; }
.site-header .brand__since { color: var(--color-muted); }
.site-footer .brand--footer img { display: block; height: auto; }
.hero { min-height: calc(100svh - var(--header-height) - var(--aifood-nav-height)); padding-top: 3.5rem; }
.hero .button { text-shadow: none; }
.site-header a, .site-header summary, .site-footer a, .site-footer button { cursor: pointer; }
.site-header :focus-visible, .site-footer :focus-visible { outline: 3px solid var(--color-orange); outline-offset: 4px; }
@media (max-width: 767px) {
  .aifood-section-nav__context { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.4; }
  .aifood-section-nav__parent { font-size: .65rem; }
  .aifood-section-nav__links { display: none; }
  .aifood-section-nav__menu { display: block; }
  .aifood-section-nav__menu summary { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding-inline: .4rem; font-size: .75rem; font-weight: 700; list-style: none; cursor: pointer; }
  .aifood-section-nav__menu summary::-webkit-details-marker { display: none; }
  .aifood-section-nav__menu[open] summary span { transform: rotate(180deg); }
  .aifood-section-nav__menu nav { position: absolute; top: 100%; left: -16px; right: -16px; padding: .5rem 16px .75rem; display: grid; background: var(--color-paper); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-soft); }
  .aifood-section-nav__menu nav a { display: flex; align-items: center; min-height: 44px; padding: .5rem; font-size: .85rem; text-decoration: none; }
  .hero { min-height: auto; padding-top: 2.6rem; }
}

/* Shared frame geometry; the original swipe selectors retain horizontal scrolling. */
.hero__pillars,.card-grid,.trust-grid,.steps{border-radius:var(--radius-frame);overflow:hidden}

/* The imported landing stylesheet predates the shared geometry tokens. */
:root {
  --radius-sm: var(--radius-control);
  --radius-md: var(--radius-frame);
  --radius-lg: var(--radius-frame);
}

/* Independent media frames; joined images keep straight internal edges. */
.problem-band,
.compare-figures__frame,
.case__frame,
.feature-split__media:not(.set-gallery),
.set-gallery__slide {
  border-radius: var(--radius-frame);
  overflow: hidden;
}
.state-strip__list,
.gallery__viewport {
  border-radius: var(--radius-frame);
}
.state-strip__list { overflow: hidden; }
.state-strip__item:first-child .state-strip__figure {
  border-radius: var(--radius-frame) 0 0 var(--radius-frame);
}
.state-strip__item:last-child .state-strip__figure {
  border-radius: 0 var(--radius-frame) var(--radius-frame) 0;
}
.lightbox__stage img { border-radius: var(--radius-frame); }
.lightbox__counter { max-width: none; pointer-events: none; }
.field__error[data-error-for="consent"] {
  display: block;
  margin: -1.6rem 0 1rem 1.65rem;
}

@media (max-width: 767px) {
  /* On mobile these table rows are independent cards, including the last. */
  table.compare tbody tr {
    border-radius: var(--radius-frame);
  }
  table.compare tbody tr:last-child {
    border-bottom: 1px solid var(--color-line);
  }
}
