/* Figma overlay: Onest + tokens + header/nav/cta/footer. Page CSS in pages-*.css */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/onest-200-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/onest-200-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/onest-300-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/onest-300-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/onest-400-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/onest-400-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/onest-500-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/onest-500-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/onest-600-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/onest-600-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/onest-700-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/onest-700-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
  --container-width: 1600px;
  --container-padding: 40px;
  --color-primary: #15a3a5;
  --color-primary-dark: #13706f;
  --header-height: 0px;
  --nav-height: 0px;
  --sticky-offset: 156px;
  --nv-sticky-header: var(--sticky-offset);
  --mint: #c5efe8;
  --mint-deep: #7ecec2;
}

body {
  font-family: var(--font-family);
}

section,
article.single {
  scroll-margin-top: calc(var(--sticky-offset) + 12px);
}

.logo,
.header__logo {
  background: transparent;
  box-shadow: none;
  width: auto;
  max-width: none;
}

.logo__img {
  display: block;
  width: auto;
  height: 72px;
  max-width: none;
  object-fit: contain;
  background: transparent;
}

.logo__text {
  display: none !important;
}

.cta__icon {
  display: none !important;
}

.cta__banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: center;
  gap: 24px 40px;
  min-height: 280px;
}

.cta__content,
.cta__media {
  position: relative;
  grid-column: auto;
  grid-row: auto;
  inset: auto;
  z-index: auto;
}

.cta__media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  min-height: 220px;
  overflow: visible;
  background: none;
}

.cta__media::after {
  display: none;
}

.cta__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: right bottom;
  background: none;
}

@media (max-width: 768px) {
  .cta__banner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 24px;
  }

  .cta__media {
    min-height: 0;
    height: auto;
    max-height: none;
    justify-content: center;
    order: -1;
  }

  .cta__img {
    height: 180px;
    max-height: 180px;
    margin-inline: auto;
    object-position: center bottom;
  }
}

.cta__button,
.cta__button.button {
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 18px;
}

.cta__button:hover,
.cta__button:focus-visible,
.cta__button.button:hover {
  background: #f3fffd;
  color: #0f5d60;
}

/* --------------------------------------------------------------------------
   HEADER — mint topbar + logo/nav row + compact home hero
   -------------------------------------------------------------------------- */
.header {
  display: contents;
  color: var(--color-text);
  isolation: auto;
  padding-top: 0;
}

.header__sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fff;
  overflow: visible;
}

.header.is-sticky .header__sticky {
  box-shadow: 0 4px 18px rgba(15, 93, 96, .14);
}

.admin-bar .header__sticky {
  top: 32px;
}

.header__topbar {
  background: var(--mint);
  color: var(--color-text);
}

.header__topbar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 48px;
  padding-block: 6px;
}

.header__topbar .header__contacts {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex: 1 1 auto;
  order: 0;
  min-width: 0;
}

.header__topbar .header__contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text);
  min-width: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header__topbar .header__contact--hours,
.header__topbar .header__contact--phone,
.header__topbar .header__contact--email {
  white-space: nowrap;
}

.header__topbar .header__contact .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--color-primary);
}

.header__topbar .header__contact a {
  color: inherit;
}

.header__topbar .header__contact a:hover {
  color: var(--color-primary-dark);
}

.header__address-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.25;
}

.header__address-text > span {
  white-space: nowrap;
}

