/* ============================================
   SN Studio — стили
   Editorial craft, warm palette, paper texture
   ============================================ */

@font-face {
  font-family: "Foglihten";
  src: url("fonts/FoglihtenNo06_076.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MADE TheArtist Script New";
  src: url("fonts/MADE-TheArtist-Script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bonche";
  src: url("fonts/Bonche-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MADE TheArtist Script";
  src: url("fonts/made-theartist-script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Палитра из фото Sandra — усиленная контрастность */
  --bg: #EBE6D8;          /* кремовый */
  --surface: #E0D6BC;     /* чуть темнее */
  --green: #4A5A2C;       /* насыщеннее */
  --olive: #8B9856;       /* ярче */
  --accent: #C75432;      /* ярче оранжевый */
  --accent-2: #E08654;    /* светлый акцент */
  --accent-on: #EBE6D8;
  --fg: #1a0f06;          /* мягкий тёмно-коричневый */
  --muted: #4d3624;       /* читабельный */
  --border: #B8AA82;
  --cream: #EBE6D8;

  /* Типографика */
  --font-display: "Foglihten", "Bonche", "Georgia", serif;
  --font-italic: "MADE TheArtist Script New", "MADE TheArtist Script", "Brush Script MT", cursive;
  --font-body: "Oswald", "Bonche", "Georgia", serif;

  /* Ритм */
  --radius: 12px;
  --space-section: 96px;
  --wrap: 1180px;
  --pad-x: 40px;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 32px;
    --space-section: 120px;
  }
}

@media (max-width: 600px) {
  :root {
    --space-section: 64px;
    --pad-x: 20px;
  }
  html, body {
    font-size: 14px;
  }
  h1, .hero-title {
    font-size: clamp(36px, 12vw, 56px) !important;
  }
  h2, .section-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
}

/* Агрессивное ограничение переполнения для мобильных */
@media (max-width: 600px) {
  body, .hero, .about, .services, .learn, .process, .contact, .site-footer, .wrap {
    max-width: 100vw;
    overflow-x: clip;
  }
  .section-title--spread,
  .section-title,
  .hero-title,
  .section-kicker {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .paper-card,
  .paper-card--green,
  .paper-card--cream {
    max-width: calc(100vw - 40px);
    overflow-wrap: break-word;
  }
  .hero-cta {
    max-width: 100%;
  }
  .hero-cta .btn {
    max-width: 100%;
  }
  .section-title--spread em {
    margin: 0;
  }
  .scroll-top {
    right: 12px;
    bottom: 12px;
  }
}

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

html, body {
  /* УБРАНО: -webkit-overflow-scrolling: touch — устаревшее, ломает scroll в современных браузерах */
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    /* Лёгкая зернистость — основная фактура (приглушена) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='g1'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.12 0'/></filter><rect width='320' height='320' filter='url(%23g1)'/></svg>"),
    /* Крупные волокна (приглушены) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='500' height='500'><filter id='g2'><feTurbulence type='fractalNoise' baseFrequency='0.3' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='500' height='500' filter='url(%23g2)'/></svg>"),
    /* Радиальные акценты */
    radial-gradient(circle at 15% 25%, rgba(199, 84, 50, 0.06) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(74, 90, 44, 0.07) 0, transparent 40%);
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-size: 320px 320px, 500px 500px, 100% 100%, 100% 100%;
  background-blend-mode: normal, normal, normal, normal;
  opacity: 1;
  /* УБРАНО: overflow-x: hidden — ломает scroll в iOS WebView (Telegram Mini App) */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* УБРАНО: position: relative — создавало containing block, ломающее scroll */
}

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

a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== ОБЩИЕ БЛОКИ ===== */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.cursive {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  padding: 0.16em 0.1em 0.28em;
  overflow: visible;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, filter 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.btn[data-distort] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn[data-distort] > span,
.btn[data-distort] {
  position: relative;
  z-index: 2;
}

/* Distort-эффект: искажается ТОЛЬКО фон (.btn[data-distort]::before),
   а текст (.btn-label) поверх — всегда чёткий */
.btn[data-distort] {
  position: relative;
  background-color: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}

.btn[data-distort]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  filter: url(#btn-distort-low);
  transition: filter 0.3s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

/* Цвет фона ::before по варианту */
.btn-accent[data-distort]::before { background-color: var(--accent); }
.btn-ghost[data-distort]::before  { background-color: transparent; display: none; }
.btn-ghost[data-distort] .btn-label { color: var(--fg); z-index: 6; position: relative; }
.btn-ghost[data-distort]:hover::before { background-color: var(--green); display: block; }
.btn-ghost[data-distort]:hover .btn-label,
.btn-ghost[data-distort]:active .btn-label { color: var(--cream); }

.btn-ghost {
  background-color: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg);
  padding: 12.5px 26px;
}

.btn-ghost:hover {
  background-color: var(--green);
  color: var(--cream);
  border-color: transparent;
}
.btn-ghost:active {
  border-color: transparent;
}
.btn-cream[data-distort]::before  { background-color: var(--cream); }

/* Hover-цвета ::before */
.btn-accent[data-distort]:hover::before { background-color: var(--green); }
.btn-cream[data-distort]:hover::before  { background-color: var(--olive); }
.btn-cream[data-distort]:hover .btn-label { color: var(--fg); }

/* Active-цвета ::before (нажатие) */
.btn-cream[data-distort]:active::before  { background-color: var(--olive); filter: url(#btn-distort-active) brightness(0.95); }
.btn-cream[data-distort]:active .btn-label { color: var(--fg); }

/* Текст внутри — без фильтра, поверх */
.btn[data-distort] .btn-label {
  position: relative;
  z-index: 5;
  display: inline-block;
  pointer-events: none;
  color: inherit;
}

/* Hover — усиление искажения фона */
.btn[data-distort]:hover::before {
  filter: url(#btn-distort-active);
}

/* Active — пик искажения + сжатие */
.btn[data-distort]:active::before {
  filter: url(#btn-distort-active) brightness(0.95);
}
.btn[data-distort]:active {
  transform: scale(0.97);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-on);
}

.btn-accent:hover {
  background-color: var(--green);
}

.btn-accent:active {
  background-color: var(--green);
  color: var(--cream);
  transform: scale(0.98);
}

.btn-ghost {
  background-color: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg);
  padding: 12.5px 26px;
}

.btn-ghost:hover {
  background-color: var(--green);
  color: var(--cream);
  border-color: transparent;
}
.btn-ghost:active {
  border-color: transparent;
}

.btn-cream {
  background-color: var(--cream);
  color: var(--green);
}

.btn-cream:hover {
  background-color: var(--olive);
  color: var(--cream);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(235, 230, 216, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

/* На тач-устройствах отключаем backdrop-filter — тормозит скролл */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(235, 230, 216, 0.98);
  }
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.header-wrap > .nav {
  flex: 0 1 auto;
  margin: 0 0 0 24px;
  gap: 18px;
  letter-spacing: 0.04em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) saturate(1.02);
  shape-rendering: geometricPrecision;
}

.logo-sub {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: 18px;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav a {
  text-decoration: none;
  color: var(--fg);
  position: relative;
  white-space: nowrap;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.nav-play {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.nav a.nav-play::before {
  content: "";
  margin-right: 4px;
  font-style: normal;
}

.nav a.nav-play:hover {
  color: var(--green);
}

/* Magnetic эффект для кнопок: слегка приближается к мыши */
.btn {
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: scale(1.06);
}

.header-cta {
  padding: 10px 18px;
  font-size: 14px;
  min-height: 40px;
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .logo-sub { display: none; }
}

/* Мобильное меню: гамбургер */
@media (max-width: 760px) {
  .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    flex-wrap: wrap;
  }
  .hero-sign {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.18;
    padding: 0.12em 0.08em 0.18em;
    overflow: visible;
  }

  .cursive,
  .kicker,
  .paper-quote-end,
  .paper-tag,
  .section-kicker,
  .section-title em {
    line-height: 1.18;
    padding-top: 0.12em;
    padding-bottom: 0.18em;
    overflow: visible;
  }
}

/* Показываем мобильную навигацию как вертикальный список при клике */
.mobile-nav a,
.mobile-nav .mobile-nav-cta {
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.is-open a,
.mobile-nav.is-open .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-nav.is-open a:nth-child(1),
.mobile-nav.is-open .mobile-nav-cta:nth-of-type(1) { transition-delay: 0.09s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.19s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.29s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.39s; }
.mobile-nav.is-open .mobile-nav-cta {
  transition-delay: 0.33s;
  transition-duration: 1.2s;
  transition-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(235, 230, 216, 0.96);
  -webkit-backdrop-filter: blur(80px) saturate(1.6);
  backdrop-filter: blur(80px) saturate(1.6);
  border-top: 1px solid var(--border);
  gap: 14px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 49;
  transform: scaleY(0);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0.55s;
}

.mobile-nav.is-open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0s;
}

.mobile-nav a {
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--accent);
}

.mobile-nav a.nav-play {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.mobile-nav a.nav-play::before {
  content: "";
  font-style: normal;
}

.mobile-nav .mobile-nav-cta {
  display: inline-block;
  text-align: center;
  border-bottom: 0;
  margin-top: 8px;
  font-family: var(--font-display);
  color: var(--cream);
  background: var(--accent);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.mobile-nav .mobile-nav-cta:hover,
.mobile-nav .mobile-nav-cta:focus-visible {
  background: var(--green);
  color: var(--cream);
}

.mobile-nav.is-open {
}

@media (max-width: 760px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--fg);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .mobile-nav-toggle:hover {
    background: rgba(199, 84, 50, 0.08);
  }
  .mobile-nav-toggle.is-open {
    background: var(--accent);
    color: var(--cream);
  }
}

@media (min-width: 761px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-toggle {
  display: none;
}

/* Показывать гамбургер ТОЛЬКО на узких экранах */
@media (max-width: 760px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--accent);
    color: var(--cream);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 18, 8, 0.18);
    transition: background-color 0.2s, transform 0.2s;
  }
  .mobile-nav-toggle:hover {
    background: var(--green);
    transform: scale(1.05);
  }
  .mobile-nav-toggle:active {
    transform: scale(0.95);
  }
  .mobile-nav-toggle.is-open {
    background: var(--green);
  }
  .burger-lines {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
  }
  .burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                top 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.3s ease;
  }
  .burger-line-1 { top: 0; }
  .burger-line-2 { top: 6px; }
  .burger-line-3 { top: 12px; }

  .mobile-nav-toggle.is-open .burger-line-1 {
    top: 6px;
    transform: rotate(45deg);
  }
  .mobile-nav-toggle.is-open .burger-line-2 {
    opacity: 0;
    transform: scaleX(0.3);
  }
  .mobile-nav-toggle.is-open .burger-line-3 {
    top: 6px;
    transform: rotate(-45deg);
  }
  .mobile-nav-toggle.is-open .burger-line-1,
  .mobile-nav-toggle.is-open .burger-line-3 {
    transform-origin: center;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 120px;
  background-color: var(--bg);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Верхний-левый угол: рваная бумага свисает сверху */
.hero::before {
  top: -1px;
  left: 0;
  width: 320px;
  height: 60px;
  background-image: url(img/paper-tear-tl.svg);
  background-size: 100% 100%;
  background-position: top left;
}

/* Нижний-правый угол: рваная бумага поднимается снизу */
.hero::after {
  bottom: -1px;
  right: 0;
  width: 340px;
  height: 80px;
  background-image: url(img/paper-tear-br.svg);
  background-size: 100% 100%;
  background-position: bottom right;
}

@media (max-width: 760px) {
  .hero::before { width: 200px; height: 40px; }
  .hero::after { width: 220px; height: 50px; }
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right {
    align-items: center;
    align-self: center;
  }
}

@media (max-width: 600px) {
  .hero-wrap {
    gap: 32px;
    padding: 0 24px;
  }
  .hero-left, .hero-right {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero {
    padding: 56px 0 80px;
  }
}

.kicker {
  font-family: var(--font-italic);
  font-weight: 500;
  font-size: clamp(64px, 7.2vw, 96px);
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1.2;
  padding: 0.16em 0.1em 0.28em;
  overflow: visible;
  text-shadow: 0 1px 0 rgba(199, 84, 50, 0.15);
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mark {
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(199, 84, 50, 0.18);
}

.hero-word {
  color: var(--fg);
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--accent);
  margin: -16px 0 28px;
  line-height: 1.2;
  padding: 0.16em 0.1em 0.28em;
  overflow: visible;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  max-width: 100%;
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}

.hero-sign {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(36px, 3vw, 50px);
  color: var(--accent);
  margin: 0;
  line-height: 1.2;
  padding: 0.18em 0.1em 0.28em;
  overflow: visible;
}

.hero-socials {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  gap: 14px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.hero-social-link:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 18px rgba(31, 18, 8, 0.12);
  border-color: var(--accent);
}

.hero-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* декоративные карточки справа */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  max-width: 100%;
  padding: 32px 8px;
  margin: 0 4px;
  perspective: 800px;
}

.hero-right .paper-card {
  width: 92%;
  max-width: 420px;
  cursor: grab;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, z-index 0s;
  transform-style: preserve-3d;
  touch-action: pan-y;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.hero-right .paper-card.is-dragging { cursor: grabbing; transition: none; }

.hero-right .paper-card.is-front { z-index: 3; }

.hero-right .paper-card--green {
  align-self: center;
  margin-left: -40px;
  margin-bottom: -16px;
  transform: rotate(-3deg);
}

.hero-right .paper-card--green.is-front { transform: rotate(0deg) scale(1.04); }

.hero-right .paper-card--cream {
  align-self: center;
  margin-right: 16px;
  padding: 10px 28px;
  max-width: 280px;
  transform: rotate(4deg);
}

.hero-right .paper-card--cream.is-front { transform: rotate(0deg) scale(1.04); }

/* На мобильном: hero-right центрируется, плашки ужимаются */
@media (max-width: 600px) {
  .hero-right {
    align-items: center;
    width: 100%;
    margin: 0 auto;
  }
  .hero-right .paper-card--green,
  .hero-right .paper-card--cream {
    width: 100%;
    max-width: 360px;
    align-self: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: rotate(0deg);
  }
}

/* На тач-устройствах отключаем drag-логику: карточки — просто декорации */
@media (hover: none), (pointer: coarse) {
  .hero-right .paper-card {
    cursor: default;
    transform: none !important;
  }
  .hero-right .paper-card--green {
    transform: rotate(-3deg);
  }
  .hero-right .paper-card--cream {
    transform: rotate(4deg);
  }
}

.paper-card {
  position: relative;
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(61, 42, 30, 0.08);
  transform: rotate(-1.5deg);
}

.paper-card--green {
  background-color: var(--green);
  color: var(--cream);
  min-height: 200px;
  width: 92%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-self: center;
  margin-left: -40px;
}

.paper-card--green > * {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.paper-card--cream {
  background-color: var(--cream);
  border: 1px solid var(--border);
  align-self: center;
  padding: 10px 28px;
  width: 75%;
  max-width: 280px;
  margin-left: 0;
  margin-right: 16px;
  margin-bottom: 0;
  text-align: center;
  box-shadow: none;
  flex: 0 0 auto;
}

.paper-card--cream .paper-tag {
  margin: 0;
  text-align: center;
  color: var(--accent);
  font-size: clamp(18px, 1.8vw, 24px);
  display: block;
  width: 100%;
  line-height: 1.2;
}

.paper-quote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.35;
  margin: 0 0 14px;
  text-align: left;
  align-self: flex-start;
  width: 100%;
}

/* ===== TYPEWRITER для плашки в hero ===== */
.typewriter {
  display: block;
  position: relative;
  min-height: 1.2em;
  color: inherit;
  font: inherit;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.typewriter.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: typewriter-blink 0.85s step-end infinite;
}

.typewriter.is-done::after {
  content: none;
}

@keyframes typewriter-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter.is-typing::after { animation: none; }
}

.paper-quote-end {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 42px);
  color: var(--olive);
  margin: 0;
  line-height: 1.2;
  padding: 0.18em 0.1em 0.3em;
  overflow: visible;
}

.paper-tag {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 34px);
  color: var(--accent);
  margin: 0;
  text-align: center;
  line-height: 1.2;
  padding: 0.18em 0.1em 0.3em;
  overflow: visible;
}

@media (max-width: 880px) {
  .hero-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .paper-card { flex: 1 1 240px; max-width: 320px; }
}

/* ===== FADE-UP АНИМАЦИЯ ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* will-change включаем только на десктопе — на мобильных жрёт память */
@media (hover: hover) and (pointer: fine) {
  .fade-up {
    will-change: opacity, transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--accent);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 6px 18px rgba(31, 18, 8, 0.25), 0 2px 4px rgba(31, 18, 8, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: var(--green);
  transform: translateY(-2px) scale(1.05);
}

.scroll-top:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 720px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ===== КАСТОМНЫЙ КУРСОР — кисть ===== */
@media (hover: hover) and (pointer: fine) {
  /* Hotspot в кончике ворса (нижний-левый угол) — для кисти 32x32 (HSV-курсора браузера ≤ 32) */
  html, body, a, button, .btn, .service, .logo {
    cursor: url("img/cursor-brush.png") 1 30, auto;
  }
  a:hover, button:hover, .btn:hover, .service:hover, .logo:hover {
    cursor: url("img/cursor-brush.png") 1 30, pointer;
  }
  input, textarea, [contenteditable] {
    cursor: text;
  }
}

@media (hover: none), (pointer: coarse) {
  /* На тач-устройствах не подменяем курсор */
}
.paper-scrap {
  display: none; /* временно скрыты — отвлекают от основного контента */
}

/* ===== СЕКЦИЯ — общая ===== */
.section-kicker {
  font-family: var(--font-italic);
  font-weight: 500;
  font-size: clamp(64px, 7.2vw, 96px);
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1.2;
  padding: 0.16em 0.1em 0.28em;
  overflow: visible;
  text-shadow: 0 1px 0 rgba(199, 84, 50, 0.15);
  letter-spacing: 0.02em;
}
}

.section-kicker.light {
  color: var(--green);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 32px;
  white-space: nowrap;
  overflow: visible;
}

.section-title em {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.15;
  color: var(--accent);
  display: inline-block;
  transform: translateY(0.05em);
  padding: 0.12em 0.08em 0.24em;
  overflow: visible;
}

.section-title--spread {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap;
  max-width: 100%;
  column-gap: 4px;
}

.section-title--spread em {
  margin: 0 1px;
}

.section-title--spread em {
  flex: 0 0 auto;
}

.section-title--spread em:first-of-type {
  margin-right: 0;
}

.section-title--spread em:last-of-type {
  margin-left: 0;
}

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

.section-title.light em {
  color: var(--olive);
  font-style: normal;
}

/* На узких экранах: spread-формат сжимаем */
@media (max-width: 760px) {
  .section-title--spread {
    flex-wrap: wrap;
    max-width: 100%;
    column-gap: 8px;
    justify-content: center;
  }
  .section-title--spread > * {
    flex: 0 0 auto;
  }
  .section-title--spread em {
    margin: 0 2px;
  }
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--surface);
  padding: var(--space-section) 0;
  position: relative;
}

.about-wrap {
  text-align: left;
}

.manifest {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--fg);
  max-width: 38ch;
  margin: 0 0 64px;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: none;
  width: 100%;
  border-top: 1.5px solid var(--border);
  padding-top: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1;
  color: var(--accent);
}

.meta-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: lowercase;
}

@media (max-width: 900px) {
  .about-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .about-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== SERVICES ===== */
/* ====== ЗАКУЛИСЬЕ ====== */
.behind-scenes {
  background-color: var(--surface);
  padding: 100px 0 80px;
}

.behind-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  margin: -16px 0 48px;
  max-width: 56ch;
}

.behind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 960px) {
  .behind-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.behind-card {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.behind-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(31, 18, 8, 0.12);
}

.behind-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.behind-card:hover .behind-photo {
  transform: scale(1.05);
}

/* Заглушки-плейсхолдеры (заменить на свои фото в img/behind/) */
.behind-photo--1 { background: linear-gradient(135deg, var(--green) 0%, var(--olive) 100%); }
.behind-photo--2 { background: linear-gradient(135deg, var(--accent) 0%, var(--muted) 100%); }
.behind-photo--3 { background: linear-gradient(135deg, var(--olive) 0%, var(--cream) 100%); }
.behind-photo--4 { background: linear-gradient(135deg, var(--muted) 0%, var(--green) 100%); }

.behind-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 6px 14px;
  background-color: rgba(26, 15, 6, 0.78);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}

.behind-follow {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.behind-follow a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.behind-follow a:hover {
  color: var(--green);
}

.services {
  background-color: var(--bg);
  padding: var(--space-section) 0;
  position: relative;
}

.services-wrap {
  padding: 0 var(--pad-x);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 0;
}

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

.service {
  background-color: var(--cream);
  border: none;
  padding: 36px 32px 32px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(61, 42, 30, 0.08), 0 2px 4px rgba(61, 42, 30, 0.04);
}

.service:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 18px 40px rgba(31, 18, 8, 0.15), 0 6px 12px rgba(31, 18, 8, 0.08);
}

.service--lg {
  grid-column: span 1;
  background-color: var(--olive);
  color: var(--cream);
  border: none;
}

.service--lg:nth-of-type(1) {
  grid-row: span 2;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.service--lg .service-num {
  color: var(--cream);
  opacity: 0.8;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  margin: 0 0 18px;
  text-transform: lowercase;
  letter-spacing: 0.005em;
}

.service-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 38ch;
  color: var(--fg);
}

.service--lg .service-text {
  color: var(--cream);
}

.service-note {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 36px);
  color: var(--accent);
  margin: 12px 0 0;
  line-height: 1.2;
  padding: 0.16em 0.1em 0.26em;
  overflow: visible;
}

.service--lg .service-note {
  color: var(--cream);
  opacity: 0.9;
}

@media (max-width: 760px) {
  .service--lg:nth-of-type(1) {
    grid-row: auto;
  }
}

/* ===== LEARN ===== */
.learn {
  background-color: var(--green);
  padding: var(--space-section) 0;
  color: var(--cream);
  position: relative;
  margin-top: 0;
}

.learn-wrap {
  padding: 0 var(--pad-x);
}

.learn-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
  max-width: 56ch;
  margin: 0 0 40px;
  opacity: 1;
}

