/* ===== The First Chapter — общие стили ===== */
:root {
  --cream: #fbf7f2;
  --paper: #ffffff;
  --sand: #f3ebe1;
  --blush: #f2d9d3;
  --rose: #d9a5a0;
  --rose-dark: #b97c77;
  --sage: #c9d6c3;
  --sky: #d6e3ec;
  --ink: #3d3431;
  --muted: #7d706b;
  --line: #e8ddd2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(94, 70, 60, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.muted { color: var(--muted); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: 700 .95rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--rose-dark); border-color: var(--rose-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: 10px 20px; font-size: .88rem; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.logo span { color: var(--rose-dark); font-style: italic; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--rose); transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header__tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang button {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font: 700 .78rem var(--sans); letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px; transition: .2s;
}
.lang button:hover { color: var(--ink); }
.lang button.active { background: var(--ink); color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__text p { font-size: 1.15rem; color: var(--muted); max-width: 500px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%;
  background: var(--blush); border-radius: 50% 44% 48% 52%; z-index: -1;
}
.hero__badge {
  position: absolute; left: -12px; bottom: 28px;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; font-size: .9rem; line-height: 1.35;
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; }

/* ===== Иллюстрация шкатулки ===== */
.art {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sand), var(--blush));
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.art img { width: 78%; }
.art--sage { background: linear-gradient(160deg, #eef2ea, var(--sage)); }
.art--sky { background: linear-gradient(160deg, #eef3f7, var(--sky)); }
.art--cream { background: linear-gradient(160deg, #fff, var(--sand)); }

/* ===== Сетки и карточки ===== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: 56px; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card .art { border-radius: 0; aspect-ratio: 4 / 3; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rose-dark); margin-bottom: 6px;
}

.feature { text-align: center; padding: 10px 8px; }
.feature__icon {
  width: 68px; height: 68px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--blush);
  display: grid; place-items: center;
}
.feature__icon svg { width: 30px; height: 30px; stroke: var(--rose-dark); fill: none; stroke-width: 1.6; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Что можно сохранить */
.keep-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.keep-list li {
  list-style: none; background: var(--paper); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.keep-list li::before { content: "♡ "; color: var(--rose); }

/* Шаги */
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2.6rem; color: var(--rose); display: block; line-height: 1; margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Отзывы */
.review { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.review blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.4; }
.review cite { font-style: normal; font-weight: 700; font-size: .9rem; }
.review cite span { display: block; font-weight: 400; color: var(--muted); }

/* CTA */
.cta {
  background: var(--ink); color: #fff; border-radius: 28px;
  padding: 64px 40px; text-align: center;
}
.cta p { color: #d9cfc9; max-width: 520px; margin: 0 auto 28px; }
.cta .btn { background: var(--rose); border-color: var(--rose); }
.cta .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Заголовок внутренних страниц */
.page-hero { padding: 72px 0 56px; text-align: center; background: var(--sand); }
.page-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose-dark); }

/* Фильтры каталога */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 9px 20px; font: 600 .9rem var(--sans); cursor: pointer; color: var(--ink);
  transition: .2s;
}
.filter:hover { border-color: var(--rose); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.hidden { display: none; }

/* Мастер */
.quote-big { font-family: var(--serif); font-size: 1.6rem; font-style: italic; line-height: 1.4; border-left: 3px solid var(--rose); padding-left: 22px; margin: 28px 0; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--rose-dark); line-height: 1; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Таблица / инфо-блоки */
.info-box { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.info-box ul { padding-left: 20px; margin: 0; }
.info-box li { margin-bottom: 6px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pay-badges span {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 12px;
  font-weight: 700; font-size: .85rem; background: var(--cream);
}
.contact-item span { display: block; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--blush); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table-wrap .table { min-width: 580px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--paper); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--rose-dark); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Формы */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: 1rem var(--sans); background: var(--paper); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); }
.field textarea { min-height: 120px; resize: vertical; }
.field.error input, .field.error select, .field.error textarea { border-color: #c75c5c; }
.field .error-msg { display: none; color: #c75c5c; font-size: .82rem; margin-top: 4px; }
.field.error .error-msg { display: block; }
.form-success {
  display: none; background: #eef4ea; border: 1px solid var(--sage); color: #4b6541;
  padding: 16px 20px; border-radius: 12px; font-weight: 600;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #fbeeee; border: 1px solid #e8b9b9; color: #9b3f3f;
  padding: 16px 20px; border-radius: 12px; font-weight: 600;
}
.form-error.show { display: block; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 3px; }

.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .feature__icon { margin: 0; width: 52px; height: 52px; flex-shrink: 0; }
.contact-item .feature__icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; }

/* Модальное окно */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(61, 52, 49, .45); padding: 16px;
  align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal__box {
  background: var(--cream); border-radius: 22px; width: min(520px, 100%);
  max-height: 92vh; overflow-y: auto; padding: 36px 32px; position: relative;
  animation: pop .25s ease;
}
.modal__close {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1;
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }

/* 404 */
.not-found { text-align: center; max-width: 560px; }
.not-found img { margin: 0 auto 8px; }
.not-found__code { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--rose-dark); margin-bottom: 8px; }
.not-found .hero__actions { justify-content: center; }

/* Подвал */
.footer { background: var(--ink); color: #d9cfc9; padding: 64px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--rose); }
.footer__bottom { border-top: 1px solid #574b47; margin-top: 44px; padding-top: 22px; font-size: .85rem; text-align: center; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 16px; width: 100%; text-align: center; }
  .nav a::after { display: none; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__grid, .grid--2 { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .footer__grid, .form__row { grid-template-columns: 1fr; }
  .cta { padding: 48px 22px; }
  .header .logo { font-size: 1.3rem; }
  .lang button { padding: 5px 7px; }
  .hero__badge { left: 8px; }
  .modal__box { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Kreativ qatlam — "xotira albomi" (scrapbook) uslubi
   Qog'oz teksturasi, qo'lyozma shrift, polaroid kartochkalar,
   washi-lenta, rangli stikerlar va harakatlanuvchi lenta.
   ===================================================================== */
:root {
  --hand: "Caveat", "Segoe Print", cursive;
  --butter: #f6e7b8;
  --lilac: #e3dcf2;
  --tape-1: rgba(246, 231, 184, .88);
  --tape-2: rgba(201, 214, 195, .88);
  --tape-3: rgba(242, 217, 211, .92);
}

body { overflow-x: clip; }
::selection { background: var(--blush); color: var(--ink); }

/* Qog'oz teksturasi — butun sahifa ustida, bosishga xalaqit bermaydi */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  mix-blend-mode: multiply; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .29 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* Logotip: "first" qo'lyozmada */
.logo span { font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 1.12em; padding: 0 1px; }

/* Kichik sarlavhalar oldida yulduzcha */
.eyebrow::before { content: "✦"; margin-right: 8px; color: var(--rose); }

/* Sarlavhadagi urg'u + qo'lda chizilgan chiziq */
.scribble {
  position: relative; z-index: 0; white-space: nowrap;
  font-style: italic; color: var(--rose-dark);
}
.scribble::after {
  content: ""; position: absolute; z-index: -1;
  left: -3%; right: -3%; bottom: -.06em; height: .34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 40 3, 80 14, 120 7 S 180 4, 197 9' fill='none' stroke='%23e8b9b3' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  animation: draw 1.1s .5s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Hero: suzib yuruvchi quti, shakli o'zgaruvchi dog', qo'lyozma izoh */
.hero__visual .art { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hero__visual::before { animation: morph 14s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { border-radius: 50% 44% 48% 52%; }
  33% { border-radius: 42% 58% 56% 44% / 50% 42% 58% 50%; }
  66% { border-radius: 56% 44% 40% 60% / 44% 56% 44% 56%; }
}
.hero__note {
  position: absolute; top: -26px; right: 4px; margin: 0;
  font-size: 1.7rem; line-height: 1; color: var(--rose-dark);
  transform: rotate(5deg);
}
.hero__badge { transform: rotate(-2deg); }

/* Harakatlanuvchi lenta */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--ink); color: var(--cream);
  padding: 12px 0; transform: rotate(-1.2deg); margin: 8px 0 -6px;
  box-shadow: 0 6px 18px rgba(61, 52, 49, .12);
}
.marquee__track {
  display: flex; align-items: center; width: max-content; white-space: nowrap;
  font-family: var(--hand); font-size: 1.75rem; line-height: 1.2;
  animation: marquee 30s linear infinite;
}
.marquee__track > * { margin-right: 26px; }
.marquee__track i { font-style: normal; font-size: 1rem; color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* "Ichida nima bor" — rangli stikerlar */
.keep-list li {
  border: 0; font-weight: 700; transform: rotate(var(--r, 0deg));
  box-shadow: 0 2px 0 rgba(61, 52, 49, .07), 0 6px 14px rgba(94, 70, 60, .06);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.keep-list li::before { color: var(--rose-dark); }
.keep-list li:nth-child(5n+1) { background: var(--blush); --r: -2deg; }
.keep-list li:nth-child(5n+2) { background: #dfe8da; --r: 1.5deg; }
.keep-list li:nth-child(5n+3) { background: var(--sky); --r: -1deg; }
.keep-list li:nth-child(5n+4) { background: var(--butter); --r: 2deg; }
.keep-list li:nth-child(5n+5) { background: var(--lilac); --r: -1.5deg; }
.keep-list li:hover { transform: rotate(0deg) scale(1.07); }

/* Polaroid kartochkalar + washi-lenta */
.card {
  position: relative; overflow: visible;
  padding: 12px 12px 0; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(61, 52, 49, .06), 0 14px 30px rgba(94, 70, 60, .10);
  transition: opacity .7s ease, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.card, .card.reveal.visible { transform: rotate(var(--tilt, 0deg)); }
.card:hover, .card.reveal.visible:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 2px 4px rgba(61, 52, 49, .06), 0 22px 40px rgba(94, 70, 60, .16);
}
.grid > .card:nth-child(3n+1) { --tilt: -1.2deg; --tape: var(--tape-1); }
.grid > .card:nth-child(3n+2) { --tilt: .9deg; --tape: var(--tape-2); }
.grid > .card:nth-child(3n) { --tilt: -.5deg; --tape: var(--tape-3); }
.card::before {
  content: ""; position: absolute; z-index: 2; top: -12px; left: 50%;
  width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: var(--tape, var(--tape-1));
  box-shadow: 0 1px 2px rgba(61, 52, 49, .08);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 48%);
}
.card .art { border-radius: 3px; aspect-ratio: 1 / 1; }
.card__body { padding: 18px 8px 22px; }
.tag {
  font-family: var(--hand); font-size: 1.35rem; font-weight: 700;
  text-transform: none; letter-spacing: 0; line-height: 1;
}

/* Afzalliklar: organik shakldagi rangli ikonkalar */
.feature__icon {
  border-radius: 58% 42% 49% 51% / 44% 55% 45% 56%;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.grid > .feature:nth-child(4n+2) .feature__icon { background: #dfe8da; }
.grid > .feature:nth-child(4n+3) .feature__icon { background: var(--sky); }
.grid > .feature:nth-child(4n+4) .feature__icon { background: var(--butter); }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); }

/* Qadamlar: qo'lyozma raqamlar, biroz qiyshiq qog'ozlar */
.step { border-radius: 6px; }
.step, .step.reveal.visible { transform: rotate(var(--tilt, 0deg)); }
.steps .step:nth-child(odd) { --tilt: -.8deg; }
.steps .step:nth-child(even) { --tilt: .6deg; }
.step::before { font-family: var(--hand); font-size: 3.2rem; font-weight: 700; }

/* Tugmalar: o'ynoqi hover */
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); }

/* Ichki sahifalar sarlavhasi pastida to'lqinli qirra */
.page-hero { position: relative; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22'%3E%3Cpath d='M0 22 V11 Q15 0 30 11 T60 11 T90 11 T120 11 V22 Z' fill='%23fbf7f2'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 22px;
}

/* CTA: ichki shtrix ramka */
.cta { position: relative; }
.cta::after {
  content: ""; position: absolute; inset: 12px; border-radius: 20px;
  border: 1.5px dashed rgba(255, 255, 255, .22); pointer-events: none;
}

@media (max-width: 800px) {
  .hero__note { top: 14px; right: 16px; font-size: 1.45rem; }
  .marquee__track { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .hero__visual .art, .hero__visual::before, .scribble::after { animation: none; }
  .card, .card.reveal.visible, .step, .step.reveal.visible, .keep-list li { transform: none; }
}
