:root {
  --bg: #ffffff;
  --bg-soft: #f0f0f0;
  --bg-dark: #120000;
  --text: #000000;
  --muted: #555555;
  --line: rgba(0, 0, 0, 0.08);
  --t-text-font: "TildaSans", Arial, sans-serif;
  --t-headline-font: "TildaSans", Arial, sans-serif;
  --font: var(--t-text-font);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--t-text-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.container--narrow { width: min(960px, calc(100% - 40px)); }
.text-center { text-align: center; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 100px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header--solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header--solid .logo,
.header--solid .nav a,
.header--solid .socials a,
.header--solid .cart-btn {
  color: var(--text);
}

/* Полоски бургера — background, не color (иначе на белой шапке невидимы) */
.header--solid .burger span {
  background: #120000;
}

.header__inner {
  height: 100px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
}

.logo {
  font-family: var(--t-text-font);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.nav a:hover { opacity: 0.75; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.socials a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
}

.socials a .social-icon,
.socials a svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  overflow: visible;
}

.socials--header a {
  width: 34px;
  height: 34px;
}

.socials--header a .social-icon,
.socials--header a svg {
  width: 20px;
  height: 20px;
}

.socials--contacts {
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.socials--contacts a {
  color: #fff;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
}

.socials--contacts a .social-icon,
.socials--contacts a svg {
  width: 24px;
  height: 24px;
}

/* MAX: тёмный «M» на светлом круге поверх currentColor, белый «M» на тёмном круге при скролле */
.social-icon--max circle {
  fill: currentColor;
}
.social-icon--max path {
  fill: #120000;
  transition: fill 0.25s ease;
}
.header--solid .social-icon--max path {
  fill: #ffffff !important;
}

.cart-btn {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cart-btn span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 12px;
}

.header--solid .cart-btn span {
  background: var(--bg-dark);
  color: #fff;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  margin-right: 2px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Три полоски по центру кнопки */
.burger span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2.5px;
  margin-left: -12px;
  border-radius: 2px;
  background: #fff;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__slide.is-active { opacity: 1; }

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Отступы, чтобы заголовок не пересекался со стрелками и буллетами */
  padding: 110px 72px 88px;
  pointer-events: none;
}

.hero__content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  pointer-events: auto;
}

.hero__titles {
  position: relative;
  width: 100%;
  min-height: 5.5rem;
  height: auto;
  margin: 0 auto;
  flex-shrink: 0;
}

.hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  font-family: var(--t-headline-font);
  font-size: clamp(18px, 3.6vw, 36px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Активный title в потоке — блок не схлопывается и не наезжает на controls */
.hero__title.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero__cta {
  display: inline-block;
  margin-top: 20px;
  flex-shrink: 0;
  padding: 14px 34px;
  border-radius: 30px;
  background: #fff;
  color: #000;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__bullets {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero__bullet.is-active { background: #fff; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero__arrow:hover { transform: translateY(-50%) scale(1.05); }

.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

[id] { scroll-margin-top: 110px; }

/* Sections */
.section {
  padding: 45px 0;
}

.section--intro { padding-top: 45px; padding-bottom: 45px; }

.section--about { background: var(--bg-soft); }

.section--contacts {
  background: var(--bg-dark);
  color: #fff;
  padding: 45px 0 55px;
}

.section__title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section__title--sm { font-size: 22px; }

.section__text {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
}

.section__text--muted { color: var(--muted); margin-bottom: 30px; }

.intro-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

/* Feature photo after intro (mom + mannequin) */
.section--feature {
  padding: 8px 0 40px;
}

.feature-photo {
  margin: 0 auto;
  max-width: 720px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
  /* Кадр с акцентом на лицо: cover + object-position сверху */
  aspect-ratio: 3 / 4;
}

.feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  /* Поднимаем кадр: голова и верх торса в зоне видимости */
  object-position: center 12%;
  margin: 0;
  background: #f5f5f5;
}

/* About gallery — img вместо background, чтобы контролировать crop */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 35px;
}

.about-gallery__item {
  margin: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ebebeb;
}

.about-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

/* Catalog */
.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
}

.product-card {
  text-align: center;
  cursor: pointer;
}

.product-card__imgwrap {
  position: relative;
  width: 100%;
  padding-bottom: 103.846%;
  overflow: hidden;
  background: #ebebeb;
}

.product-card__img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease;
}

