* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  overflow-x: hidden;
  color: #1b1b1b;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

:root {
  --brand-red: #f31d04;
  --brand-red-dark: #d41808;
  --brand-red-deep: #b0140a;
  --font-display: "Playfair Display", "PT Sans", Georgia, serif;
}

/* --- Плавное появление контента при скролле --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease, transform 0.28s ease, opacity 0.28s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(27, 27, 27, 0.1);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.header.is-scrolled::before {
  opacity: 0;
}

.header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.is-footer-visible .header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header .nav__link {
  color: #ffffff;
  transition: color 0.3s ease;
}

.header .nav__link:hover {
  color: rgba(255, 255, 255, 0.82);
}

.header.is-scrolled .nav__link {
  color: #1b1b1b;
}

.header.is-scrolled .nav__link:hover {
  color: rgba(27, 27, 27, 0.55);
}

.header.is-scrolled .catalog-button {
  color: #1b1b1b;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  display: none;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 65px;
  letter-spacing: -0.01em;
  color: var(--brand-red);
}

.header.is-scrolled .logo {
  display: block;
}

.header.is-scrolled .logo-text {
  display: none;
}

/* Десктоп: в hero-состоянии (прозрачная шапка) лого скрыто, появляется при скролле */
@media (min-width: 721px) {
  .header:not(.is-scrolled) .logo {
    display: none;
  }
}

@media (max-width: 720px) {
  .logo-text {
    font-size: 25px;
    line-height: 52px;
  }
}

/* --- Бургер + мобильное меню --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #111111;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
}

.nav-drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 28px 32px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.is-open .nav-drawer__panel {
  opacity: 1;
  transform: translateY(0);
}

.nav-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 18px;
}

.nav-drawer__brand {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--brand-red);
}

.nav-drawer__link {
  padding: 20px 0;
  border-bottom: 1px solid rgba(27, 27, 27, 0.08);
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 26px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-drawer__link:hover {
  color: var(--brand-red);
}

.nav-drawer__link--accent {
  margin-top: 14px;
  border-bottom: 0;
  color: var(--brand-red);
  font-weight: 700;
}

.nav-drawer__close {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.12);
  cursor: pointer;
}

.nav-drawer__close::before,
.nav-drawer__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #1b1b1b;
}

.nav-drawer__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-drawer__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 640px) {
  .burger {
    display: inline-flex;
  }
}

.header .header-info__text {
  color: rgba(255, 255, 255, 0.92);
}

.header .header-info__item {
  color: rgba(255, 255, 255, 0.92);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px 10px 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.socials {
  display: flex;
  gap: 6px;
}

.social {
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.88);
  display: block;
  transition: background-color 0.2s ease, transform 0.15s ease;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.social--ok {
  -webkit-mask-image: url('./assets/icons/OK.svg');
  mask-image: url('./assets/icons/OK.svg');
}

.social--vk {
  -webkit-mask-image: url('./assets/icons/VK.svg');
  mask-image: url('./assets/icons/VK.svg');
}

.social:hover {
  background-color: #ffffff;
  transform: translateY(-2px) scale(1.08);
}

.social:active {
  background-color: rgba(255, 255, 255, 0.78);
  transform: translateY(1px) scale(0.94);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-info__item {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  text-decoration: none;
}

.header-info__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.header-info__icon--map {
  -webkit-mask-image: url('./assets/icons/ci_map-pin.svg');
  mask-image: url('./assets/icons/ci_map-pin.svg');
}

.header-info__icon--phone {
  -webkit-mask-image: url('./assets/icons/ci_phone.svg');
  mask-image: url('./assets/icons/ci_phone.svg');
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  -webkit-mask-size: 23px 23px;
  mask-size: 23px 23px;
}

.header-info__text {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  display: inline-block;
}

.header-info__text--phone {
  transform: translateY(-1px);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 76px;
}

.logo {
  display: block;
  width: auto;
  height: 62px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-main__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.catalog-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header.is-scrolled .catalog-button:hover {
  background: #1b1b1b;
  color: #ffffff;
  border-color: #1b1b1b;
}

.page {
  min-height: 200vh;
}

.hero-photo {
  position: relative;
  display: flex;
  align-items: flex-start;
  aspect-ratio: 1672 / 941;
  min-height: 0;
  padding: 200px 80px 88px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.24) 100%),
    url("./assets/webp/prefinale_hero_desktop.webp") no-repeat center / cover;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  transform: translateY(-4%);
}

.hero-eyebrow {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow__line {
  display: inline;
}

.hero-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 72px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Сдержанный editorial-CTA в духе Pierre Hermé: тонкий контур, прописные, стрелка */
.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-button__arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.hero-button:hover {
  background: #ffffff;
  color: #1b1b1b;
  border-color: #ffffff;
}

.hero-button:hover .hero-button__arrow {
  transform: translateX(4px);
}

.factory-brief {
  padding: 72px 80px;
  background: #ffffff;
  border-top: 1px solid rgba(27, 27, 27, 0.06);
}

