/* МЕРКА — концепт-сайт швейного производства. Чистый CSS, без скриптов. */
:root {
  --cr: #FFF3E6;
  --k: #141414;
  --rd: #FF4D2E;
  --rd-dark: #E43A1C;
  --pk: #FFC6D6;
  --li: #CDBDFF;
  --bt: #FFE7A3;
  --yl: #FFE14D;
  --wh: #FFFFFF;
  --mu: rgba(20, 20, 20, .62);
  --mu2: rgba(20, 20, 20, .74);
  --ub: "Unbounded", "Arial Black", sans-serif;
  --mn: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --r-xl: 40px;
  --r-l: 36px;
  --r-m: 28px;
  --gut: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cr); color: var(--k); font: 500 17px/1.5 var(--mn); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.zone { padding-top: 120px; }
.block { border-radius: var(--r-xl); padding: 72px 64px; }

/* типографика */
.h1 { font: 700 60px/1.06 var(--ub); letter-spacing: -.04em; }
.h2 { font: 700 52px/1.06 var(--ub); letter-spacing: -.04em; }
.h3 { font: 700 26px/1.12 var(--ub); letter-spacing: -.03em; }
.lead { font-size: 17px; color: var(--mu); max-width: 400px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--wh); font-weight: 700; font-size: 14px; line-height: 1.2; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rd); }
.chip--dark { background: #2A2A2A; color: var(--wh); }
.chip--glass { background: rgba(255, 255, 255, .2); color: var(--wh); }
.chip--glass::before { background: var(--yl); }
.pill { display: inline-block; padding: 8px 14px; border-radius: 99px; background: var(--wh); font-weight: 800; font-size: 14px; line-height: 1.2; white-space: nowrap; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding: 0 24px; margin-bottom: 40px; }
.head__l { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 880px; flex: 1 1 auto; }
.head .lead { flex: none; }
.head--wide .head__l { max-width: 960px; }
.head--wide .lead { max-width: 300px; }
.head--flush { padding: 0; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 19px 28px; border-radius: 99px; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rd); color: var(--wh); }
.btn__dot .i { width: 16px; height: 16px; }
.btn--dark { background: var(--k); color: var(--wh); }
.btn--light { background: var(--wh); color: var(--k); }
.btn--red { background: var(--rd); color: var(--wh); }
.btn--red:hover { background: var(--rd-dark); }
.btn--red .btn__dot { background: var(--wh); color: var(--rd); }
.btn--lineW { color: var(--wh); border-color: rgba(255, 255, 255, .6); }
.btn--lineW:hover { background: rgba(255, 255, 255, .12); }
.btn--yl { background: var(--yl); color: var(--k); padding: 14px 20px; font-size: 15px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 243, 230, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 48px; max-width: 1440px; margin: 0 auto; }
.logo { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; }
.logo b { font: 700 28px/1 var(--ub); letter-spacing: -.035em; }
.logo i { display: block; height: 2px; width: 96px; background: repeating-linear-gradient(90deg, var(--rd) 0 8px, transparent 8px 12px); }
.nav { display: flex; gap: 4px; padding: 6px; border-radius: 99px; background: var(--wh); }
.nav a { padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
.nav a:hover { background: var(--cr); }
.nav a.is-on { background: var(--k); color: var(--wh); }
.top__r { display: flex; align-items: center; gap: 16px; }
.top__tel { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.top .btn { padding: 13px 20px; font-size: 14px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--k); color: var(--wh); place-items: center; }
.burger .i { width: 22px; height: 22px; }

.menu { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; gap: 8px; padding: 20px; background: var(--rd); color: var(--wh); overflow-y: auto; }
.menu:target { display: flex; }
.menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.menu__top .logo i { background: repeating-linear-gradient(90deg, var(--yl) 0 8px, transparent 8px 12px); }
.menu__x { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wh); color: var(--k); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { padding: 14px 0; font: 700 28px/1.15 var(--ub); letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.menu__foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.menu__foot a { font-weight: 800; font-size: 20px; text-decoration: none; }

/* первый экран */
.hero { display: grid; grid-template-columns: 1fr 440px; gap: 16px; min-height: 700px; }
.hero__main { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 52px 56px; border-radius: var(--r-xl); background: var(--rd); color: var(--wh); }
.hero__top { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__top .chip { background: rgba(255, 255, 255, .2); color: var(--wh); }
.hero__top .chip::before { display: none; }
.hero .h1 { max-width: 760px; }
.hero__lead { max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__side { display: grid; grid-template-rows: 1fr 250px; gap: 16px; }
.hero__row { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.tile > img { width: 100%; height: 100%; object-fit: cover; }
.tile--pk { background: var(--pk); }
.tile--li { background: var(--li); }
.tile--bt { background: var(--bt); }
.sticker { position: absolute; display: grid; place-content: center; text-align: center; width: 124px; height: 124px; border-radius: 50%; background: var(--yl); transform: rotate(12deg); z-index: 1; }
.sticker b { font: 700 24px/1 var(--ub); letter-spacing: -.04em; }
.sticker span { font-weight: 700; font-size: 12px; line-height: 1.25; max-width: 96px; }
.hero .sticker { top: 24px; right: 24px; }
.sample { display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border-radius: var(--r-xl); background: var(--k); color: var(--wh); }
.sample .i { width: 28px; height: 28px; color: var(--yl); }
.sample b { display: block; font: 700 40px/1 var(--ub); letter-spacing: -.04em; margin-bottom: 6px; }
.sample span { font-weight: 600; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .7); }

.marquee { overflow: hidden; padding: 34px 0; }
.marquee__track { display: flex; width: max-content; gap: 28px; animation: run 40s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; font: 700 22px/1.2 var(--ub); letter-spacing: -.02em; white-space: nowrap; }
.marquee__track span::after { content: "✳"; color: var(--rd); font-size: 22px; }
@keyframes run { to { transform: translateX(-50%); } }

/* кому шьём */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 16px; }
.who { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-l); }
.who img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r-m); }
.who__t { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 22px; }
.who__n { font: 700 14px/1 var(--ub); color: var(--rd); }
.who p { font-size: 16px; color: rgba(20, 20, 20, .72); }
.bg-pk { background: var(--pk); }
.bg-li { background: var(--li); }
.bg-bt { background: var(--bt); }
.filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding: 22px 32px; border-radius: 99px; background: var(--k); color: var(--wh); font-size: 18px; line-height: 1.3; }
.filter b { font-weight: 800; }
.filter span { color: rgba(255, 255, 255, .7); }
.filter .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yl); color: var(--k); flex: none; }