.product-card__img--second { opacity: 0; }

.product-card.has-hover:hover .product-card__img--first { opacity: 0; }
.product-card.has-hover:hover .product-card__img--second { opacity: 1; }

.product-card__title {
  margin: 15px 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.product-card__descr {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.product-card__price {
  font-size: 19px;
  font-weight: 600;
  color: #111;
}

.product-card__price small {
  font-size: 14px;
  margin-left: 2px;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
}

.product-card:hover .product-card__btn {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
}

/* Gallery row */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-row img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  background: #f0f0f0;
}

/* Size chart in product modal — влезает на узкий экран */
.size-chart {
  margin: 16px 0 18px;
  padding: 12px 10px 10px;
  background: #faf8f6;
  border: 1px solid #e8e2dc;
  border-radius: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.size-chart__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.size-chart__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.size-chart__table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  text-align: center;
  margin: 0 auto;
}

.size-chart__table th,
.size-chart__table td {
  padding: 7px 3px;
  border: 1px solid #e4ddd4;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

.size-chart__table th {
  background: #fff;
  font-weight: 600;
  font-size: 11px;
}

.size-chart__table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.65);
}

.size-chart__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Блок «Опт» на главной (скролл #opt) */
.section--opt-inline {
  background: #f7f5f2;
}

.opt-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.opt-card {
  border: 1px solid var(--line);
  padding: 24px 22px;
  background: #faf8f6;
}

.opt-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opt-list {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}

.opt-list li {
  margin-bottom: 8px;
}

.opt-card__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.opt-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-btn--dark {
  background: var(--bg-dark);
  color: #fff;
}

.opt-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.opt-photos img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  background: #eee;
}

.section--opt-form {
  background: var(--bg-soft);
}

.opt-form .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.opt-flash {
  padding: 16px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.opt-flash--ok {
  background: #e8f7ee;
  border: 1px solid #b7e0c5;
  color: #14532d;
}

.opt-flash--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

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

.feature-photo--portrait {
  max-width: 480px;
}

/* ——— Cookie-баннер (низ экрана, не ломает вёрстку) ——— */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-bar__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px 20px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(18, 0, 0, 0.94);
  color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.cookie-bar__text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-bar__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-bar__btn {
  border: 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 24px;
  font-family: inherit;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.cookie-bar__btn:hover {
  opacity: 0.9;
}

.cookie-bar__btn--primary {
  background: #fff;
  color: #120000;
  font-weight: 600;
}

.cookie-bar__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
  .cookie-bar {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px 12px;
    gap: 12px;
    border-radius: 10px;
  }

  .cookie-bar__text {
    font-size: 12px;
    flex: none;
  }

  .cookie-bar__actions {
    width: 100%;
  }

  .cookie-bar__btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* Портрет мамы: лицо и манекен в кадре */
.feature-photo--portrait img {
  object-fit: cover;
  object-position: center 15%;
}

.privacy-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  border-radius: 30px;
  background: #fff;
  color: var(--bg-dark);
  font-size: 14px;
}

.privacy-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.contacts-list {
  margin: 20px auto 8px;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.7;
}

.contacts-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.delivery-card {
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.delivery-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.delivery-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  background: var(--bg-soft);
  padding: 28px 20px 36px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 14px;
}

.site-footer__links a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-disclaimer {
  margin: 12px auto 0;
  max-width: 42rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #666);
  text-align: center;
}

.meta-disclaimer--footer {
  margin: 10px auto 4px;
  padding: 0 16px;
}

.meta-disclaimer__star {
  margin-right: 2px;
}

.socials__link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.socials__star {
  font-size: 11px;
  line-height: 1;
  margin-left: 1px;
  color: inherit;
  opacity: 0.85;
}

.site-footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}

.legal-nav a.is-active {
  font-weight: 600;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin-bottom: 16px;
}

.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.65;
  color: #222;
}

.legal-content ul {
  padding-left: 20px;
}

.order-status__meta {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
}

.order-status__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.order-status__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-status__card {
  padding: 18px 20px;
  background: #faf8f6;
  border: 1px solid #e8e2dc;
  border-radius: 8px;
}

.order-status__card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.order-status__card p {
  margin: 0 0 8px;
}

.order-status__tracking {
  margin-top: 12px !important;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  word-break: break-all;
}

.order-status__items,
.order-status__timeline {
  margin: 0;
  padding-left: 20px;
}

