/* ===== Design tokens ===== */
:root {
  --gold: #d4af37;
  --gold-light: #e8c547;
  --gold-dark: #a8892a;
  --brown: #2b1b17;
  --brown-mid: #4a3028;
  --cream: #f5f0dc;
  --cream-dark: #e8dfc4;
  --white: #ffffff;
  --text: #2b1b17;
  --text-muted: #5c4a42;
  --ozon: #005bff;
  --ozon-hover: #0046c7;
  --wb: #8b3dff;
  --wb-hover: #6f2fd4;
  --red-seal: #c41e3a;
  --shadow: 0 8px 32px rgba(43, 27, 23, 0.25);
  --header-h: 72px;
  --font-display: "Rye", Georgia, serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --parchment: #f9f4e8;
  --brown-text: #4a3022;
  --container: min(1200px, 100% - 48px);
  --radius: 8px;
  --radius-pill: 999px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--brown);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--brown);
  border: 2px solid var(--gold-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--ozon {
  background: var(--ozon);
  color: var(--white);
}

.btn--ozon:hover {
  background: var(--ozon-hover);
}

.btn--wb {
  background: var(--wb);
  color: var(--white);
}

.btn--wb:hover {
  background: var(--wb-hover);
}

.btn--outline {
  padding: 14px 36px;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  background: rgba(43, 27, 23, 0.6);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(43, 27, 23, 0.85);
}

/* ===== Section titles ===== */
.section {
  padding: 80px 0;
  position: relative;
}

.section--cream {
  background: var(--cream);
  background-image:
    radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

.section::before,
.section--cream::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.section--cream::before {
  top: 24px;
  left: 24px;
  border-right: none;
  border-bottom: none;
}

.section--cream::after {
  bottom: 24px;
  right: 24px;
  border-left: none;
  border-top: none;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin: 0 0 48px;
}

.section__title--light {
  color: var(--cream);
}

.section__title .star {
  color: var(--gold);
  font-size: 0.85em;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
}

.site-header:not(.is-scrolled) .nav {
  background: rgba(43, 27, 23, 0.88);
}

.site-header.is-scrolled .nav {
  background: rgba(43, 27, 23, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(43, 27, 23, 0.35);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav__logo-star {
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--gold);
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ===== Product hero banner ===== */
.product-hero {
  padding: calc(var(--header-h) + 32px) 0 48px;
  background: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.product-hero__wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-hero__frame {
  position: relative;
  padding: 14px;
  border: 3px solid var(--gold);
  border-radius: 4px;
  background: var(--parchment);
  box-shadow: var(--shadow);
}

.product-hero__corner {
  position: absolute;
  z-index: 2;
  font-size: 1.1rem;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(43, 27, 23, 0.4);
  line-height: 1;
}

.product-hero__corner--tl { top: 4px; left: 8px; }
.product-hero__corner--tr { top: 4px; right: 8px; }
.product-hero__corner--bl { bottom: 4px; left: 8px; }
.product-hero__corner--br { bottom: 4px; right: 8px; }

.product-hero__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.product-hero__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.product-hero__buy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ===== Icons (CSS) ===== */
.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--gold);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.icon--flame { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c0 4-4 6-4 10a4 4 0 108 0c0-4-4-6-4-10z' fill='black'/%3E%3C/svg%3E"); }
.icon--leaf { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 8 2 12 2 18c0 4 4 4 10-4 6-6 10-10 10-16z' fill='black'/%3E%3C/svg%3E"); }
.icon--clock { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 3' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.icon--child { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='3' fill='black'/%3E%3Cpath d='M6 20c0-4 3-6 6-6s6 2 6 6' fill='black'/%3E%3C/svg%3E"); }
.icon--hand { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4v8M12 3v10M16 5v9' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.icon--flag { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4v16M4 4h14l-3 4 3 4H4' fill='black'/%3E%3C/svg%3E"); }
.icon--sun { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3Cpath d='M12 2v2M12 20v2M4 12H2M22 12h-2' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.icon--oven-off { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='8' width='16' height='12' rx='2' fill='black'/%3E%3Cpath d='M4 4l16 16' stroke='white' stroke-width='3'/%3E%3C/svg%3E"); }
.icon--bag { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 8h12l-1 14H7L6 8zM9 8V6a3 3 0 116 0v2' fill='black'/%3E%3C/svg%3E"); }
.icon--portion { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='6' height='10' fill='black'/%3E%3Crect x='14' y='6' width='6' height='14' fill='black'/%3E%3C/svg%3E"); }
.icon--drop { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-4 6-8 10-8 14a8 8 0 1016 0c0-4-4-8-8-14z' fill='black'/%3E%3C/svg%3E"); }
.icon--temp { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v12M8 18a4 4 0 108 0' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.icon--brush { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20l8-8 4 4-8 8H4zM14 6l4-4 4 4-4 4z' fill='black'/%3E%3C/svg%3E"); }

/* ===== Why ===== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why__card {
  text-align: center;
}

.why__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
}

.why__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why__card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brown);
  margin: 0 0 8px;
}

.why__card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Legend ===== */
.legend {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(43, 27, 23, 0.88) 0%, rgba(43, 27, 23, 0.92) 100%),
    url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1920&h=800&fit=crop&q=80") center / cover no-repeat;
}

.legend__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(43, 27, 23, 0.5) 100%);
  pointer-events: none;
}

.legend__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.legend__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 0 0 24px;
  line-height: 1.4;
}

.legend__text {
  color: rgba(245, 240, 220, 0.92);
  margin: 0 0 28px;
  font-size: 15px;
}

.legend__full {
  margin-top: 20px;
  color: rgba(245, 240, 220, 0.85);
  font-size: 14px;
}

.legend__full[hidden] {
  display: none;
}

/* ===== Create grid ===== */
.create__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.create__item {
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  background: var(--white);
  transition: transform var(--transition);
}

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

.create__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.create__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  padding: 12px;
  margin: 0;
  color: var(--brown);
}

/* ===== Steps ===== */
.steps {
  background: var(--brown);
  padding: 80px 0;
}

.steps__flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 140px;
}

.steps__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid var(--gold-dark);
}

.steps__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  margin-bottom: 10px;
}

.steps__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps__item p {
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.steps__arrow {
  color: var(--gold);
  font-size: 1.5rem;
  align-self: center;
  padding-top: 48px;
}

/* ===== Specs layout ===== */
.specs__layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.specs__heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brown);
  margin: 0 0 16px;
}

.specs__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.specs__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.specs__owls {
  margin: 20px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.specs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.35);
}

.specs__table th,
.specs__table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}

.specs__table th {
  font-weight: 600;
  color: var(--brown);
  width: 45%;
  background: rgba(212, 175, 55, 0.12);
}

.specs__table tr:last-child th,
.specs__table tr:last-child td {
  border-bottom: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery__thumb {
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.gallery__thumb:hover {
  border-color: var(--gold);
  transform: scale(1.03);
}

.gallery__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ===== Tips ===== */
.tips {
  background: linear-gradient(180deg, var(--brown-mid) 0%, var(--brown) 100%);
  padding: 64px 0;
}

.tips__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
}

.tips__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 220px;
  color: var(--cream);
  font-size: 14px;
}

.tips__icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  padding: 9px;
  box-sizing: border-box;
}

/* ===== FAQ ===== */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faq__item {
  background: var(--white);
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--brown);
  transition: background var(--transition);
}

.faq__question:hover {
  background: rgba(212, 175, 55, 0.08);
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 20px 18px;
}

.faq__answer[hidden] {
  display: none;
}

.faq__answer p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== CTA footer ===== */
.cta-footer {
  padding: 64px 0;
  background: #000000;
}

.cta-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-footer__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}