.learn-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.learn-cta {
  margin-top: 16px;
}

.learn-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 56px;
}

@media (max-width: 960px) {
  .learn-formats { grid-template-columns: 1fr; gap: 16px; }
}

.learn-format {
  position: relative;
  padding: 28px 24px 26px;
  background-color: rgba(31, 18, 8, 0.18);
  border: 1.5px solid rgba(235, 230, 216, 0.18);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.learn-format:hover {
  background-color: rgba(31, 18, 8, 0.32);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.learn-format-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0;
}

.learn-format-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  margin: 0;
  color: var(--cream);
}

.learn-format-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(235, 230, 216, 0.85);
  margin: 0;
}

.learn-format-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.learn-format-list li {
  font-size: 13px;
  font-weight: 400;
  color: rgba(235, 230, 216, 0.78);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.learn-format-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 600;
}

.learn-format-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1.5px solid rgba(235, 230, 216, 0.18);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1.5px solid var(--olive);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  background-color: transparent;
  position: relative;
  cursor: pointer;
  /* Радиальный градиент, центрированный на позиции курсора */
  background-image: radial-gradient(
    circle 120px at var(--mx, 50%) var(--my, 50%),
    rgba(235, 230, 216, 0.12) 0%,
    transparent 70%
  );
  transition: color 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease,
              background-image 0.3s ease;
}

