/* =========================================================
   Школа рисования Анны Калимуллиной — styles
   Editorial, warm-paper aesthetic. No external dependencies.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F6F1E7;
  --paper-2: #FBF8F2;
  --paper-3: #EFE7D8;
  --ink: #1B1917;
  --ink-soft: #514A41;
  --ink-muted: #837A6C;
  --line: rgba(27, 25, 23, .14);
  --line-soft: rgba(27, 25, 23, .08);

  --terracotta: #B5482B;
  --terracotta-dark: #96381F;
  --teal: #23433D;
  --teal-dark: #182E2A;
  --ochre: #D8A03D;
  --blush: #EAD5C7;

  --serif: "Playfair Display", "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 18px 50px -28px rgba(27, 25, 23, .45);
  --shadow-card: 0 26px 60px -34px rgba(27, 25, 23, .55);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.02vw, 17px);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--terracotta); color: var(--paper-2); }

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper-2);
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout helpers ---------- */
.shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow-num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--terracotta);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(181, 72, 43, .12);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.1vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}

.serif-italic { font-style: italic; color: var(--terracotta); }

.section-head { margin-bottom: clamp(34px, 5vw, 62px); max-width: 640px; }

.section-head--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.section-lead {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.03vw, 16.5px);
  line-height: 1.7;
  max-width: 46ch;
}
.section-lead a { color: var(--terracotta); border-bottom: 1px solid currentColor; }

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .012em;
  white-space: nowrap;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; transition: transform .28s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid { --btn-bg: var(--ink); --btn-fg: var(--paper-2); --btn-bd: var(--ink); }
.btn--solid:hover { --btn-bg: var(--terracotta); --btn-bd: var(--terracotta); transform: translateY(-2px); }

.btn--ghost { --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); background: rgba(27, 25, 23, .04); }

.btn--outline { --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper-2); }

.btn--light { --btn-bg: var(--paper-2); --btn-fg: var(--teal-dark); --btn-bd: var(--paper-2); }
.btn--light:hover { --btn-bg: var(--ochre); --btn-bd: var(--ochre); transform: translateY(-2px); }

.btn--sm { padding: 11px 18px; font-size: .82rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.text-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--terracotta);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  padding-block: 16px;
  transition: background .35s var(--ease), padding .35s var(--ease),
              border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 9px;
  background: rgba(246, 241, 231, .86);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 115; }
.brand-mark { width: 42px; height: 42px; color: var(--ink); flex: none; transition: color .3s var(--ease), transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); color: var(--terracotta); }
.brand-mark svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand-text i {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav-extra { display: none; }
.nav a {
  position: relative;
  font-size: .855rem;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.header-phone:hover { color: var(--terracotta); }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 15vh, 176px);
  padding-bottom: clamp(36px, 5vw, 72px);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.hero-glow--1 {
  width: 58vw; height: 58vw;
  top: -22vw; right: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(216, 160, 61, .30), rgba(216, 160, 61, 0) 66%);
}
.hero-glow--2 {
  width: 46vw; height: 46vw;
  bottom: -24vw; left: -18vw;
  background: radial-gradient(circle at 50% 50%, rgba(181, 72, 43, .14), rgba(181, 72, 43, 0) 68%);
}
.hero-arc {
  position: absolute;
  top: 8%;
  right: 4%;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  mask-image: linear-gradient(150deg, #000 20%, transparent 72%);
  -webkit-mask-image: linear-gradient(150deg, #000 20%, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5.1vw, 4.45rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  margin: 0 0 26px;
  position: relative;
}
.hero-title .tl { display: block; }
.hero-title .accent {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--terracotta);
}

.underline {
  position: absolute;
  left: -1%;
  bottom: -.035em;
  width: 102%;
  height: .13em;
  color: var(--terracotta);
  opacity: .6;
  overflow: visible;
}
.underline path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.5s .5s var(--ease) forwards;
}
.underline path:nth-child(2) { animation-delay: .72s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.06vw, 17.5px);
  line-height: 1.68;
}

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

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: .84rem;
  color: var(--ink-muted);
}
.hero-note svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(34px, 5vw, 52px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stats dd {
  margin: 0;
  font-size: .715rem;
  line-height: 1.35;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Hero art */
.hero-art { position: relative; }

.art-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 5.4;
  transform-style: preserve-3d;
}

.canvas {
  position: absolute;
  background: var(--paper-2);
  padding: 10px 10px 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .6s var(--ease);
  will-change: transform;
}
.canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--paper-3);
}
.canvas figcaption {
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 9px 2px 10px;
  text-align: center;
}