.cta-footer__text p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
  max-width: 480px;
}

.cta-footer__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-footer__figure {
  margin: 0;
  flex-shrink: 0;
}

.cta-footer__figure img {
  max-width: min(360px, 42vw);
  height: auto;
  object-fit: contain;
}

/* ===== Site footer ===== */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 48px 0 24px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.site-footer__brand p {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.site-footer__center {
  text-align: center;
}

.site-footer__badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

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

.site-footer__links a {
  font-size: 13px;
  opacity: 0.9;
  transition: color var(--transition);
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__social {
  display: flex;
  gap: 12px;
}

.site-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}

.site-footer__social a:hover {
  background: var(--gold);
  color: var(--brown);
}

.site-footer__copy {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin: 20px 0 0;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(43, 27, 23, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1;
  padding: 12px;
  transition: color var(--transition), transform var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--white);
  transform: scale(1.1);
}

.lightbox__close {
  top: 16px;
  right: 24px;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 14px;
  margin: 0;
}

body.lightbox-open {
  overflow: hidden;
}

/* ===== Tablet (768–1024) ===== */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

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

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

  .specs__gallery-block {
    grid-column: 1 / -1;
  }

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

  .cta-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-footer__text p {
    margin-inline: auto;
  }

  .cta-footer__buttons {
    justify-content: center;
  }
}