/* каталог */
.cat { display: flex; flex-direction: column; gap: 14px; }
.cat .tile { height: 340px; border-radius: 32px; }
.cat .tile .pill, .work .tile .tags { position: absolute; left: 16px; top: 16px; }
.cat .tile .pill { background: var(--rd); color: var(--wh); }
.cat h3, .work h3 { font: 700 19px/1.2 var(--ub); letter-spacing: -.025em; padding: 0 8px; }
.cat p, .work p { font-size: 14px; color: var(--mu); padding: 0 8px; margin-top: -10px; }

/* как работаем */
.steps-b { background: var(--k); color: var(--wh); }
.steps-b .lead { color: rgba(255, 255, 255, .65); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 14px; min-height: 270px; padding: 28px; border-radius: var(--r-m); background: #232323; }
.step__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; }
.step__n { font: 700 40px/1 var(--ub); letter-spacing: -.05em; color: var(--rd); }
.step__t { background: var(--yl); color: var(--k); }
.step h3 { font: 700 22px/1.15 var(--ub); letter-spacing: -.03em; }
.step p { font-size: 15px; color: rgba(255, 255, 255, .65); }
.step--hot { background: var(--rd); }
.step--hot .step__n { color: var(--wh); }
.step--hot .step__t { background: var(--wh); }
.step--hot p { color: rgba(255, 255, 255, .9); }