.canvas--main {
  left: 2%;
  top: 3%;
  width: 74%;
  height: 78%;
  transform: rotate(-1.2deg);
  z-index: 3;
}
.canvas--main img { height: calc(100% - 34px); }
.canvas--main figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.canvas--back {
  right: 0;
  top: 1%;
  width: 34%;
  height: 36%;
  transform: rotate(5deg);
  z-index: 1;
  padding: 7px 7px 0;
}
.canvas--back img { height: calc(100% - 30px); }
.canvas--back figcaption { font-size: .56rem; padding: 6px 0 7px; }

.canvas--small {
  right: -1%;
  bottom: 5%;
  width: 36%;
  height: 30%;
  transform: rotate(-4.5deg);
  z-index: 4;
  padding: 7px 7px 0;
}
.canvas--small img { height: calc(100% - 30px); }
.canvas--small figcaption { font-size: .56rem; padding: 6px 0 7px; }

.paper-note {
  position: absolute;
  left: -4%;
  bottom: 1%;
  z-index: 5;
  padding: 12px 16px 14px;
  background: #F3E4C8;
  border: 1px solid rgba(27, 25, 23, .1);
  box-shadow: 0 12px 26px -18px rgba(27, 25, 23, .6);
  transform: rotate(-3.5deg);
  font-family: var(--hand);
  font-size: 1.08rem;
  line-height: 1.15;
  color: #4A3B22;
}
.paper-note::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  width: 54px; height: 18px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, .5);
  border-left: 1px solid rgba(0, 0, 0, .06);
  border-right: 1px solid rgba(0, 0, 0, .06);
}

.hero-brush {
  position: absolute;
  left: -8%;
  top: 12%;
  width: 26%;
  height: auto;
  color: var(--teal);
  z-index: 0;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(34px, 6vw, 64px);
  padding-inline: var(--gutter);
  width: min(var(--shell), 100%);
  margin-inline: auto;
}
.scroll-hint {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scroll-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); max-width: 220px; }

/* ---------- 7. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding-block: 16px;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee .dot { color: var(--ochre); font-style: normal; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. About ---------- */
.about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  gap: clamp(30px, 5.5vw, 76px);
  align-items: start;
}

.about-media { position: relative; }

.portrait-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 12px 12px 0;
  box-shadow: var(--shadow-soft);
}
.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}
.portrait-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 16px;
  font-size: .76rem;
  line-height: 1.4;
  color: var(--ink-muted);
}
.portrait-card figcaption i { color: var(--terracotta); font-style: normal; font-size: .7rem; letter-spacing: .02em; }

.portrait-mono {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--ink);
}

.quote-card {
  position: relative;
  margin: 22px 0 0 30px;
  padding: 30px 28px 26px;
  background: var(--teal);
  color: #F1EADD;
  box-shadow: var(--shadow-card);
  transform: rotate(1deg);
}
.quote-card p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.42;
  letter-spacing: -.005em;
}
.quote-card cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(241, 234, 221, .62);
}
.quote-mark { width: 30px; height: 20px; color: var(--ochre); margin-bottom: 14px; }

.about-text .lead {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.about-text > p + p { color: var(--ink-soft); }

.facts { margin-top: 34px; border-top: 1px solid var(--line); }
.facts li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fact-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 3px;
}
.fact-value { font-size: .93rem; line-height: 1.55; }

