/* =====================================================================
   Арт мастерская Натали Зимон
   style.css — основные стили (дизайн-система, компоненты)
   Палитра: камень, белый, светло-серый + бронзовый акцент. Mobile-first.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  1. Дизайн-токены (переменные)                                     */
/* ------------------------------------------------------------------ */
:root {
  /* Цвета — камень / белый / светло-серый + бронза */
  --bg:            #FAFAF8;   /* основной фон, почти белый        */
  --bg-alt:        #EFEEE9;   /* вторичный фон секций, светлый камень */
  --terra:         #96723A;   /* акцент — бронза/старое золото    */
  --terra-dark:    #7A5B2C;   /* бронза при наведении             */
  --terra-soft:    #D9C9A6;   /* светлая бронза                   */
  --olive:         #6B6A61;   /* доп. акцент — тёплый графит-камень */
  --olive-dark:    #504F48;
  --ink:           #232320;   /* основной текст, графит           */
  --ink-soft:      #6F6D65;   /* вторичный текст                  */
  --line:          #E2DFD6;   /* разделители                      */
  --white:         #FFFFFF;

  /* Типографика */
  --font-display: "Prata", "Georgia", "Times New Roman", serif;
  --font-body:    "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Размеры / ритм */
  --container:  1200px;
  --container-narrow: 820px;
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  24px;

  /* Тени */
  --shadow-sm: 0 2px 10px rgba(44, 44, 44, 0.05);
  --shadow:    0 10px 30px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 24px 60px rgba(44, 44, 44, 0.14);

  /* Переходы */
  --t-fast: 0.15s ease;
  --t:      0.25s ease;
  --t-slow: 0.4s ease;

  /* Высота фиксированной шапки */
  --header-h: 76px;
}

/* ------------------------------------------------------------------ */
/*  2. Сброс и база                                                   */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../img/marble-bg.svg");
  background-repeat: no-repeat;
  background-size: 150vmax 150vmax;   /* vmax — всегда от окна, а не от высоты страницы */
  background-position: var(--marble-x, 50%) var(--marble-y, 50%);
  background-attachment: fixed;
  transition: background-position 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

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

a { color: var(--terra); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--terra-dark); }

button { font-family: inherit; cursor: pointer; }

/* h1/h2 — редакционный серифный дисплей (Prata), h3/h4 — гротеск (Golos) */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;            /* у Prata один начертание */
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p  { margin: 0 0 1.1em; }

::selection { background: var(--terra-soft); color: var(--ink); }

/* ------------------------------------------------------------------ */
/*  3. Раскладка                                                      */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--alt { background: rgba(239, 238, 233, 0.86); }  /* полупрозрачно — сквозь неё виден мраморный фон */
.section--tight { padding-block: clamp(40px, 5vw, 70px); }

main { min-height: 60vh; }

/* Заголовок секции с «надзаголовком» */
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head--left { text-align: left; margin-inline: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--olive { color: var(--olive); }

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Декоративный тонкий разделитель-«мазок» */
.brush-divider {
  width: 68px; height: 4px; border: 0; margin: 22px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--terra), transparent);
}
.section-head--left .brush-divider { margin-inline: 0; }

/* ------------------------------------------------------------------ */
/*  4. Кнопки                                                         */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1.5px solid transparent; border-radius: 2px;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t-fast), box-shadow var(--t);
  cursor: pointer; text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--terra); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terra-dark); color: var(--white); box-shadow: var(--shadow); }

.btn--outline { background: transparent; color: var(--terra); border-color: var(--terra); }
.btn--outline:hover { background: var(--terra); color: var(--white); }

.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--bg-alt); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: var(--white); border-color: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.86rem; }

/* ------------------------------------------------------------------ */
/*  5. Шапка / навигация                                              */
/* ------------------------------------------------------------------ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
}
.header.is-scrolled {
  height: 64px;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { width: 42px; height: 42px; transition: width var(--t), height var(--t); }
.header.is-scrolled .logo img { width: 36px; height: 36px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.01em; }
.logo__sub  { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }

/* Навигация (десктоп) */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  border-radius: 8px;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--terra);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav__link:hover { color: var(--terra); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--terra); }

/* Правый блок шапки */
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__socials { display: flex; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 4px; border-radius: 0;
  color: var(--ink-soft); background: transparent; border: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: .04em;
  transition: color var(--t);
}
.icon-btn:hover { color: var(--terra); background: transparent; }
.icon-btn svg { width: 18px; height: 18px; }