.order-status__items li,
.order-status__timeline li {
  margin-bottom: 8px;
}

.order-status__timeline span {
  color: #666;
  font-size: 14px;
}

.legal-note {
  padding: 14px 16px;
  background: #fff8e6;
  border: 1px solid #f0d998;
  border-radius: 4px;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 20px;
}

.legal-seller {
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  line-height: 1.7;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 20px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* FAQ Section */
.section--faq {
  background: #fafafa;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #222;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: #444;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.faq-answer p {
  margin: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.modal.is-open { display: flex; }

.modal__panel {
  width: min(560px, 100%);
  max-width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  position: relative;
}

.modal__panel--product {
  width: min(980px, 100%);
  padding: 24px;
}

.modal__panel--product .modal__product {
  min-width: 0;
}

.modal__panel h3 {
  margin: 0 0 4px;
  padding-right: 36px;
  font-size: 22px;
  font-weight: 500;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.modal__product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}

.modal__gallery-main {
  background: #ebebeb;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__gallery-main img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.modal__gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.modal__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  padding: 0;
  background: #ebebeb center/contain no-repeat;
  cursor: pointer;
}

.modal__thumb.is-active { border-color: #222; }

.modal__info h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
}

.modal__price {
  font-size: 22px;
  margin-bottom: 12px;
}

.modal__meta {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.modal__meta div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal__meta span {
  color: var(--muted);
  min-width: 50px;
}

.modal__meta select {
  width: 100%;
  max-width: 120px;
  padding: 8px 10px;
  border: 1px solid #ccc;
}

.modal__info p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

/* Компактная сворачиваемая размерная сетка */
.size-chart__details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0 12px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.size-chart__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
  padding: 2px 0;
}

.size-chart__summary::-webkit-details-marker {
  display: none;
}

.size-chart__icon {
  font-size: 11px;
  transition: transform 0.2s ease;
  color: #888;
}

.size-chart__details[open] .size-chart__icon {
  transform: rotate(180deg);
}

.size-chart__details[open] {
  padding-bottom: 12px;
}

.btn-primary,
.checkout-btn {
  border: 0;
  border-radius: 30px;
  padding: 13px 28px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 0;
  width: 100%;
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

/* Modal Consultation Section */
.modal__consult-card {
  background: #fbf9f6;
  border: 1px solid #ede8e1;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
  box-sizing: border-box;
}

.consult-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.consult-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.consult-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1816;
  letter-spacing: -0.01em;
}

.consult-card__desc {
  font-size: 12.5px;
  color: #6b635b;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.consult-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-channel svg {
  flex-shrink: 0;
}

.btn-channel:hover {
  transform: translateY(-1.5px);
}

.btn-channel:active {
  transform: translateY(0);
}

.btn-channel--tg {
  background: #229ED9;
  color: #ffffff !important;
}

.btn-channel--tg:hover {
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.38);
  filter: brightness(1.05);
}

.btn-channel--max {
  background: #7B2CBF;
  color: #ffffff !important;
}

.btn-channel--max:hover {
  box-shadow: 0 4px 14px rgba(123, 44, 191, 0.38);
  filter: brightness(1.08);
}

.btn-channel--max svg circle {
  fill: currentColor;
}

.btn-channel--max svg path {
  fill: #fff;
}

.consult-card__note {
  font-size: 11px;
  color: #8c827a;
  text-align: center;
  margin-top: 9px;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .consult-card__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .btn-channel {
    padding: 11px 14px;
    font-size: 13.5px;
  }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 12px 14px;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-label input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #000;
}

.checkbox-label__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.checkbox-label__text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-agreements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 2px;
}

.checkout-agreements .checkbox-label {
  margin: 0;
}

.checkout-form {
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
}

.checkout-fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px 16px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.checkout-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-fieldset .form-grid,
#delivery-fields {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.modal__panel--checkout {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* Форма на всю высоту модалки: скролл только у body, кнопка всегда снизу */
.checkout-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
}

.checkout-modal__header {
  flex-shrink: 0;
  padding: 24px 28px 0;
}

.checkout-modal__header h3 {
  margin: 0;
}

.checkout-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 28px 8px;
  /* Скролл не должен перехватывать клики по футеру */
  position: relative;
  z-index: 1;
}

