/* =========================================================
   Ткани Велес — стили витрины
   ========================================================= */

:root {
  --bg: #f6efff;
  --bg-soft: #fbf7ff;
  --lavender: #d9c6ee;
  --lavender-2: #ece1f7;
  --purple: #8f72b2;
  --purple-dark: #6f5891;
  --text: #3f3548;
  --muted: #8b7d95;
  --border: #eadff3;
  --white: #ffffff;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 4px 16px rgba(143, 114, 178, 0.08);
  --shadow-md: 0 14px 38px rgba(111, 88, 145, 0.12);
  --shadow-lg: 0 30px 60px rgba(111, 88, 145, 0.18);

  --t: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 198, 238, 0.55), transparent 55%),
    radial-gradient(circle at 100% 30%, rgba(238, 224, 250, 0.7), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--purple-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }

::selection { background: var(--lavender); color: var(--purple-dark); }

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 60px 0; position: relative; }

.section__head {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* decorative divider под заголовками */
.section__head::after {
  content: "";
  display: block;
  width: 80px;
  height: 8px;
  margin-top: 6px;
  background:
    linear-gradient(90deg, transparent, var(--lavender), transparent) center / 100% 1px no-repeat,
    radial-gradient(circle, var(--purple) 1.4px, transparent 1.8px) center / 8px 8px no-repeat;
  opacity: 0.85;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--text);
}

.section__title--ornate {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin: 0;
}
.section__title--ornate::before,
.section__title--ornate::after {
  content: "";
  display: block;
  width: 64px;
  height: 14px;
  background:
    linear-gradient(90deg, transparent, var(--lavender), transparent) center / 100% 1px no-repeat,
    radial-gradient(circle, var(--purple) 1.5px, transparent 2px) center / 6px 6px no-repeat;
}

.section__sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  will-change: transform;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(143, 114, 178, 0.28);
}
.btn--primary:hover {
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(111, 88, 145, 0.32);
}

.btn--ghost {
  background: var(--white);
  color: var(--purple-dark);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--lavender);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.icon { width: 18px; height: 18px; fill: currentColor; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header { min-height: 88px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 88px;
}

.brand { display: flex; align-items: center; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  height: 1px;
  width: 0;
  background: var(--purple);
  transition: width var(--t), left var(--t);
}
.nav__link:hover { color: var(--purple-dark); }
.nav__link:hover::after { width: 100%; left: 0; }

.nav__cta { display: none; }

.header__cta { height: 44px; padding: 0 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--purple-dark);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 720px;
  background-image: url("public/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(248, 242, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(248, 242, 255, 0.12) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  color: var(--text);
}

.site-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.hero-logo-card {
  width: 190px;
  height: 190px;
  margin: 18px auto 24px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 70px rgba(143, 114, 178, 0.16);
}
.hero-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .hero-logo-card { width: 150px; height: 150px; border-radius: 24px; }
  .site-logo { width: 48px; height: 48px; border-radius: 12px; }
}

.hero__lead {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.hero__meta,
.hero__contact {
  margin: 6px 0;
  color: var(--purple-dark);
  font-size: 15px;
  line-height: 1.5;
}
.hero__contact a {
  color: var(--purple-dark);
  border-bottom: 1px dashed var(--lavender);
}
.hero__contact a:hover { color: var(--purple); }

.hero__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* =========================================================
   CATEGORIES
   ========================================================= */
.categories { padding: 72px 0 80px; }

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  color: var(--text);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--lavender);
}

.card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lavender-2), var(--bg-soft));
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover .card__image img { transform: scale(1.03); }

.card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  transition: color var(--t), background var(--t);
}
.card__title::after {
  content: "→";
  display: inline-block;
  font-size: 14px;
  color: var(--purple);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.card:hover .card__title {
  color: var(--purple-dark);
  background: var(--white);
}
.card:hover .card__title::after {
  opacity: 1;
  transform: translateX(0);
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  box-shadow: 0 8px 18px rgba(143, 114, 178, 0.45);
  z-index: 1;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.card--accent {
  background: var(--white);
  position: relative;
}
.card--accent::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple), var(--lavender), var(--purple));
  background-size: 200% 200%;
  animation: sale-glow 4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@keyframes sale-glow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits {
  position: relative;
  background:
    linear-gradient(180deg, rgba(251, 247, 255, 0.92), rgba(246, 239, 255, 0.92)),
    url("public/images/section-benefits-bg.jpg") center/cover no-repeat;
}

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