/* качество */
.qc { display: grid; grid-template-columns: 620px 1fr; gap: 16px; }
.qc .tile { height: 680px; }
.qc .sticker { top: 28px; right: 28px; }
.qc__t { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0 0 24px; }
.qc__t .h2 { max-width: 640px; }
.qc__lead { font-size: 18px; color: var(--mu); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 20px; width: 100%; padding: 14px; border-radius: var(--r-m); background: var(--wh); }
.check__m { display: grid; place-items: center; width: 132px; height: 88px; flex: none; border-radius: 20px; font: 700 24px/1 var(--ub); letter-spacing: -.04em; }
.check h3 { font: 700 19px/1.2 var(--ub); letter-spacing: -.025em; margin-bottom: 4px; }
.check p { font-size: 15px; color: var(--mu); }
.promise { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 24px; border-radius: 99px; background: var(--k); color: var(--wh); font-weight: 700; font-size: 15px; line-height: 1.4; }
.promise .i { width: 22px; height: 22px; color: var(--yl); }

/* цены */
.price-b { position: relative; background: var(--li); }
.price-b .sticker { top: 64px; left: 700px; transform: rotate(-10deg); }
.price-b .h2 { max-width: 520px; }
.table-w { border-radius: 32px; background: var(--wh); padding: 8px 0; overflow: hidden; }
.price { width: 100%; border-collapse: collapse; }
.price th, .price td { padding: 20px 32px; text-align: right; border-bottom: 1px solid rgba(20, 20, 20, .1); white-space: nowrap; }
.price tr:last-child td { border-bottom: 0; }
.price th { padding-top: 18px; padding-bottom: 18px; font-weight: 700; font-size: 13px; color: var(--mu); }
.price th:first-child, .price td:first-child { text-align: left; width: 100%; }
.price td { font: 500 18px/1.2 var(--ub); letter-spacing: -.025em; color: rgba(20, 20, 20, .8); }
.price td:first-child { font-weight: 600; font-size: 19px; color: var(--k); white-space: normal; }
.price td.best span { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--bt); font-weight: 700; color: var(--k); }
.price-b__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; }
.price-b__foot p { max-width: 640px; font-weight: 600; font-size: 16px; color: rgba(20, 20, 20, .72); }

/* работы */
.work { display: flex; flex-direction: column; gap: 16px; }
.work .tile { height: 400px; border-radius: var(--r-l); }
.work .tile .tags { top: auto; bottom: 16px; display: flex; gap: 8px; }
.work h3 { font-size: 22px; }
.work p { font-size: 15px; }

/* отзывы и письма */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rev { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 380px; padding: 36px; border-radius: var(--r-l); background: var(--wh); }
.rev__who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.rev__who img { width: 64px; height: 64px; border-radius: 50%; }
.rev__who div { flex: 1; }
.rev__who b { display: block; font: 700 18px/1.2 var(--ub); letter-spacing: -.02em; }
.rev__who span { font-size: 14px; color: var(--mu); line-height: 1.3; }
.rev__who::after { content: "“"; font: 700 72px/.8 var(--ub); color: var(--rd); align-self: flex-start; }
.rev blockquote { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.letters-b { margin-top: 16px; background: var(--bt); padding: 56px 56px 72px; }
.letters-b__h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.letters-b__h .h2 { font-size: 34px; letter-spacing: -.035em; }
.letters-b__h p { font-weight: 700; font-size: 15px; color: rgba(20, 20, 20, .72); }
.letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 0 12px; }
.letters > a { display: block; text-decoration: none; transition: transform .2s ease; }
.letters > a:nth-child(1) { transform: rotate(-4deg) translateY(18px); }
.letters > a:nth-child(2) { transform: rotate(3deg); }
.letters > a:nth-child(3) { transform: rotate(-2deg) translateY(14px); }
.letters > a:nth-child(4) { transform: rotate(4deg); }
.letters > a:hover { transform: rotate(0) translateY(-6px) scale(1.03); }