.header__howto {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.header__address-text--compact {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.header__soon,
.header__pharmacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  height: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.header__soon {
  background: #fff;
  color: var(--color-primary-dark);
}

.header__hours-lead,
.header__addr-lead {
  display: none;
}

.header__contact--soon {
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.header__contact--soon .header__address-text {
  max-width: none;
}

.header__pharmacy {
  background: var(--color-primary, #15a3a5);
  color: #fff;
  text-align: center;
}

.header__topbar .header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex: none;
}

.header__topbar .round-btn,
.header__topbar .round-btn--filled,
.header__topbar .round-btn--search {
  width: 36px;
  height: 36px;
  padding: 7px;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 93, 96, .12);
}

.header__topbar .round-btn .icon--max,
.round-btn--max .icon--max {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.round-btn--max {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 50% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.round-btn--max:hover,
.round-btn--max:focus-visible {
  background: transparent !important;
  transform: scale(1.06);
}

.header__topbar .round-btn:hover,
.header__topbar .round-btn:focus-visible {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.header__topbar .burger,
.header__navrow .burger {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: #fff;
}

.header__navrow {
  background: #fff;
  border-bottom: 1px solid rgba(20, 143, 137, .12);
}

.header__navrow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  min-height: 88px;
  padding-block: 8px;
}

.header .header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: auto;
  flex: none;
}

.header .header__brand {
  flex: 0 1 auto;
  flex-basis: auto;
  order: 0;
  min-width: 0;
  text-align: start;
}

.header .header__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.1;
  color: var(--color-primary-dark);
}

.header .header__subtitle {
  margin-block-start: 2px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.header .nav {
  position: relative;
  z-index: 21;
  flex: 1 1 320px;
  min-width: 0;
  background: none;
  color: var(--color-primary-deep);
}

.header .nav__list {
  justify-content: flex-end;
  gap: 8px 18px;
  min-height: 0;
}

.header .nav__list > li > a {
  font-size: 15px;
  color: var(--color-primary-deep);
}

.header .nav__list > li > a:hover,
.header .nav__list > li > a:focus-visible,
.header .nav__list > .current-menu-item > a,
.header .nav__list > .current-menu-parent > a,
.header .nav__list > .current-menu-ancestor > a {
  color: var(--color-primary);
}

.header__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  height: clamp(320px, 32vw, 420px);
  overflow: hidden;
  color: #fff;
}

body:not(.page--home) .header__hero {
  display: none;
}

.header__hero .header__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.header__hero .header__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.header__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 28, 32, .62) 0%,
    rgba(8, 28, 32, .32) 42%,
    rgba(8, 28, 32, .12) 100%
  );
}

.header__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 28px 32px;
}

.header__hero .header__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.header__hero .header__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 20, 24, .42);
  border-radius: 10px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.header__hero .header__stat .icon {
  width: 22px;
  height: 22px;
  color: #fff;
}

.footer {
  background: linear-gradient(90deg, #7ecec2 0%, #6ec4b9 50%, #7ed0c4 100%);
}

.footer__container {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2.2fr) minmax(200px, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__logo {
  display: block;
}

.footer__logo .logo__img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 160px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.footer__name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--color-primary-deep);
}

.footer__tagline {
  margin: 0;
  max-width: 16em;
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-primary-deep);
  text-transform: lowercase;
}

.footer__col--brand .footer__socials {
  margin-block-start: 6px;
}

.footer__col--menu .footer__list {
  display: block;
  column-count: 3;
  column-gap: 28px;
  font-size: 14px;
}

.footer__col--menu .footer__list > li {
  break-inside: avoid;
  margin-block-end: 8px;
}

