/* =========================================================
   Мастерская Ольги — стили
   ========================================================= */

:root {
  --bg: #FBF5EC;
  --paper: #FFFDF9;
  --ink: #2A221E;
  --muted: #6F625A;
  --line: #EADFCF;

  --forest: #2E5E4E;
  --forest-2: #24493D;
  --berry: #D63A4E;
  --sun: #F0B13F;

  --mint: #E2F0E8;
  --sky: #E0ECF6;
  --butter: #FCF0CF;
  --lemon: #FAF3C4;
  --blush: #FBE3E7;
  --lilac: #ECE5F6;
  --sand: #F4E8D6;

  --max-1: #3F7BFF;
  --max-2: #8B4DFF;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 14px 34px -14px rgba(60, 40, 20, .22);
  --shadow-lg: 0 2px 4px rgba(60, 40, 20, .05), 0 26px 50px -18px rgba(60, 40, 20, .3);

  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --header-h: 72px;
  --pad: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
}
html:not(.lenis) { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  /* лёгкая «тканевая» фактура */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.hand { font-family: var(--font-hand); }
.nowrap { white-space: nowrap; }

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* Цветовые подложки */
.tint--mint   { background-color: var(--mint); }
.tint--sky    { background-color: var(--sky); }
.tint--butter { background-color: var(--butter); }
.tint--lemon  { background-color: var(--lemon); }
.tint--blush  { background-color: var(--blush); }
.tint--lilac  { background-color: var(--lilac); }
.tint--sand   { background-color: var(--sand); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: .85em 1.5em;
  border: 0;
  border-radius: 999px;
  font: 800 1rem/1.15 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn--primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(46, 94, 78, .8);
}
.btn--primary:hover { background: var(--forest-2); transform: translateY(-2px); }

.btn--max {
  background: linear-gradient(135deg, var(--max-1), var(--max-2));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(98, 70, 255, .75);
}
.btn--max:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(98, 70, 255, .85); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

.btn--soft { background: #F3ECE2; color: var(--ink); }
.btn--soft:hover { background: #ECE2D4; }

.btn--sm { min-height: 44px; padding: .65em 1.15em; font-size: .95rem; }
.btn--block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .45em .2em;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: .92rem;
  color: var(--forest);
  cursor: pointer;
  white-space: nowrap;
}
.link-btn .i { transition: transform .25s var(--ease); }
.link-btn:hover .i { transform: translateX(4px); }

/* ---------- Заставка с овечками ---------- */
html.splash-active { overflow: hidden; }
.no-splash .splash { display: none; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg);
  text-align: center;
  transition: opacity .7s var(--ease), visibility 0s .7s;
  /* запасной вариант: если скрипты не загрузились, заставка уйдёт сама */
  animation: splash-auto-out .6s ease 3.4s forwards;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splash-auto-out { to { opacity: 0; visibility: hidden; } }

.splash__sheep {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(380px, 78vw);
  height: min(230px, 48vw);
  margin-bottom: 22px;
  transition: transform .7s var(--ease);
}
.splash.is-hidden .splash__sheep { transform: translateY(-16px) scale(1.06); }
.splash__sheep::before {
  content: "";
  position: absolute;
  inset: 4% 2% -6%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .7), transparent 55%),
    linear-gradient(140deg, var(--mint), var(--butter) 55%, var(--blush));
  animation: blob 6s ease-in-out infinite;
}
.splash__img {
  position: relative;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(60, 40, 20, .22));
  transform-origin: 50% 100%;
  animation: hop 1s cubic-bezier(.3, 0, .3, 1) infinite;
}
.splash__img--1 { z-index: 2; margin-right: -12%; rotate: -6deg; }
.splash__img--2 { height: 90%; rotate: 6deg; animation-delay: .5s; }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  15%      { transform: translateY(0) scale(1.05, .93); }
  45%      { transform: translateY(-20%) scale(.97, 1.04); }
  72%      { transform: translateY(0) scale(1.04, .95); }
  86%      { transform: translateY(0) scale(1, 1); }
}
.splash__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -.01em;
}
.splash__sub { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--berry); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled,
.menu-open .header {
  background: rgba(251, 245, 236, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark { width: 42px; height: 42px; flex: none; transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(90deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.logo__text small { font-size: .8rem; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: .5em .95em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  transition: background-color .2s;
}
.nav a:hover { background: rgba(42, 34, 30, .07); }

.burger {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--bg);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child  { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: calc(var(--header-h) + 24px) var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  padding: .5em 0;
  border-bottom: 1.5px dashed var(--line);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 10px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(48px, 7vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 .2em;
  font-size: 1.7rem;
  color: var(--berry);
  transform: rotate(-2deg);
}
.hero__title {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.05rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.accent {
  position: relative;
  display: inline-block;
  color: var(--forest);
  white-space: nowrap;
}
.accent__line {
  position: absolute;
  left: -2%;
  bottom: -.12em;
  width: 104%;
  height: .26em;
  overflow: visible;
  pointer-events: none;
}
.accent__line path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hero__lead {
  max-width: 34em;
  margin: 0 0 1.8em;
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 2.3em 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts li { display: flex; flex-direction: column; line-height: 1.3; }
.hero__facts b { font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; }
.hero__facts span { font-size: .9rem; color: var(--muted); font-weight: 600; }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.05;
  justify-self: center;
}
.hero__blob {
  position: absolute;
  inset: 8% 4% 6%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .7), transparent 55%),
    linear-gradient(140deg, var(--mint), var(--butter) 55%, var(--blush));
  animation: blob 16s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  33%      { border-radius: 58% 42% 52% 48% / 44% 56% 44% 56%; }
  66%      { border-radius: 42% 58% 60% 40% / 56% 48% 52% 44%; }
}
.hero__thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__thread path {
  stroke: var(--berry);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  opacity: .45;
}
.hero__toy { position: absolute; }
.hero__toy img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(60, 40, 20, .25));
}
/* две овечки: серая сзади справа, розовая спереди слева */
.hero__toy--1 { width: 52%; right: 1%; top: 7%; z-index: 1; rotate: 6deg; }
.hero__toy--2 { width: 55%; left: 1%; top: 33%; z-index: 2; rotate: -6deg; }

.hero__star {
  position: absolute;
  z-index: 3;
  fill: var(--sun);
  stroke: none;
  animation: twinkle 3.2s ease-in-out infinite;
}
.hero__star--1 { width: 34px; height: 34px; top: 8%; left: 10%; }
.hero__star--2 { width: 22px; height: 22px; top: 18%; right: 9%; fill: var(--berry); animation-delay: -1s; }
.hero__star--3 { width: 26px; height: 26px; bottom: 14%; left: 44%; animation-delay: -2s; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%      { transform: scale(.7) rotate(25deg); opacity: .7; }
}
.hero__tag {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1%;
  translate: -50% 0;
  rotate: -3deg;
  padding: .2em .95em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 1.45rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Бегущая строка ---------- */
.marquee {
  width: 110vw;
  margin-left: -5vw;
  padding: 16px 0;
  overflow: hidden;
  background: var(--forest);
  color: var(--bg);
  rotate: -1.5deg;
}
.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.35rem);
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee__track > * { margin-right: 26px; }
.marquee i { font-style: normal; color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section__head {
  max-width: 740px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 .1em;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--berry);
  transform: rotate(-2deg);
}
.section__title {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.6vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.015em;
}
.section__lead { margin: 0; font-size: 1.08rem; color: var(--muted); }

/* ---------- Фильтры ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.chip {
  min-height: 44px;
  padding: .55em 1.2em;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }

/* ---------- Карточки товаров ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  /* translate (а не transform), чтобы не мешать GSAP-анимациям появления */
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  /* «стежок» по краю, как у лоскута */
  outline: 2px dashed rgba(255, 255, 255, .85);
  outline-offset: -10px;
}
.card__media::before {
  content: "";
  position: absolute;
  inset: 18% 14% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .75), transparent);
}
.card__media img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(60, 40, 20, .22));
  transition: transform .6s var(--ease), opacity .45s ease;
}
.card:hover .card__media img { transform: scale(1.06) rotate(-2deg); }
.card__media.is-gallery { cursor: pointer; }
.card__media.is-gallery img { opacity: 0; }
.card__media.is-gallery img.is-active { opacity: 1; }