/* ---------- 9. Directions ---------- */
.directions { background: var(--paper-2); border-block: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--paper-2);
  transition: background .35s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { background: var(--paper); }
.card:hover::after { transform: scaleX(1); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-num {
  font-family: var(--serif);
  font-size: .86rem;
  letter-spacing: .08em;
  color: var(--ochre);
}
.chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.62rem);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.card > p { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 6px;
  font-size: .73rem;
  color: var(--ink-muted);
}
.card-meta li { position: relative; }
.card-meta li + li::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: var(--line);
}

.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.price { font-family: var(--serif); font-size: 1.22rem; letter-spacing: -.01em; }
.price small { font-family: var(--sans); font-size: .68rem; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0; }
.card-link {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--terracotta);
  border-bottom: 1px solid rgba(181, 72, 43, .35);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.card-link:hover { border-color: var(--terracotta); }

/* ---------- 10. Process ---------- */
.process { background: var(--paper); }
.process-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.process .section-head { margin-bottom: 0; position: sticky; top: 110px; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.steps li {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--paper);
  min-height: 190px;
  transition: background .35s var(--ease);
}
.steps li:hover { background: var(--paper-2); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ochre);
  display: block;
  margin-bottom: 26px;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.steps p { font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- 11. Gallery ---------- */
.gallery { background: var(--paper-2); border-block: 1px solid var(--line); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15.5vw, 205px);
  grid-auto-flow: dense;
  gap: 12px;
}

.work {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line);
  text-align: left;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.work--tall { grid-column: span 2; grid-row: span 2; }
.work--wide { grid-column: span 2; grid-row: span 1; }

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.work:hover img { transform: scale(1.045); }
.work:hover { box-shadow: var(--shadow-card); z-index: 2; }

.work-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(20, 18, 16, .82), rgba(20, 18, 16, .28) 55%, transparent);
  color: #F7F2E8;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.work-cap b { font-family: var(--serif); font-size: .98rem; font-weight: 400; letter-spacing: -.01em; }
.work-cap i { font-style: normal; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(247, 242, 232, .7); }
.work:hover .work-cap, .work:focus-visible .work-cap { opacity: 1; transform: translateY(0); }

/* ---------- 12. Reviews ---------- */
.reviews { background: var(--paper); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--paper);
  position: relative;
  transition: background .35s var(--ease);
}
.review:hover { background: var(--paper-2); }
.review::before {
  content: "“";
  position: absolute;
  top: 6px; right: 22px;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--line);
  pointer-events: none;
}
.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.52;
  letter-spacing: -.005em;
  color: var(--ink);
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
}
.review figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.review figcaption b { font-weight: 600; font-size: .84rem; }
.review figcaption i {
  font-style: normal;
  font-size: .72rem;
  color: var(--ink-muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--a) 16%, transparent);
  color: color-mix(in srgb, var(--a) 88%, #231f1c);
  font-family: var(--serif);
  font-size: .92rem;
  border: 1px solid color-mix(in srgb, var(--a) 28%, transparent);
}

/* ---------- 13. Prices ---------- */
.prices { background: var(--paper-2); border-block: 1px solid var(--line); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(27,25,23,.22); }

.price-card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: -.01em;
}
.price-big {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 6px 0 0;
}
.price-big small {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin-left: 4px;
}
.price-sub {
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.price-card ul { display: flex; flex-direction: column; gap: 9px; margin: 8px 0 22px; }
.price-card li {
  position: relative;
  padding-left: 20px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--terracotta);
}
.price-card .btn { margin-top: auto; }

.price-card--featured {
  background: var(--teal);
  border-color: var(--teal);
  color: #F3ECDF;
  transform: translateY(-10px);
}
.price-card--featured:hover { transform: translateY(-14px); border-color: var(--teal); }
.price-card--featured .price-sub { color: rgba(243, 236, 223, .6); border-color: rgba(243, 236, 223, .18); }
.price-card--featured li { color: rgba(243, 236, 223, .82); }
.price-card--featured li::before { border-color: var(--ochre); }
.price-card--featured .price-big small { color: rgba(243, 236, 223, .65); }