.pill:hover {
  color: var(--cream);
  border-color: var(--accent);
  transform: translateY(-2px);
  background-image: radial-gradient(
    circle 140px at var(--mx, 50%) var(--my, 50%),
    rgba(199, 84, 50, 0.32) 0%,
    rgba(139, 152, 86, 0.18) 40%,
    transparent 75%
  );
}

/* ===== PROCESS ===== */
.process {
  background-color: var(--bg);
  padding: var(--space-section) 0;
  margin-top: 0;
  position: relative;
}

.process-wrap {
  padding: 0 var(--pad-x);
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 760px) {
  .process-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.process-list li {
  border-top: 1.5px solid var(--border);
  padding-top: 20px;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.25;
  margin: 8px 0 12px;
}

.process-list p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
  max-width: 32ch;
}

.process-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  margin: -16px 0 40px;
  max-width: 56ch;
}

.step-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--green);
  margin: 8px 0 12px;
  text-transform: uppercase;
}

.process-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1.5px solid var(--border);
}

.process-cta-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  margin: 0;
  max-width: 40ch;
}

/* ===== CONTACT ===== */
.contact {
  background-color: var(--surface);
  padding: var(--space-section) 0 var(--pad-x);
}

.contact-text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  max-width: 50ch;
  margin: 0 0 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 0 0 40px;
}