.card__badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: .35em .85em;
  border-radius: 999px;
  background: rgba(255, 253, 249, .92);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.card__dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  translate: -50% 0;
  display: flex;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .8);
}
.card__dots button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.card__dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42, 34, 30, .3);
  transition: width .3s var(--ease), background-color .3s;
}
.card__dots button[aria-current="true"]::after { width: 18px; border-radius: 6px; background: var(--ink); }

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 22px;
}
.card__series {
  margin: 0 0 .3em;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
}
.card__title {
  margin: 0 0 .4em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
}
.card__desc { margin: 0 0 .9em; font-size: .98rem; color: var(--muted); }
.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.card__specs li {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em .8em;
  border-radius: 999px;
  background: var(--bg);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.3;
}
.card__specs .i { color: var(--forest); }
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line);
}
.card__price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.42rem;
  white-space: nowrap;
}

.products__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--butter);
  outline: 2px dashed rgba(42, 34, 30, .22);
  outline-offset: -12px;
}
.products__cta-star {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 40px;
  height: 40px;
  fill: var(--sun);
  stroke: none;
}
.products__cta-kicker { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--berry); }
.products__cta h3 {
  margin: 0 0 .4em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}
.products__cta p:not(.products__cta-kicker) { margin: 0 0 1.4em; color: var(--muted); }
.products__cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* ---------- Ещё работы ---------- */
.more { padding-top: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.gallery__item {
  position: relative;
  min-height: 340px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  outline: 2px dashed rgba(255, 255, 255, .85);
  outline-offset: -10px;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  position: absolute;
  top: 7%;
  left: 8%;
  width: 84%;
  height: calc(93% - 74px);
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(60, 40, 20, .2));
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05) rotate(2deg); }
.gallery__item figcaption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 12px 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 253, 249, .92);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.25;
}

