/* =========================================================================
   МАТРОНА — ателье пошива и ремонта одежды (Североморск)
   Direction: винтажный будуар — hot magenta + black engraving + cream
   Type: Playfair Display (display) + Manrope (text)
   Signature: damask fleuron pattern + running-stitch rail
   ========================================================================= */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* brand */
  --magenta:      #e6178f;
  --magenta-hot:  #ff3db4;
  --magenta-deep: #a50f68;
  --wine:         #59093a;

  /* ink + paper */
  --ink:          #1a1016;
  --ink-2:        #241722;
  --ink-3:        #2f1e2b;
  --cream:        #fbf2f7;
  --cream-2:      #f3e5ee;
  --blush:        #f9cfe6;

  /* text roles */
  --on-dark:        var(--cream);
  --on-dark-dim:    rgba(251,242,247,.68);
  --on-dark-faint:  rgba(251,242,247,.42);
  --on-light:       var(--ink);
  --on-light-dim:   rgba(26,16,22,.64);
  --on-light-faint: rgba(26,16,22,.42);

  --line-dark:  rgba(251,242,247,.18);
  --line-light: rgba(26,16,22,.16);
  --line-pink:  rgba(230,23,143,.38);

  /* type */
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Manrope", "Segoe UI", system-ui, sans-serif;

  /* scale */
  --step--1: clamp(.78rem, .74rem + .2vw, .86rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-3:  clamp(2.4rem, 1.8rem + 2.8vw, 4rem);
  --step-4:  clamp(3.4rem, 2rem + 6vw, 8rem);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 68px);
  --radius: 3px;

  --ease: cubic-bezier(.22,.61,.36,1);

  /* damask fleuron on dark magenta */
  --damask-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1.3'%3E%3Cpath d='M75 32 C88 48 88 60 75 75 C62 60 62 48 75 32Z'/%3E%3Cpath d='M75 118 C88 102 88 90 75 75 C62 90 62 102 75 118Z'/%3E%3Cpath d='M32 75 C48 62 60 62 75 75 C60 88 48 88 32 75Z'/%3E%3Cpath d='M118 75 C102 62 90 62 75 75 C90 88 102 88 118 75Z'/%3E%3Ccircle cx='75' cy='75' r='3.4'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='150' cy='0' r='3'/%3E%3Ccircle cx='0' cy='150' r='3'/%3E%3Ccircle cx='150' cy='150' r='3'/%3E%3C/g%3E%3C/svg%3E");
  /* damask fleuron on cream */
  --damask-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='none' stroke='%231a1016' stroke-opacity='0.06' stroke-width='1.3'%3E%3Cpath d='M75 32 C88 48 88 60 75 75 C62 60 62 48 75 32Z'/%3E%3Cpath d='M75 118 C88 102 88 90 75 75 C62 90 62 102 75 118Z'/%3E%3Cpath d='M32 75 C48 62 60 62 75 75 C60 88 48 88 32 75Z'/%3E%3Cpath d='M118 75 C102 62 90 62 75 75 C90 88 102 88 118 75Z'/%3E%3Ccircle cx='75' cy='75' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- Base reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--magenta); color: #fff; }

/* --------------------------------------------------------------- Structure */
.wrap { width: min(100% - 2*var(--gut), var(--maxw)); margin-inline: auto; }

.section { position: relative; padding-block: clamp(72px, 9vw, 140px); }
.section--tight { padding-block: clamp(54px, 6vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px);
}

.h-serif { font-family: var(--serif); font-weight: 700; line-height: 1.06; letter-spacing: -.005em; }
.lede { color: var(--on-dark-dim); font-size: var(--step-1); font-weight: 300; line-height: 1.5; }

/* --------------------------------------------------------------- Buttons */
.btn {
  --bg: var(--ink); --fg: var(--cream); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.7em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  transition: transform .5s var(--ease), background-color .45s var(--ease),
              color .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--magenta-hot); outline-offset: 3px; }

/* primary — black pill like the brand mark, flips to magenta on hover */
.btn--gold { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); }
.btn--gold:hover { --bg: var(--magenta-hot); --fg: #fff; --bd: var(--magenta-hot); transform: translateY(-2px); }

/* ghost — inherits the section's text colour */
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; opacity: .9; }
.btn--ghost:hover { --bg: transparent; --fg: var(--magenta); --bd: var(--magenta); opacity: 1; transform: translateY(-2px); }