.checkout-modal__footer {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  isolation: isolate;
  padding: 14px 28px calc(14px + env(safe-area-inset-bottom, 0px) + var(--browser-bottom-inset, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.checkout-submit-btn,
.cart-checkout-btn {
  margin: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 21;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

/* Текст внутри кнопки не перехватывает клик отдельно (iOS/Safari) */
.checkout-submit-btn__label {
  pointer-events: none;
  display: inline-block;
}

.checkout-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Cart */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 900;
  display: flex;
  flex-direction: column;
}

.cart-panel.is-open { transform: translateX(0); }

.cart-panel__head,
.cart-panel__foot {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-panel__foot {
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--browser-bottom-inset, 0px));
}

.cart-panel__head button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

#cart-list {
  flex: 1;
  overflow-y: auto;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  border: 0;
  border-radius: 30px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-item img {
  width: 70px;
  height: 88px;
  object-fit: contain;
  background: #ebebeb;
}

.cart-item button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}

.cart-qty-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line) !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  line-height: 1 !important;
  color: #111 !important;
  background: #f4f4f4 !important;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  padding: 0;
}

.cart-qty-btn:hover {
  background: #e2e2e2 !important;
  border-color: #999 !important;
}

.cart-qty-num {
  font-size: 14px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
  color: #111;
}