.patch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--butter);
  outline: 2px dashed rgba(42, 34, 30, .22);
  outline-offset: -12px;
}
.patch__star { width: 46px; height: 46px; flex: none; fill: var(--sun); stroke: none; }
.patch__text { flex: 1; }
.patch h3 {
  margin: 0 0 .25em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}
.patch p { margin: 0; color: var(--muted); }

/* ---------- Как заказать ---------- */
.how {
  position: relative;
  margin-block: 60px;
  background: var(--sand);
}
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
}
.wave path { fill: var(--sand); }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.step__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--line);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--forest);
  font-size: 1.4rem;
}
.step h3 {
  margin: 0 0 .4em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.25;
}
.step p { margin: 0; color: var(--muted); }

/* ---------- Контакты ---------- */
.contacts__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--forest);
  color: #F6EFE4;
  overflow: hidden;
  outline: 2px dashed rgba(246, 239, 228, .28);
  outline-offset: -14px;
}
.contacts__card .eyebrow { color: var(--sun); }
.contacts__card .section__title { color: #fff; }
.contacts__list {
  display: grid;
  gap: 16px;
  margin: 8px 0 30px;
  padding: 0;
  list-style: none;
}
.contacts__list li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.05rem; }
.contacts__list small {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
}
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }
.contacts__ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: var(--sun);
}
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__visual { position: relative; display: grid; place-items: center; }
.contacts__circle {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 70%);
}
.contacts__visual img {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 775 / 820;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .3));
}