.footer__book {
  font-weight: 700;
  color: var(--color-primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__soon {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 12px;
  color: var(--color-primary-deep);
}

a.footer__rating,
a.rating {
  color: inherit;
  text-decoration: none;
}

a.rating:hover,
a.rating:focus-visible {
  box-shadow: 0 2px 12px rgba(24, 90, 92, .18);
}

.footer__yandex-badge {
  display: block;
  width: 150px;
  height: 50px;
  border: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .header__hours-lead,
  .header__addr-lead {
    display: inline;
  }
}

@media (min-width: 1440px) {
  .header__hours-lead {
    display: inline;
  }
}

@media (min-width: 1600px) {
  .header__addr-lead {
    display: inline;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .header__topbar .header__contact {
    font-size: 12px;
    gap: 4px;
  }

  .header__topbar .header__contact .icon {
    display: none;
  }

  .header__topbar-inner {
    gap: 6px 4px;
  }

  .header__topbar .header__actions {
    gap: 6px;
  }

  .header__soon,
  .header__pharmacy {
    font-size: 10px;
    padding: 1px 6px;
  }
}

/* Menu is wider than the space beside the brand: wrap it instead of overflowing onto the logo */
@media (min-width: 769px) and (max-width: 1439px) {
  .header .nav__list {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .header__topbar .header__contact {
    font-size: 11px;
  }

  .header__topbar .round-btn,
  .header__topbar .round-btn--filled,
  .header__topbar .round-btn--search {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
}

@media (max-width: 1100px) {
  .footer__container {
    grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1fr);
    gap: 28px 32px;
  }

  .footer__col--contacts {
    grid-column: 1 / -1;
  }

  .footer__col--menu .footer__list {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --sticky-offset: 118px;
  }

  /* Mobile: topbar scrolls away, only the logo/burger row sticks.
     Collapsing an in-flow sticky block would shift the page and bounce scroll. */
  .header__sticky {
    display: contents;
  }

  .header__topbar {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header__navrow {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .header.is-sticky .header__navrow {
    box-shadow: 0 4px 18px rgba(15, 93, 96, .14);
  }

  .header__topbar-inner {
    flex-wrap: wrap;
    min-height: 0;
  }

  .footer__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer__col--contacts {
    grid-column: auto;
  }

  .footer__col--menu .footer__list {
    column-count: 2;
  }

  .logo__img {
    height: 64px;
  }

  .header__contact--phone {
    order: 1;
    font-weight: 600;
  }

  .header__topbar .header__actions {
    order: 2;
  }

  .header__topbar .header__contacts {
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .header__navrow-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    min-height: 72px;
  }

  .header .header__title {
    font-size: 20px;
    letter-spacing: .06em;
  }

  .header .header__subtitle {
    font-size: 13px;
  }

  .header .nav {
    display: none;
    grid-column: 1 / -1;
    flex: none;
    min-width: 0;
    background: #f4fbfb;
  }

  .header .nav:has(.nav__list.is-open) {
    display: block;
  }

  .header .nav__list.is-open {
    max-height: min(55dvh, 440px);
    padding: 8px 16px 20px;
    overflow-y: auto;
  }

  .header .nav__list {
    justify-content: stretch;
  }

  .header .nav__list > li > a {
    color: var(--color-primary-deep);
    padding: 12px 0;
  }

  .header .sub-menu {
    background: transparent;
  }

  .header .sub-menu a,
  .header .sub-menu a:hover,
  .header .sub-menu a:focus-visible,
  .header .sub-menu .current-menu-item > a {
    color: var(--color-primary-deep);
    background: transparent;
  }

  .header__hero {
    min-height: 220px;
    height: auto;
    aspect-ratio: auto;
  }

  .header__hero .header__stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__hero .header__stat {
    font-size: 14px;
  }

  .header__topbar .header__contact--phone a {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
  }

  .header__address-text--compact {
    flex-wrap: wrap;
  }

  .cta__button,
  .cta__button.button {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --sticky-offset: 108px;
    --container-padding: 16px;
  }

  .footer__col--menu .footer__list {
    column-count: 2;
    column-gap: 20px;
    font-size: 13px;
  }

  .logo__img {
    height: 56px;
  }

  .header__topbar-inner {
    gap: 8px;
  }

  .header .header__title {
    font-size: 18px;
  }

  .header__hero {
    min-height: 200px;
  }
}

@media (min-width: 769px) {
  .logo__img {
    height: 88px;
  }

  .header__topbar-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px 10px;
  }

  .header__topbar .header__contacts {
    display: contents;
  }

  .header__topbar .header__contact--email {
    display: flex;
  }

  .header__topbar .header__actions {
    margin-inline-start: 0;
    flex: none;
  }

  .header__navrow-inner {
    display: flex;
    flex-wrap: nowrap;
    min-height: 98px;
  }
}

@media (min-width: 1200px) {
  .header .header__title {
    font-size: 26px;
  }

  .header .nav__list {
    gap: 10px 22px;
  }
}

@media (min-width: 1600px) {
  .header__topbar .header__contact {
    font-size: 14px;
  }

  .header__topbar .header__contact .icon {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .header__sticky,
  .admin-bar .header__navrow {
    top: 46px;
  }
}