.cart-qty-price {
  font-size: 13px;
  color: #777;
  margin-left: 2px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--bg-dark);
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .catalog { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open { display: flex; }

  .nav.is-open a { color: #000; }

  .burger { display: block; }

  .header__actions {
    gap: 8px;
    padding-right: 4px;
  }

  .catalog { grid-template-columns: repeat(2, 1fr); }
  .about-gallery { grid-template-columns: 1fr; }
  .gallery-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-row img {
    flex: 0 0 88%;
    height: 350px;
    scroll-snap-align: center;
  }
  .modal__product { grid-template-columns: 1fr; }
  .hero__content { padding: 96px 52px 80px; }
  .hero__title { font-size: clamp(16px, 4.2vw, 28px); }
  .hero__arrow { width: 34px; height: 34px; }
  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .gallery-row--3,
  .gallery-row--4 { grid-template-columns: repeat(2, 1fr); }
  .opt-grid { grid-template-columns: 1fr; }
  .opt-photos { grid-template-columns: 1fr; }
  .opt-photos img { height: 260px; }
  .opt-page { padding-top: 88px; }

  .header__actions {
    gap: 10px;
  }

  .cart-btn {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .container,
  .container--narrow {
    width: calc(100% - 32px);
    max-width: none;
  }

  .header {
    height: 72px;
    /* Отступ от края экрана (в т.ч. «чёлки» iPhone) */
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  /* Шапка на всю ширину с внутренними отступами — кнопки не уезжают за край */
  .header .container.header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 1fr auto;
    height: 72px;
    gap: 10px;
  }

  .logo {
    grid-column: 1;
    font-size: 20px;
    letter-spacing: 1.2px;
    min-width: 0;
  }

  .header__actions {
    grid-column: 2;
    gap: 2px;
    padding-right: 0;
    margin-right: 0;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
    min-width: 0;
  }

  /* Соцсети в шапке: компактные, все три (TG / MAX / IG) */
  .socials--header {
    display: flex;
    gap: 0;
    flex-shrink: 0;
  }

  .socials--header a {
    width: 28px;
    height: 28px;
  }

  .socials--header a .social-icon,
  .socials--header a svg {
    width: 16px;
    height: 16px;
  }

  .cart-btn {
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 0 4px;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .cart-btn span {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    margin-left: 3px;
  }

  .burger {
    width: 40px;
    height: 40px;
    margin-right: 0;
    margin-left: 0;
    flex-shrink: 0;
  }

  .burger span {
    width: 20px;
    margin-left: -10px;
    height: 2.5px;
  }

  .burger span:nth-child(1) { top: 12px; }
  .burger span:nth-child(2) { top: 19px; }
  .burger span:nth-child(3) { top: 26px; }

  .nav {
    top: 72px;
    left: 0;
    right: 0;
  }

  .hero {
    min-height: 480px;
  }

  .hero__content {
    padding: 80px 48px 76px;
  }

  .hero__title {
    font-size: clamp(15px, 4.8vw, 22px);
    letter-spacing: 0.02em;
    line-height: 1.3;
  }

  .hero__cta {
    margin-top: 16px;
    padding: 12px 26px;
    font-size: 13px;
  }

  .hero__bullets {
    bottom: 16px;
  }

  .hero__arrow {
    width: 32px;
    height: 32px;
  }

  .hero__arrow--prev { left: 8px; }
  .hero__arrow--next { right: 8px; }

  .feature-photo {
    max-width: 100%;
    /* На мобиле чуть выше — лицо не обрезается */
    aspect-ratio: 4 / 5;
  }

  .feature-photo img {
    object-position: center 8%;
  }

  .about-gallery {
    gap: 10px;
  }

  .about-gallery__item {
    aspect-ratio: 4 / 5;
  }

  .about-gallery__item img {
    object-position: center 10%;
  }

  .gallery-row--3 {
    grid-template-columns: 1fr;
  }

  .gallery-row img,
  .gallery-row--3 img:last-child {
    height: 280px;
    max-height: none;
    grid-column: auto;
  }

  .catalog { grid-template-columns: 1fr; }

  .delivery-grid { grid-template-columns: 1fr; }
  .legal-header__inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal__panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
    padding: 20px 18px 24px;
  }

  .modal__panel--checkout,
  .modal__panel--product {
    width: 100%;
    max-width: 100vw;
  }

  .modal__panel--checkout {
    max-height: 94dvh;
    height: auto;
    border-radius: 14px 14px 0 0;
  }

  .checkout-modal__header {
    padding: 18px 16px 0;
  }

  .checkout-modal__header h3 {
    font-size: 20px;
  }

  .checkout-modal__body {
    padding: 12px 16px 8px;
  }

  .checkout-modal__footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px) + var(--browser-bottom-inset, 0px) + 8px);
  }

  .modal__panel--product {
    padding: 14px 14px 0;
    display: flex;
    flex-direction: column;
  }

  .modal__product {
    gap: 14px;
    margin-top: 0;
    padding-bottom: 8px;
  }

  .modal__gallery-main {
    min-height: 0;
    height: min(36vh, 260px);
    border-radius: 6px;
    overflow: hidden;
  }

  .modal__gallery-main img {
    max-height: min(36vh, 260px);
  }

  .modal__gallery-thumbs {
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .modal__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }

  .modal__info h3 {
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .modal__price {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .modal__meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 10px;
  }

  .modal__meta label {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    font-size: 13px;
  }

  .modal__meta select {
    max-width: none;
    width: 100%;
  }

  .modal__info p {
    font-size: 13px;
    line-height: 1.45;
    max-height: 5.8em;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 8px;
  }

  .size-chart {
    margin: 10px 0 12px;
    padding: 10px 8px;
    width: 100%;
  }

  .size-chart__table {
    font-size: 11px;
    min-width: 0;
    width: 100%;
  }

  .size-chart__table th,
  .size-chart__table td {
    padding: 6px 2px;
    font-size: 11px;
  }

  .gallery-row--4 {
    grid-template-columns: 1fr;
  }

  .gallery-row--4 img {
    height: 260px;
  }

  .modal__panel--product .btn-primary {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 15px 20px max(15px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: 0 -10px 24px rgba(255, 255, 255, 0.92);
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    font-size: 16px;
  }

  .checkout-agreements .checkbox-label__text {
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .btn-primary {
    width: 100%;
    padding: 16px 20px;
  }

  .cart-checkout-btn {
    padding: 16px 20px;
    font-size: 15px;
  }

  .contacts-legal {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .contacts-legal .privacy-btn {
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  .contacts-list {
    font-size: 15px;
    padding: 0 4px;
  }

  .cart-panel {
    width: 100%;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }

  .site-footer {
    padding: 24px 16px 32px;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 10px;
  }

  .legal-content {
    overflow-x: auto;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Международные размеры в размерной сетке */
.size-chart__intl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Бейдж и курсор увеличения в карточке товара */
.modal__gallery-main {
  position: relative;
  cursor: zoom-in;
}

.modal__zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.modal__gallery-main:hover .modal__zoom-badge {
  background: rgba(0, 0, 0, 0.88);
  transform: scale(1.04);
}

/* Lightbox: Полноэкранный просмотр фото с зумом */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  touch-action: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lightbox__header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 12px;
  color: #fff;
}

.lightbox__counter {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

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

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
  user-select: none;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
}

.lightbox__btn:active {
  transform: scale(0.95);
}

.lightbox__btn--pill {
  border-radius: 20px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lightbox__btn--close {
  background: rgba(255, 255, 255, 0.18);
  font-size: 18px;
  margin-left: 6px;
}

.lightbox__btn--close:hover {
  background: rgba(255, 50, 50, 0.85);
  border-color: transparent;
}

.lightbox__viewport {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  padding: 10px;
}

.lightbox__img {
  max-width: 90%;
  max-height: 80vh;
  max-height: 80dvh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.16s ease-out;
  cursor: zoom-in;
  will-change: transform;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-zoomed {
  cursor: grab;
}

.lightbox__img.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.lightbox__footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px));
}

.lightbox__thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
}

.lightbox__thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #222 center/contain no-repeat;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.lightbox__thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.lightbox__thumb.is-active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.lightbox__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .lightbox__nav {
    width: 42px;
    height: 42px;
  }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__img {
    max-width: 96%;
    max-height: 74vh;
  }
  .lightbox__thumb {
    width: 44px;
    height: 44px;
  }
  .lightbox__hint {
    font-size: 11px;
  }
}

/* Floating Quick-Contact Messenger Widget */
.quick-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  font-family: inherit;
}