.price-badge {
  position: absolute;
  top: -11px;
  left: clamp(24px, 3vw, 36px);
  padding: 5px 12px;
  background: var(--ochre);
  color: #2A2113;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
}

.price-extra {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--ink-soft);
}
.price-extra b { color: var(--ink); font-weight: 600; }
.price-fine { font-size: .78rem; color: var(--ink-muted); }

/* ---------- 14. FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq .section-lead { margin-top: 18px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  letter-spacing: -.005em;
  transition: color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terracotta); }

.faq-item summary i {
  position: relative;
  width: 26px; height: 26px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq-item[open] summary i::before,
.faq-item[open] summary i::after { background: var(--paper-2); }
.faq-item[open] summary i::after { opacity: 0; }

.faq-body {
  padding: 0 40px 22px 0;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- 15. Contact ---------- */
.contact {
  background: var(--teal-dark);
  color: #F1EADD;
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 160, 61, .16), transparent 62%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.contact .eyebrow { color: rgba(241, 234, 221, .55); }
.contact .eyebrow-num { color: var(--ochre); border-color: rgba(241, 234, 221, .2); }
.contact .h2 { color: #F7F2E8; }
.contact .h2 .serif-italic { color: var(--ochre); }
.contact .section-lead { color: rgba(241, 234, 221, .74); margin-top: 22px; }
.contact .section-lead a { color: var(--ochre); border-bottom-color: rgba(216, 160, 61, .5); }

.contact-list { margin-top: 38px; display: flex; flex-direction: column; gap: 2px; }
.contact-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgba(241, 234, 221, .14);
}
.contact-list li:last-child { border-bottom: 1px solid rgba(241, 234, 221, .14); }
.contact-list svg { width: 20px; height: 20px; color: var(--ochre); margin-top: 2px; }
.contact-list span { display: flex; flex-direction: column; gap: 3px; }
.contact-list b { font-weight: 500; font-size: .95rem; letter-spacing: .005em; }
.contact-list b a { border-bottom: 1px solid rgba(216, 160, 61, .5); }
.contact-list i { font-style: normal; font-size: .78rem; color: rgba(241, 234, 221, .55); }

.contact-form-wrap { position: relative; }

.form {
  position: relative;
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(27, 25, 23, .1);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.form-title { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -.015em; }
.form-note {
  margin-top: 6px;
  padding-bottom: 20px;
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-soft);
}

.field { display: block; position: relative; margin-top: 18px; }
.field-label {
  display: block;
  margin-bottom: 3px;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field-label small { text-transform: none; letter-spacing: 0; font-size: .7rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: .95rem;
  transition: border-color .25s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 52px; }
.field select { cursor: pointer; background-image: none; }
.field input::placeholder, .field textarea::placeholder { color: #A79D8D; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: .72rem;
  color: var(--terracotta);
}
.field.is-invalid .field-error { display: block; }
.field.is-invalid input { border-bottom-color: var(--terracotta); }

.form .btn { margin-top: 26px; }
.form-policy {
  margin-top: 14px;
  font-size: .68rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.form-success svg { width: 54px; height: 54px; color: var(--teal); }
.form-success b { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; letter-spacing: -.015em; }
.form-success span { font-size: .86rem; color: var(--ink-soft); max-width: 34ch; }
.form-success[hidden] { display: none; }
.form.is-sent .form-success { display: flex; animation: popIn .5s var(--ease); }

@keyframes popIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 241, 231, .8);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 241, 231, .12);
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.brand-mark--light { color: var(--paper); width: 46px; height: 46px; }
.footer-brand p { display: flex; flex-direction: column; gap: 8px; line-height: 1.35; }
.footer-brand b { font-family: var(--serif); font-size: 1.06rem; font-weight: 400; color: var(--paper); letter-spacing: -.005em; }
.footer-brand i { font-style: normal; font-size: .76rem; color: rgba(246, 241, 231, .5); letter-spacing: .04em; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 28px;
  align-content: flex-start;
}
.footer-nav a { font-size: .84rem; color: rgba(246, 241, 231, .66); transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--ochre); }