/* Бургер */
.burger {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform var(--t), opacity var(--t);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translate(-50%, -50%) rotate(45deg); top: 0; }
.burger.is-open span::after  { transform: translate(-50%, -50%) rotate(-45deg); top: 0; }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg);
  transform: translateX(100%); transition: transform var(--t-slow);
  padding: 30px 24px 40px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a.m-link {
  padding: 15px 6px; font-size: 1.15rem; font-family: var(--font-display);
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link:hover, .mobile-menu a.m-link.is-active { color: var(--terra); }
.mobile-menu .btn { margin-top: 22px; }
.mobile-menu__contact { margin-top: auto; padding-top: 24px; color: var(--ink-soft); font-size: 0.92rem; }
.mobile-menu__contact a { font-weight: 600; }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------------ */
/*  6. Hero                                                           */
/* ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(28,27,25,.74) 0%, rgba(28,27,25,.46) 45%, rgba(28,27,25,.14) 100%);
}
.hero__content { max-width: 660px; padding-block: 60px; }
.hero .eyebrow { color: var(--terra-soft); }
.hero h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(255,255,255,.92); margin-bottom: 34px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span { width: 1px; height: 34px; background: rgba(255,255,255,.6); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6);} 50% { opacity: 1; transform: scaleY(1);} }

/* Компактный «баннер»-шапка для внутренних страниц */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 60px;
  color: var(--white); overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(28,27,25,.66), rgba(28,27,25,.5)); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; font-size: 1.08rem; margin: 0; }
.breadcrumbs { font-size: 0.82rem; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { opacity: .6; margin: 0 6px; }

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

/* Карточка направления */
.dir-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
}
.dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--white); }
.dir-card__img { position: absolute; inset: 0; z-index: 0; }
.dir-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.dir-card:hover .dir-card__img img { transform: scale(1.06); }
.dir-card::after { content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(28,27,25,0) 30%, rgba(28,27,25,.82) 100%); }
.dir-card__body { position: relative; z-index: 2; padding: 28px; }
.dir-card__body h3 { color: var(--white); margin-bottom: 8px; }
.dir-card__body p { color: rgba(255,255,255,.88); font-size: 0.95rem; margin-bottom: 14px; }
.dir-card__link { display:inline-flex; align-items:center; gap:8px; color: var(--white); font-weight:600; font-size:0.9rem; }
.dir-card__link svg { width: 16px; height: 16px; transition: transform var(--t); }
.dir-card:hover .dir-card__link svg { transform: translateX(5px); }

/* «Преимущество» — редакционный номер вместо иконки-плитки.
   Номер проставляется автоматически счётчиком (сбрасывается на .grid). */
.grid { counter-reset: feat; }
.feature {
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  counter-increment: feat;
}
.feature::before {
  content: counter(feat, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: var(--terra);
}
.feature__icon { display: none; }        /* иконки-плитки убраны */
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Карточка товара / картины */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(250,247,242,.92); color: var(--olive-dark);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 100px; text-transform: uppercase;
}
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.16rem; margin-bottom: 6px; }
.card__desc { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 16px; flex: 1; }
.card__meta { color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 14px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card__price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.card__price small { display:block; font-family: var(--font-body); font-size:0.7rem; font-weight:500; color: var(--ink-soft); letter-spacing:.04em; text-transform: uppercase; }

/* Картинная карточка (кладка живописи) */
.paint-card { break-inside: avoid; margin-bottom: 26px; }
.paint-media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--bg-alt); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.paint-media img { width: 100%; display: block; transition: transform var(--t-slow); }
.paint-media:hover img { transform: scale(1.04); }
.paint-media .zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(250,247,242,.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity var(--t), transform var(--t);
}
.paint-media:hover .zoom { opacity: 1; transform: scale(1); }
.paint-media .zoom svg { width: 16px; height: 16px; }
.paint-card figcaption { padding: 15px 4px 0; }
.paint-card .card__title { margin-bottom: 4px; }
.paint-card .card__foot { margin-top: 12px; }

/* Нумерованные шаги (процесс заказа) */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { position: relative; padding-left: 66px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--terra); color: var(--white);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.18rem; margin-bottom: 5px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------------ */
/*  8. Галерея (сетка + hover)                                        */
/* ------------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1; cursor: pointer; background: var(--bg-alt);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28,27,25,.72));
  opacity: 0; transition: opacity var(--t);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: var(--white);
  font-size: 0.86rem; font-weight: 500; opacity: 0; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(250,247,242,.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity var(--t), transform var(--t);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: scale(1); }
.gallery__zoom svg { width: 16px; height: 16px; }

/* Живопись — «кирпичная» кладка через columns */
.masonry { column-count: 3; column-gap: 22px; }