/* ---------- Подвал ---------- */
.footer { padding: 8px 0 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1.5px dashed var(--line);
}
.logo--small { margin-right: 0; }
.logo--small .logo__mark { width: 36px; height: 36px; }
.footer__note {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}
.footer__note .i { color: var(--berry); fill: var(--berry); }

/* ---------- Плавающая кнопка (телефон) ---------- */
.fab { display: none; }

/* ---------- Окно заказа ---------- */
.modal {
  width: 100%;
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(30, 22, 18, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: modal-in .4s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__inner {
  position: relative;
  max-height: calc(100dvh - 24px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F3ECE2;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color .2s, transform .3s var(--ease);
}
.modal__close:hover { background: #ECE2D4; transform: rotate(90deg); }

.modal__product {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 44px;
}
.modal__product > div { min-width: 0; }
.modal__thumb {
  width: 92px;
  height: 92px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--mint);
}
.modal__thumb img { width: 80%; height: 80%; object-fit: contain; }
.modal__kicker {
  margin: 0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
}
.modal__title {
  margin: .15em 0 .2em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}
.modal__price { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--berry); }
.modal__price:empty { display: none; }

.modal__steps {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 16px 14px 36px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .95rem;
  line-height: 1.45;
}
.modal__steps li::marker { font-weight: 800; color: var(--forest); }

.modal__label { display: block; margin-bottom: 6px; font-weight: 800; }
.modal__label span { font-weight: 600; color: var(--muted); }
.modal textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: 600 16px/1.5 var(--font-body);
  color: var(--ink);
  resize: vertical;
}
.modal textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(46, 94, 78, .15); }

.modal__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.modal__row .btn { padding-inline: .6em; font-size: .86rem; }

/* ---------- Всплывающее уведомление ---------- */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Анимации: разбивка заголовка на слова ---------- */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.w__i { display: inline-block; }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.no-scroll { overflow: hidden; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .products__cta { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 3; min-height: 300px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .logo__mark { width: 38px; height: 38px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__visual { max-width: 440px; }

  /* Галерея — горизонтальная лента со свайпом */
  .gallery {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--pad) * -1);
    padding: 4px var(--pad) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item {
    flex: 0 0 min(72vw, 280px);
    min-height: 330px;
    scroll-snap-align: start;
  }
  .gallery__item--wide { flex-basis: min(88vw, 460px); min-height: 330px; }

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

  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .contacts__card { grid-template-columns: 1fr; text-align: center; }
  .contacts__list { justify-content: center; text-align: left; }
  .contacts__actions { justify-content: center; }
  .contacts__visual { order: -1; }
  .contacts__visual img { max-width: 220px; }

  .fab {
    position: fixed;
    z-index: 40;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex;
    white-space: nowrap;
    transform: translateY(160%);
    transition: transform .45s var(--ease);
  }
  .fab.is-visible { transform: none; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .logo__text small { display: none; }

  .hero__eyebrow { font-size: 1.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 12px 22px; }
  .hero__facts b { font-size: 1.05rem; }
  .hero__tag { font-size: 1.2rem; }

  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }

  .products { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 5 / 4; }
  .card__title { font-size: 1.2rem; }

  .patch .btn { width: 100%; }

  .contacts__actions .btn { flex: 1 1 100%; }
  .contacts__list li { font-size: 1rem; }

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

  /* окно заказа — «шторка» снизу */
  .modal {
    max-width: 100vw;
    margin: auto 0 0;
    max-height: 100dvh;
  }
  .modal[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .modal__inner {
    max-height: 92dvh;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .modal__product { gap: 12px; margin-bottom: 14px; padding-right: 40px; }
  .modal__thumb { width: 64px; height: 64px; border-radius: 16px; }
  .modal__title { font-size: .98rem; }
  .modal__steps { gap: 4px; margin-bottom: 14px; padding: 12px 14px 12px 32px; font-size: .88rem; }
  .modal textarea { min-height: 120px; margin-bottom: 12px; font-size: 16px; }
  .modal__row { grid-template-columns: 1fr 1fr; }
  .modal__row a { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