.benefit {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  text-align: center;
  transition: transform var(--t);
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 0;
  color: var(--purple);
  background: transparent;
  border: 0;
}
.benefit__icon { width: 64px; height: 64px; margin-bottom: 14px; }
.benefit__icon svg { width: 44px; height: 44px; stroke-width: 1.3; }

.benefit__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
}
.benefit__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* =========================================================
   CONTACTS & ORDER
   ========================================================= */
.contacts-order { padding: 72px 0; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--lavender);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--purple);
  background: linear-gradient(140deg, var(--lavender-2), var(--bg-soft));
  border: 1px solid var(--border);
}
.contact-card__icon svg { width: 26px; height: 26px; }

.contact-card__label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple);
}
.contact-card__handle {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.contact-card__btn { width: 100%; }

/* =========================================================
   STEPS
   ========================================================= */
.steps__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.step {
  position: relative;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: transform var(--t);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 1;
  color: var(--lavender);
  letter-spacing: -0.02em;
}
.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--purple);
}
.step__icon svg { width: 28px; height: 28px; }

.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--text);
}
.step__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* стрелочки между шагами на десктопе */
.step + .step::before {
  content: "›";
  position: absolute;
  left: -16px;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  color: var(--lavender);
  pointer-events: none;
  line-height: 1;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 30%);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer__title { margin-bottom: 14px; font-size: 18px; }
.footer__links li, .footer__contacts li { margin-bottom: 8px; font-size: 14px; }
.footer__bottom { padding-top: 18px; }

.footer__brand { max-width: 320px; }
.footer__logo { margin-bottom: 16px; }
.footer__tagline {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--purple);
  transition: transform var(--t), color var(--t), border-color var(--t), background var(--t);
}
.footer__social-link svg { width: 18px; height: 18px; }
.footer__social-link:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--text);
}

.footer__links li,
.footer__contacts li {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--muted);
}
.footer__links a,
.footer__contacts a {
  color: var(--text);
}
.footer__links a:hover,
.footer__contacts a:hover {
  color: var(--purple-dark);
}

.footer__bottom {
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* tablet */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav__link { font-size: 14px; }

  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .step + .step::before { display: none; }

  .contact-cards { grid-template-columns: 1fr; gap: 18px; }
}

/* mobile */
@media (max-width: 720px) {
  :root { --gutter: 18px; }

  /* На mobile отказываемся от backdrop-filter — иначе .nav (position:fixed)
     получает containing block = header и обрезается. */
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(251, 247, 255, 0.96);
  }

  .nav,
  .header__cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  /* full-screen mobile-меню */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 72px 0 0 0;
    margin: 0;
    padding: 24px 24px 32px;
    background: rgba(251, 247, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 0;
    border-radius: 0;
    box-shadow: 0 14px 30px rgba(143, 114, 178, 0.08);
    gap: 0;
    overflow-y: auto;
    z-index: 49;
    animation: nav-fade 0.25s ease forwards;
  }
  .nav.is-open .nav__link {
    padding: 16px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__link:last-of-type { border-bottom: 0; }
  .nav.is-open .nav__link::after { display: none; }

  /* Telegram-CTA внутри открытого меню */
  .nav.is-open .nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    height: 52px;
    padding: 0 24px;
    background: var(--purple);
    color: var(--white);
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(143, 114, 178, 0.28);
  }
  .nav.is-open .nav__cta svg { width: 18px; height: 18px; fill: currentColor; }

  /* burger → крестик */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .nav-toggle span {
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s;
  }

  body.nav-open { overflow: hidden; }
}

@keyframes nav-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {

  .hero { min-height: 680px; background-position: center; }
  .hero__content { max-width: 90%; padding-top: 96px; padding-bottom: 64px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 10px 10px 14px; }
  .card__title { font-size: 18px; }

  .benefits__grid { gap: 14px; }
  .benefit { padding: 28px 20px; }

  .contact-card { padding: 28px 22px; }

  .steps__list { grid-template-columns: 1fr; }
  .step { padding: 26px 22px; }
  .step__num { font-size: 56px; }

  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

/* very small */
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   TRUST STRIP (под hero CTA)
   ========================================================= */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 36px auto 0;
  max-width: 720px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.trust-strip__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--purple-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(22px, 2.4vw, 30px);
  color: var(--purple-dark);
}
.trust-strip__icon svg { width: 26px; height: 26px; }
.trust-strip__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* =========================================================
   FLOATING LEAVES (декор в hero)
   ========================================================= */
