/* Кассовый чек — стили. Цвет акцента задаётся в админке (--accent). */
:root{
  --ink:#17212B; --desk:#E4E9EC; --paper:#FCFCFA; --muted:#4C5864; --line:#B9C3CA;
  --hl:#FFE066;
  --accent:#2347C9; --accent-dark:#1B38A0;
  --font:"Geologica",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--desk);color:var(--ink);font:400 1rem/1.6 var(--font);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,p,ul,ol,dl,dd,figure,blockquote{margin:0;padding:0}
ul,ol{list-style:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{width:100%;max-width:72rem;margin:0 auto;padding:0 1.25rem}
@media(min-width:1024px){.wrap{padding:0 2rem}}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;padding:.8rem 1.25rem;border-radius:4px;
  background:var(--accent);color:#fff;font:600 .95rem/1.2 var(--font);text-decoration:none;border:1.5px solid var(--accent);cursor:pointer;transition:background-color .15s,color .15s,border-color .15s}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.btn--ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn--ghost:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.btn--hl{background:var(--hl);border-color:var(--hl);color:var(--ink)}
.btn--hl:hover{background:#fff;border-color:#fff;color:var(--ink)}
.btn--wa{background:#128C48;border-color:#128C48;color:#fff}
.btn--wa:hover{background:#0E7339;border-color:#0E7339}
.btn--outline-light{background:transparent;border-color:#fff;color:#fff;margin-left:.75rem}
.btn--outline-light:hover{background:#fff;border-color:#fff;color:var(--accent-dark)}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;flex:none;border-radius:4px;background:#128C48;color:#fff;text-decoration:none;transition:background-color .15s}
.icon-btn:hover{background:#0E7339}
.btn--lg{padding:1rem 1.6rem;font-size:1.05rem}

/* шапка */
.site-header{position:sticky;top:0;z-index:30;background:var(--desk);border-bottom:1.5px dashed var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:4px;background:var(--accent);color:#fff;font-weight:700;font-size:1.1rem;flex:none}
img.brand-mark{background:none;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1.2}
.brand-name{font-weight:700}
.brand-tag{font-size:.8rem;color:var(--muted)}
.nav{display:none}
.nav a{padding:.5rem .75rem;text-decoration:none;font-weight:500;font-size:.95rem}
.nav a:hover{color:var(--accent)}
.bar-actions{display:flex;align-items:center;gap:1rem}
.hours{display:none;font-size:.85rem;color:var(--muted)}
.bar-btn{display:none}
.menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;border:1.5px solid var(--ink);border-radius:4px;background:transparent;color:var(--ink)}
.mobile-nav{display:none;border-top:1.5px dashed var(--line);padding:.5rem 0 1rem}
.mobile-nav.is-open{display:block}
.mobile-nav a:not(.btn){display:block;padding:.7rem 0;text-decoration:none;font-weight:500}
.mobile-nav .btn{margin-top:.5rem;width:100%;color:#fff}
.mobile-nav .btn--wa{margin-top:.6rem}
@media(min-width:900px){
  .nav{display:flex;gap:.25rem}
  .bar-btn{display:inline-flex}
  .hours{display:block}
  .menu-toggle,.mobile-nav{display:none!important}
}

/* первый экран */
.hero{padding:2.5rem 0 3rem}
.hero-grid{display:grid;gap:2.5rem;align-items:start}
@media(min-width:900px){.hero-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:3.5rem;padding-top:1.5rem}}
.hero h1{font-size:clamp(2.1rem,5.2vw,3.9rem);line-height:1.04;font-weight:700;letter-spacing:-.035em;max-width:15em;text-wrap:balance}
.hero-lead{margin-top:1.4rem;max-width:34em;font-size:1.1rem;color:var(--muted)}
.checks{margin-top:1.75rem;display:grid;gap:.7rem;max-width:34em}
.checks li{position:relative;padding-left:1.6rem}
.checks li::before{content:"";position:absolute;left:0;top:.3em;width:1rem;height:1rem;background:var(--hl);border-radius:2px;box-shadow:inset 0 -3px 0 rgba(23,33,43,.12)}
.hero-cta{margin-top:2rem;display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.25rem}
.hero-note{font-size:.85rem;color:var(--muted)}
.hero-photo{width:100%;max-height:20rem;object-fit:cover;border-radius:4px;margin-top:2rem}

.facts{margin-top:2.75rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1.5rem;max-width:44rem}
@media(min-width:700px){.facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.facts div{border-top:1.5px solid var(--ink);padding-top:.6rem}
.facts dt{font-weight:700;font-size:1.05rem;letter-spacing:-.01em}
.facts dd{font-size:.85rem;color:var(--muted);margin-top:.15rem;line-height:1.4}

/* чек */
.receipt-col{display:flex;flex-direction:column;align-items:center}
.receipt-wrap{filter:drop-shadow(0 14px 22px rgba(23,33,43,.22));transform:rotate(1.6deg);animation:print 1.5s cubic-bezier(.3,.7,.3,1) .15s both}
.receipt{width:min(20rem,86vw);padding:1.5rem 1.35rem 2.4rem;background:var(--paper);color:#10202E;font:400 .78rem/1.55 var(--mono);
  --r:7px;-webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/calc(2*var(--r)) 100%;mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/calc(2*var(--r)) 100%}
.receipt .c{text-align:center}
.receipt .t{font-weight:600;letter-spacing:.02em}
.receipt .cut{border-top:1.5px dashed #8A98A3;margin:.7rem 0}
.receipt .ln{display:flex;justify-content:space-between;gap:.75rem}
.receipt .ln span:first-child{min-width:0}
.receipt .ln span:last-child{white-space:nowrap}
.receipt .sum{font-weight:600;font-size:.9rem}
.receipt mark{background:var(--hl);color:inherit;padding:.05rem .25rem;margin:0 -.25rem;border-radius:2px;display:block;box-decoration-break:clone}
.receipt .sample{margin-top:.7rem;text-align:center;font-size:.7rem;color:#5A6874}
.receipt .qr{width:5.2rem;height:5.2rem;margin:.8rem auto 0}
.receipt-caption{margin-top:1.6rem;font-size:.85rem;color:var(--muted);max-width:20rem;text-align:center}
@keyframes print{from{clip-path:inset(-40px -40px 100% -40px)}to{clip-path:inset(-40px -40px -60px -40px)}}

/* секции */
section[id]{scroll-margin-top:4.5rem}
.section{padding:3.5rem 0 4rem}
.section--paper{background:var(--paper)}
.sec-head{max-width:40rem;margin-bottom:2.25rem}
.sec-head h2{font-size:clamp(1.65rem,3.4vw,2.35rem);line-height:1.12;font-weight:700;letter-spacing:-.03em;text-wrap:balance}
.sec-head p{margin-top:.8rem;color:var(--muted)}

.pros{display:grid;gap:2rem 2.5rem}
@media(min-width:640px){.pros{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.pros{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pros li{border-top:2px solid var(--ink);padding-top:1rem}
.pros h3{font-size:1.1rem;font-weight:600;letter-spacing:-.01em}
.pros p{margin-top:.5rem;color:var(--muted);font-size:.95rem;max-width:30em}

/* услуги — строки чека */
.lines{border-top:1.5px dashed var(--line)}
.lines li{display:grid;gap:.9rem 2rem;align-items:center;padding:1.3rem 0;border-bottom:1.5px dashed var(--line)}
@media(min-width:760px){.lines li{grid-template-columns:minmax(0,1fr) auto}}
.lines h3{font-size:1.15rem;font-weight:600;letter-spacing:-.01em}
.lines p{margin-top:.3rem;color:var(--muted);font-size:.95rem;max-width:42em}
.lines .btn{white-space:nowrap}
.line-actions{display:flex;align-items:center;gap:.5rem;justify-self:start}

/* шаги — настоящая последовательность */
.steps{display:grid;gap:1.75rem;counter-reset:s}
@media(min-width:760px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.steps{grid-template-columns:repeat(4,minmax(0,1fr))}}
.steps li{counter-increment:s;padding-top:1rem;border-top:2px solid var(--accent)}
.steps li::before{content:counter(s);display:block;font-size:2.4rem;font-weight:700;line-height:1;color:var(--accent);letter-spacing:-.04em;margin-bottom:.7rem}
.steps h3{font-size:1.05rem;font-weight:600}
.steps p{margin-top:.4rem;color:var(--muted);font-size:.95rem}

/* реквизиты */
.req{width:100%;max-width:40rem;border-collapse:collapse;font:400 .9rem/1.5 var(--mono)}
.req th,.req td{padding:.55rem 0;border-bottom:1.5px dashed var(--line);text-align:left;vertical-align:top}
.req th{width:38%;font-weight:400;color:var(--muted);padding-right:1rem}

/* отзывы */
.quotes{display:grid;gap:2.25rem 3rem}
@media(min-width:900px){.quotes{grid-template-columns:repeat(3,minmax(0,1fr))}}
.quotes blockquote{border-left:3px solid var(--accent);padding-left:1.2rem}
.quotes p{font-size:1.1rem;line-height:1.5;letter-spacing:-.005em}
.quotes footer{margin-top:1rem;font-size:.9rem}
.quotes footer b{display:block;font-weight:600}
.quotes footer span{color:var(--muted)}

/* финальный блок */
.cta{background:var(--accent);color:#fff;padding:4rem 0}
.cta h2{font-size:clamp(1.9rem,4.4vw,3rem);line-height:1.08;font-weight:700;letter-spacing:-.035em;max-width:16em;text-wrap:balance}
.cta p{margin-top:1rem;max-width:34em;color:rgba(255,255,255,.88);font-size:1.05rem}
.cta .btn{margin-top:2rem}

/* подвал */
.site-footer{padding:3rem 0 5.5rem;font-size:.92rem}
.foot-grid{display:grid;gap:2rem}
@media(min-width:900px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr;gap:3rem}}
.foot-grid h4{margin:0 0 .6rem;font-size:.85rem;font-weight:600;color:var(--muted)}
.foot-grid a{display:block;text-decoration:none;padding:.15rem 0}
.foot-grid a:hover{color:var(--accent)}
.foot-brand{display:flex;align-items:center;gap:.75rem;font-weight:700;font-size:1.05rem;margin-bottom:.8rem}
.foot-about{color:var(--muted);max-width:26em}
.foot-tg{font-weight:700;font-size:1.05rem}
.legal{margin-top:2.25rem;padding-top:1.25rem;border-top:1.5px dashed var(--line);color:var(--muted);font-size:.85rem;display:grid;gap:.4rem;max-width:52rem}
@media(min-width:900px){.site-footer{padding-bottom:3rem}}

/* нижняя кнопка на телефоне */
.mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--desk);border-top:1.5px dashed var(--line);padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom))}
.mobile-bar .btn{width:100%}
.mobile-bar.has-two{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.mobile-bar.has-two .btn{padding:.8rem .5rem}
@media(max-width:899px){.cta .btn--outline-light{margin-left:0;margin-top:.75rem}}
@media(min-width:900px){.mobile-bar{display:none}}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .receipt-wrap{animation:none}
  *{transition:none!important}
}