.btn__arrow { transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------- Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: clamp(14px, 1.6vw, 20px) var(--gut);
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease),
              padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-pink);
  padding-block: clamp(10px, 1.1vw, 13px);
}

.brand { display: inline-flex; align-items: center; gap: .6em; }
.brand__wordmark { display: inline-flex; flex-direction: column; gap: .1em; }
.brand__icon {
  height: clamp(38px, 3vw, 50px); width: auto;
  object-fit: contain; display: block;
}
.brand__mark {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem);
  letter-spacing: .12em; text-transform: uppercase; color: var(--cream);
}
.brand__sub { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--magenta); font-weight: 700; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav__list { display: flex; gap: clamp(18px, 2vw, 32px); list-style: none; }
.nav__link {
  font-size: var(--step--1); letter-spacing: .05em; color: var(--on-dark-dim);
  position: relative; padding-block: 4px; transition: color .35s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--magenta) 0 4px, transparent 4px 8px);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 70; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding-block: clamp(130px, 18vh, 200px) clamp(60px, 9vh, 110px);
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 78% 12%, var(--magenta-hot), transparent 45%),
    radial-gradient(120% 120% at 12% 100%, var(--wine), transparent 60%),
    linear-gradient(150deg, var(--magenta) 0%, var(--magenta-deep) 62%, var(--wine) 130%);
  overflow: hidden;
}
.hero::before { /* damask overlay */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--damask-light); background-size: 150px 150px;
  opacity: .8;
}
.hero::after { /* vignette so text sits on deeper tone */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 30% 40%, rgba(89,9,58,.42), transparent 60%);
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.hero__eyebrow { margin-bottom: clamp(20px, 3vw, 30px); color: var(--cream); }
.hero__eyebrow::before { background-image: repeating-linear-gradient(90deg, var(--cream) 0 4px, transparent 4px 8px); }

/* hero proposition heading */
.hero__title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.8rem); line-height: 1.02; letter-spacing: -.01em;
  color: var(--cream);
  text-shadow: 2px 2px 0 rgba(26,16,22,.22);
  margin-bottom: clamp(10px, 1.4vw, 16px);
}
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: var(--step-1); color: #fff; margin-bottom: clamp(22px, 3vw, 30px);
  display: flex; align-items: center; gap: .6em;
}
.hero__tagline::before { content: ""; width: clamp(24px,4vw,44px); height: 2px; background: var(--cream);
  background-image: repeating-linear-gradient(90deg, var(--cream) 0 5px, transparent 5px 10px); }

.hero__lede { max-width: 46ch; margin-bottom: clamp(28px, 4vw, 40px); color: rgba(255,255,255,.9); }