.footer-contacts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contacts a {
  font-size: .86rem;
  color: rgba(246, 241, 231, .82);
  border-bottom: 1px solid rgba(246, 241, 231, .18);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-contacts a:hover { color: var(--ochre); border-color: var(--ochre); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: .72rem;
  color: rgba(246, 241, 231, .42);
  letter-spacing: .03em;
}

/* ---------- 17. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(16, 14, 12, .93);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: popIn .35s var(--ease);
}
.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  border: 1px solid rgba(246, 241, 231, .12);
}
.lightbox-figure figcaption {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, .66);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 2vw, 26px);
  right: clamp(12px, 2vw, 26px);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 241, 231, .22);
  border-radius: 50%;
  color: var(--paper);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover { background: rgba(246, 241, 231, .1); border-color: rgba(246, 241, 231, .5); }

body.is-locked { overflow: hidden; }

/* ---------- 18. Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1120px) {
  .nav { gap: 14px; }
  .nav a { font-size: .8rem; }
  .header-phone { display: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: 2; max-width: 480px; margin-inline: auto; width: 100%; }
  .hero-brush { display: none; }
  .hero { padding-top: 112px; }
  .about-grid, .process-inner, .faq-grid, .contact-inner { grid-template-columns: 1fr; }
  .process .section-head, .faq .section-head { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--row { grid-template-columns: 1fr; align-items: start; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    padding: 104px var(--gutter) 32px;
    background: var(--paper);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s var(--ease), opacity .3s var(--ease), visibility .45s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    letter-spacing: -.02em;
    padding: 9px 0;
    color: var(--ink);
  }
  .nav a::after { display: none; }

  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--ink-muted);
  }
  .nav-extra-phone {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--ink) !important;
    padding: 0 !important;
    margin-bottom: 2px;
  }
  .nav-extra p { font-size: .78rem; line-height: 1.5; }
  .nav-extra-links { display: flex; gap: 18px; }
  .nav-extra-links a {
    font-size: .78rem !important;
    color: var(--ink) !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .burger { display: block; z-index: 115; }
  .site-header.is-menu-open { background: var(--paper); border-bottom-color: transparent; }
}

@media (max-width: 800px) {
  .header-actions .btn--sm { display: none; }
  .brand-text i { display: none; }
  .brand-text b { font-size: 1rem; white-space: nowrap; }
  .brand-mark { width: 38px; height: 38px; }
  .site-header { padding-block: 12px; }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .work--wide { grid-column: span 2; }
  .work-cap { opacity: 1; transform: none; background: linear-gradient(to top, rgba(20, 18, 16, .78), transparent); }
  .work-cap b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .work-cap i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .fact-label { font-size: .62rem; }
  .facts li { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .quote-card { margin: 16px 0 0 14px; }
  .btn { padding: 15px 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .brand-text b { font-size: .96rem; }
  .brand-text i { font-size: .6rem; letter-spacing: .1em; }
  .brand-mark { width: 36px; height: 36px; }
  .art-stack { aspect-ratio: 5 / 5.6; }
  .paper-note { font-size: .98rem; padding: 10px 14px 12px; }
  .hero-stats { margin-top: 30px; }
  .gallery-grid { grid-auto-rows: 132px; }
  .price-extra { flex-direction: column; gap: 6px; }
  .footer-bottom { font-size: .66rem; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .underline path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}

/* ---------- 21. Print ---------- */
@media print {
  .site-header, .scroll-progress, .marquee, .hero-bg, .lightbox, .contact::before { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .section { padding-block: 24px; break-inside: avoid; }
}