.letter { --c: #2F7D6D; display: flex; flex-direction: column; gap: .9em; aspect-ratio: 210 / 290; padding: 2.4em 2.2em 2em; background: var(--wh); border-radius: 4px; box-shadow: 0 14px 30px rgba(20, 20, 20, .15); font-size: 8.5px; line-height: 1.55; color: rgba(20, 20, 20, .8); text-align: left; }
.letter__h { display: flex; align-items: center; gap: .9em; padding-bottom: 1.1em; border-bottom: 1.5px solid var(--c); color: var(--c); font-weight: 800; line-height: 1.25; }
.letter__h::before { content: ""; width: 1.9em; height: 1.9em; flex: none; border-radius: .45em; background: var(--c); }
.letter__no { font-size: .82em; color: var(--mu); }
.letter__t { font: 700 1.3em/1.2 var(--ub); color: var(--k); }
.letter__sign { position: relative; margin-top: auto; height: 7.8em; }
.letter__sign svg { width: 8.2em; height: 3em; stroke: #1F2A6B; stroke-width: 1.4; fill: none; }
.letter__sign b { display: block; margin-top: .6em; color: var(--k); font-weight: 800; font-size: .95em; }
.letter__sign span { font-size: .82em; color: var(--mu); }
.letter__stamp { position: absolute; right: 1.2em; top: 0; width: 7.8em; height: 7.8em; border-radius: 50%; border: 2px solid var(--c); opacity: .7; transform: rotate(-14deg); }
.letter__stamp::after { content: ""; position: absolute; inset: .8em; border-radius: 50%; border: 1px solid var(--c); }
.letter--2 { --c: #3B4BD8; }
.letter--3 { --c: #6B7A2E; }
.letter--4 { --c: #B5462B; }

.lb { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 24px; background: rgba(20, 20, 20, .72); }
.lb:target { display: grid; }
.lb__bg { position: absolute; inset: 0; }
.lb .letter { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); font-size: 15px; overflow: auto; }
.lb__x { position: fixed; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wh); color: var(--k); }

/* производство */
.prod-b { display: grid; grid-template-columns: 1fr 620px; gap: 48px; background: var(--rd); color: var(--wh); padding: 64px; }
.prod-b__t { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.prod-b .h2 { font-size: 48px; max-width: 600px; }
.prod-b p { max-width: 540px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.prod-b p + p { font-size: 16px; color: rgba(255, 255, 255, .75); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; padding: 10px 0; }
.stats div { padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .15); }
.stats b { display: block; font: 700 24px/1.1 var(--ub); letter-spacing: -.04em; }
.stats span { font-size: 14px; color: rgba(255, 255, 255, .8); }
.photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 380px 250px; gap: 16px; }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-m); }
.photos img:first-child { grid-column: 1 / -1; }

/* гарантии */
.gars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gar { display: flex; flex-direction: column; gap: 72px; min-height: 300px; padding: 28px; border-radius: var(--r-l); background: var(--wh); }
.gar__top { display: flex; justify-content: space-between; align-items: center; }
.gar__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; }
.gar__ico .i { width: 24px; height: 24px; }
.gar__top span { font-weight: 800; font-size: 13px; color: var(--mu); }
.gar h3 { margin-bottom: 10px; }
.gar p { font-size: 15px; color: var(--mu); }

/* вопросы */
.faq { display: grid; grid-template-columns: 440px 1fr; gap: 48px; }
.faq__l { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-left: 24px; }
.ask { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border-radius: 32px; background: var(--k); color: var(--wh); }
.ask h3 { font-size: 22px; }
.ask p { font-size: 15px; color: rgba(255, 255, 255, .7); }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r-m); background: rgba(255, 255, 255, .65); transition: background-color .15s; }
.faq details[open] { background: var(--wh); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; cursor: pointer; list-style: none; font: 600 18px/1.3 var(--ub); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--cr); font: 400 22px/1 var(--mn); transition: transform .2s, background-color .2s, color .2s; }
.faq details[open] summary::after { content: "−"; background: var(--rd); color: var(--wh); }
.faq details p { padding: 0 28px 24px; max-width: 720px; font-size: 16px; color: rgba(20, 20, 20, .72); }

