/* Brisvon — общее оформление сайта. Сначала телефон, затем шире. */
/* рукописный шрифт для слов-украшений над заголовками (Allura, файл лежит на сайте) */
@font-face { font-family: "Allura"; src: url("/assets/fonts/allura-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --cream: #F4EEE6;
  --paper: #FBF8F3;
  --ink: #2a2622;
  --muted: #6a6159;
  --copper: #B56F45;
  --copper-deep: #8F5230;
  --copper-dark: #764224;
  --copper-light: #CD9068;     /* медь посветлее — для текста на тёмно-синем */
  --line: #E2D7C9;
  --dark: #142238;             /* тёмно-синий из логотипа: шапка, подвал, тёмная полоса */
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --script: "Allura", "Segoe Script", "Brush Script MT", cursive;
  --numeral: #EBD9C8;          /* бледная медь — крупные номера шагов */
  --gutter: clamp(18px, 5vw, 44px);
  --section: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(42px, 11vw, 82px); }
h2 { font-size: clamp(31px, 6.4vw, 50px); }
h3 { font-size: 23px; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 4px; background: var(--ink); color: var(--cream); transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow { margin-bottom: 14px; color: var(--copper-deep); font: 600 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--light { color: #E2B594; }
h1 .eyebrow { display: block; }      /* строка «услуга + город» внутри главного заголовка страницы */
.lead { max-width: 34em; color: #453f39; font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 1.5px solid var(--copper-deep); border-radius: 999px; background: var(--copper-deep); color: #fff; font: 600 16px/1.15 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.btn:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--copper-deep); font-weight: 600; font-size: 15.5px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link::after { content: "→"; transition: transform .2s; }
.link:hover::after { transform: translateX(3px); }

.tag { display: inline-block; padding: 7px 10px 6px; border-radius: 4px; background: var(--copper-deep); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.tag--plain { background: rgba(36, 32, 28, .76); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 34, 56, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--cream); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 30px; }
.brand--stacked img { height: 92px; }
.top__nav { display: none; gap: 28px; font-size: 15px; }
.top__nav a { color: var(--cream); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.top__nav a:hover, .top__nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.top__nav .top__phone { display: none; color: var(--copper-light); font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .brand img { height: 34px; } .brand--stacked img { height: 92px; } }
@media (min-width: 900px) { .top__nav { display: flex; } }
@media (min-width: 1080px) { .top__nav .top__phone { display: inline; } }

/* первый экран */
.hero { padding-top: clamp(34px, 7vw, 76px); }
.hero__grid, .project, .band__grid, .samples, .foot__grid { grid-template-columns: minmax(0, 1fr); }
.hero__grid { display: grid; gap: clamp(30px, 6vw, 64px); align-items: center; }
.hero h1 em, .hero__tagline em { font-style: italic; color: var(--copper-deep); }
/* первый экран как у texturaltrace: фото по центру, «Los Angeles» рукописным по центру заходит на низ фото,
   под ним строка заглавными. В заголовке сначала строка заглавными (для Google), на экране она показана под городом. */
.hero__stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__photo { width: clamp(220px, 64vw, 360px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: #d8cfc3; }
.hero__title { position: relative; z-index: 1; display: flex; flex-direction: column-reverse; align-items: center; margin-top: -.42em; font-size: clamp(76px, 21vw, 168px); line-height: 1; }
.hero__city { display: block; color: var(--dark); font: 400 1em/1 var(--script); letter-spacing: 0; white-space: nowrap; }
.hero__kicker { display: block; margin-top: 10px; color: var(--copper-deep); font: 600 clamp(11.5px, 1.4vw, 14px)/1.3 var(--sans); letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; }
.hero__tagline { margin-top: clamp(26px, 4vw, 40px); color: var(--ink); font: 500 clamp(28px, 5.4vw, 44px)/1.12 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.hero .lead { margin: 16px auto 0; }
.hero .actions { justify-content: center; }
.hero .actions { margin-top: 30px; }
.areas { margin-top: 26px; color: var(--muted); font-size: 14.5px; letter-spacing: .04em; }
.areas::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--copper); }
.shot { position: relative; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #d8cfc3; }
.shot .tag { position: absolute; top: 12px; left: 12px; }
.shot figcaption, .compare figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero__media { max-width: 470px; justify-self: end; width: 100%; }
}

.path { display: grid; gap: 0; margin-top: clamp(40px, 7vw, 76px); border-top: 1px solid var(--line); counter-reset: path; }
.path li { counter-increment: path; display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.path li::before { content: counter(path, decimal-leading-zero); flex: none; width: 1.5em; color: var(--copper); font: 400 34px/1 var(--serif); opacity: .55; }
.path b { font-weight: 650; }
@media (min-width: 760px) {
  .path { grid-template-columns: repeat(3, 1fr); gap: 28px; border-bottom: 1px solid var(--line); }
  .path li { border-bottom: 0; padding: 22px 0; }
}

/* разделы */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section__head { max-width: 46em; margin-bottom: clamp(30px, 5vw, 52px); }
.section__intro { margin-top: 16px; color: #453f39; font-size: 18px; }
/* слово рукописным шрифтом над заголовком: только украшение (aria-hidden) */
.script { display: block; margin: 0 0 .1em; color: var(--copper); font: 400 clamp(60px, 11vw, 116px)/.95 var(--script); letter-spacing: 0; white-space: nowrap; pointer-events: none; user-select: none; }
.script--light { color: var(--copper-light); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__intro { margin-inline: auto; max-width: 38em; }
.section__head--center + .faq, .section__head--center ~ .faq { margin-inline: auto; }

/* покрытия */
.finishes { display: grid; gap: 14px; }
.finish { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.finish__tones { display: flex; gap: 6px; }
.finish__tones i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(42, 38, 34, .14); }
.finish p { color: #453f39; font-size: 15.5px; line-height: 1.5; }
.finish dl { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.finish dl div { display: grid; grid-template-columns: 6.6em 1fr; gap: 10px; }
.finish dt { color: var(--muted); }
.finish .link { align-self: flex-start; margin-top: 4px; }
.fine { margin-top: 22px; max-width: 60em; color: var(--muted); font-size: 14px; line-height: 1.5; }
.swipe { margin-top: 18px; color: var(--copper-deep); font-weight: 600; font-size: 14px; }
.swipe::after { content: " →"; }
/* на телефоне покрытия листаются вбок, чтобы страница не была слишком длинной */
@media (max-width: 619px) {
  .finishes, .works { grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .finishes::-webkit-scrollbar, .works::-webkit-scrollbar { display: none; }
  .finish, .work { scroll-snap-align: start; }
  .works { grid-auto-columns: 78%; }
}

/* работы мастеров */
.works { display: grid; gap: 22px; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #d8cfc3; }
.work figcaption { display: grid; gap: 4px; margin-top: 12px; font-size: 16px; line-height: 1.35; }
.work figcaption b { font-weight: 600; }
.work figcaption span { color: var(--copper-deep); font: 600 11.5px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
@media (min-width: 620px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .works { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 620px) { .finishes { grid-template-columns: repeat(2, 1fr); } .swipe { display: none; } }
@media (min-width: 1080px) { .finishes { grid-template-columns: repeat(4, 1fr); } }

/* как мы работаем */
.steps { display: grid; gap: clamp(36px, 5vw, 56px) clamp(30px, 4vw, 56px); counter-reset: step; }
/* номер шага стоит над заголовком и не налезает на него */
.steps li { counter-increment: step; position: relative; padding: clamp(64px, 7vw, 84px) 0 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--numeral); font: 400 clamp(52px, 6vw, 68px)/.8 var(--serif); letter-spacing: -.04em; pointer-events: none; }
.steps h3, .steps p { position: relative; }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 8px; color: #453f39; font-size: 16px; }
.section__head--center ~ .note { display: table; margin-inline: auto; }
.note { display: inline-block; margin-top: 34px; padding: 10px 16px; border: 1px solid var(--copper); border-radius: 999px; color: var(--copper-deep); font-weight: 600; font-size: 15px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* объект */
.project { display: grid; gap: 24px clamp(28px, 5vw, 60px); align-items: start; }
.project__text p + p { margin-top: 14px; }
.project__text p { color: #453f39; }
.facts { display: grid; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15.5px; }
.facts div { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
@media (min-width: 900px) {
  .project { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media head" "media text"; }
  .project__head { grid-area: head; padding-top: clamp(8px, 4vw, 56px); }
  .project__media { grid-area: media; }
  .project__text { grid-area: text; }
}

/* ползунок «до / после» */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #d8cfc3; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 12px; pointer-events: none; }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(36, 32, 28, .16); pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 2px solid #fff; border-radius: 50%; background: var(--copper-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 14px rgba(36, 32, 28, .32); transition: transform .15s; }
.ba.is-dragging .ba__handle::after { transform: scale(1.08); }
.ba__range { position: absolute; left: 50%; bottom: 8px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba__range:focus-visible ~ .ba__handle::after { outline: 3px solid #fff; outline-offset: 3px; }

/* вход в примерку */
.band { padding-block: var(--section); background: var(--dark); color: var(--cream); }
.band__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.band p { color: #d9cfc3; }
.band h2 + p { margin-top: 16px; max-width: 30em; font-size: 18px; }
.band .btn { margin-top: 28px; }
.band__steps { display: grid; gap: 0; counter-reset: band; border-top: 1px solid rgba(244, 238, 230, .16); }
.band__steps li { counter-increment: band; display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(244, 238, 230, .16); color: #e9e1d6; }
.band__steps li::before { content: counter(band); color: var(--copper); font: 500 28px/1 var(--serif); }
.band__steps b { color: #fff; font-weight: 650; }
.band__note { margin-top: 18px; font-size: 14.5px; }
@media (min-width: 900px) { .band__grid { grid-template-columns: 1.1fr .9fr; } }

/* заявка */
.samples { display: grid; gap: clamp(28px, 5vw, 60px); align-items: start; }
.samples__text h2 + p { margin-top: 16px; color: #453f39; font-size: 18px; }
.textus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.textus span { color: var(--muted); font-size: 15px; }
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }
.pros { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--copper); background: var(--paper); font-size: 15.5px; }
.form { display: grid; gap: 16px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: 15px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form textarea, .form select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfc3b3; border-radius: 4px; background: #fff; font-size: 16px; font-weight: 400; }
.form textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--copper-deep); box-shadow: 0 0 0 3px rgba(181, 111, 69, .22); }
.form__fine { color: var(--muted); font-size: 13px; line-height: 1.45; }
.form__status { min-height: 1.4em; font-weight: 600; font-size: 15px; color: #2f6b3f; }
.form__status.is-error { color: #a3341f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 900px) { .samples { grid-template-columns: 1fr 1fr; } }

/* вопросы и ответы (главная и страница примерки) */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font: 500 20px/1.3 var(--serif); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; color: var(--copper-deep); font: 400 26px/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 46em; padding-bottom: 20px; color: #453f39; }
.faq a { color: var(--copper-deep); font-weight: 600; }

/* подвал */
.foot { padding-block: 52px 36px; background: var(--dark); color: var(--cream); font-size: 15px; }
.foot__grid { display: grid; gap: 28px; }
.foot .brand { margin-bottom: 20px; }
.foot p { max-width: 34em; color: #d6d1c8; }
.foot nav { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 22px; }
.foot nav a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(244, 238, 230, .35); text-underline-offset: 4px; }
.foot nav a:hover { text-decoration-color: var(--copper); }
.foot__fine { max-width: none !important; color: #98a1b0 !important; font-size: 13px; line-height: 1.5; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.1fr 1fr; } .foot__fine { grid-column: 1 / -1; } }

/* мягкое появление при прокрутке: скрипт добавляет класс, когда блок подходит к экрану; заранее ничего не прячется */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal--in { animation: rise .7s ease both; }

/* простая страница (например «не найдено») */
.simple { min-height: 62vh; display: grid; align-content: center; gap: 18px; padding-block: 60px; }
.simple .actions { margin-top: 10px; }
