/* ==========================================================
   AlexBoat — новый дизайн (по согласованному макету)
   Общие стили: шапка, подвал, кнопки, каталог.
   Подключается только на страницах, уже переведённых на новый дизайн.
   ========================================================== */
:root{
  --navy:#0b3d62;--deep:#072844;--teal:#1b8a93;--ice:#e9f2f7;--mint:#e6f5f5;--line:#cdd4e9;
  --ink:#17262e;--muted:#51707d;--white:#fff;
  --hull:#ffffff;--tent:#0b3d62;--seat:#c9b79c;
  --serif:Cambria,Georgia,"Times New Roman",serif;--sans:Calibri,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:118.75%} /* базовый размер текста: 19px (было 16px, потом 18px) */
body{font-family:var(--sans);color:var(--ink);background:var(--white);line-height:1.5;font-size:1rem;display:flex;flex-direction:column;min-height:100vh}
main{flex:1}
h1,h2,h3{font-family:var(--serif);color:var(--deep);line-height:1.2}
h1{font-size:2.2rem}h2{font-size:1.5rem}h3{font-size:1.15rem}
a{color:inherit}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}

/* ---------- шапка ---------- */
.site-header{background:var(--deep);color:#fff;position:relative;z-index:30}
.site-header .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;height:68px} /* логотип слева, меню по центру */
.header-actions{justify-self:end}
.logo{font-family:var(--serif);font-weight:700;font-size:1.5rem;letter-spacing:.02em;color:#fff;text-decoration:none}
.logo span{color:#5fd0d8}
.logo{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.logo .lt{font-weight:inherit}
.logo-mark{width:34px;height:34px;border-radius:8px;flex:none;display:block}
.logo-img{height:44px;width:auto;display:block}
.logo-img.lg-foot{height:46px}
@media(max-width:560px){.site-header .logo-img{height:38px}}
.site-nav{display:flex;gap:28px;font-size:.95rem}
.site-nav a{color:#cfe3ee;text-decoration:none;padding-bottom:4px;border-bottom:2px solid transparent}
.site-nav a:hover{color:#fff}
.site-nav a.on{color:#fff;border-bottom-color:#5fd0d8}
.header-actions{display:flex;align-items:center;gap:12px}
.burger{display:none;background:transparent;border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:6px;width:42px;height:38px;font-size:1.3rem;line-height:1}
.crumbs{background:var(--ice);font-size:.88rem;color:var(--muted);padding:10px 0}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--navy);text-decoration:underline}

/* ---------- кнопки ---------- */
.btn{display:inline-block;border:2px solid var(--navy);background:var(--navy);color:#fff;padding:12px 26px;border-radius:6px;font-weight:700;text-decoration:none;text-align:center}
.btn:hover{background:var(--deep);border-color:var(--deep)}
.btn.alt{background:#fff;color:var(--navy)}
.btn.alt:hover{background:var(--ice)}
.btn.teal{background:var(--teal);border-color:var(--teal)}
.btn.teal:hover{background:#157079;border-color:#157079}
.btn.sm{padding:8px 16px;font-size:.9rem}

/* ---------- каталог ---------- */
.hero{padding:34px 0 22px}
.hero p{color:var(--muted);margin-top:8px;max-width:60ch}
.hero-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.search{display:flex;gap:8px;flex:0 1 360px;min-width:260px}
.search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:6px;padding:10px 12px;font:inherit;color:var(--ink)}
.search input:focus{border-color:var(--teal)}
.search-note{margin:14px 0 0;color:var(--muted);font-size:.95rem}
.search-note a{color:var(--teal);font-weight:700;margin-left:10px}

.filters{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 22px}
.chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:6px 16px;color:var(--navy);font-size:.92rem}
.chip:hover{border-color:var(--teal)}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-bottom:48px}
.card{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;transition:box-shadow .2s;display:flex;flex-direction:column}
.card:hover{box-shadow:0 10px 26px rgba(11,61,98,.15)}
.sea{background:linear-gradient(#eef6fa,#d4e8f1);border-radius:8px}
.card .sea{border-radius:0;overflow:hidden;aspect-ratio:400/220;position:relative}
.card .sea img,.card .sea svg{display:block;width:100%;height:100%;transition:transform .3s}
.card .sea img{object-fit:cover}
.card:hover .sea img,.card:hover .sea svg{transform:scale(1.05)}
.badge{position:absolute;top:12px;left:12px;background:var(--teal);color:#fff;font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:12px;z-index:1}
.card .body{padding:18px;display:flex;flex-direction:column;flex:1}
.card .line{color:var(--teal);font-size:.85rem;font-weight:700}
.card h3 a{text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0;z-index:1} /* вся карточка кликабельна */
.specs{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0;color:var(--muted);font-size:.9rem}
.card .foot{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:auto;padding-top:12px}
.price{font-family:var(--serif);font-size:1.3rem;color:var(--navy);font-weight:700;line-height:1.2}
.price small{display:block;font-family:var(--sans);font-size:.78rem;color:var(--muted);font-weight:400}
.price.ask{font-size:1.05rem}
.card .btn{position:relative;z-index:2}

.empty{grid-column:1/-1;text-align:center;padding:50px 20px;color:var(--muted)}
.empty h3{margin-bottom:10px}
.empty .btn{margin-top:18px}

/* ---------- подвал ---------- */
.site-footer{background:var(--deep);color:#cfe3ee;margin-top:20px}
.footer-cols{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:36px;padding:40px 20px 28px}
.site-footer h3{color:#fff;font-size:1.05rem;margin-bottom:12px}
.site-footer p,.site-footer li{font-size:.93rem}
.site-footer ul{list-style:none}
.site-footer li{padding:3px 0}
.site-footer a{text-decoration:none;color:#cfe3ee}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;font-size:.85rem;color:#8fb0c3}

/* ---------- адаптив ---------- */
@media(max-width:900px){
  .grid{grid-template-columns:1fr 1fr}
  .site-header .wrap{display:flex;justify-content:space-between}
  .burger{display:inline-block}
  .site-nav{display:none;position:absolute;top:68px;left:0;right:0;background:var(--deep);flex-direction:column;gap:0;padding:8px 20px 16px;border-top:1px solid rgba(255,255,255,.12)}
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
  .site-nav a.on{border-bottom-color:#5fd0d8}
  .footer-cols{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .grid{grid-template-columns:1fr}
  h1{font-size:1.7rem}
  .search{flex-basis:100%}
  .footer-cols{grid-template-columns:1fr}
}

/* ==========================================================
   Дополнения: общие блоки, главная, о нас, видео, контакты,
   новость, карточка лодки, конфигуратор, заявка
   ========================================================== */
.footer-bottom-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.footer-bottom a{color:#8fb0c3}

.section{padding:52px 0}
.section.alt{background:var(--ice)}
.sec-head{margin-bottom:26px}
.sec-head h2{font-size:1.7rem}
.sec-head p{color:var(--muted);margin-top:6px;max-width:64ch}
.sec-head.row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.lead{font-size:1.1rem;color:var(--muted)}
.prose p{margin-bottom:14px}
.prose h3{margin:22px 0 8px}
.btn-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}
.btn.light{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.btn.light:hover{background:rgba(255,255,255,.12)}

.panel{background:var(--mint);border-left:4px solid var(--teal);border-radius:6px;padding:14px 18px;margin:10px 0 24px}
.panel ul{list-style:none}
.panel li{padding:4px 0 4px 22px;position:relative}
.panel li::before{content:"✓";position:absolute;left:0;color:var(--teal);font-weight:700}

.split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.split .pic{border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--ice)}
.split .pic{position:relative}
.split .pic img{display:block;width:100%;height:auto;max-height:540px;object-fit:contain}

/* ---------- слайдер на главной ---------- */
.hs{position:relative;background:var(--deep);color:#fff;overflow:hidden;min-height:480px}
.hs-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .8s;display:flex;align-items:center}
.hs-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,40,68,.9) 0%,rgba(7,40,68,.55) 55%,rgba(7,40,68,.25) 100%)}
.hs-slide.on{opacity:1;z-index:1}
.hs-slide .wrap{position:relative;width:100%}
.hs-slide h1,.hs-slide h2.hs-title{color:#fff;font-size:2.8rem;max-width:18ch}
.hs-slide .sub{color:#5fd0d8;font-weight:700;margin:10px 0 12px;letter-spacing:.02em}
.hs-slide p.txt{max-width:56ch;color:#dbe9f1}
.hs-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(7,40,68,.45);color:#fff;font-size:1.4rem;line-height:1}
.hs-arrow:hover{background:rgba(7,40,68,.8)}
.hs-arrow.prev{left:16px}.hs-arrow.next{right:16px}
.hs-dots{position:absolute;left:0;right:0;bottom:18px;z-index:3;display:flex;justify-content:center;gap:10px}
.hs-dots button{width:11px;height:11px;border-radius:50%;border:0;background:rgba(255,255,255,.45);padding:0}
.hs-dots button.on{background:#5fd0d8}

/* ---------- карточки моделей на главной ---------- */
.grid.compact{grid-template-columns:repeat(4,1fr);gap:18px;padding-bottom:0}
.grid.compact .card .body{padding:14px}
.grid.compact .card h3{font-size:1.02rem}
.grid.compact .price.ask{font-size:.92rem;font-weight:400;color:var(--muted);font-family:var(--sans)}
.grid.compact .card .sea img{object-fit:contain;background:#fff}

/* ---------- новости ---------- */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.ncard{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .2s}
.ncard:hover{box-shadow:0 10px 26px rgba(11,61,98,.15)}
.ncard .pic{aspect-ratio:16/9;background:linear-gradient(#eef6fa,#d4e8f1);overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:2.6rem}
.ncard .pic img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.ncard:hover .pic img{transform:scale(1.05)}
.ncard .body{padding:18px;display:flex;flex-direction:column;flex:1}
.meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:.85rem;margin-bottom:8px}
.tag{background:var(--teal);color:#fff;font-size:.72rem;padding:2px 9px;border-radius:10px}
.ncard h3 a{text-decoration:none}
.ncard h3 a::after{content:"";position:absolute;inset:0}
.ncard p{color:var(--muted);font-size:.93rem;margin:8px 0 12px}
.ncard .more{margin-top:auto;color:var(--teal);font-weight:700;font-size:.92rem}

/* ---------- галерея-слайдер ---------- */
.gal{position:relative;max-width:900px;margin:0 auto}
.gal-stage{position:relative;border-radius:10px;overflow:hidden;background:var(--ice);aspect-ratio:16/9;border:1px solid var(--line)}
.gal-slide{position:absolute;inset:0;opacity:0;transition:opacity .5s;pointer-events:none}
.gal-slide.on{opacity:1;pointer-events:auto}
.gal-slide img{width:100%;height:100%;object-fit:cover;display:block}
.gal-cap{position:absolute;left:0;right:0;bottom:0;padding:44px 22px 18px;background:linear-gradient(transparent,rgba(7,40,68,.88));color:#fff}
.gal-cap h3{color:#fff;font-size:1.15rem;margin-bottom:4px}
.gal-cap p{font-size:.92rem;color:#dbe9f1;max-width:70ch}
.gal .hs-arrow{background:rgba(7,40,68,.55)}
.gal .hs-dots{position:static;margin-top:14px}
.gal .hs-dots button{background:var(--line)}
.gal .hs-dots button.on{background:var(--teal)}

/* ---------- о нас ---------- */
.band{background:var(--deep);color:#fff;padding:52px 0}
.band h1{color:#fff}
.band .tagline{color:#5fd0d8;font-weight:700;margin:8px 0 18px}
.band p{color:#dbe9f1;max-width:68ch;margin-bottom:12px}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.fact{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:16px}
.fact b{display:block;font-family:var(--serif);font-size:1.5rem;color:#fff}
.fact span{font-size:.9rem;color:#cfe3ee}

/* ---------- видео ---------- */
.vcard{display:grid;grid-template-columns:1fr 1.3fr;gap:36px;align-items:start;padding:30px 0;border-bottom:1px solid var(--line)}
.vcard:last-child{border-bottom:0}
.vcard.rev{grid-template-columns:1.3fr 1fr}
.vcard.rev .vtext{order:2}
.vtext p{color:var(--muted);margin-top:10px}
.tabs{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.tab{border:1px solid var(--line);background:#fff;border-radius:20px;padding:6px 16px;color:var(--navy);font-size:.92rem}
.tab:hover{border-color:var(--teal)}
.tab.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.tabpane{display:none}.tabpane.on{display:block}
.tabpane video{width:100%;display:block;border-radius:8px;background:#000;aspect-ratio:16/9}

/* ---------- контакты ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:36px;align-items:start}
.cinfo{list-style:none}
.cinfo li{display:flex;gap:14px;padding:14px 0;border-bottom:1px dashed var(--line)}
.cinfo li:last-child{border:0}
.cinfo .ic{flex:0 0 40px;height:40px;border-radius:50%;background:var(--mint);color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:1.1rem}
.cinfo b{display:block;font-family:var(--serif);color:var(--deep)}
.cinfo span{color:var(--muted)}
.formcard{border:1px solid var(--line);border-radius:10px;padding:26px;background:#fff}
.formcard h2{margin-bottom:4px}
.formcard .hint{color:var(--muted);font-size:.92rem;margin-bottom:6px}
.field{display:block;margin-top:14px;font-size:.88rem;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px;font:inherit;color:var(--ink);margin-top:3px;background:#fff}
.field input:focus,.field textarea:focus{border-color:var(--teal)}
.field .count{display:block;text-align:right;font-size:.8rem;margin-top:3px}
.chk{display:flex;gap:8px;align-items:flex-start;font-size:.85rem;margin:16px 0;color:var(--muted)}
.chk input{margin-top:4px}
.formcard .btn{width:100%}
.map{margin-top:36px}
.map iframe{width:100%;height:380px;border:0;border-radius:10px;display:block;background:var(--ice)}
.notice{max-width:560px;margin:50px auto;text-align:center;border:1px solid var(--line);border-radius:10px;padding:34px 24px;background:#fff}
.notice .tick{width:64px;height:64px;border-radius:50%;background:var(--teal);color:#fff;font-size:2rem;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.notice .tick.bad{background:#b32d2d}
.notice p{color:var(--muted);margin:8px 0 18px}

/* ---------- новость ---------- */
.article{max-width:820px;margin:0 auto;padding-bottom:30px}
.article .cover{aspect-ratio:16/9;position:relative;border-radius:10px;overflow:hidden;background:linear-gradient(#eef6fa,#d4e8f1);display:flex;align-items:center;justify-content:center;font-size:4rem;margin:18px 0}
.article .cover img{width:100%;height:100%;object-fit:cover}
.article .lede{font-size:1.15rem;color:var(--muted);margin:14px 0 20px}
.article .text{font-size:1.02rem}
.article .text h3{margin:22px 0 8px}
.related{padding:20px 0 50px}
.related h2{margin-bottom:18px}

/* ---------- карточка лодки ---------- */
.two{display:grid;grid-template-columns:1.3fr 1fr;gap:36px;padding-bottom:40px}
.viewer{position:relative}
.stagewrap{position:relative}
.viewer .sea{aspect-ratio:3/2;overflow:hidden;display:flex;align-items:center;justify-content:center}
.viewer img,.viewer video,.viewer svg{width:100%;height:100%;display:block;object-fit:contain}
.viewer img{background:#fff}
.viewer .hs-arrow{width:40px;height:40px}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px;margin-top:10px}
.thumbs button{border:2px solid transparent;border-radius:8px;padding:0;overflow:hidden;background:var(--ice);aspect-ratio:3/2;position:relative}
.thumbs button img{width:100%;height:100%;object-fit:cover;display:block}
.thumbs button.on{border-color:var(--teal)}
.thumbs .vid{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:.78rem;color:var(--muted);height:100%}
table.spec{width:100%;border-collapse:collapse;margin:10px 0 24px}
table.spec td,table.spec th{padding:9px 12px;text-align:left;font-size:.95rem}
table.spec th{background:var(--navy);color:#fff}
table.spec tr:nth-child(even) td{background:var(--ice)}
table.spec td:last-child{font-weight:700;color:var(--deep)}
.dots{display:flex;gap:14px;margin:10px 0 24px;flex-wrap:wrap}
.dot{width:38px;height:38px;border-radius:50%;border:2px solid var(--line);position:relative;box-sizing:border-box}
.dot.na{opacity:.5;cursor:not-allowed;outline:0}
.dot.na::before{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:3px;margin-top:-1.5px;background:#d6283a;border-radius:2px;transform:rotate(-45deg) scaleX(0);transform-origin:center;transition:transform .18s ease;pointer-events:none}
.dot.na::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 9px);transform:translate(-50%,4px);background:#d6283a;color:#fff;font-weight:700;font-size:.78rem;line-height:1;white-space:nowrap;padding:6px 10px;border-radius:7px;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease;z-index:5;box-shadow:0 4px 12px rgba(214,40,58,.3)}
.dot.na:hover,.dot.na:focus,.dot.na:focus-visible{opacity:.85}
.dot.na:hover::before,.dot.na:focus::before,.dot.na:focus-visible::before{transform:rotate(-45deg) scaleX(1)}
.dot.na:hover::after,.dot.na:focus::after,.dot.na:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.actions{display:flex;gap:14px}
.actions .btn{flex:1}
.pricebox{margin-bottom:14px}
.desc{margin-top:26px}
.mobile-bar{display:none}

/* ---------- конфигуратор ---------- */
.stepper{display:flex;margin:8px 0 24px;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.stepper button{flex:1;border:0;background:#fff;padding:12px 8px;color:var(--muted);border-right:1px solid var(--line);font-size:.92rem}
.stepper button:last-child{border:0}
.stepper button b{display:block;font-size:.75rem;font-weight:400}
.stepper button.on{background:var(--navy);color:#fff}
.stepper button.done{background:var(--mint);color:var(--teal)}
.cfg{display:grid;grid-template-columns:1fr 340px;gap:30px;padding-bottom:50px}
.step{display:none}.step.on{display:block}
.step h2{margin-top:22px}
.step h3{margin-top:18px}
.opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:14px 0}
.opt{border:2px solid var(--line);background:#fff;border-radius:8px;padding:12px;text-align:left;color:var(--ink)}
.opt:hover{border-color:var(--teal)}
.opt.sel{border-color:var(--teal);background:var(--mint)}
.opt i{display:block;width:100%;height:42px;border-radius:5px;margin-bottom:8px;border:1px solid rgba(0,0,0,.12)}
.opt span{display:block;font-weight:700;font-size:.93rem}
.opt em{font-style:normal;font-size:.82rem;color:var(--muted)}
.opt .tag{margin-left:4px}
.nav{display:flex;justify-content:space-between;margin-top:18px}
.sum{border:1px solid var(--line);border-radius:10px;padding:18px;position:sticky;top:16px;align-self:start;background:var(--ice)}
.sum ul{list-style:none;margin:12px 0}
.sum li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed var(--line);font-size:.92rem}
.sum li span:first-child{color:var(--muted)}
.sum li span:last-child{text-align:right}
.total{display:flex;justify-content:space-between;align-items:baseline;margin:12px 0 14px}
.total b{font-family:var(--serif);font-size:1.5rem;color:var(--navy)}
.sum .btn{width:100%}
.cfg .sea{aspect-ratio:400/220;overflow:hidden}
.cfg .sea svg{width:100%;height:100%;display:block}
.cfg-photo{margin:0;border-radius:8px;overflow:hidden;background:var(--ice);border:1px solid var(--line)}
.cfg-photo img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;margin:0 auto}
.cfg-nophoto{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;min-height:260px;box-sizing:border-box;padding:24px 20px;border-radius:8px;border:2px dashed #9fc3d4;background:linear-gradient(#f3f9fc,#dcecf4);color:var(--navy)}
.cfg-nophoto svg{color:var(--teal);opacity:.85}
.cfg-nophoto b{font-family:var(--serif);font-size:1.25rem;line-height:1.3;max-width:30ch}
.cfg-nophoto p{margin:0;color:var(--muted);font-size:.95rem;max-width:44ch}
.cfg-nophoto .np-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;margin-top:4px}
.cfg-nophoto .np-phone{font-weight:700;font-size:1.05rem;color:var(--deep)}
/* «недоступный» вариант (отмечен в админке): виден, но выбрать нельзя; при наведении — красная линия и подпись */
.optna{position:relative;display:flex;cursor:not-allowed;outline:0;border-radius:8px}
.optna .opt-n{position:relative;width:100%;display:flex;flex-direction:column;align-items:stretch;border:2px dashed var(--line);background:#fafcfd;border-radius:8px;padding:12px;text-align:left;color:var(--ink);opacity:.55;transition:opacity .15s}
.optna .opt-n i{display:block;width:100%;height:42px;border-radius:5px;margin-bottom:8px;border:1px solid rgba(0,0,0,.12)}
.optna .opt-n .ph{display:block;height:92px;margin-bottom:8px;border-radius:5px;overflow:hidden;background:var(--ice);filter:grayscale(1)}
.optna .opt-n .ph img{display:block;width:100%;height:100%;object-fit:cover}
.optna .opt-n span{display:block;font-weight:700;font-size:.93rem}
.optna .opt-n em{font-style:normal;font-size:.82rem;color:#c01f31;font-weight:700}
.optna::before{content:"";position:absolute;inset:0;border-radius:8px;z-index:2;pointer-events:none;opacity:0;transition:opacity .18s ease;background:linear-gradient(to top right,transparent calc(50% - 1.5px),#d6283a calc(50% - 1.5px),#d6283a calc(50% + 1.5px),transparent calc(50% + 1.5px))}
.optna::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);background:#d6283a;color:#fff;font-weight:700;font-size:.78rem;line-height:1;white-space:nowrap;padding:6px 10px;border-radius:7px;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease;z-index:5;box-shadow:0 4px 12px rgba(214,40,58,.3)}
.optna:hover .opt-n,.optna:focus .opt-n{opacity:.8;border-color:#e3a0a8}
.optna:hover::before,.optna:focus::before,.optna:focus-visible::before{opacity:1}
.optna:hover::after,.optna:focus::after,.optna:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.demo-note{background:#fff8e6;border:1px solid #f0d98a;border-radius:6px;padding:8px 12px;font-size:.85rem;color:#6b5400;margin:0 0 16px}

/* ---------- заявка ---------- */
.final{display:grid;grid-template-columns:1fr 1fr;gap:36px;padding-bottom:50px}
.final .sea{aspect-ratio:400/220;overflow:hidden}
.final .sea svg,.final .sea img{width:100%;height:100%;display:block;object-fit:cover}
.idline{color:var(--muted);font-size:.88rem;margin-bottom:10px}
.bigtotal{display:flex;justify-content:space-between;background:var(--navy);color:#fff;padding:14px 16px;border-radius:6px;font-weight:700}
.bigtotal b{font-family:var(--serif);font-size:1.3rem}
.modal{position:fixed;inset:0;background:rgba(7,40,68,.6);display:none;align-items:center;justify-content:center;padding:16px;z-index:50}
.modal.on{display:flex}
.box{background:#fff;border-radius:10px;padding:28px;width:100%;max-width:460px;max-height:92vh;overflow:auto}
.box .actions{margin-top:6px}
.err{color:#b32d2d;font-size:.82rem;margin-top:3px;display:none}
.field.bad input{border-color:#b32d2d}
.field.bad .err{display:block}

/* ---------- адаптив (дополнения) ---------- */
@media(max-width:900px){
  .hs{min-height:440px}
  .hs-slide h1,.hs-slide h2.hs-title{font-size:2.1rem}
  .split,.two,.cfg,.final,.contact-grid,.vcard,.vcard.rev{grid-template-columns:1fr}
  .vcard.rev .vtext{order:0}
  .grid.compact,.news-grid{grid-template-columns:1fr 1fr}
  .sum{position:static}
  .stepper b{display:none}
  .facts{grid-template-columns:1fr}
  .mobile-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:25;gap:10px;padding:10px 16px;background:#fff;border-top:2px solid var(--teal);box-shadow:0 -4px 14px rgba(0,0,0,.08)}
  .mobile-bar .btn{flex:1;padding:12px 8px}
  body.has-bar{padding-bottom:72px}
  .actions.inline-desktop{display:none}
}
@media(max-width:560px){
  .grid.compact,.news-grid{grid-template-columns:1fr}
  .actions{flex-direction:column}
  .hs-slide h1,.hs-slide h2.hs-title{font-size:1.8rem}
  .hs-arrow{display:none}
  .stepper button{font-size:.8rem;padding:10px 4px}
}
@media print{
  .site-header,.site-footer,.crumbs,.no-print,.modal{display:none!important}
  body{font-size:12pt}
  .final{grid-template-columns:1fr}
}

/* ---------- защита формы ---------- */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.captcha-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:6px 0 8px}
.captcha-row img{display:block;border:1px solid var(--line);border-radius:6px;background:var(--ice);max-width:100%;height:auto}
.alert{background:#fdecec;border:1px solid #f0b4b4;color:#8a1f1f;border-radius:6px;padding:10px 14px;margin:12px 0 4px;font-size:.95rem}
.captcha-row .btn{width:auto}

/* Согласие на обработку данных и юридические страницы */
.field .hint{display:block;font-size:.85rem;color:var(--muted);margin:2px 0 6px;font-weight:400}
.chk.consent{margin:14px 0 12px;font-size:.92rem}
.chk.consent a,.legal-links a{color:var(--teal);text-decoration:underline}
.footer-bottom-row{display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap}
.legal .text ul{margin:0 0 14px 22px}
.legal .text li{margin-bottom:6px}
.legal mark{background:#fff3c4;padding:0 4px;border-radius:3px}
.legal-table{width:100%;border-collapse:collapse;margin:8px 0 14px;font-size:.95rem}
.legal-table th,.legal-table td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
.legal-table th{background:var(--ice)}
@media(max-width:600px){.legal-table{font-size:.85rem}.legal-table th,.legal-table td{padding:6px}}
.legal .text p+p{margin-top:10px}

/* Google reCAPTCHA: виджет 304px, на узких экранах слегка уменьшаем, чтобы не вылезал за карточку */
.g-recaptcha{margin:8px 0 4px;transform-origin:0 0}
@media(max-width:400px){.g-recaptcha{transform:scale(.86)}}
@media(max-width:340px){.g-recaptcha{transform:scale(.75)}}

/* Адрес почты: нельзя выделить и скопировать, не кликабелен */
.nocopy{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;cursor:default;-webkit-touch-callout:none}
/* узкие экраны: колонки сетки могут сжиматься, таблицы документов не вылезают */
.two>*{min-width:0}
.legal-table{display:block;overflow-x:auto;max-width:100%}
@media(max-width:400px){.thumbs{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}}
table.spec{width:100%;table-layout:fixed}
table.spec th,table.spec td{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:420px){table.spec th,table.spec td{padding-left:8px;padding-right:8px}}

/* ==========================================================
   Рабочий конфигуратор, заявка, каталог с фильтрами, сравнение
   ========================================================== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- конфигуратор ---------- */
.cfg-note{display:none;background:#fff8e6;border:1px solid #f0d98a;color:#6b5400;border-radius:6px;padding:9px 12px;font-size:.9rem;margin:12px 0 0}
.cfg-note.on{display:block}
.step-hint{color:var(--muted);font-size:.92rem;margin:4px 0 6px}
.opt{position:relative}
.opt.sel::after{content:"✓";position:absolute;top:6px;right:9px;color:var(--teal);font-weight:700}
.opt .tag{vertical-align:middle}
.sum-model{font-weight:700;color:var(--deep);margin-top:2px}
.sum li>span:last-child small{display:block;color:var(--muted);font-size:.8rem}
.sum-tools{display:flex;gap:18px;justify-content:center;margin-top:12px}
.linkbtn{background:none;border:0;color:var(--teal);text-decoration:underline;font-size:.9rem;padding:4px}
.linkbtn:hover{color:var(--navy)}
.sum-copied{min-height:1.2em;text-align:center;font-size:.85rem;color:var(--teal)}
.sum-disc{font-size:.8rem;color:var(--muted);margin-top:8px}
.stepper{overflow-x:auto}
.stepper button{flex:1 0 auto;white-space:nowrap;padding-left:14px;padding-right:14px}
.cfg-bar{display:none}
@media(max-width:900px){
  .cfg-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:25;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-top:2px solid var(--teal);box-shadow:0 -4px 14px rgba(0,0,0,.08)}
  .cfg-bar small{display:block;color:var(--muted);font-size:.75rem;line-height:1.1}
  .cfg-bar b{font-family:var(--serif);color:var(--navy);font-size:1.25rem}
  .cfg-bar .btn{padding:12px 24px}
}

/* ---------- заявка ---------- */
table.spec td small.rowprice{display:block;color:var(--muted);font-weight:400;font-size:.8rem}
.base-line{display:flex;justify-content:space-between;gap:12px;font-size:.95rem;color:var(--muted);margin:2px 0}
.pic-note{font-size:.82rem;color:var(--muted);margin-top:6px}
.final .sea{--hull:#ffffff;--tent:#0b3d62;--seat:#c9b79c}
.field.bad .err{display:block}

/* ---------- каталог ---------- */
.catalog{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;align-items:start;padding-bottom:48px}
.fpanel{position:sticky;top:16px;border:1px solid var(--line);border-radius:10px;padding:18px;background:var(--ice)}
.fp-toggle{display:none;width:100%;border:2px solid var(--navy);background:#fff;color:var(--navy);border-radius:6px;padding:11px 14px;font-weight:700}
.fp-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.fp-head h2{font-size:1.2rem}
.rng{--from:0%;--to:100%;margin:0 0 20px}
.rng-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:4px}
.rng-title{font-weight:700;color:var(--deep);font-size:.95rem}
.rng-out{font-size:.85rem;color:var(--muted);text-align:right}
.rng-track{position:relative;height:28px}
.rng-track::before{content:"";position:absolute;left:0;right:0;top:12px;height:4px;border-radius:2px;background:var(--line)}
.rng-track::after{content:"";position:absolute;top:12px;height:4px;border-radius:2px;background:var(--teal);left:var(--from);right:calc(100% - var(--to))}
.rng-track input[type=range]{position:absolute;left:0;top:0;width:100%;height:28px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.rng-track input[type=range]::-webkit-slider-runnable-track{background:transparent;height:28px}
.rng-track input[type=range]::-moz-range-track{background:transparent;height:28px}
.rng-track input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:22px;height:22px;margin-top:3px;border-radius:50%;background:#fff;border:3px solid var(--teal);cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.rng-track input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--teal);cursor:pointer}
.rng-nums{display:flex;align-items:center;gap:8px;margin-top:6px}
.rng-nums input{flex:1;min-width:0;border:1px solid var(--line);border-radius:6px;padding:7px 8px;font:inherit;font-size:.88rem;color:var(--ink);background:#fff}
.rng-nums input:focus{border-color:var(--teal)}
.rng-nums span{color:var(--muted)}
.fsel{display:block;margin:0 0 16px;font-weight:700;color:var(--deep);font-size:.95rem}
.fsel select{display:block;width:100%;margin-top:4px;border:1px solid var(--line);border-radius:6px;padding:9px 10px;font:inherit;font-weight:400;color:var(--ink);background:#fff}
.flabels{border:0;margin:0 0 16px;display:flex;flex-wrap:wrap;gap:8px}
.flabels legend{font-weight:700;color:var(--deep);font-size:.95rem;margin-bottom:6px;padding:0;width:100%}
.chipcb{position:relative;display:inline-block}
.chipcb input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chipcb span{display:inline-block;border:1px solid var(--line);background:#fff;border-radius:20px;padding:6px 14px;color:var(--navy);font-size:.92rem}
.chipcb:hover span{border-color:var(--teal)}
.chipcb input:checked+span{background:var(--navy);color:#fff;border-color:var(--navy)}
.chipcb input:focus-visible+span{outline:3px solid var(--teal);outline-offset:2px}
.fchk{display:flex;gap:8px;align-items:center;margin:0 0 16px;font-size:.95rem;color:var(--ink)}
.fchk input{width:18px;height:18px;accent-color:var(--teal)}
.fp-actions{display:flex;gap:10px}
.fp-actions .btn{flex:1;padding:10px 12px}
.res-head{margin-bottom:14px}
.res-count{color:var(--muted)}
.res-count b{color:var(--deep)}
.afilters{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.afilter{border:1px solid var(--teal);background:var(--mint);color:var(--navy);border-radius:20px;padding:4px 12px;font-size:.88rem;text-decoration:none}
.afilter:hover{background:#fff}
.afilter.reset{border-color:var(--line);background:#fff;color:var(--muted)}
.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:0}
#catalogResults.loading{opacity:.55;transition:opacity .15s}
.wiz{max-width:540px}
.wq{border:0;margin:16px 0 0}
.wq legend{font-weight:700;color:var(--deep);margin-bottom:8px;padding:0}
.wopts{display:flex;flex-wrap:wrap;gap:8px}
.wiz .actions{margin-top:20px}
@media(max-width:1100px){.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .catalog{grid-template-columns:1fr;gap:16px}
  .fpanel{position:static;padding:0;border:0;background:none}
  .fp-toggle{display:block}
  .fpanel #filterForm{display:none;margin-top:10px;border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--ice)}
  .fpanel.open #filterForm{display:block}
}
@media(max-width:560px){.cat-grid{grid-template-columns:1fr}}

/* ---------- сравнение ---------- */
.card .body{position:relative}
.cmp{position:relative;z-index:2;display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:12px;padding:2px 0;border:0;background:none;color:var(--navy);font-size:.9rem}
.cmp:hover{color:var(--teal)}
.cmp-box{width:20px;height:20px;border:2px solid var(--line);border-radius:5px;background:#fff;display:inline-block;position:relative;flex:0 0 auto}
.cmp.on .cmp-box{background:var(--teal);border-color:var(--teal)}
.cmp.on .cmp-box::after{content:"✓";position:absolute;left:2px;top:-2px;color:#fff;font-size:.85rem;font-weight:700}
.grid.compact .cmp{display:none}
/* «Вы смотрели» */
.recent[hidden]{display:none}
.recent{padding:34px 0 50px;border-top:1px solid var(--line);margin-top:10px}
.recent-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}
.recent-head h2{margin:0}
.recent-clear{border:0;background:none;color:var(--muted);font-size:.92rem;text-decoration:underline;cursor:pointer;padding:4px 0}
.recent-clear:hover{color:var(--teal)}
.cmp-detail{margin-top:14px}
.cmp-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:45;display:flex;align-items:center;gap:12px;background:var(--deep);color:#fff;border-radius:34px;padding:9px 12px 9px 20px;box-shadow:0 8px 28px rgba(0,0,0,.28);max-width:calc(100% - 24px)}
.cmp-bar[hidden]{display:none}
.cmp-bar .cmp-text{font-size:.92rem}
.cmp-bar .btn{white-space:nowrap}
body.has-bar .cmp-bar{bottom:84px}
.cmp-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
.cmp-table{border-collapse:collapse;width:100%;min-width:600px;table-layout:fixed}
.cmp-table th,.cmp-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:.95rem;overflow-wrap:anywhere}
.cmp-table thead th{background:var(--ice);font-weight:400}
.cmp-table .corner,.cmp-table tbody th{width:200px}
.cmp-table tbody th{color:var(--muted);font-weight:400;background:#fff;position:sticky;left:0;z-index:1}
.cmp-table tbody td{font-weight:700;color:var(--deep)}
.cmp-table tbody tr:nth-child(even) td,.cmp-table tbody tr:nth-child(even) th{background:#f5fafc}
.cmp-pic{aspect-ratio:400/220;overflow:hidden;margin-bottom:8px}
.cmp-pic img,.cmp-pic svg{width:100%;height:100%;object-fit:cover;display:block}
.cmp-name{display:block;font-family:var(--serif);font-weight:700;color:var(--deep);text-decoration:none;margin-bottom:2px}
.cmp-name:hover{text-decoration:underline}
.cmp-rm{font-size:.85rem;color:var(--muted)}
.cmp-table.only-diff tr.same{display:none}
.cmp-actions td{display:table-cell}
.cmp-actions .btn{margin:0 6px 6px 0}
@media(max-width:560px){.cmp-table .corner,.cmp-table tbody th{width:118px}.cmp-table th,.cmp-table td{padding:8px}}

/* ---------- карточка модели: комплекты с двигателем ---------- */
.kits{list-style:none;margin:8px 0 22px}
.kits li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:.95rem}
.kits a{color:var(--navy);font-weight:700;text-decoration:none}
.kits a:hover{text-decoration:underline}
.kits span{font-family:var(--serif);color:var(--deep);white-space:nowrap}

/* мелкие правки после проверки */
.opt span.tag{display:inline-block;margin-left:6px;font-size:.7rem;font-weight:700;padding:2px 9px;vertical-align:middle;line-height:1.4}
.opt.sel span.tag{background:var(--teal)}
.card .foot{flex-wrap:wrap}
.cat-grid .card .btn.sm{padding:8px 13px}
.rng-nums input{font-size:.82rem;padding:7px 6px}

/* фото лодок целиком, без обрезки (в каталоге и на странице сравнения) */
.cat-grid .card .sea img,.cmp-pic img{object-fit:contain;background:#fff}

/* ===== фото у вариантов конфигуратора: мини-фото на плитке и крупный просмотр ===== */
.optw{position:relative;display:flex}
.optw>.opt{width:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}   /* содержимое плитки прижато к верху, чтобы кнопка «Посмотреть фото» совпадала с мини-фото */
.opt .ph{display:block;position:relative;height:92px;margin-bottom:8px;border-radius:5px;overflow:hidden;background:var(--ice);font-weight:400}
.opt .ph img{display:block;width:100%;height:100%;object-fit:cover}
.opt .ph em{position:absolute;left:0;right:0;bottom:0;padding:16px 6px 5px;text-align:center;font-style:normal;font-size:.76rem;font-weight:700;color:#fff;background:linear-gradient(transparent,rgba(7,40,68,.85))}
.ph-view{position:absolute;left:14px;right:14px;top:14px;height:92px;border:0;border-radius:5px;background:transparent;cursor:zoom-in;padding:0}
.ph-view:hover,.ph-view:focus-visible{box-shadow:0 0 0 3px var(--teal)}
.optw.has-ph .opt.sel::after{top:18px;right:18px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--teal);color:#fff;font-size:.85rem;box-shadow:0 1px 4px rgba(0,0,0,.3)}

.lb{position:fixed;inset:0;z-index:70;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(5,24,40,.88)}
.lb.on{display:flex}
body.lb-open{overflow:hidden}
.lb-box{position:relative;width:min(980px,100%);max-height:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.lb figure{margin:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;min-height:0}
.lb img{display:block;max-width:100%;max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px);object-fit:contain;border-radius:8px;background:#0b2233;box-shadow:0 10px 40px rgba(0,0,0,.45)}
.lb figcaption{color:#fff;text-align:center;font-size:1rem;line-height:1.35}
.lb figcaption b{font-family:var(--serif,Cambria,serif);font-size:1.15rem;display:block}
.lb figcaption span{color:#bfe3e6;font-size:.92rem}
.lb-x{position:absolute;right:0;top:-6px;z-index:2;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.55);background:rgba(7,40,68,.75);color:#fff;font-size:1.6rem;line-height:1}
.lb-nav{position:absolute;top:calc(50% - 70px);z-index:2;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.55);background:rgba(7,40,68,.7);color:#fff;font-size:1.7rem;line-height:1}
.lb-nav.prev{left:8px}
.lb-nav.next{right:8px}
.lb-nav[hidden]{display:none}
.lb-x:hover,.lb-nav:hover{background:var(--teal)}
.lb-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.lb-count{color:#bfe3e6;font-size:.85rem}
@media (max-width:640px){
  .lb{padding:10px}
  .lb img{max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px)}
  .lb-x{top:-4px}
}
@media print{.lb{display:none!important}}

/* ===== Любое фото — целиком в своей рамке =====
   Рамки (карточки, новости, галереи) имеют постоянную форму. Если пропорции фото заметно отличаются от рамки
   (вертикальное, квадратное, очень широкое), new-design.js ставит рамке класс .fit: фото показывается целиком,
   а свободное место заполняет размытая копия этого же фото. Горизонтальные фото, близкие к рамке, заполняют её как раньше. */
.ncard .pic,.cmp-pic,.viewer .sea,.final .sea{position:relative}
.fit{background:#0e2c40!important}
.fit::before{content:"";position:absolute;inset:-30px;background:var(--fit-bg) center/cover no-repeat;filter:blur(22px) brightness(.78) saturate(1.05);pointer-events:none}
.fit>img{position:relative;object-fit:contain!important;background:transparent!important}

/* ---------- телефон с кодом страны и проверка почты (forms.js) ---------- */
.phone-row{position:relative;display:flex;gap:6px;margin-top:3px}
.phone-row select.phone-cc{width:auto;max-width:48%;flex:0 0 auto;margin-top:0}
.phone-row input[type="tel"]{flex:1 1 auto;min-width:0;margin-top:0}
.phone-row.enhanced select.phone-cc{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.phone-cc-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 10px;min-height:42px;font:inherit;color:var(--ink);cursor:pointer;white-space:nowrap}
.phone-cc-btn:hover{border-color:var(--teal)}
.phone-cc-btn:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.phone-cc-btn .fl{font-size:1.1rem;line-height:1}
.phone-cc-btn .dl{font-weight:600}
.phone-cc-btn .cr{font-size:.7rem;color:var(--muted)}
.phone-row.open .phone-cc-btn{border-color:var(--teal)}
.phone-pop{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:60;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px rgba(7,40,68,.18);padding:8px}
.phone-pop[hidden]{display:none}
.phone-pop .phone-search{width:100%;border:1px solid var(--line);border-radius:6px;padding:9px 10px;font:inherit;color:var(--ink);margin:0 0 6px}
.phone-pop .phone-search:focus{border-color:var(--teal);outline:none}
.phone-list{list-style:none;margin:0;padding:0;max-height:230px;overflow:auto;overscroll-behavior:contain}
.phone-list li[role="option"]{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:5px;cursor:pointer;color:var(--ink);font-size:.95rem}
.phone-list li[role="option"] .fl{width:1.4em;text-align:center}
.phone-list li[role="option"] .nm{flex:1;min-width:0}
.phone-list li[role="option"] .d{color:var(--muted);font-variant-numeric:tabular-nums}
.phone-list li[role="option"]:hover,.phone-list li.act{background:var(--ice)}
.phone-list li[aria-selected="true"]{font-weight:600}
.phone-list .grp{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:8px 8px 3px}
.phone-list .none{padding:10px 8px;color:var(--muted)}
.field-note{display:block;font-size:.84rem;margin-top:4px;line-height:1.4}
.field-note:empty{display:none}
.field-note.bad{color:#b32d2d}
.field-note.ok{color:#1b7a3d}
.field-note.wait{color:var(--muted)}
.field-note .linkbtn{border:0;background:none;padding:0;font:inherit;color:var(--teal);text-decoration:underline;cursor:pointer}
.field input.is-bad,.field.bad .phone-row input{border-color:#b32d2d}
@media(max-width:420px){.phone-cc-btn{padding:0 8px}.phone-cc-btn .cr{display:none}}

/* ---------- страница «О разработчике»: адрес почты нельзя выделить, скопировать или открыть ---------- */
.ghost-mail{font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;cursor:default;-webkit-touch-callout:none}
.ghost-mail::before{content:attr(data-u) "@" attr(data-d)}

/* ==========================================================
   Кнопки в шапке: язык (EN/RU) и тема (тёмная/светлая)
   ========================================================== */
.hdr-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:38px;padding:0 10px;border:1px solid rgba(255,255,255,.35);border-radius:6px;background:transparent;color:#fff;font-weight:700;font-size:.85rem;letter-spacing:.04em;text-decoration:none;line-height:1}
.hdr-btn:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.6)}
.theme-btn .ic-sun{display:none}
html[data-theme="dark"] .theme-btn .ic-sun{display:block}
html[data-theme="dark"] .theme-btn .ic-moon{display:none}
.header-actions{gap:8px}
@media(max-width:560px){
  .hdr-btn{min-width:38px;height:36px;padding:0 8px}
  .site-header .wrap{gap:10px}
}
html.theme-anim,html.theme-anim *{transition:background-color .3s,color .3s,border-color .3s!important}

/* ==========================================================
   Тёмная тема: html[data-theme="dark"]
   Цвета-переменные переопределены здесь, остальное — правила ниже (сгенерированы по светлой теме)
   ========================================================== */
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e4edf2;--muted:#9fb4c0;--line:#2b3e4b;--ice:#1b2b37;--mint:#16302f;
  --hull:#e8eef2;--seat:#a8987f;
}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .field select,
html[data-theme="dark"] .search input{color:var(--ink)}
html[data-theme="dark"] ::placeholder{color:#7d93a0}
html[data-theme="dark"] img{filter:brightness(.92)}
html[data-theme="dark"] .logo img{filter:none}
html[data-theme="dark"] body{background:#0e1820}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3{color:#e6eff4}
html[data-theme="dark"] :focus-visible{outline:3px solid #5cc7cf}
html[data-theme="dark"] .crumbs a:hover{color:#e6eff4}
html[data-theme="dark"] .btn{border:2px solid #1f5a80;background:#1f5a80}
html[data-theme="dark"] .btn.alt{background:#15222c;color:#e6eff4}
html[data-theme="dark"] .search-note a{color:#5cc7cf}
html[data-theme="dark"] .chip{background:#15222c;color:#e6eff4}
html[data-theme="dark"] .chip.on{background:#1f5a80;border-color:#1f5a80}
html[data-theme="dark"] .card{background:#15222c}
html[data-theme="dark"] .sea{background:linear-gradient(#1b2b37,#1b2b37)}
html[data-theme="dark"] .card .line{color:#5cc7cf}
html[data-theme="dark"] .price{color:#e6eff4}
html[data-theme="dark"] .panel li::before{color:#5cc7cf}
html[data-theme="dark"] .grid.compact .card .sea img{background:#15222c}
html[data-theme="dark"] .ncard{background:#15222c}
html[data-theme="dark"] .ncard .pic{background:linear-gradient(#1b2b37,#1b2b37)}
html[data-theme="dark"] .ncard .more{color:#5cc7cf}
html[data-theme="dark"] .tab{background:#15222c;color:#e6eff4}
html[data-theme="dark"] .tab.on{background:#1f5a80;border-color:#1f5a80}
html[data-theme="dark"] .cinfo .ic{color:#5cc7cf}
html[data-theme="dark"] .cinfo b{color:#e6eff4}
html[data-theme="dark"] .formcard{background:#15222c}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .field select{background:#15222c}
html[data-theme="dark"] .notice{background:#15222c}
html[data-theme="dark"] .article .cover{background:linear-gradient(#1b2b37,#1b2b37)}
html[data-theme="dark"] .viewer img{background:#15222c}
html[data-theme="dark"] table.spec th{background:#1f5a80}
html[data-theme="dark"] table.spec td:last-child{color:#e6eff4}
html[data-theme="dark"] .stepper button{background:#15222c}
html[data-theme="dark"] .stepper button.on{background:#1f5a80}
html[data-theme="dark"] .stepper button.done{color:#5cc7cf}
html[data-theme="dark"] .opt{background:#15222c}
html[data-theme="dark"] .total b{color:#e6eff4}
html[data-theme="dark"] .cfg-nophoto{border:2px dashed #2b3e4b;background:linear-gradient(#1b2b37,#1b2b37);color:#e6eff4}
html[data-theme="dark"] .cfg-nophoto svg{color:#5cc7cf}
html[data-theme="dark"] .cfg-nophoto .np-phone{color:#e6eff4}
html[data-theme="dark"] .optna .opt-n{background:#1b2b37}
html[data-theme="dark"] .optna .opt-n em{color:#ff7b88}
html[data-theme="dark"] .optna:hover .opt-n,html[data-theme="dark"] .optna:focus .opt-n{border-color:#7a3a44}
html[data-theme="dark"] .demo-note{background:#3a3214;border:1px solid #7a6420;color:#f0d98a}
html[data-theme="dark"] .bigtotal{background:#1f5a80}
html[data-theme="dark"] .box{background:#15222c}
html[data-theme="dark"] .err{color:#ff8a8a}
@media(max-width:900px){
  html[data-theme="dark"] .mobile-bar{background:#15222c}
}
html[data-theme="dark"] .alert{background:#3a1d1f;border:1px solid #7a3a3a;color:#ffb0b0}
html[data-theme="dark"] .chk.consent a,html[data-theme="dark"] .legal-links a{color:#5cc7cf}
html[data-theme="dark"] .legal mark{background:#4a3f12}
html[data-theme="dark"] .cfg-note{background:#3a3214;border:1px solid #7a6420;color:#f0d98a}
html[data-theme="dark"] .opt.sel::after{color:#5cc7cf}
html[data-theme="dark"] .sum-model{color:#e6eff4}
html[data-theme="dark"] .linkbtn{color:#5cc7cf}
html[data-theme="dark"] .linkbtn:hover{color:#e6eff4}
html[data-theme="dark"] .sum-copied{color:#5cc7cf}
@media(max-width:900px){
  html[data-theme="dark"] .cfg-bar{background:#15222c}
  html[data-theme="dark"] .cfg-bar b{color:#e6eff4}
}
html[data-theme="dark"] .fp-toggle{border:2px solid #1f5a80;background:#15222c;color:#e6eff4}
html[data-theme="dark"] .rng-title{color:#e6eff4}
html[data-theme="dark"] .rng-track input[type=range]::-webkit-slider-thumb{background:#15222c}
html[data-theme="dark"] .rng-track input[type=range]::-moz-range-thumb{background:#15222c}
html[data-theme="dark"] .rng-nums input{background:#15222c}
html[data-theme="dark"] .fsel{color:#e6eff4}
html[data-theme="dark"] .fsel select{background:#15222c}
html[data-theme="dark"] .flabels legend{color:#e6eff4}
html[data-theme="dark"] .chipcb span{background:#15222c;color:#e6eff4}
html[data-theme="dark"] .chipcb input:checked+span{background:#1f5a80;border-color:#1f5a80}
html[data-theme="dark"] .chipcb input:focus-visible+span{outline:3px solid #5cc7cf}
html[data-theme="dark"] .fchk input{accent-color:#5cc7cf}
html[data-theme="dark"] .res-count b{color:#e6eff4}
html[data-theme="dark"] .afilter{color:#e6eff4}
html[data-theme="dark"] .afilter:hover{background:#15222c}
html[data-theme="dark"] .afilter.reset{background:#15222c}
html[data-theme="dark"] .wq legend{color:#e6eff4}
html[data-theme="dark"] .cmp{color:#e6eff4}
html[data-theme="dark"] .cmp:hover{color:#5cc7cf}
html[data-theme="dark"] .cmp-box{background:#15222c}
html[data-theme="dark"] .cmp-wrap{background:#15222c}
html[data-theme="dark"] .cmp-table tbody th{background:#15222c}
html[data-theme="dark"] .cmp-table tbody td{color:#e6eff4}
html[data-theme="dark"] .cmp-table tbody tr:nth-child(even) td,html[data-theme="dark"] .cmp-table tbody tr:nth-child(even) th{background:#1b2b37}
html[data-theme="dark"] .cmp-name{color:#e6eff4}
html[data-theme="dark"] .kits a{color:#e6eff4}
html[data-theme="dark"] .kits span{color:#e6eff4}
html[data-theme="dark"] .cat-grid .card .sea img,html[data-theme="dark"] .cmp-pic img{background:#15222c}
html[data-theme="dark"] .phone-cc-btn{background:#15222c}
html[data-theme="dark"] .phone-cc-btn:focus-visible{outline:2px solid #5cc7cf}
html[data-theme="dark"] .phone-pop{background:#15222c}
html[data-theme="dark"] .field-note.bad{color:#ff8a8a}
html[data-theme="dark"] .field-note.ok{color:#6fd18f}
html[data-theme="dark"] .field-note .linkbtn{color:#5cc7cf}

/* Английский перевод документов: пометка о том, что главный — русский текст */
.legal-note{background:var(--ice);border-left:4px solid var(--teal);border-radius:6px;padding:10px 14px;margin:0 0 18px;font-size:.95rem;color:var(--muted)}
.legal-note a{color:var(--teal)}

/* ---------- плавное появление блоков и кнопка «Наверх» ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .65s cubic-bezier(.2,.7,.2,1),transform .65s cubic-bezier(.2,.7,.2,1);transition-delay:var(--rd,0ms)}
.reveal.in{opacity:1;transform:none}
.to-top{position:fixed;right:18px;bottom:18px;z-index:44;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.28);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility .25s,background-color .2s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--teal)}
.to-top.lift{bottom:74px}
@media(max-width:900px){
  body.has-bar .to-top{bottom:84px}
  body:has(.cmp-bar:not([hidden])) .to-top{bottom:84px}
  body.has-bar:has(.cmp-bar:not([hidden])) .to-top{bottom:150px}
}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.to-top{transition:none}}
@media print{.reveal{opacity:1!important;transform:none!important}.to-top{display:none!important}}
html[data-theme="dark"] .to-top{background:#1f5a80}
html[data-theme="dark"] .to-top:hover{background:#2a7aa8}