/* заявка */
.form-b { display: grid; grid-template-columns: 1fr 600px; gap: 48px; background: var(--pk); padding: 64px; }
.form-b__t { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.form-b .h2 { font-size: 48px; max-width: 560px; }
.form-b__t > p { max-width: 500px; font-size: 18px; color: rgba(20, 20, 20, .72); }
.contacts { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.contacts a { display: inline-flex; align-items: center; gap: 12px; font: 600 18px/1.2 var(--ub); letter-spacing: -.02em; text-decoration: none; }
.contacts a span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wh); }
.contacts p { font-size: 14px; color: var(--mu); }
.form { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 32px; background: var(--wh); box-shadow: 0 20px 50px rgba(255, 77, 46, .15); }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { width: 100%; height: 58px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 18px; background: var(--cr); font-weight: 600; font-size: 15px; outline: none; transition: border-color .15s; }
.field::placeholder { color: var(--mu); }
.field:focus { border-color: var(--k); }
select.field { appearance: none; -webkit-appearance: none; background: var(--cr) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; padding-right: 44px; color: var(--mu); }
textarea.field { height: 110px; padding: 18px 20px; resize: vertical; }
.file { display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; border: 1.5px dashed rgba(20, 20, 20, .3); border-radius: 18px; font-weight: 700; font-size: 15px; cursor: pointer; }
.file:hover { border-color: var(--k); }
.form .btn { width: 100%; }
.form small { font-size: 12px; color: var(--mu); text-align: center; line-height: 1.4; }

.note { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 24px; background: rgba(20, 20, 20, .72); }
.note:target { display: grid; }
.note__card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 460px; padding: 36px; border-radius: 32px; background: var(--wh); }
.note__card p { color: var(--mu2); }