/* brand plate — real engraving/logo image */
.brand-plate {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink); background: var(--magenta);
  box-shadow: 0 40px 80px -36px rgba(26,10,22,.72);
}
.brand-plate::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(251,242,247,.5); z-index: 3; pointer-events: none; }
.brand-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* banner hero (full-bleed brand banner as the visual) — blended into the bg */
.hero--banner {
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
  color: var(--ink); /* content below sits on the light lower half */
  /* dark above the banner → banner tones → light below it (mirrors the banner's own gradient) */
  background: linear-gradient(180deg,
    #45071f 0%,
    #7e123c 13%,
    #ab2249 23%,
    #cf5b70 44%,
    #e2888a 56%,
    #eda096 72%,
    #f6bcac 100%);
}
.hero--banner::after { background: none; } /* drop the wine vignette so colours stay true */
.hero--banner .measure-rail { display: none; } /* rail would sit over the full-bleed banner */

/* full-bleed: banner spans the whole hero width, edges dissolved into the bg */
.hero-banner { width: 100%; }
.hero-banner img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 5%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 5%, #000 90%, transparent 100%);
}
.hero-below { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 30px); color: var(--ink); }
.hero-below .hero__lede { margin: 0; max-width: 60ch; color: rgba(26,16,22,.86); }
.hero-below .hero__cta { justify-content: center; }
.hero-below .hero__chips { justify-content: center; margin-top: 0; }
/* chips restyled for the light lower half */
.hero-below .chip { border-color: rgba(26,16,22,.28); color: rgba(26,16,22,.72); background: rgba(255,255,255,.42); }
.hero-below .chip b { color: var(--ink); }
.hero-below .chip .dot { background: var(--magenta-deep); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(30px, 4vw, 44px); }
.chip {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em; border: 1px solid rgba(255,255,255,.34); border-radius: 999px;
  font-size: var(--step--1); letter-spacing: .04em; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
}
.chip b { color: #fff; font-weight: 700; }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cream); }

/* Engraving card (replace with a real engraving/photo) */
.hero__aside { position: relative; align-self: center; justify-self: center; width: 100%; }
.needle-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 0 40px 80px -36px rgba(26,10,22,.7);
  overflow: hidden;
}
.needle-card::before { /* inner ornate frame */
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-pink);
  pointer-events: none; z-index: 3;
}
.needle-card::after { content: ""; position: absolute; inset: 0; background-image: var(--damask-ink); background-size: 150px 150px; opacity: .7; }
.needle-svg { position: absolute; inset: 0; margin: auto; z-index: 2; width: 80%; height: 74%; color: var(--ink); }
.needle-card__label {
  position: absolute; left: 22px; bottom: 18px; z-index: 4;
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-deep); font-weight: 600;
}
.needle-card__label b { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; text-transform: none; color: var(--ink); margin-top: 2px; }

/* left running-stitch rail (signature) */
.measure-rail { position: absolute; top: 0; bottom: 0; left: max(10px, calc(var(--gut) - 34px)); z-index: 3; width: 2px; display: none;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 8px, transparent 8px 16px); }

/* --------------------------------------------------------------- Marquee */
.marquee { border-block: 1px solid var(--line-pink); background: var(--ink); padding-block: 18px; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem); color: var(--cream); letter-spacing: .01em;
  padding-inline: clamp(22px, 3vw, 44px); white-space: nowrap;
  display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px);
}
.marquee__item::after { content: "✦"; color: var(--magenta-hot); font-size: .6em; font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Services (cream) */
.services { background: var(--cream); color: var(--on-light); }
.services::before { content: ""; position: absolute; inset: 0; background-image: var(--damask-ink); background-size: 150px 150px; opacity: .5; pointer-events: none; }
.services > .wrap { position: relative; z-index: 1; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 66px); }
.section-head h2 { font-size: var(--step-3); margin-top: 18px; color: var(--ink); }
.section-head p { margin-top: 18px; color: var(--on-light-dim); }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(26px, 3vw, 40px);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(26,16,22,.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
  overflow: hidden;
}
.svc:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 var(--magenta); }
.svc__num { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); color: var(--magenta); font-style: italic; }
.svc__icon { width: 46px; height: 46px; color: var(--ink); }
.svc__icon svg { width: 100%; height: 100%; }
.svc__title { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.svc__text { color: var(--on-light-dim); font-size: var(--step-0); font-weight: 400; }
.svc__meta { margin-top: auto; padding-top: 8px; font-size: var(--step--1); color: var(--magenta-deep); letter-spacing: .06em; font-weight: 600; }

/* --------------------------------------------------------------- Process (dark) */
.process { background: var(--ink-2); color: var(--on-dark); }
.proc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.proc-aside { position: sticky; top: 120px; }
.proc-aside .h-serif { font-size: var(--step-2); color: var(--cream); }
.proc-aside .lede { color: var(--on-dark-dim); }

.proc-grid { position: relative; display: grid; gap: clamp(28px, 3vw, 40px); }
.proc-thread {
  position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--magenta-hot) 0 7px, transparent 7px 15px);
  transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease);
}
.proc-grid.is-in .proc-thread { transform: scaleY(1); }
.proc-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.proc-step__knot {
  position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--magenta); background: var(--ink);
  font-family: var(--serif); font-weight: 700; font-style: italic; color: var(--magenta-hot); font-size: 1.1rem;
}
.proc-step__body { padding-top: 4px; }
.proc-step__title { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); color: var(--cream); margin-bottom: 8px; }
.proc-step__text { color: var(--on-dark-dim); font-weight: 300; max-width: 54ch; }