.quick-widget__button {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #171513;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(23, 21, 19, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s ease;
  padding: 0;
  outline: none;
}

.quick-widget__button:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(23, 21, 19, 0.45);
  border-color: rgba(212, 175, 55, 0.85);
}

.quick-widget__button:active {
  transform: scale(0.96);
}

.quick-widget__btn-icon--close {
  display: none;
}

.quick-widget.is-open .quick-widget__btn-icon--chat {
  display: none;
}

.quick-widget.is-open .quick-widget__btn-icon--close {
  display: block;
}

.quick-widget.is-open .quick-widget__pulse-ring {
  display: none;
}

.quick-widget__online-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #171513;
}

.quick-widget__pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.45);
  animation: qwPulse 2.4s infinite cubic-bezier(0.25, 0, 0, 1);
  pointer-events: none;
}

@keyframes qwPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.quick-widget__popup {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #eae5de;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

.quick-widget.is-open .quick-widget__popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.quick-widget__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #1a1715;
  color: #fff;
}

.quick-widget__badge {
  position: relative;
  flex-shrink: 0;
}

.quick-widget__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #aa8529);
  color: #171513;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.quick-widget__online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #1a1715;
}

.quick-widget__meta {
  flex: 1;
  min-width: 0;
}

.quick-widget__title {
  font-size: 14px;
  font-weight: 600;
  color: #f7f5f2;
  line-height: 1.2;
}

.quick-widget__status {
  font-size: 11px;
  color: #a89f91;
  margin-top: 2px;
}

.quick-widget__close {
  background: transparent;
  border: none;
  color: #a89f91;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.quick-widget__close:hover {
  color: #fff;
}

.quick-widget__body {
  padding: 16px;
  background: #fff;
}

.quick-widget__text {
  font-size: 13px;
  color: #524d47;
  line-height: 1.42;
  margin: 0 0 14px 0;
}

.quick-widget__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-widget__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-widget__link:hover {
  transform: translateX(2px);
}

.quick-widget__link--tg {
  background: #f0f8fd;
  border: 1px solid #d0eaf8;
  color: #1a1816;
}

.quick-widget__link--tg svg {
  color: #229ED9;
  flex-shrink: 0;
}

.quick-widget__link--max {
  background: #f9f2fd;
  border: 1px solid #ead3fa;
  color: #1a1816;
}

.quick-widget__link--max svg {
  color: #7B2CBF;
  flex-shrink: 0;
}

.quick-widget__link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quick-widget__link-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1816;
}

.quick-widget__link-sub {
  font-size: 11.5px;
  color: #7a7269;
  margin-top: 1px;
}

.quick-widget__link-arrow {
  font-size: 14px;
  color: #9c948a;
  transition: transform 0.18s ease;
}

.quick-widget__link:hover .quick-widget__link-arrow {
  transform: translateX(3px);
  color: #1a1816;
}

.quick-widget__footer {
  padding: 10px 16px;
  background: #fbf9f6;
  border-top: 1px solid #f0eae1;
  font-size: 11px;
  color: #8c827a;
  text-align: center;
}

@media (max-width: 600px) {
  .quick-widget {
    bottom: 18px;
    right: 16px;
  }
  .quick-widget__popup {
    width: calc(100vw - 32px);
    right: 0;
    bottom: calc(100% + 12px);
  }
}