/* подвал */
.foot { margin-top: 16px; padding: 56px 56px 40px; background: var(--k); color: var(--wh); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1fr 260px 260px; gap: 32px; }
.foot .logo b { color: var(--wh); }
.foot__about p { max-width: 300px; margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.foot h4 { margin: 0 0 10px; font-weight: 800; font-size: 13px; color: var(--yl); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot li a, .foot li { font-size: 15px; color: rgba(255, 255, 255, .8); text-decoration: none; line-height: 1.3; }
.foot li a:hover { color: var(--wh); }
.foot__word { margin: 40px 0 0; font: 700 clamp(72px, 20.5vw, 300px)/.9 var(--ub); letter-spacing: -.055em; color: var(--rd); }
.foot__bot { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .5); }
.foot__bot a { color: rgba(255, 255, 255, .75); }
.end { height: 40px; }

/* ——— планшет ——— */
@media (max-width: 1240px) {
  .nav a { padding: 10px 12px; }
  .top__tel { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 360px; }
  .hero__row { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3.works { grid-template-columns: repeat(2, 1fr); }
  .gars { grid-template-columns: repeat(2, 1fr); }
  .qc, .prod-b, .form-b, .faq { grid-template-columns: 1fr; }
  .qc .tile { height: 520px; }
  .qc__t { padding: 16px 8px 0; }
  .faq__l { padding-left: 8px; }
  .price-b .sticker { left: auto; right: 48px; top: 40px; }
  .letters { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; max-width: 760px; margin: 0 auto; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .top .btn { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .who img { height: 220px; }
  .head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ——— телефон ——— */
@media (max-width: 720px) {
  :root { --gut: 12px; --r-xl: 28px; --r-l: 28px; --r-m: 22px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 80px; }
  .top__in { padding: 12px 20px; }
  .logo b { font-size: 24px; }
  .logo i { width: 80px; }
  .burger { width: 44px; height: 44px; }
  .zone { padding-top: 72px; }
  .block { padding: 40px 22px; }
  .h1 { font-size: 34px; letter-spacing: -.035em; }
  .h2 { font-size: 30px; letter-spacing: -.035em; }
  .h3 { font-size: 22px; }
  .head { padding: 0 8px; margin-bottom: 28px; }
  .head--flush { padding: 0; }
  .lead { font-size: 16px; }
  .btn { padding: 17px 22px; font-size: 15px; }

  .hero__main { padding: 28px 22px 24px; gap: 32px; }
  .hero__top { gap: 18px; }
  .hero__lead { font-size: 16px; }
  .hero .btn { width: 100%; }
  .hero__side { grid-template-columns: 1fr; height: auto; }
  .hero__side > .tile { height: 300px; }
  .hero__row { height: 200px; grid-template-columns: 1fr 1fr; }
  .hero .sticker { width: 104px; height: 104px; top: 16px; right: 16px; }
  .sticker b { font-size: 20px; }
  .sample { padding: 20px; }
  .sample b { font-size: 32px; }
  .marquee { padding: 24px 0; }
  .marquee__track span { font-size: 18px; gap: 20px; }
  .marquee__track { gap: 20px; }

  .grid3:not(.works), .grid2 { grid-template-columns: 1fr; }
  .who img { height: 220px; }
  .who__t { padding: 20px 12px 14px; }
  .filter { border-radius: 28px; padding: 22px; font-size: 16px; }

  .grid4 { gap: 28px 10px; }
  .cat .tile { height: 200px; border-radius: 22px; }
  .cat .tile .pill { left: 10px; top: 10px; padding: 6px 10px; font-size: 12px; }
  .cat h3 { font-size: 15px; padding: 0 4px; }
  .cat p { font-size: 13px; padding: 0 4px; }

  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { min-height: 0; padding: 22px; }
  .step__top { padding-bottom: 6px; }
  .step__n { font-size: 32px; }

  .qc .tile { height: 360px; }
  .qc .sticker { width: 100px; height: 100px; top: 16px; right: 16px; }
  .qc__t { padding: 16px 0 0; }
  .qc__lead { font-size: 16px; }
  .check { gap: 14px; padding: 12px; }
  .check__m { width: 92px; height: 72px; font-size: 18px; border-radius: 16px; }
  .check h3 { font-size: 16px; }
  .check p { font-size: 14px; }
  .promise { border-radius: 24px; padding: 18px 20px; }

  .price-b .sticker { width: 92px; height: 92px; right: 16px; top: 20px; }
  .price-b .sticker b { font-size: 18px; }
  .price-b .head .h2 { max-width: 220px; }
  .table-w { padding: 0; background: transparent; border-radius: 0; overflow: visible; }
  .price, .price tbody, .price tr { display: block; }
  .price thead { display: none; }
  .price tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; padding: 18px; margin-bottom: 10px; border-radius: 22px; background: var(--wh); }
  .price td { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; border: 0; text-align: left; font-size: 16px; }
  .price td:first-child { grid-column: 1 / -1; width: auto; padding-bottom: 10px; font-size: 17px; }
  .price td[data-l]::before { content: attr(data-l); font: 700 11px/1.2 var(--mn); color: var(--mu); letter-spacing: 0; }
  .price td.best span { padding: 0; background: none; color: var(--rd); }
  .price-b__foot { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .price-b__foot .btn { width: 100%; }

  .grid3.works { grid-template-columns: 1fr; gap: 28px; }
  .work .tile { height: 300px; }
  .work h3 { font-size: 19px; }

  .rev { min-height: 0; padding: 24px; }
  .rev blockquote { font-size: 16px; }
  .rev__who img { width: 52px; height: 52px; }
  .rev__who::after { font-size: 56px; }
  .letters-b { padding: 36px 20px 44px; }
  .letters-b__h { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .letters-b__h .h2 { font-size: 24px; }
  .letters { gap: 28px 18px; padding: 0 6px; }
  .letter { font-size: 5.6px; padding: 2.2em 2em 1.8em; }
  .letter__stamp { border-width: 1.5px; }
  .lb .letter { font-size: 11px; }

  .prod-b, .form-b { padding: 40px 22px 22px; gap: 32px; }
  .prod-b .h2, .form-b .h2 { font-size: 30px; }
  .prod-b p, .form-b__t > p { font-size: 16px; }
  .prod-b p + p { font-size: 15px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .stats div { padding: 14px 10px; border-radius: 18px; }
  .stats b { font-size: 16px; }
  .stats span { font-size: 12px; }
  .prod-b .btn { width: 100%; }
  .photos { grid-template-rows: 220px 150px; gap: 10px; }
  .photos img { border-radius: 20px; }

  .gars { grid-template-columns: 1fr; gap: 10px; }
  .gar { min-height: 0; gap: 22px; padding: 22px; }

  .faq { gap: 28px; }
  .faq__l { padding-left: 8px; }
  .faq summary { padding: 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; font-size: 15px; }
  .ask { padding: 24px; }

  .form { padding: 20px; border-radius: 24px; }
  .form__two { grid-template-columns: 1fr; }
  .contacts a { font-size: 16px; }

  .foot { padding: 40px 22px 28px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .foot__about { grid-column: 1 / -1; }
  .foot__word { margin-top: 28px; font-size: 19vw; }
  .foot__bot { flex-direction: column; }
  .end { height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .btn, .letters > a { transition: none; }
}