/* ===== Mobile (<768) ===== */
@media (max-width: 767px) {
  :root {
    --container: min(100% - 32px, 100%);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(43, 27, 23, 0.97);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  }

  .nav.is-open .nav__panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav.is-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__links {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .nav__stores {
    padding-top: 16px;
    justify-content: center;
  }

  .product-hero {
    padding-top: calc(var(--header-h) + 20px);
  }

  .product-hero__frame {
    padding: 10px;
  }

  .section {
    padding: 56px 0;
  }

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

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

  .steps__arrow {
    display: none;
  }

  .steps__flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps__item {
    flex: none;
  }

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

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

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

  .tips__list {
    flex-direction: column;
    align-items: center;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lightbox {
    padding: 24px;
  }

  .lightbox__prev {
    left: 4px;
  }

  .lightbox__next {
    right: 4px;
  }
}

@media (max-width: 480px) {
  .create__grid {
    grid-template-columns: 1fr;
  }

  .product-hero__buy .btn {
    width: 100%;
  }

  .cta-footer__buttons .btn {
    width: 100%;
  }
}


/* ===== SEO text, reviews, trust ===== */
.product-hero__seo-text {
  max-width: 920px;
  margin: 4px auto 0;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  color: var(--brown-text);
}
.product-hero__seo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  color: var(--brown);
  text-align: center;
}
.product-hero__seo-text p {
  margin: 0 0 12px;
  font-size: 15px;
}
.product-hero__seo-text p:last-child { margin-bottom: 0; }
.reviews { background: var(--parchment); }
.reviews__grid,
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card,
.trust__item {
  background: var(--white);
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(43, 27, 23, 0.08);
}
.review-card__stars {
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  font-size: 18px;
  margin-bottom: 10px;
}
.review-card p,
.trust__item p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.review-card span,
.trust__item b {
  display: block;
  color: var(--brown);
  font-weight: 700;
}
.trust__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown);
  font-weight: 800;
  margin-bottom: 12px;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}
@media (max-width: 1024px) {
  .reviews__grid,
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .product-hero__seo-text { padding: 20px; }
  .reviews__grid,
  .trust__grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .steps__flow { grid-template-columns: 1fr; }
  .nav__stores { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
}

/* ===== Final readability and brand asset updates ===== */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.nav__logo--image {
  width: 128px;
  height: 58px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.nav__logo--image img {
  width: 128px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
}

.product-hero__frame {
  overflow: hidden;
}

.product-hero__logo-replace {
  position: absolute;
  z-index: 5;
  top: clamp(18px, 2.5vw, 44px);
  left: clamp(22px, 4vw, 72px);
  width: clamp(118px, 16vw, 248px);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.product-hero__img,
.why__img-wrap img,
.create__item img,
.gallery__thumb img,
.specs__owls img {
  image-rendering: auto;
  filter: contrast(1.03) saturate(1.02);
}

.product-hero__seo-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 290px);
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(43, 27, 23, 0.10);
}

.product-hero__seo-copy {
  min-width: 0;
}

.product-hero__seo-character {
  margin: -20px auto -28px;
  align-self: end;
}

.product-hero__seo-character img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(43, 27, 23, 0.25));
}

/* более читаемый мелкий текст в карточках и блоках */
.why__card p,
.create__item h3,
.steps__item p,
.specs__list li,
.specs__table,
.tips__list li,
.faq__question,
.faq__answer p,
.review-card p,
.trust__item p,
.legend__text,
.legend__full,
.site-footer__links a,
.site-footer__brand p {
  font-size: 15px;
  line-height: 1.62;
}

.why__card p,
.specs__list li,
.faq__answer p,
.review-card p,
.trust__item p {
  color: #3d2a23;
  font-weight: 500;
}

.why__card h3,
.create__item h3,
.specs__heading,
.faq__question,
.review-card span,
.trust__item b {
  color: #24140f;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}

.steps__item p,
.tips__list li {
  font-weight: 700;
}

.faq__question {
  font-weight: 700;
}

.specs__table th,
.specs__table td {
  padding: 13px 16px;
}

.site-footer__logo-img {
  display: block;
  width: 118px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.55));
}

.cta-footer__figure img {
  max-width: min(390px, 42vw);
  max-height: 520px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}

@media (max-width: 1024px) {
  .product-hero__seo-text {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .product-hero__seo-character {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav__logo--image {
    width: 104px;
    height: 52px;
  }
  .nav__logo--image img {
    width: 104px;
    max-height: 52px;
  }
  .product-hero__logo-replace {
    width: clamp(86px, 26vw, 124px);
    top: 16px;
    left: 18px;
  }
  .why__card p,
  .specs__list li,
  .tips__list li,
  .faq__question,
  .faq__answer p,
  .review-card p,
  .trust__item p {
    font-size: 15.5px;
  }
}

@media (max-width: 360px) {
  .product-hero__logo-replace {
    width: 76px;
    top: 14px;
    left: 14px;
  }
}