.leaf {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  filter: blur(0.4px);
}
.leaf--1 {
  top: 12%; left: 4%;
  width: 90px; height: 90px;
  animation: leaf-float-1 14s ease-in-out infinite;
}
.leaf--2 {
  top: 22%; right: 6%;
  width: 70px; height: 70px;
  animation: leaf-float-2 16s ease-in-out infinite;
}
.leaf--3 {
  bottom: 10%; left: 14%;
  width: 50px; height: 50px;
  animation: leaf-float-3 12s ease-in-out infinite;
  opacity: 0.4;
}
@keyframes leaf-float-1 {
  0%,100% { transform: translateY(0) rotate(-12deg); }
  50%     { transform: translateY(-22px) rotate(-4deg); }
}
@keyframes leaf-float-2 {
  0%,100% { transform: translateY(0) rotate(18deg); }
  50%     { transform: translateY(-30px) rotate(8deg); }
}
@keyframes leaf-float-3 {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(10px,-14px) rotate(20deg); }
}

/* =========================================================
   CARD HOVER OVERLAY (категории)
   ========================================================= */
.card__image::after {
  content: "Смотреть в Telegram →";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, rgba(63, 53, 72, 0) 40%, rgba(63, 53, 72, 0.55) 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  align-items: flex-end;
  padding-bottom: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover .card__image::after { opacity: 1; }

/* skeleton-loader: пока img грузится */
.card__image {
  background:
    linear-gradient(135deg, var(--lavender-2), var(--bg-soft)),
    linear-gradient(110deg, var(--lavender-2) 30%, var(--bg-soft) 50%, var(--lavender-2) 70%);
  background-size: 100% 100%, 200% 100%;
  animation: skeleton-shine 2s linear infinite;
}
.card__image img.is-loaded {
  animation: img-fade 0.5s ease;
}
.card__image img:not([src]),
.card__image img[src=""] { opacity: 0; }
@keyframes skeleton-shine {
  0%   { background-position: 0 0, -200% 0; }
  100% { background-position: 0 0, 200% 0; }
}
@keyframes img-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   NEWS / Новинки (горизонтальная карусель)
   ========================================================= */
.news { padding: 64px 0; overflow: hidden; }
.news__rail {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--lavender) transparent;
  padding: 8px 0 22px;
}
.news__rail::-webkit-scrollbar { height: 6px; }
.news__rail::-webkit-scrollbar-thumb { background: var(--lavender); border-radius: 999px; }
.news__track {
  display: flex;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2 + 24px));
  margin: 0;
}
.news-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.news-card a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.news-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--lavender);
}
.news-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.news-card:hover .news-card__image img { transform: scale(1.06); }
.news-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--purple);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-radius: 999px;
}
.news-card__title {
  margin: 16px 18px 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--text);
  line-height: 1.2;
}
.news-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 16px 10px;
  list-style: none;
  padding: 0;
}
.news-card__chips li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--purple-dark);
}
.news-card__chips { margin: 0 18px 12px; }
.news-card__meta {
  margin: 0 18px 18px;
  font-size: 13.5px;
  color: var(--muted);
}

/* =========================================================
   LOOKBOOK (masonry-сетка)
   ========================================================= */
.lookbook { padding: 64px 0; }
.lookbook__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.lookbook__cell {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.lookbook__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lookbook__cell:hover img { transform: scale(1.05); }
.lookbook__cell figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lookbook__cell:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}
.lookbook__cell--tall  { grid-row: span 2; }
.lookbook__cell--wide  { grid-column: span 2; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 56px 0; }
.about__inner {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.about__inner .section__title--ornate { margin-bottom: 0; }
.about__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color var(--t);
}
.faq__question:hover { color: var(--purple-dark); }
.faq__chev {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq__chev::before,
.faq__chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--purple);
  transform-origin: center;
}
.faq__chev::before { transform: translate(-50%, -50%); }
.faq__chev::after  { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s; }
.faq__question[aria-expanded="true"] .faq__chev::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq__answer p {
  margin: 0;
  padding: 0 6px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 22px;
  right: 22px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  animation: cookie-up 0.4s ease;
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.cookie__btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--t);
}
.cookie__btn:hover { background: var(--purple-dark); }
@keyframes cookie-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   FAB — sticky Telegram кнопка
   ========================================================= */