.factory-brief__card {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.factory-brief__eyebrow {
  color: #8a8a8a;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.factory-brief__title {
  margin-top: 12px;
  color: #1b1b1b;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.4px;
}

.factory-brief__text {
  margin-top: 18px;
  max-width: 920px;
  color: #4a4a4a;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
}

.factory-brief__text + .factory-brief__text {
  margin-top: 14px;
}

/* Горизонтальный таймлайн вместо сетки карточек */
.factory-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 14px 0 0;
  list-style: none;
  position: relative;
}

.factory-timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 27, 27, 0.08), rgba(27, 27, 27, 0.18) 15%, rgba(27, 27, 27, 0.18) 85%, rgba(27, 27, 27, 0.08));
}

.factory-timeline__item {
  position: relative;
  padding: 26px 8px 0 0;
  min-width: 0;
}

.factory-timeline__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1b1b1b;
  box-shadow: 0 0 0 4px #fff;
}

.factory-timeline__year {
  display: block;
  color: #1b1b1b;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.factory-timeline__label {
  display: block;
  margin-top: 8px;
  color: #6f6f6f;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.factory-brief__stats {
  display: none;
}

.factory-brief__stat {
  padding: 20px 18px;
  border-radius: 16px;
  background: #f6f6f6;
  border: 1px solid rgba(27, 27, 27, 0.06);
}

.factory-brief__stat-value {
  display: block;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.factory-brief__stat-label {
  display: block;
  margin-top: 6px;
  color: #6f6f6f;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.factory-brief__link {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  gap: 8px;
}

.factory-brief__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.factory-brief__link:hover {
  color: #6f6f6f;
}

.factory-brief__link:hover::after {
  transform: translateX(4px);
}

.section {
  padding: 80px 80px 120px;
}

.section--products {
  padding-bottom: 96px;
}

.section--factory {
  margin-top: 0;
  min-height: 640px;
  padding-top: 80px;
  background-image: url("./assets/webp/special_block_desktop.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.factory-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 46px;
  padding-right: 38px;
}

.factory-title {
  flex: 0 0 auto;
  color: #1b1b1b;
  font-family: var(--font-display);
  font-size: 56px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.factory-info {
  width: clamp(484px, 42vw, 660px);
}

.factory-text {
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.factory-stats {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  margin-top: 56px;
}

.factory-stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 240px;
}

.factory-stat {
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 58px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.58px;
}

.factory-stat-caption {
  margin-top: 0;
  color: rgba(27, 27, 27, 0.6);
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.factory-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 48px;
  padding: 14px 30px;
  border: 2px solid #1b1b1b;
  border-radius: 999px;
  color: #1b1b1b;
  text-align: center;
  white-space: nowrap;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.factory-link:hover {
  background-color: #1b1b1b;
  color: #ffffff;
  transform: translateY(-1px);
}

.ingredients-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1672 / 941;
  padding: 60px 80px;
  background: url("./assets/webp/special_block_desktop.webp") center / cover no-repeat;
}

.ingredients-scene__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}

.ingredients-scene__content {
  width: min(980px, 100%);
  text-align: center;
}

.ingredients-scene__logo {
  display: block;
  width: 68px;
  height: auto;
  margin: 0 auto 24px;
}

.ingredients-scene__text {
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 46px;
  font-style: normal;
  font-weight: 500;
  line-height: 58px;
  letter-spacing: -0.18px;
}

.ingredients-scene__year {
  margin-top: 16px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.advantages {
  padding: 96px 80px 112px;
}

.advantage-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.advantage-card + .advantage-card {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid #d9d3ce;
}

.advantage-card__media {
  min-height: 564px;
  overflow: hidden;
  background: #d9d9d9;
}

.advantage-card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.advantage-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 564px;
  padding-top: 48px;
}

.advantage-card__title {
  max-width: 444px;
  color: #000000;
  font-family: Inter, sans-serif;
  font-size: 61px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: -0.05em;
}

.advantage-card__text {
  max-width: 444px;
  margin-top: 18px;
  color: #000000;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.catalog-cta {
  padding: 0 80px 112px;
}

.catalog-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  padding: 64px 56px;
  border-radius: 40px;
  background: #f1f1f1;
}

.catalog-cta__logo {
  position: absolute;
  top: 64px;
  right: 56px;
  display: block;
  width: 76px;
  height: auto;
}

.catalog-cta__content {
  max-width: 424px;
  margin-top: auto;
}

.catalog-cta__title {
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 58px;
  font-style: normal;
  font-weight: 700;
  line-height: 66px;
  letter-spacing: -0.58px;
}

.catalog-cta__text {
  max-width: 338px;
  margin-top: 18px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.catalog-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 44px;
  padding: 15px 28px;
  border-radius: 28px;
  background: #ff6b55;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.catalog-cta__button:hover {
  background: #ff4a26;
  transform: translateY(-1px);
}

.feed {
  padding: 0 80px 112px;
}

.faq {
  padding: 0 80px 24px;
}

.faq__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.faq__subtitle {
  margin: 14px 0 0;
  max-width: 52ch;
  color: #6a6a6f;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.faq__list {
  margin-top: 40px;
  border-top: 1px solid rgba(27, 27, 27, 0.1);
}

.faq__item {
  border-bottom: 1px solid rgba(27, 27, 27, 0.1);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  color: #1b1b1b;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 1.6px solid #1b1b1b;
  border-bottom: 1.6px solid #1b1b1b;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg);
}

@media (hover: hover) {
  .faq__q:hover {
    color: #6a6a6f;
  }
}

.faq__q:focus-visible {
  outline: 2px solid #1b1b1b;
  outline-offset: 4px;
}

.faq__a {
  padding: 0 0 28px;
  max-width: 74ch;
}

.faq__a p {
  margin: 0;
  color: #45454a;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.feed__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.feed__subtitle {
  margin: 14px 0 0;
  max-width: 46ch;
  color: #6a6a6f;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.feed__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 27, 0.16);
  background: #fff;
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feed__more svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.feed__more:hover {
  background: #1b1b1b;
  border-color: #1b1b1b;
  color: #fff;
  transform: translateY(-2px);
}

.feed__more:hover svg {
  transform: translateX(3px);
}

.feed__footer {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.feed__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
  margin-top: 44px;
}

.ig-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ig-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.ig-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
}

.ig-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(27, 27, 27, 0.1);
  flex: 0 0 auto;
}