.contact-group-title {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(40px, 3.2vw, 54px);
  color: var(--accent);
  margin: 24px 0 18px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 0.14em 0.1em 0.26em;
  overflow: visible;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 10px;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 160px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

a.contact-value:hover {
  color: var(--accent);
}

.contact-value-muted {
  color: var(--muted);
  font-style: italic;
}

/* ===== Соцсети в контактах ===== */
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.social-icon {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(31, 18, 8, 0.1));
}

.social-name {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  min-width: 110px;
}

.social-handle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
}

.social-link:hover .social-handle {
  color: var(--accent);
}

@media (max-width: 520px) {
  .social-name { min-width: auto; }
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 520px) {
  .contact-list li {
    flex-direction: column;
    gap: 4px;
  }
  .contact-label { min-width: 0; }
}

.contact-note {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(36px, 3vw, 50px);
  color: var(--accent);
  margin: 0;
  line-height: 1.2;
  padding: 0.18em 0.1em 0.3em;
  overflow: visible;
}

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

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .footer-wrap {
    justify-content: center;
    text-align: center;
  }
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-mark span {
  font-weight: 700;
  color: var(--accent);
}

.footer-copy {
  font-size: 13px;
  color: var(--olive);
  margin: 0;
}

.footer-socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.footer-social-link:hover {
  transform: translateY(-3px) scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-copy a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--accent);
}