/* --------------------------------------------------------------- Works (blush) */
.works { background: var(--cream-2); color: var(--on-light); }
.works__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: clamp(34px, 4vw, 52px); }
.works__head h2 { color: var(--ink); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.work { position: relative; overflow: hidden; border-radius: var(--radius); border: 1.5px solid var(--ink); aspect-ratio: 1 / 1; isolation: isolate; }
.work__img, .work__fabric { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1s var(--ease); }
.work:hover .work__img, .work:hover .work__fabric { transform: scale(1.05); }
.work__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,6,16,.85) 0%, rgba(20,6,16,.15) 45%, transparent 74%); }
.work__cap { position: absolute; left: clamp(16px,2vw,24px); right: 16px; bottom: clamp(14px,2vw,20px); z-index: 2; color: #fff; }
.work__cap .k { display: block; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--magenta-hot); font-weight: 700; }
.work__cap .t { display: block; font-family: var(--serif); font-weight: 700; font-size: var(--step-1); margin-top: 4px; }

/* fabric swatches — placeholders, swap for real photos */
.fab-silk   { background: radial-gradient(120% 100% at 20% 10%, #ff56c1, #b0106e 62%, #6a0942); }
.fab-velvet { background: radial-gradient(120% 100% at 80% 10%, #7a1250, #2a0a1c 65%, #150810); }
.fab-lace   { background: linear-gradient(150deg, #f6d9e9, #e7b7d4), repeating-linear-gradient(45deg, rgba(26,16,22,.05) 0 6px, transparent 6px 12px); }
.fab-wool   { background: linear-gradient(160deg, #3a2432, #201420), repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 4px); }
.fab-linen  { background: linear-gradient(160deg, #d9a9c6, #a86e90); }
.fab-drape  { background: radial-gradient(120% 120% at 30% 0%, #e6178f, #7a0f4c 66%, #3a0824); }

/* --------------------------------------------------------------- About (cream) */
.about { background: var(--cream); color: var(--on-light); }
.about .eyebrow, .about .eyebrow::before { color: var(--magenta); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 76px); align-items: center; }
.about__title { font-family: var(--serif); font-weight: 800; font-size: var(--step-3); color: var(--ink); margin: 16px 0 24px; line-height: 1.08; }
.about__p { color: var(--on-light-dim); margin-bottom: 18px; max-width: 52ch; }
.about__p:last-of-type { margin-bottom: 0; }
.about__sign { margin-top: 30px; font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 1.4rem; color: var(--magenta-deep); }
.about__sign span { display: block; font-family: var(--sans); font-style: normal; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--on-light-dim); margin-top: 6px; }

.about__portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--magenta);
}
.about__portrait::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(251,242,247,.55); z-index: 3; pointer-events: none; }
.about__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px,2vw,28px); margin-top: clamp(48px,6vw,80px); border-top: 1.5px solid var(--ink); padding-top: clamp(36px,4vw,54px); }
.stat__n { font-family: var(--serif); font-weight: 800; font-size: var(--step-3); color: var(--magenta-deep); line-height: 1; }
.stat__l { margin-top: 8px; font-size: var(--step--1); letter-spacing: .06em; color: var(--on-light-dim); text-transform: uppercase; }

/* --------------------------------------------------------------- Reviews (magenta) */
.reviews { background: var(--magenta); color: #fff; }
.reviews::before { content: ""; position: absolute; inset: 0; background-image: var(--damask-light); background-size: 150px 150px; opacity: .7; pointer-events: none; }
.reviews > .wrap { position: relative; z-index: 1; }
.reviews .eyebrow, .reviews .eyebrow::before { color: #fff; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px,4vw,44px); }
.reviews__head h2 { color: #fff; }

/* Yandex rating badge */
.yreview {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 rgba(26,16,22,.28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.yreview:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 rgba(26,16,22,.32); }
.yreview__score { display: inline-flex; align-items: center; gap: 4px; font-family: var(--serif); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--ink); }
.yreview__star { color: #f4b400; font-size: 1.2rem; }
.yreview__meta { font-size: .72rem; letter-spacing: .04em; line-height: 1.35; color: var(--on-light-dim); text-transform: uppercase; font-weight: 600; }

/* review cards (curated from Yandex) */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,26px); align-items: stretch; }
.rev {
  padding: clamp(26px,3vw,36px); border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--cream); color: var(--ink);
  box-shadow: 7px 7px 0 rgba(26,16,22,.28);
  display: flex; flex-direction: column; gap: 16px;
}
.rev__stars { color: #f4b400; font-size: 1.05rem; letter-spacing: .12em; }
.rev__text { color: var(--ink); font-weight: 400; font-size: var(--step-0); font-family: var(--serif); font-style: italic; line-height: 1.5; }
.rev__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.rev__who .av { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.rev__who .nm { font-weight: 700; color: var(--ink); font-size: var(--step--1); letter-spacing: .02em; }
.rev__who .rl { font-size: .72rem; color: var(--on-light-dim); letter-spacing: .04em; text-transform: uppercase; }

.reviews__foot { text-align: center; margin-top: clamp(30px,4vw,44px); }
.reviews__more {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; border-bottom: 1px dashed rgba(255,255,255,.6); padding-bottom: 3px;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.reviews__more:hover { color: var(--cream); border-color: #fff; }

/* --------------------------------------------------------------- Contact (dark) */
.contact { background: var(--ink-2); color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,72px); align-items: start; }
.contact__title { font-family: var(--serif); font-weight: 800; font-size: var(--step-3); color: var(--cream); margin: 16px 0 20px; }
.contact__lede { color: var(--on-dark-dim); font-weight: 300; margin-bottom: 34px; max-width: 44ch; }

.info-list { list-style: none; display: grid; gap: 4px; }
.info { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-dark); align-items: start; }
.info:last-child { border-bottom: 1px solid var(--line-dark); }
.info__ico { color: var(--magenta-hot); margin-top: 3px; }
.info__ico svg { width: 20px; height: 20px; }
.info__k { display: block; margin-bottom: 3px; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-hot); font-weight: 600; }
.info__v { display: block; color: var(--cream); font-weight: 300; }
.info__v a:hover { color: var(--magenta-hot); }

.form { padding: clamp(24px,3vw,38px); border: 1.5px solid var(--line-pink); border-radius: var(--radius); background: rgba(255,255,255,.03); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; color: var(--cream); font: inherit; font-size: var(--step-0);
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta-hot); background: rgba(0,0,0,.4); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--magenta-hot) 50%), linear-gradient(135deg, var(--magenta-hot) 50%, transparent 50%); background-position: right 1.1em top 1.35em, right .8em top 1.35em; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field option { color: #111; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: var(--step--1); color: var(--on-dark-faint); }
.form__ok { display: none; padding: 14px 16px; border: 1px solid var(--magenta-hot); border-radius: var(--radius); background: rgba(255,61,180,.14); color: var(--magenta-hot); font-size: var(--step--1); }
.form.is-sent .form__ok { display: block; }

/* --------------------------------------------------------------- Footer */
.footer { background: var(--ink); border-top: 1px solid var(--line-pink); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px,4vw,60px); padding-block: clamp(50px,6vw,80px); }
.footer__brand .brand__mark { font-size: 2rem; }
.footer__tag { color: var(--on-dark-dim); font-weight: 300; margin-top: 16px; max-width: 32ch; }
.footer__col h4 { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta-hot); margin-bottom: 18px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a, .footer__col li { color: var(--on-dark-dim); font-weight: 300; }
.footer__col a:hover { color: var(--cream); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: var(--step--1); color: var(--on-dark-faint); }
.footer__bottom a:hover { color: var(--magenta-hot); }

/* --------------------------------------------------------------- Reveal anim */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* ------------------------------------------------------------- Responsive */
@media (min-width: 1100px) { .measure-rail { display: block; } }

@media (max-width: 980px) {
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: color-mix(in srgb, var(--ink) 97%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: center; gap: 22px; }
  .nav__link { font-size: 1.2rem; color: var(--cream); }
  .nav__cta { margin-top: 8px; }
  .nav-toggle { display: block; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { max-width: 360px; margin-top: 8px; }
  .proc-cols { grid-template-columns: 1fr; }
  .proc-aside { position: static; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .yreview { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .works-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------- 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; }
  .marquee__track { animation: none; }
  .proc-thread { transform: scaleY(1); }
}