.ig-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
}

.ig-card__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ig-card__name {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1b1b1b;
}

.ig-card__handle {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #9a9a9f;
}

.ig-card__media {
  aspect-ratio: 1 / 1;
  background: #f2f2f4;
}

.ig-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-card__actions {
  display: flex;
  gap: 16px;
  padding: 14px 16px 6px;
  color: #1b1b1b;
}

.ig-card__actions svg {
  width: 24px;
  height: 24px;
}

.ig-card__caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 16px 18px;
}

.ig-card__text {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-card__text strong {
  color: #1b1b1b;
  font-weight: 700;
}

.ig-card__date {
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a0a0a5;
}

@media (max-width: 900px) {
  .feed {
    padding: 0 40px 96px;
  }

  .feed__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq {
    padding: 0 40px 16px;
  }
}

@media (max-width: 640px) {
  .feed {
    padding: 0 0 84px;
  }

  .faq {
    padding: 0 20px 12px;
  }

  .faq__q {
    font-size: 19px;
    padding: 22px 0;
  }

  .feed__head {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .feed__subtitle {
    max-width: none;
  }

  /* iOS-style горизонтальная лента со снапом */
  .feed__track {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    padding: 4px 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .feed__track::-webkit-scrollbar {
    display: none;
  }

  .ig-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .feed__footer {
    margin-top: 20px;
    padding: 0 20px;
  }

  .feed__more {
    width: 100%;
    justify-content: center;
  }
}

.purchase-order {
  padding: 56px 80px 112px;
  border-top: 1px solid #d9d3ce;
}

.purchase-order__banner {
  display: none; /* на десктопе баннер не показываем — не вписывается в структуру */
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  background: #ececec;
}

.purchase-order__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.purchase-order__footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Кнопка-пилюля в стиле VK-кнопки «Смотреть ещё» */
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 27, 0.18);
  background: #fff;
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-pill svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.link-pill:hover {
  background: #111113;
  border-color: #111113;
  color: #fff;
  transform: translateY(-2px);
}

.purchase-order__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  margin-top: 48px;
}

.purchase-order__content {
  display: flex;
  flex-direction: column;
}

.purchase-order__item {
  padding: 48px 24px;
}

.purchase-order__item + .purchase-order__item {
  border-top: 1px solid rgba(27, 27, 27, 0.08);
}

.purchase-order__title {
  max-width: 416px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 46px;
  font-style: normal;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.46px;
}

.purchase-order__text {
  max-width: 340px;
  margin-top: 24px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.purchase-order__meta {
  max-width: none;
  margin-top: 36px;
}

.purchase-order__meta + .purchase-order__meta {
  margin-top: 24px;
}

.purchase-order__label {
  color: rgba(0, 0, 0, 0.4);
  font-family: "PT Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

.purchase-order__value {
  margin-top: 4px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.purchase-order__value--address {
  white-space: nowrap;
}

.purchase-order__note {
  max-width: 340px;
  margin-top: 12px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.purchase-order__phone {
  color: inherit;
  text-decoration: none;
}

.purchase-order__phone:hover {
  text-decoration: underline;
}

.purchase-order__media {
  position: relative;
  min-height: 440px;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  background: #ececec;
}

.purchase-order__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.purchase-order__map[hidden],
.map-fallback[hidden] {
  display: none;
}

.map-fallback {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.95) 0 0, transparent 18%),
    linear-gradient(135deg, rgba(27, 27, 27, 0.08) 1px, transparent 1px),
    linear-gradient(45deg, rgba(27, 27, 27, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f5f5f5 0%, #e7e7e7 100%);
  background-size: auto, 54px 54px, 54px 54px, auto;
}

.map-fallback::before,
.map-fallback::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(27, 27, 27, 0.08);
}

.map-fallback::before {
  left: -18%;
  top: 28%;
  width: 78%;
  height: 26px;
  transform: rotate(-28deg);
}

.map-fallback::after {
  right: -16%;
  top: 52%;
  width: 68%;
  height: 24px;
  transform: rotate(22deg);
}

.map-fallback__pin {
  position: absolute;
  top: 28%;
  left: 56%;
  width: 72px;
  height: 72px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #1b1b1b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.map-fallback__pin::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fff;
}

.map-fallback__content {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(150%);
}

.map-fallback__eyebrow,
.map-fallback__title,
.map-fallback__text,
.map-fallback__time {
  margin: 0;
}

.map-fallback__eyebrow {
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-fallback__title {
  margin-top: 10px;
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.map-fallback__text {
  margin-top: 14px;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.5;
}

.map-fallback__time {
  margin-top: 18px;
  color: #1b1b1b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.map-fallback__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1b1b1b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.map-fallback__button:hover {
  background: #000;
  transform: translateY(-1px);
}

.footer {
  margin: 0;
  padding: 76px 80px 40px;
  border-radius: 0;
  background:
    radial-gradient(140% 120% at 15% 0%, rgba(122, 78, 48, 0.55) 0%, rgba(122, 78, 48, 0) 55%),
    linear-gradient(180deg, #3a241a 0%, #2a1710 48%, #1c0f0a 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brandline {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 15px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #141416;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.footer__cta-arrow {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease;
}

.footer__cta:hover .footer__cta-arrow {
  transform: translateX(4px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 44px 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col--about {
  max-width: 320px;
}

.footer__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.footer__label {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__link {
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer__contact {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  width: fit-content;
}

.footer__contact--strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.footer__contact--muted {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

a.footer__contact:hover {
  color: #ffffff;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer__social:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer__social .social {
  width: 19px;
  height: 19px;
  background-color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.2s ease;
}

.footer__social:hover .social {
  background-color: #ffffff;
  transform: none;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.page-title {
  color: #1b1b1b;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
}

.products-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: min(100%, 720px);
  height: 48px;
  padding: 5px;
  border-radius: 24px;
  background: rgba(27, 27, 27, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.products-switcher::-webkit-scrollbar {
  display: none;
}

.products-switcher__indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 126px;
  height: 38px;
  border-radius: 19px;
  background: var(--brand-red, #fc7257);
  box-shadow: 0 8px 20px rgba(243, 29, 4, 0.2);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.products-switcher__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  color: #6f6f6f;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, font-weight 0.18s ease;
}

.products-switcher__item--active {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.products-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(49, 49, 49, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.products-arrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 7px;
  background-color: rgba(49, 49, 49, 0.45);
  -webkit-mask-image: url('./assets/icons/ci_arrow-right-md.svg');
  mask-image: url('./assets/icons/ci_arrow-right-md.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.products-arrow--prev::before {
  transform: rotate(180deg);
}

.products-arrow--next {
  border-color: transparent;
  background: #fc7257;
}

.products-arrow--next::before {
  background-color: #ffffff;
}

.products-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.products-arrow:active {
  transform: scale(0.96);
}

.products-grid {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  margin-left: -80px;
  margin-right: -80px;
  padding-left: 80px;
  padding-right: 80px;
  scroll-padding-left: 80px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  transition: opacity 0.18s ease;
}

.products-grid::-webkit-scrollbar {
  display: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex: 0 0 calc((100% - 112px) / 4.4);
  padding: 0 0 2px;
  border-radius: 24px;
  background: #ffffff;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.5%;
  box-sizing: border-box;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-card__img.is-active {
  opacity: 1;
}

.product-card__content {
  align-self: stretch;
  padding-top: 16px;
  padding-left: 3px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  color: #1b1b1b;
  font-family: "Noto Sans HK", Inter, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.product-card__description {
  margin-top: 4px;
  color: rgba(18, 18, 18, 0.4);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  margin-top: auto;
  padding-top: 18px;
  color: #1b1b1b;
  font-family: "Noto Sans HK", Inter, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.product-card__weights {
  display: flex;
  gap: 0;
  margin-top: 16px;
}

.product-card__single-weight {
  margin-top: 16px;
  color: #313131;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}

.product-card__weight {
  padding: 0 10px 1px 0;
  border: 0;
  border-bottom: 1px solid rgba(49, 49, 49, 0.12);
  background: transparent;
  color: rgba(49, 49, 49, 0.5);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.product-card__weight--active {
  border-bottom-color: #fc7257;
  color: #313131;
}

.products-more {
  display: block;
  width: fit-content;
  margin: 114px auto 0;
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.18s ease, transform 0.18s ease;
}

.products-more:hover {
  color: #6f6f6f;
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .header-top {
    padding: 16px 40px 8px;
  }

  .header-main {
    padding: 10px 40px;
  }

  .hero-photo {
    min-height: min(68vh, 560px);
    padding: 104px 40px 72px;
  }

  .factory-brief {
    padding: 64px 40px;
  }

  .section,
  .advantages {
    padding-left: 40px;
    padding-right: 40px;
  }

  .catalog-cta,
  .purchase-order {
    padding-left: 40px;
    padding-right: 40px;
  }

  .factory-intro {
    gap: 48px;
    padding-right: 0;
  }

  .factory-stats {
    gap: 64px;
  }

  .ingredients-scene {
    padding: 72px 40px;
  }

  .ingredients-scene__text {
    font-size: clamp(36px, 5vw, 46px);
    line-height: 1.18;
  }

  .product-card {
    flex-basis: calc((100% - 40px) / 2.4);
  }

  .advantage-card__title {
    font-size: clamp(42px, 5vw, 61px);
    line-height: 1.08;
  }

  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 900px) {
  .header-top {
    align-items: flex-start;
    gap: 14px;
    max-height: none;
  }

  .header-info {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
  }

  .header-main {
    align-items: flex-start;
    gap: 18px;
  }

  .header-main__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
  }

  .hero-photo {
    min-height: min(64vh, 520px);
    padding: 96px 40px 64px;
  }

  .hero-title {
    font-size: clamp(52px, 7vw, 74px);
    line-height: 1.08;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 88px;
  }

  .section--factory {
    min-height: 0;
  }

  .factory-intro {
    flex-direction: column;
    margin-top: 32px;
  }

  .factory-title {
    font-size: clamp(42px, 8vw, 58px);
    line-height: 1.12;
  }

  .factory-info {
    width: 100%;
  }

  .factory-stats {
    margin-top: 42px;
  }

  .ingredients-scene {
    padding: 64px 40px;
  }

  .ingredients-scene__stage {
    padding: 0;
  }

  .advantages {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .advantage-card,
  .advantage-card--reverse {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .advantage-card--reverse .advantage-card__content {
    order: 2;
  }

  .advantage-card--reverse .advantage-card__media {
    order: 1;
  }

  .advantage-card__media {
    min-height: 360px;
  }

  .advantage-card__content {
    min-height: 0;
    padding: 28px 0 12px;
  }

  .catalog-cta {
    padding-bottom: 88px;
  }

  .catalog-cta__inner {
    min-height: 520px;
  }

  .purchase-order {
    padding-bottom: 88px;
  }

  .purchase-order__grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .purchase-order__media {
    min-height: 360px;
    border-radius: 24px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer__col--about {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .header-top {
    display: none;
  }

  .header-main {
    align-items: center;
    padding: 12px 18px;
  }

  .logo {
    width: auto;
    height: 48px;
  }

  .header-main__actions {
    align-items: flex-end;
  }

  .nav {
    display: none;
  }

  .catalog-button {
    display: none;
  }

  .hero-photo {
    aspect-ratio: auto;
    min-height: max(520px, 78svh);
    padding: calc(140px + env(safe-area-inset-top)) 20px 80px;
    align-items: center;
    justify-content: center;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.3) 100%),
      url("./assets/webp/prefinale_hero_mobile.webp") no-repeat center / cover;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
    transform: translateY(-10%);
  }

  .hero-eyebrow {
    max-width: 22ch;
    line-height: 1.5;
  }

  .hero-eyebrow__line {
    display: block;
  }

  .hero-eyebrow__sep {
    display: none;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.5px;
  }

  .hero-button {
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin-top: 30px;
    padding: 16px 30px;
  }

  .factory-brief {
    padding: 48px 18px 56px;
  }

  .factory-brief__eyebrow {
    font-size: 11px;
    line-height: 16px;
  }

  .factory-brief__title {
    margin-top: 10px;
    font-size: clamp(24px, 7vw, 30px);
  }

  .factory-brief__text {
    font-size: 15px;
    line-height: 24px;
  }

  .factory-brief__stats {
    display: none;
  }

  .factory-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    margin-top: 26px;
    padding-top: 0;
  }

  .factory-timeline::before {
    display: none;
  }

  .factory-timeline__item {
    padding: 16px 14px;
    border-radius: 14px;
    background: #f6f6f6;
    border: 1px solid rgba(27, 27, 27, 0.06);
  }

  .factory-timeline__item::before {
    display: none;
  }

  .factory-timeline__year {
    font-size: clamp(24px, 7vw, 30px);
  }

  .factory-timeline__label {
    margin-top: 6px;
    font-size: 13px;
  }

  .factory-brief__stat {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .factory-brief__stat-value {
    font-size: clamp(24px, 7vw, 30px);
  }

  .factory-brief__stat-label {
    font-size: 13px;
    line-height: 18px;
  }

  .factory-brief__link {
    margin-top: 22px;
    font-size: 15px;
  }

  .section,
  .advantages,
  .catalog-cta,
  .purchase-order {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .section--products {
    padding-bottom: 64px;
  }

  .products-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .products-switcher {
    width: 100%;
    max-width: none;
    height: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-switcher::-webkit-scrollbar {
    display: none;
  }

  .products-switcher__indicator {
    display: none;
  }

  .products-switcher__item {
    flex: 0 0 auto;
    height: auto;
    padding: 9px 15px;
    border-radius: 999px;
    background: #f2f2f4;
    color: #1c1c1e;
    font-size: 13px;
    line-height: 18px;
  }

  .products-switcher__item--active {
    background: #111113;
    color: #ffffff;
  }

  .products-arrows {
    display: none;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
    margin-top: 28px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .product-card {
    min-width: 0;
  }

  .product-card__content {
    padding-top: 12px;
  }

  .product-card__title,
  .product-card__price {
    font-size: 19px;
    line-height: 23px;
  }

  .product-card__description,
  .product-card__weight,
  .product-card__single-weight {
    font-size: 14px;
    line-height: 20px;
  }

  .products-more {
    margin-top: 52px;
    font-size: 17px;
  }

  .section--factory {
    padding-top: 56px;
    background-image: url("./assets/webp/special_block_mob.webp");
  }

  .factory-intro {
    gap: 28px;
    margin-top: 24px;
  }

  .factory-title {
    font-size: 38px;
    line-height: 43px;
  }

  .factory-text,
  .factory-stat-caption {
    font-size: 15px;
    line-height: 22px;
  }

  .factory-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin-top: 30px;
  }

  .factory-stat-item {
    flex: 1 1 130px;
    max-width: none;
  }

  .factory-stat {
    font-size: 42px;
  }

  .factory-link {
    width: auto;
    margin-top: 30px;
  }

  .ingredients-scene {
    aspect-ratio: 941 / 1672;
    padding: 48px 22px;
    background: url("./assets/webp/special_block_mob.webp") center / cover no-repeat;
  }

  .ingredients-scene__logo {
    width: 54px;
    margin-bottom: 18px;
  }

  .ingredients-scene__text {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.14;
  }

  .advantages {
    padding-top: 56px;
    padding-bottom: 68px;
  }

  .advantage-card {
    margin-top: 24px;
  }

  .advantage-card + .advantage-card {
    margin-top: 32px;
    padding-top: 32px;
  }

  .advantage-card__media {
    min-height: 220px;
    border-radius: 20px;
  }

  .advantage-card__content {
    padding-top: 20px;
  }

  .advantage-card__title {
    font-size: 34px;
    line-height: 38px;
  }

  .advantage-card__text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 22px;
  }

  .catalog-cta {
    padding-bottom: 68px;
  }

  .catalog-cta__inner {
    min-height: 440px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .catalog-cta__logo {
    top: 28px;
    right: 22px;
    width: 58px;
  }

  .catalog-cta__content {
    max-width: none;
  }

  .catalog-cta__title {
    font-size: 38px;
    line-height: 43px;
  }

  .catalog-cta__text {
    max-width: none;
    font-size: 15px;
    line-height: 22px;
  }

  .catalog-cta__button {
    width: 100%;
    margin-top: 30px;
  }

  .purchase-order {
    padding-bottom: 68px;
  }

  .purchase-order__banner {
    display: block;
    margin-bottom: 24px;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
  }

  .purchase-order__footer {
    margin-top: 28px;
  }

  .link-pill {
    width: 100%;
    justify-content: center;
  }

  .purchase-order__grid {
    margin-top: 28px;
  }

  .purchase-order__item {
    padding: 28px 0;
  }

  .purchase-order__title {
    font-size: 34px;
    line-height: 39px;
  }

  .purchase-order__text {
    margin-top: 16px;
    font-size: 15px;
    line-height: 22px;
  }

  .purchase-order__meta {
    margin-top: 24px;
  }

  .purchase-order__value--address {
    white-space: normal;
  }

  .purchase-order__media {
    min-height: 220px;
  }

  .map-fallback {
    min-height: 300px;
    padding: 18px;
  }

  .map-fallback__content {
    padding: 20px;
    border-radius: 20px;
  }

  .map-fallback__pin {
    top: 18%;
    left: 64%;
    width: 54px;
    height: 54px;
  }

  .map-fallback__pin::after {
    inset: 17px;
  }

  .map-fallback__title {
    font-size: 22px;
  }

  .footer {
    margin: 0;
    padding: 52px 20px 32px;
    border-radius: 0;
  }

  .footer__top {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding-bottom: 28px;
  }

  .footer__cta {
    justify-content: center;
    width: 100%;
    padding: 16px 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }

  .footer__col--about {
    max-width: none;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
    padding-top: 24px;
  }
}

/* --- iOS-style sheets --- */
body.is-sheet-open {
  overflow: hidden;
}

.view-product {
  background: #ffffff;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.product-hero__media {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #f2f1ee;
}

.product-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 96px clamp(32px, 5vw, 84px);
}

.product-hero__panel-inner {
  width: 100%;
  max-width: 460px;
}

.product-hero__back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 20, 22, 0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-hero__back:hover {
  background: #ffffff;
}

.product-hero__back:active {
  transform: scale(0.94);
}

.product-hero__back-icon {
  width: 21px;
  height: 21px;
  color: #1c1c1e;
}

.product-gallery__stage {
  position: absolute;
  inset: 0;
}

.product-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.product-gallery__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-gallery__thumbs {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.product-gallery__thumb {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.product-gallery__thumb img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-gallery__thumb:hover img {
  transform: translateY(-2px);
}

.product-gallery__thumb.is-active img {
  box-shadow: 0 0 0 3px #ffffff, 0 6px 16px rgba(0, 0, 0, 0.22);
}

.product-page__eyebrow {
  margin: 0 0 10px;
  color: rgba(60, 60, 67, 0.5);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-page__title {
  margin: 0;
  color: #1c1c1e;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.product-page__desc {
  margin: 16px 0 0;
  color: rgba(60, 60, 67, 0.82);
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.product-page__buy {
  margin-top: 30px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.product-page__buy-label {
  margin: 0 0 14px;
  color: rgba(60, 60, 67, 0.5);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.product-weight {
  padding: 10px 18px;
  border: 1.5px solid rgba(60, 60, 67, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #1c1c1e;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.product-weight:hover {
  border-color: rgba(243, 29, 4, 0.4);
}

.product-weight.is-active {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-price__value {
  color: #1c1c1e;
  font-family: Inter, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-price__weight {
  color: rgba(60, 60, 67, 0.55);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.product-page__note {
  margin: 18px 0 0;
  color: rgba(60, 60, 67, 0.55);
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 22px;
}

.catalog-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.catalog-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-tile:hover .catalog-tile__media {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.catalog-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3%;
  box-sizing: border-box;
  object-fit: contain;
}

.catalog-tile__img--empty {
  display: block;
}

.catalog-tile__title {
  margin-top: 14px;
  color: #1c1c1e;
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.catalog-tile__price {
  margin-top: 4px;
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .product-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-hero__media {
    position: relative;
    top: auto;
    height: 52vh;
    min-height: 300px;
  }

  .product-hero__panel {
    min-height: 0;
    justify-content: flex-start;
    padding: 26px 20px 96px;
  }

  .product-hero__panel-inner {
    max-width: none;
  }

  .product-hero__back {
    top: calc(18px + env(safe-area-inset-top));
    left: 16px;
  }

  .product-gallery__thumbs {
    left: 16px;
    bottom: 16px;
  }

  .product-gallery__thumb img {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 720px) {
  .product-price__value {
    font-size: 30px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .catalog-tile__title {
    margin-top: 10px;
    font-size: 15px;
  }

  .catalog-tile__price {
    font-size: 14px;
  }
}

/* --- Внутренние страницы (каталог категории и торт) --- */
[hidden] {
  display: none !important;
}

.subpage {
  min-height: 100vh;
  background: #f6f6f8;
}

.subpage__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

.subpage__inner--catalog {
  max-width: 1200px;
  padding-top: 120px;
}

body.is-product-view .header {
  display: none;
}

.subpage__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #1c1c1e;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.subpage__back:hover {
  color: var(--brand-red);
}

.subpage__back-icon {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}

.subpage__head {
  margin: 18px 0 22px;
}

.subpage__title {
  margin: 0;
  color: #1c1c1e;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Тумблеры категорий на странице каталога */
.catalog-switcher {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.catalog-switcher::-webkit-scrollbar { display: none; }

.catalog-switcher__item {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid rgba(17, 17, 19, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #1c1c1e;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.catalog-switcher__item:hover {
  border-color: rgba(17, 17, 19, 0.22);
}
.catalog-switcher__item--active {
  background: #111113;
  border-color: #111113;
  color: #ffffff;
  font-weight: 600;
}

/* Кнопка «Связаться» на внутренних экранах */
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: 24px;
  padding: 15px 30px;
  border-radius: 999px;
  background: #111113;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.contact-cta:active { transform: scale(0.98); }

.product-page__note + .contact-cta {
  margin-top: 20px;
}

.subpage__count {
  margin: 8px 0 0;
  color: rgba(60, 60, 67, 0.6);
  font-family: Inter, sans-serif;
  font-size: 15px;
}

.subpage__product {
  margin-top: 26px;
}

.ios-product-copy__eyebrow {
  margin: 0 0 8px;
  color: var(--brand-red);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .subpage__inner {
    padding: 92px 16px 72px;
  }
}

/* ---------- Нижняя iOS-навигация (только моб) ---------- */
.tabbar {
  display: none;
}

@media (max-width: 640px) {
  /* В мобе шапку прячем, навигация уезжает в нижний таббар */
  .header {
    display: flex;
  }

  /* Логотип в мобе убран - визуально мешал шапке */
  .brand {
    display: none;
  }

  .header-main__actions {
    display: none;
  }

  .burger {
    display: none;
  }

  .hero-photo {
    padding: 88px 20px 72px;
  }

  .tabbar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    justify-content: space-around;
    gap: 4px;
    padding: 7px 8px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.18),
      0 2px 8px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  }

  .tabbar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .tabbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0 7px;
    text-decoration: none;
    color: #8a8a8e;
    border-radius: 18px;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar__item:active {
    transform: scale(0.9);
  }

  .tabbar__item.is-active {
    color: #111113;
  }
  .tabbar__item.is-active .tabbar__icon { transform: translateY(-1px); }

  .tabbar__icon {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
  }

  .tabbar__icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .tabbar__label {
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
}

/* ==================== ИИ-консультант ==================== */
.nav__link--ai {
  position: relative;
  padding: 8px 16px;
  border: 1px solid rgba(17, 17, 19, 0.16);
  border-radius: 999px;
  font-weight: 600;
}
.header.is-scrolled .nav__link--ai {
  border-color: rgba(17, 17, 19, 0.2);
}
.nav__link--ai:hover {
  background: #111113;
  color: #fff;
  border-color: #111113;
}

/* Экран чата — иммерсивный оверлей */
body.is-chat-view { overflow: hidden; }
body.is-chat-view .header,
body.is-chat-view .tabbar,
body.is-chat-view .footer { display: none !important; }

.view-chat {
  position: fixed;
  inset: 0;
  z-index: 55;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 248, 240, 0.9) 0%, transparent 60%),
    #f4f3f0;
}
.chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: transparent;
}

.chat__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 0.5px solid rgba(17, 17, 19, 0.08);
}
.chat__back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #111113;
  background: rgba(17, 17, 19, 0.06);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.chat__back:active { transform: scale(0.92); }
.chat__back:hover { background: rgba(17, 17, 19, 0.1); }
.chat__back svg { width: 18px; height: 18px; }
.chat__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid rgba(17, 17, 19, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.chat__avatar img { width: 78%; height: 78%; object-fit: contain; }
.chat__name {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111113;
  letter-spacing: -0.01em;
}
.chat__status {
  margin: 1px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #8e8e93;
}
.chat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
}

.chat__thread {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}

.chat-msg { display: flex; max-width: 80%; animation: chat-in 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.chat-msg--user { align-self: flex-end; justify-content: flex-end; }
.chat-msg--assistant { align-self: flex-start; }
@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.chat-msg__bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  word-wrap: break-word;
  letter-spacing: -0.01em;
}
.chat-msg--assistant .chat-msg__bubble {
  background: #ffffff;
  color: #1c1c1e;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.chat-msg--user .chat-msg__bubble {
  background: #111113;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.chat-msg--error .chat-msg__bubble {
  background: #fdecea;
  color: #b0140a;
  border-color: rgba(176, 20, 10, 0.2);
}
.chat-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(176, 20, 10, 0.5);
}
.chat-link:hover { text-decoration-color: var(--brand-red); }

/* Индикатор набора */
.chat-typing__dots { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.chat-typing__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b7b7bd;
  animation: chat-blink 1.3s infinite ease-in-out both;
}
.chat-typing__dots i:nth-child(2) { animation-delay: 0.16s; }
.chat-typing__dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes chat-blink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Подсказки-чипы */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 2px;
}
.chat-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #1c1c1e;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.15s ease;
}
.chat-chip:hover { background: #111113; color: #fff; transform: translateY(-1px); }
.chat-chip:active { transform: scale(0.96); }

/* Поле ввода */
.chat__composer {
  flex: 0 0 auto;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid rgba(17, 17, 19, 0.08);
}
.chat__field {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #ffffff;
  border: 0.5px solid rgba(17, 17, 19, 0.1);
  border-radius: 22px;
  padding: 4px 4px 4px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.chat__field:focus-within {
  border-color: rgba(17, 17, 19, 0.2);
}
.chat__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #1c1c1e;
  max-height: 120px;
  padding: 8px 0;
}
.chat__send {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.chat__send:active { transform: scale(0.9); }
.chat__send svg { width: 17px; height: 17px; }
.chat__composer.is-busy .chat__send { opacity: 0.4; pointer-events: none; }
.chat__disclaimer {
  margin: 6px 6px 0;
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: #aeaeb2;
  text-align: center;
}

.chat__phone {
  color: #1b1b1b;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(27, 27, 27, 0.35);
}

.chat__phone:hover {
  border-bottom-color: #1b1b1b;
}

@media (max-width: 640px) {
  .chat-msg { max-width: 86%; }
  .subpage__inner--catalog { padding-top: 40px; }
  .catalog-switcher { margin-top: 10px; }
  .contact-cta {
    display: flex;
    width: 100%;
  }
}