/* ===== CONSENT BANNER ===== */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: var(--fg);
  color: var(--cream);
  padding: 22px 0;
  border-top: 1.5px solid var(--accent);
  box-shadow: 0 -8px 32px rgba(31, 18, 8, 0.18);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.consent-banner--hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.consent-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.consent-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 78ch;
  color: var(--cream);
}

.consent-text a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.consent-text a:hover {
  color: var(--accent);
}

.consent-accept {
  flex-shrink: 0;
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .consent-banner {
    padding: 18px 0;
  }
  .consent-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .consent-accept {
    width: 100%;
    text-align: center;
  }
}

/* ===== POLICY PAGE ===== */
.policy {
  background-color: var(--bg);
  padding: 24px 0 var(--space-section);
}

.policy-wrap {
  max-width: 860px;
}

.policy-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  max-width: 24ch;
  text-wrap: balance;
}

.policy-title em {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.85;
  color: var(--accent);
  display: inline-block;
  transform: translateY(0.05em);
}

.policy-updated {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  color: var(--muted);
  margin: 0 0 48px;
  line-height: 0.95;
}

.policy-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg);
  font-weight: 400;
}

.policy-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  margin: 40px 0 12px;
  color: var(--accent);
}

.policy-content p {
  margin: 0 0 16px;
  font-weight: 400;
}

