:root{--navy:#1f3a5f;--gold:#c9a227;--bg:#f6f8fb;--card:#fff;--text:#1d2733;--muted:#5b6572;--ok:#1d7a46;--bad:#b3261e;--line:#e3e8ef;--radius:14px}
*{box-sizing:border-box}
body{margin:0;font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--navy)}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
header.top{background:var(--navy);color:#fff}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:16px;flex-wrap:wrap}
header.top a{color:#fff;text-decoration:none}
.brand{font-size:1.25rem;font-weight:700;letter-spacing:.2px}
.brand span{color:var(--gold)}
nav a{margin-left:20px;font-size:.95rem;opacity:.9}
nav a:hover{opacity:1;text-decoration:underline}
.hero{background:linear-gradient(135deg,var(--navy),#2f5a8f);color:#fff;padding:56px 0 48px}
.hero h1{margin:0 0 12px;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.2}
.hero p{margin:0;max-width:640px;font-size:1.1rem;opacity:.92}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:28px 0 0;padding:0;list-style:none;counter-reset:s}
.steps li{counter-increment:s;background:rgba(255,255,255,.12);border-radius:var(--radius);padding:14px 16px;font-size:.95rem}
.steps li::before{content:counter(s);display:inline-block;width:26px;height:26px;line-height:26px;text-align:center;border-radius:50%;background:var(--gold);color:var(--navy);font-weight:700;margin-right:8px}
main{padding:32px 0 56px}
h2{color:var(--navy);margin:0 0 16px}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.chip{padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);text-decoration:none;font-size:.92rem;color:var(--text)}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:10px}
.card h3{margin:0;font-size:1.1rem;color:var(--navy)}
.card p{margin:0;color:var(--muted);font-size:.95rem}
.tag{display:inline-block;font-size:.78rem;padding:2px 10px;border-radius:999px;background:#eef2f8;color:var(--navy);margin-right:6px}
.price{font-weight:700;font-size:1.15rem}
.btn{display:inline-block;border:0;cursor:pointer;background:var(--gold);color:#1b1b1b;font-weight:700;padding:12px 22px;border-radius:10px;text-decoration:none;font-size:1rem}
.btn:hover{filter:brightness(.95)}
.btn.sec{background:#fff;border:1px solid var(--navy);color:var(--navy)}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;max-width:720px}
form .row{margin-bottom:16px}
label{display:block;font-weight:600;margin-bottom:5px;font-size:.95rem}
label small{font-weight:400;color:var(--muted)}
input[type=text],input[type=email],input[type=url],select{width:100%;padding:11px 12px;border:1px solid #c8d1dc;border-radius:9px;font:inherit;background:#fff}
input:focus,select:focus{outline:2px solid #9bb6d9;border-color:#6d8fbd}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.check input{margin-top:5px}
.err{background:#fdecea;color:var(--bad);border:1px solid #f3c1bd;padding:10px 14px;border-radius:9px;margin-bottom:16px}
.status{display:inline-block;padding:4px 12px;border-radius:999px;font-weight:600;background:#eef2f8}
.status.delivered,.status.issued{background:#e2f4ea;color:var(--ok)}
.status.exception,.status.expired{background:#fdecea;color:var(--bad)}
dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:16px 0}
dt{color:var(--muted)}dd{margin:0}
.big-ok{font-size:1.4rem;color:var(--ok);font-weight:700}
.big-bad{font-size:1.4rem;color:var(--bad);font-weight:700}
table{width:100%;border-collapse:collapse;background:#fff;font-size:.9rem}
th,td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:#eef2f8}
footer{border-top:1px solid var(--line);padding:22px 0;color:var(--muted);font-size:.9rem;background:#fff}
@media(max-width:600px){nav a{margin:0 14px 0 0}}
.hint{display:block;font-size:.82rem;color:var(--muted);margin-top:4px}
.hint .cnt{float:right;font-variant-numeric:tabular-nums}
.hint .cnt.near{color:#b26a00}.hint .cnt.full{color:var(--bad);font-weight:700}
.check.inl{display:inline-flex;margin-right:18px}

/* --- главная и страница направления --- */
nav a.find{background:var(--gold);color:#1b1b1b;padding:7px 14px;border-radius:9px;font-weight:700;opacity:1}
.hero .cta{margin-top:22px;display:flex;gap:12px;flex-wrap:wrap}
.btn.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.7)}
.hero .counter{margin-top:20px;font-size:.95rem;opacity:.9}
.three{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;list-style:none;padding:0;margin:0 0 36px;counter-reset:t}
.three li{counter-increment:t;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.three li::before{content:counter(t);width:30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.three span{color:var(--muted);font-size:.93rem}
.dirs .card .btn{align-self:flex-start;margin-top:auto}
.adv{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:0 0 36px}
.adv div{background:#fff;border-left:4px solid var(--gold);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.adv span{color:var(--muted);font-size:.92rem}
footer .flinks{display:flex;gap:18px;flex-wrap:wrap;margin-top:8px}
.formgrid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}
.formgrid .panel{max-width:none}
.previewbox .sticky{position:sticky;top:16px}
.previewbox img{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 6px 20px rgba(31,58,95,.12)}
.dzs{display:flex;gap:10px;overflow-x:auto;padding-bottom:8px}
.dz{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:400;font-size:.78rem;text-align:center;cursor:pointer}
.dz input{margin:0}
.dz img{width:96px;height:auto;max-height:136px;object-fit:cover;border:2px solid var(--line);border-radius:6px;background:#fff}
.dz input:checked + img{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
.inlineform{display:flex;gap:10px}
.inlineform input{flex:1}
.hint{display:block;color:var(--muted);font-size:.82rem;margin-top:4px}
.hint.good{color:var(--ok)}.hint.bad{color:var(--bad)}
.cnt{float:right}.cnt.near{color:#a36b00}.cnt.full{color:var(--bad);font-weight:700}
.total{font-size:1.1rem;margin:18px 0 10px}.total b{font-size:1.7rem;color:var(--navy)}.total s{color:var(--muted);margin-left:8px}
.btn.wide{width:100%;font-size:1.1rem;padding:14px}
.btn[disabled]{opacity:.6;cursor:wait}
.small{font-size:.85rem}
.okbox{background:#e8f6ee;color:var(--ok);border:1px solid #b9e2c9;padding:12px 16px;border-radius:9px}
.prose h3{margin:20px 0 6px;color:var(--navy)}.prose .pre{white-space:pre-wrap}
table.plain{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:10px}
table.plain th,table.plain td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
@media(max-width:860px){.formgrid{grid-template-columns:1fr}.previewbox{order:-1}.previewbox .sticky{position:static}.previewbox img{max-width:420px;display:block;margin:0 auto}}

.fcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-bottom:16px}
.fcols b{display:block;color:var(--text,#222);margin-bottom:8px}
.fcols a,.fcols span{display:block;margin:4px 0;line-height:1.4}
.fbottom{border-top:1px solid var(--line);padding-top:12px;font-size:.85rem}
.fbottom .age{border:1px solid var(--muted);border-radius:4px;padding:0 5px;margin-left:8px}

/* логотип */
.brand img{display:block;height:58px;width:auto;border-radius:8px}
header.top .wrap{padding-top:10px;padding-bottom:10px}
/* три шага */
.threesteps{margin-bottom:40px;text-align:center}
.threesteps h2{text-transform:uppercase;letter-spacing:.5px;font-size:1.3rem;margin-bottom:26px}
.threesteps .three{margin:0 0 26px;gap:28px}
.threesteps .three li{background:none;border:0;padding:0;align-items:center;gap:10px}
.threesteps .three li::before{width:46px;height:46px;font-size:1.4rem;margin-bottom:4px}
.threesteps .three b{font-size:1.05rem;color:var(--text)}
.threesteps .three span{max-width:260px;font-size:.9rem}
.threesteps .btn{text-transform:uppercase;letter-spacing:.4px;padding:14px 44px}
.center{text-align:center}
/* подвал */
footer .fcols{gap:18px}
footer .fcol{background:#f6f8fb;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px}
footer .fcol b{display:block;color:var(--navy);font-size:1rem;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid var(--gold)}
footer .fcol a{display:block;padding:5px 0 5px 16px;position:relative;color:var(--navy);text-decoration:none;font-weight:500}
footer .fcol a::before{content:"›";position:absolute;left:3px;color:var(--gold);font-weight:700}
footer .fcol a:hover{text-decoration:underline}
footer .fcol span{display:block;padding:4px 0;color:var(--muted)}
footer .fcol a.lic{background:#fff;border:1px solid var(--gold);border-radius:10px;padding:10px 12px 10px 28px;margin:4px 0 8px}
footer .fcol a.lic::before{left:11px;top:9px}
footer .fcol span a{display:inline;padding:0;font-weight:400}
footer .fcol span a::before{content:none}

/* отзывы */
.reviews-sec{margin-top:40px}
.rv{position:relative;display:flex;align-items:center;gap:10px;margin:8px 0 24px}
.rv-view{overflow:hidden;flex:1}
.rv-track{display:flex;transition:transform .45s ease}
.rv-slide{margin:0;padding:0 8px;box-sizing:border-box;display:flex}
.rv-slide>*{width:100%}
.rv-slide{opacity:.62;transform:scale(.96);transition:opacity .3s,transform .3s}
.rv-slide.mid,.rv.single .rv-slide{opacity:1;transform:none}
.rv-slide blockquote{margin:0;background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:var(--radius) var(--radius) 0 0;padding:20px 20px 10px;font-size:.95rem;line-height:1.55;flex:1}
.rv-slide{flex-direction:column}
.rv-slide figcaption{background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);padding:0 20px 18px;display:flex;flex-direction:column}
.rv-slide figcaption b{color:var(--navy)}
.rv-slide figcaption span{color:var(--muted);font-size:.85rem}
.rv-slide.mid blockquote,.rv-slide.mid figcaption{border-color:var(--gold)}
.rv-btn{flex:none;width:42px;height:42px;border-radius:50%;border:1px solid var(--navy);background:#fff;color:var(--navy);font-size:1.6rem;line-height:1;cursor:pointer}
.rv-btn:hover{background:var(--navy);color:#fff}
.rv.single .rv-btn{display:none}
@media(max-width:759px){.rv-slide{opacity:1;transform:none}}

.rv-track{will-change:transform}
.rv-slide{min-height:100%}
.rv:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:12px}
.rvform-sec{margin:34px 0 0;max-width:720px}
.rvform-sec .panel{max-width:none}
.rvform-sec textarea{width:100%;font:inherit;padding:11px 12px;border:1px solid #c8d1dc;border-radius:9px;min-height:120px}
.rvform-sec .hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.ok-box{background:#e2f4ea;color:var(--ok);border:1px solid #bfe3cd;padding:10px 14px;border-radius:9px;margin-bottom:16px}

/* заголовки страниц и разделов — по центру */
h1,h2,.panel>h3,.panel>form>h3{text-align:center}
.hero .wrap,.hero .wrap>div{text-align:center}
.hero p{margin-left:auto;margin-right:auto}
.hero .cta{justify-content:center}
.panel,.rvform-sec{margin-left:auto;margin-right:auto}
.threesteps h2,.reviews-sec h2{text-align:center}

/* v: Знак мастерства */
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:58px;width:auto;border-radius:8px}
.brand .brand-t{font-size:1.05rem;font-weight:500;line-height:1.25;max-width:420px;color:#fff}
.brand .brand-t b{color:var(--gold);font-weight:700}
.hero{padding:50px 0 43px}
.hero h1{max-width:900px;margin-left:auto;margin-right:auto}
.hero p.lic-line{margin-top:10px;font-size:.95rem;opacity:.85}
.threesteps{margin-top:40px}
@media(max-width:600px){.brand .brand-t{font-size:.9rem}}

/* шапка по центру */
header.top .wrap{flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px}
.brand{justify-content:center;text-align:left}
.brand .brand-t{max-width:none;text-align:center}
.brand .brand-t .l1{display:block}
.brand .brand-t b{display:block;white-space:nowrap}
header.top nav{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 18px}
header.top nav a{margin-left:0}
.brand .brand-t .l1{color:#fff}
.hero{padding:25px 0 22px}

/* О нас, отзывы */
.about-text{max-width:860px;margin:0 auto;text-align:left}
.about-text p{margin:0 0 14px;line-height:1.65}
.rv-view{padding:8px 0 14px}
.rv{margin-bottom:34px}

/* заявка: обязательные поля и ссылка на положение */
.req { color: #c0392b; font-weight: 700; }
.reglink { margin: 0 0 14px; }
.reglink a { display: inline-block; padding: 8px 14px; border: 1px solid #1f3a5f; border-radius: 8px; font-weight: 600; text-decoration: none; }
.reglink a:hover { background: #eef3fa; }
#wm_file, #wm_url, #wm_text { margin-top: 8px; }
#wm_text textarea { width: 100%; }
.badge { display:inline-block; padding:1px 7px; border-radius:10px; background:#e8eefc; color:#1f3a5f; font-size:11px; }

/* заявка: форма не должна заходить под предпросмотр */
.formgrid>.panel{margin:0;min-width:0;width:100%;box-sizing:border-box}
.formgrid .panel select,.formgrid .panel input[type=text],.formgrid .panel input[type=email],.formgrid .panel input[type=url],.formgrid .panel textarea{max-width:100%;box-sizing:border-box}
.formgrid .previewbox{min-width:0}