/* ------------------------------------------------------------------ */
/*  9. Каталог: фильтры                                               */
/* ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  padding: 9px 20px; border-radius: 2px; font-size: 0.86rem; font-weight: 500;
  background: var(--white); color: var(--ink-soft); border: 1px solid var(--line);
  transition: all var(--t);
}
.filter-btn:hover { color: var(--terra); border-color: var(--terra-soft); }
.filter-btn.is-active { background: var(--terra); color: var(--white); border-color: var(--terra); }
.card.is-hidden { display: none; }

/* ------------------------------------------------------------------ */
/*  10. Блок «О мастере» / текстовые блоки                            */
/* ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split__media .tag-note {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow); max-width: 220px;
}
.split__media .tag-note strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--terra); display:block; }
.split__media .tag-note span { font-size: 0.82rem; color: var(--ink-soft); }
.split__body h2 { margin-bottom: 18px; }
.split__body p { color: var(--ink-soft); }
.signature { font-family: var(--font-display); font-size: 1.35rem; color: var(--terra); margin-top: 14px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 22px; margin-bottom: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 1.7em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--terra);
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; color: var(--ink);
}

/* Список-статистика */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--terra); }
.stat__label { color: var(--ink-soft); font-size: 0.9rem; }

/* ------------------------------------------------------------------ */
/*  11. Отзывы                                                        */
/* ------------------------------------------------------------------ */
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; height: 100%;
}
.review__stars { color: var(--terra); letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.review__text { font-size: 1rem; color: var(--ink); font-style: italic; margin-bottom: 20px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.review__name { font-weight: 600; font-size: 0.95rem; }
.review__meta { color: var(--ink-soft); font-size: 0.82rem; }

/* ------------------------------------------------------------------ */
/*  12. Формы                                                         */
/* ------------------------------------------------------------------ */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--terra); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color var(--t), box-shadow var(--t), background var(--t);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terra); background: var(--white);
  box-shadow: 0 0 0 4px rgba(196,114,78,.12);
}
.field input:invalid:not(:placeholder-shown) { border-color: #cf6b57; }

/* Чекбокс согласия */
.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--terra); flex: none; cursor: pointer; }
.consent label { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; }

.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

/* Дисклеймер оферты */
.offer-note {
  background: var(--bg-alt); border-left: 3px solid var(--olive);
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 30px;
}

/* Доп. предложение (напр. расширенный формат мастер-класса) */
.mc-extra {
  display: flex; align-items: flex-start; gap: 22px;
  margin-top: 40px; padding: 30px 34px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.mc-extra__icon {
  flex: none; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-alt); color: var(--terra);
}
.mc-extra__icon svg { width: 24px; height: 24px; }
.mc-extra__body h3 { margin-bottom: 10px; }
.mc-extra__body p { color: var(--ink-soft); margin-bottom: 18px; max-width: 640px; }
@media (max-width: 640px) {
  .mc-extra { flex-direction: column; padding: 24px; }
}

/* ------------------------------------------------------------------ */
/*  13. Контакты / карта                                              */
/* ------------------------------------------------------------------ */
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { padding-left: 18px; border-left: 2px solid var(--terra); }
.contact-list .ci { display: none; }     /* иконки-плитки убраны */
.contact-list h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin: 0 0 4px; font-weight: 600; }
.contact-list a, .contact-list p { font-size: 1.08rem; color: var(--ink); margin: 0; font-weight: 500; }
.contact-list a:hover { color: var(--terra); }

.map-embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-embed--tall iframe { min-height: 420px; }