.policy-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  font-weight: 400;
}

.policy-content li {
  font-weight: 400;
}

.policy-content b {
  font-weight: 600;
}

.policy-content b {
  font-weight: 600;
  color: var(--fg);
}

.policy-back {
  display: block;
  margin: 64px 0 0;
  font-size: 0;
  line-height: 0;
}

/* Скрыть платформенный значок "Made with Spru" */
#spru-pages-badge-host {
  display: none !important;
}

/* Social PNG icons (line-art без фона) */
.hero-social-link .social-png,
.social-link .social-png {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link .social-png {
  width: 24px;
  height: 24px;
}

.hero-social-link:hover .social-png,
.social-link:hover .social-png {
  opacity: 0.7;
  transform: scale(1.05);
}

/* ===== REVIEWS PAGE ===== */
body.reviews-page {
  background-color: var(--green);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.85  0 0 0 0.08 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"),
    radial-gradient(circle at 20% 30%, rgba(139, 152, 86, 0.4) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(31, 18, 8, 0.5) 0, transparent 60%);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.reviews-page .site-header {
  background-color: rgba(31, 18, 8, 0.25);
  border-bottom-color: rgba(235, 230, 216, 0.15);
}

body.reviews-page .nav a,
body.reviews-page .nav a:visited {
  color: var(--cream);
}

body.reviews-page .nav a::after {
  background-color: var(--cream);
}

body.reviews-page .logo-sub {
  color: rgba(235, 230, 216, 0.6);
}

body.reviews-page .header-cta {
  background-color: var(--cream);
  color: var(--green);
  border-color: var(--cream);
}

body.reviews-page .header-cta:hover {
  background-color: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

body.reviews-page .header-cta .btn-label { color: inherit; }

body.reviews-page .reviews {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 120px;
  text-align: center;
  min-height: 60vh;
}

body.reviews-page .reviews-wrap {
  max-width: 100%;
  width: 100%;
  padding: 0 var(--pad-x);
}

body.reviews-page .section-kicker {
  color: var(--olive);
  margin: 0 0 24px;
  font-size: clamp(32px, 3.6vw, 56px);
  opacity: 0.9;
  font-family: var(--font-display);
  font-weight: 400;
}

body.reviews-page .reviews-kicker {
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  text-transform: lowercase;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  font-family: var(--font-italic);
  font-style: normal;
}

body.reviews-page .reviews-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.15;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

body.reviews-page .reviews-greeting {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 3.6vw, 48px);
  color: var(--olive);
  margin: 32px 0 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.reviews-page .reviews-greeting.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

body.reviews-page .reviews-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 14px;
  background-color: rgba(31, 18, 8, 0.3);
  border: 1.5px solid rgba(235, 230, 216, 0.15);
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  max-width: 100%;
  margin: 0 auto;
}

body.reviews-page .reviews-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(235, 230, 216, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

body.reviews-page .reviews-card:hover::before {
  opacity: 1;
}

body.reviews-page .reviews-card > * {
  position: relative;
  z-index: 1;
}

body.reviews-page .site-footer {
  background-color: rgba(31, 18, 8, 0.3);
  border-top-color: rgba(235, 230, 216, 0.15);
  color: rgba(235, 230, 216, 0.75);
}

body.reviews-page .footer-mark {
  color: var(--cream);
}

body.reviews-page .footer-copy {
  color: rgba(235, 230, 216, 0.6);
}

@media (max-width: 760px) {
  body.reviews-page .reviews {
    padding: 60px 24px 100px;
  }
}

/* ===== WORKS PAGE — horizontal scroll ===== */
.works {
  padding: 80px 0 0;
  min-height: 100vh;
}

.works-intro {
  padding: 32px var(--pad-x) 16px;
  max-width: 720px;
  margin: 0 0 32px;
}

.works-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.1;
  color: var(--fg);
  margin: 12px 0 16px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.works-hint {
  font-family: var(--font-italic);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent);
  margin: 16px 0 0;
  opacity: 0.75;
}

.works-track {
  display: flex;
  gap: 32px;
  padding: 16px var(--pad-x) 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  cursor: grab;
}

.works-track.is-dragging { cursor: grabbing; }

.works-track::-webkit-scrollbar { height: 6px; }
.works-track::-webkit-scrollbar-track { background: transparent; }
.works-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.work-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--cream);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(31, 18, 8, 0.18);
}

.work-card--wide { width: 480px; }
.work-card--tall { width: 320px; }

.work-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(199, 84, 50, 0.08), rgba(74, 90, 44, 0.08)),
    var(--surface);
  border-radius: 8px;
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-italic);
  font-size: 16px;
  opacity: 0.5;
}

.work-card--wide .work-media { aspect-ratio: 16 / 9; }
.work-card--tall .work-media { aspect-ratio: 3 / 4; }

.work-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--fg);
  margin: 0;
  text-transform: lowercase;
}

.work-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.works-progress {
  position: relative;
  margin: 16px var(--pad-x) 0;
  height: 3px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-radius: 2px;
  overflow: hidden;
}

.works-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  transition: width 0.1s linear;
}

@media (max-width: 760px) {
  .works-card { width: 260px; }
  .work-card--wide { width: 360px; }
  .works-intro { padding: 0 24px; }
  .works-track { padding: 16px 24px 32px; gap: 20px; }
}