.fab {
  display: none;
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  right: calc(22px + env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(143, 114, 178, 0.45);
  z-index: 55;
  transition: transform var(--t), background var(--t);
}
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  opacity: 0.4;
  animation: fab-pulse 2.2s ease-out infinite;
}
.fab:hover { background: var(--purple-dark); transform: scale(1.05); }
@keyframes fab-pulse {
  0%   { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.5);  opacity: 0; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* hero entrance: каскад появления */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-soft {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero__eyebrow,
.hero-logo-card,
.hero__lead,
.hero__meta,
.hero__contact,
.hero__actions {
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero__eyebrow    { animation-delay: 0.05s; }
.hero-logo-card   { animation-delay: 0.20s; }
.hero__lead       { animation-delay: 0.40s; }
.hero__meta       { animation-delay: 0.50s; }
.hero__contact    { animation-delay: 0.58s; }
.hero__actions    { animation-delay: 0.66s; }

.hero-logo-card {
  animation:
    hero-fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.20s forwards,
    float-soft 6s ease-in-out 1.2s infinite;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* header при скролле — плотнее тень */
.site-header.is-scrolled {
  background: rgba(251, 247, 255, 0.92);
  box-shadow: 0 6px 20px rgba(143, 114, 178, 0.06);
}

/* sale-карточка: subtle shimmer-ribbon */
.card--accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* кнопка primary — мягкое свечение */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(100%); }

/* hover: иконки в кружках мягко увеличиваются */
.benefit:hover .benefit__icon,
.contact-card:hover .contact-card__icon,
.step:hover .step__icon {
  transform: scale(1.08);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* nav__link active hover уже есть — усиливаем */
.nav__link { transition: color var(--t), letter-spacing var(--t); }

/* social link footer — wiggle on hover */
.footer__social-link:hover svg {
  transform: scale(1.12);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   MOBILE FINE-TUNING
   ========================================================= */

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .header-inner { gap: 12px; min-height: 72px; }
  .site-header { min-height: 72px; }

  .hero { min-height: 620px; }
  .hero__content { padding-top: 56px; padding-bottom: 56px; }
  .hero__eyebrow { font-size: clamp(22px, 5.6vw, 28px); margin-bottom: 14px; }
  .hero__lead { font-size: 15.5px; line-height: 1.55; }
  .hero__meta, .hero__contact { font-size: 14px; }
  .hero__actions { margin-top: 22px; gap: 10px; width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; min-width: 160px; }

  .section { padding: 56px 0; }
  .section__head { margin-bottom: 28px; gap: 10px; }
  .section__title { font-size: clamp(26px, 6.8vw, 32px); }
  .section__title--ornate { gap: 12px; }
  .section__title--ornate::before,
  .section__title--ornate::after { width: 24px; }
  .section__sub { font-size: 14.5px; padding: 0 6px; }

  .categories { padding: 56px 0 64px; }

  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .benefit { padding: 14px 8px; }
  .benefit__icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .benefit__icon svg { width: 30px; height: 30px; }
  .benefit__title { font-size: 18px; }
  .benefit__text { font-size: 14px; }

  .step { padding: 0 6px; }
  .step__num { font-size: 42px; }
  .step__title { font-size: 20px; }
  .step__text { font-size: 14px; }

  .contact-card { padding: 24px 20px; }
  .contact-card__handle { font-size: 18px; }
  .contact-card__btn { height: 46px; font-size: 14px; }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 18px 14px;
    margin-top: 28px;
  }
  .trust-strip__num { font-size: 22px; }
  .trust-strip__label { font-size: 11px; }

  .news-card { flex: 0 0 230px; }
  .news__track { padding: 0 18px; gap: 12px; }

  .lookbook__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 8px;
  }
  .lookbook__cell--wide { grid-column: span 2; }
  .lookbook__cell figcaption {
    font-size: 12px;
    inset: auto 8px 8px 8px;
    padding: 6px 12px;
  }

  .faq__question { font-size: 15px; padding: 18px 4px; }

  .leaf--1 { width: 60px; height: 60px; top: 6%; left: 2%; }
  .leaf--2 { width: 50px; height: 50px; top: 12%; right: 2%; }
  .leaf--3 { display: none; }

  .fab {
    display: inline-flex;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 52px; height: 52px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background var(--t);
  }
  .fab.fab--visible { opacity: 1; pointer-events: auto; transform: scale(1); }
  .fab svg { width: 26px; height: 26px; }

  .cookie {
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie__btn { width: 100%; }

  .footer__inner { padding-bottom: 28px; }
  .footer__bottom { font-size: 12px; }
}

@media (max-width: 420px) {
  .hero__title, .hero__eyebrow { font-size: clamp(22px, 6vw, 26px); }
  .hero__lead { font-size: 14.5px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .hero__eyebrow,
  .hero-logo-card,
  .hero__lead,
  .hero__meta,
  .hero__contact,
  .hero__actions,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