/* ------------------------------------------------------------------ */
/*  14. CTA-полоса                                                    */
/* ------------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  color: var(--white); padding: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(100deg, rgba(168,92,59,.92), rgba(122,139,111,.82)); }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 460px; }

/* ------------------------------------------------------------------ */
/*  15. Футер                                                         */
/* ------------------------------------------------------------------ */
.footer { background: #1C1C1A; color: rgba(255,255,255,.72); padding-top: 64px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--terra-soft); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .logo__name, .footer .logo { color: var(--white); }
.footer__brand p { font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 0.92rem; }
.footer__contact { font-size: 0.92rem; display: flex; flex-direction: column; gap: 12px; }
.footer__contact strong { color: var(--white); display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.footer__socials { display: flex; gap: 20px; margin-top: 14px; }
.footer__socials a {
  display: inline-flex; align-items: center;
  font-size: 0.86rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
.footer__socials a:hover { color: var(--terra-soft); }
.footer__socials svg { width: 17px; height: 17px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ------------------------------------------------------------------ */
/*  16. Модальное окно «Спасибо»                                      */
/* ------------------------------------------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(24, 23, 21, .58); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  background: var(--bg); border-radius: var(--radius-lg); max-width: 440px; width: 100%;
  padding: 40px 34px; text-align: center; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.97); transition: transform var(--t);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__icon {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.modal__icon svg { width: 32px; height: 32px; }
.modal__box h3 { margin-bottom: 10px; }
.modal__box p { color: var(--ink-soft); margin-bottom: 24px; }

/* ------------------------------------------------------------------ */
/*  17. Cookie-баннер                                                 */
/* ------------------------------------------------------------------ */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  transform: translateY(140%); transition: transform var(--t-slow);
}
.cookie.is-visible { transform: translateY(0); }
.cookie p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); flex: 1 1 260px; }
.cookie .btn { flex: none; }

/* ------------------------------------------------------------------ */
/*  17.5. Партнёры — «соты» с логотипами                              */
/* ------------------------------------------------------------------ */
/* Шестиугольные карточки-соты (как в исходной версии), но внутри —
   реальные логотипы (SVG/PNG из img/partners/) вместо текста, сразу
   в цвете — наводить курсором не нужно. У части партнёров логотипа
   пока нет — для них подставлена типографическая плашка с названием
   (см. about.html и комментарий в README). */
.partners {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 12px;
}
.partner {
  position: relative;
  width: 172px; aspect-ratio: 1 / 0.86;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0% 50%);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 24px;
  transition: transform var(--t), background var(--t);
}
.partner::after {
  content: ""; position: absolute; inset: 0;
  clip-path: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t);
  pointer-events: none;
}
.partner:hover { transform: translateY(-6px); background: var(--bg-alt); }
.partner:hover::after { box-shadow: inset 0 0 0 1.5px var(--terra); }
.partner img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/*  17.6. Карусель примеров работ с партнёрами                        */
/* ------------------------------------------------------------------ */
.pcarousel { position: relative; max-width: 760px; margin: 0 auto; }
.pcarousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.pcarousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pcarousel__slide {
  flex: 0 0 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white);
  padding: 48px 32px;
  border: 1px solid var(--line);
  box-sizing: border-box;
}
.pcarousel__media {
  width: 100%; aspect-ratio: 16 / 8;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, var(--bg) 12px 24px);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.pcarousel__logo { max-width: 55%; max-height: 45%; width: auto; height: auto; object-fit: contain; }
.pcarousel__body h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 8px; }
.pcarousel__body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.pcarousel .pcarousel__prev, .pcarousel .pcarousel__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pcarousel .pcarousel__prev:hover, .pcarousel .pcarousel__next:hover { background: var(--bg-alt); }
.pcarousel__prev { left: -22px; }
.pcarousel__next { right: -22px; }

.pcarousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pcarousel__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: none; padding: 0; cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.pcarousel__dots button.is-active { background: var(--terra); transform: scale(1.3); }

@media (max-width: 640px) {
  .pcarousel__prev { left: 4px; }
  .pcarousel__next { right: 4px; }
  .pcarousel__slide { padding: 36px 20px; }
}

/* Вариант карусели для отзывов — скриншоты вместо логотипа+текста */
.pcarousel--reviews { max-width: 820px; }
.pcarousel--reviews .pcarousel__slide { padding: 24px; }
.review-shot { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.review-shot img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }

/* Мраморный фон — см. background-image на body (раздел 2, выше).
   Секции .section прозрачны, .section--alt полупрозрачна — поэтому
   мрамор виден сквозь них ровным, ненавязчивым фоном по всей странице;
   сплошные элементы (карточки, футер, hero с фото) перекрывают его как
   обычно. Интерактивный сдвиг по курсору — через CSS-переменные
   --marble-x/--marble-y, которые задаёт js/main.js. */

/* ------------------------------------------------------------------ */
/*  19. Анимация появления при скролле                                */
/* ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Утилиты */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.badge-olive { display:inline-block; background: rgba(122,139,111,.14); color: var(--olive-dark); font-size:0.76rem; font-weight:600; padding:4px 12px; border-radius:100px; letter-spacing:.04em; }
