/*
Theme Name: PSC Samsung Хабаровск
Description: Тема сайта фирменного сервисного центра Samsung в Хабаровске. Вёрстка по прототипу, цены из JSON 1С.
Version: 0.7.1
Requires PHP: 7.4
Text Domain: psc
*/
:root{--ink:#111114;--muted:#5a5a66;--line:#e6e6ea;--soft:#f4f4f6;--accent:#1f3bb3;--accent-d:#142a85;--ok:#13703f;--warn:#8a5100}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:#fff;font-size:16px;line-height:1.5}
a{color:var(--accent)}a:hover{color:var(--accent-d)}
h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.03em;margin:0}
h1{font-weight:800;font-size:clamp(2rem,4.6vw,3.6rem);line-height:1.06}
h2{font-weight:800;font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.15}
h3{font-weight:700;font-size:19px;letter-spacing:-.01em}
p{margin:0}
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.sec{padding:72px 0}.sec.soft{background:var(--soft)}.sec.dark{background:var(--ink);color:#fff}
.stack{display:flex;flex-direction:column;gap:20px}
.row{display:flex;flex-wrap:wrap;gap:16px}.row>*{min-width:0}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.lead{font-size:19px;color:var(--muted);max-width:680px}
.dark .lead{color:#c4c4cc}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:999px;font-weight:600;font-size:16px;text-decoration:none;border:none;cursor:pointer;font-family:inherit}
.btn.pri{background:var(--accent);color:#fff}.btn.pri:hover{background:var(--accent-d);color:#fff}
.btn.sec2{background:#e9e9ee;color:var(--ink)}.btn.sec2:hover{background:#dedee6;color:var(--ink)}
.sec.soft .btn.sec2,.bot .btn.sec2{background:#fff}
.btn.blk{background:var(--ink);color:#fff}.btn.blk:hover{color:#fff;background:#2a2a30}
.card{flex:1 1 240px;padding:24px;border-radius:20px;background:var(--soft);display:flex;flex-direction:column;gap:8px;color:var(--ink);text-decoration:none}
.sec.soft .card{background:#fff}
a.card:hover{outline:2px solid var(--accent);color:var(--ink)}
.card .k{font-family:Manrope,sans-serif;font-weight:800;font-size:24px}
.card .m{font-size:14px;color:var(--muted)}
.pill{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #c9c9d1;color:var(--ink);text-decoration:none;font-size:15px;font-weight:500;background:#fff}
.pill:hover{border-color:var(--ink);color:var(--ink)}
.crumbs{font-size:14px;color:var(--muted);padding-top:20px}.crumbs a{color:var(--muted)}
.hero{padding-top:40px;padding-bottom:56px}
.note{font-size:14px;color:var(--muted)}
.admin-note{background:#fff8d6;border:1px solid #eedd8a;color:#5c4a00;border-radius:12px;padding:10px 14px;font-size:13px}
/* таблицы */
.tbl{overflow-x:auto;border-radius:20px;background:#fff;border:1px solid var(--line)}
table{width:100%;border-collapse:collapse;font-size:16px}
th{text-align:left;color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;padding:14px 16px;border-bottom:1px solid var(--line);background:var(--soft)}
td{padding:14px 16px;border-bottom:1px solid #efeff2}
tr:last-child td{border-bottom:none}
td.b{font-weight:700;white-space:nowrap}td.mu{color:var(--muted);white-space:nowrap}
.ok{color:var(--ok);font-weight:600;font-size:14px}.wt{color:var(--warn);font-weight:600;font-size:14px}
/* боты и мессенджеры */
.bot{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:22px 24px;border-radius:20px;background:var(--soft)}.sec.soft .bot{background:#fff}.bot span{color:var(--muted);font-size:15px}
.msgs{gap:10px}
.msg{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #c9c9d1;background:#fff;color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}.msg:hover{border-color:var(--ink);color:var(--ink)}
.msg i{width:10px;height:10px;border-radius:50%;display:inline-block}.msg.wa i{background:#25d366}.msg.tg i{background:#2aabee}.msg.mx i{background:#7b5cff}
.dark .msg{background:transparent;color:#fff;border-color:#5a5a66}.dark .msg:hover{border-color:#fff;color:#fff}
.hmsg{display:flex;gap:6px;flex:none}.hmsg .msg{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;font-size:12px;gap:0}.hmsg .msg.wa{color:#128c4b}.hmsg .msg.tg{color:#1a7fc1}.hmsg .msg.mx{color:#5b3fd6}
/* строка над шапкой */
.util{background:var(--soft);border-bottom:1px solid var(--line);font-size:13px}.util .in{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1320px;margin:0 auto;padding:0 24px}.util .in>span{color:var(--muted)}
.util a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:600;text-decoration:none}.util a:hover{color:var(--accent)}.util a::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:8px}
/* шапка */
header.top{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}
.admin-bar header.top{top:32px}
header .in{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 24px;max-width:1320px;margin:0 auto;flex-wrap:nowrap;min-height:64px}
.logo{text-decoration:none;color:var(--ink);display:flex;flex-direction:column;justify-content:center;min-height:44px;min-width:0}
.logo .wm{display:flex;align-items:center;height:24px}.logo .wm img{height:100%;width:auto;display:block}
.logo span{font-size:12px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
nav.main{display:flex;gap:16px;flex-wrap:nowrap;font-weight:500;font-size:14px;white-space:nowrap}
nav.main a{color:var(--ink);text-decoration:none}nav.main>a,.dd>a{display:inline-flex;align-items:center;min-height:44px}nav.main a.on{color:var(--accent)}
.dd{position:relative}
.ddm{display:none;position:absolute;top:100%;left:-16px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.08);min-width:260px;flex-direction:column;z-index:60}
.dd:hover .ddm,.dd:focus-within .ddm{display:flex}
.ddm a{padding:10px 12px;border-radius:10px}.ddm a:hover{background:var(--soft)}
.phonebtn{flex:none;white-space:nowrap;min-height:44px;font-size:15px;padding:0 18px}
.burger{display:none;min-height:44px;flex:none;padding:0 18px;border-radius:999px;border:1px solid #c9c9d1;background:#fff;font:600 15px Inter,sans-serif;cursor:pointer;color:var(--ink)}
.mmenu{display:none;border-top:1px solid var(--line);background:#fff;max-height:70vh;overflow:auto}
.mmenu.on{display:block}
.mmenu .wrap{display:flex;flex-direction:column;padding:12px 24px 20px}
.mmenu b{margin-top:12px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.mmenu a{padding:10px 0;min-height:44px;color:var(--ink);text-decoration:none;border-bottom:1px solid #f0f0f3}
/* нижняя панель */
.mbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid var(--line)}
.mbar a{flex:1 1 0;min-height:48px;font-size:14px;padding:0 8px}
/* подвал */
footer{border-top:1px solid var(--line);background:var(--soft)}
footer .cols{display:flex;flex-wrap:wrap;gap:32px;padding:48px 24px;max-width:1200px;margin:0 auto}
footer .col{flex:1 1 200px;display:flex;flex-direction:column;gap:8px;font-size:14px}
footer .col b{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
footer .col a{color:var(--ink);text-decoration:none}footer .col a:hover{color:var(--accent)}
@media (max-width:1240px){nav.main{display:none}.burger{display:inline-flex;align-items:center}}
@media (max-width:820px){
body{padding-bottom:72px}
.mbar{display:flex}.hidem,.hmsg,.uhide{display:none}
.util .in{padding:0 16px;justify-content:center}
header .in{padding:10px 16px;gap:10px}
.logo .wm{height:20px}.logo span{font-size:11px;max-width:60vw}
.burger{padding:0 14px;font-size:14px}
.wrap{padding:0 16px}
.hero{padding-top:20px;padding-bottom:40px}
h1{font-size:clamp(1.8rem,8vw,2.4rem)}
.lead{font-size:17px}
.sec{padding:48px 0}}
@media (max-width:782px){.admin-bar header.top{top:46px}}
/* страница модели */
.mhero{gap:40px;align-items:flex-start}
.photo{flex:0 1 340px;aspect-ratio:1/1;border-radius:24px;background:var(--soft);display:flex;align-items:center;justify-content:center;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:contain}
.mtop{flex:1 1 520px;gap:18px}
.h1m{font-size:clamp(1.8rem,3.6vw,2.8rem)}
.cards3{gap:12px}.cards3 .card{flex:1 1 150px;background:#fff;border:1px solid var(--line)}
.revl{font-size:15px;color:var(--muted)}
table.prices{min-width:0}
td.w{font-weight:500}.more{font-size:13px;margin-left:6px;white-space:nowrap}
.faq{display:flex;flex-direction:column;gap:10px;max-width:860px}
.faq details{background:var(--soft);border-radius:18px}.sec.soft .faq details{background:#fff}
.faq summary{list-style:none;cursor:pointer;padding:18px 22px;font-weight:600;font-size:17px;display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:60px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;color:var(--muted)}.faq details[open] summary::after{content:"−"}
.faq details p{padding:0 22px 20px;color:#44444f;line-height:1.6}
.fbox{background:#fff;color:var(--ink);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:14px}
.sec.dark .btn.sec2{background:#2a2a30;color:#fff}
@media (max-width:820px){
.mhero{flex-direction:column;gap:20px}.mhero .photo{order:2;flex:none;width:160px}
.prices thead{display:none}
.prices,.prices tbody,.prices tr,.prices td{display:block;width:100%}
.prices tr{padding:12px 16px;border-bottom:1px solid var(--line)}
.prices td{padding:2px 0;border:none;white-space:normal;display:flex;justify-content:space-between;gap:12px}
.prices td::before{content:attr(data-l);color:var(--muted);font-size:13px;font-weight:400}
.prices td.w{display:block;font-size:16px;padding-bottom:6px}.prices td.w::before{content:none}}
.photo.has-img{background:#fff;border:1px solid var(--line)}
/* блоки страниц */
.why{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.why div{padding:22px;border-radius:18px;background:#fff;display:flex;flex-direction:column;gap:6px}
.sec:not(.soft) .why div{background:var(--soft)}
.why b{font-family:Manrope,sans-serif;font-size:17px}.why span{font-size:15px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:10px}.chips span{padding:12px 18px;border-radius:999px;background:#fff;font-size:15px}
.sec:not(.soft) .chips span{background:var(--soft)}
ol.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;counter-reset:s}
ol.steps li{counter-increment:s;padding:22px;border-radius:18px;border:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
ol.steps li::before{content:counter(s);font-family:Manrope,sans-serif;font-weight:800;font-size:30px;color:var(--accent)}
ol.steps span{color:var(--muted);font-size:15px}
.series{display:flex;flex-direction:column;gap:12px}.series h3{margin-top:12px}
.search{display:flex;flex-direction:column;gap:8px;max-width:560px}
.search label{font-weight:600;font-size:14px}
.search input{min-height:56px;padding:0 20px;border-radius:16px;border:1px solid #c9c9d1;font-size:17px;font-family:inherit;width:100%}
.results{display:flex;flex-wrap:wrap;gap:8px}
.tips{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;max-width:860px;font-size:17px;line-height:1.55}
.revw{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:15px}.revw .rk{font-family:Manrope,sans-serif;font-weight:800;font-size:32px;color:var(--ink)}
.map{aspect-ratio:16/9;max-height:420px;width:100%;border-radius:20px;background:var(--soft);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;overflow:hidden}
.map iframe{width:100%;height:100%;border:0}
.card a.k{text-decoration:none;color:inherit}
.card p{font-size:15px}
/* формы */
form.f{display:flex;flex-direction:column;gap:10px;background:#fff;color:var(--ink);border-radius:24px;padding:28px;flex:1 1 min(440px,100%);min-width:0}
form.f label{font-size:14px;font-weight:600}
form.f input,form.f textarea{min-height:50px;padding:12px 16px;border-radius:14px;border:1px solid #c9c9d1;font-size:16px;font-family:inherit;width:100%}
form.f .who{border:none;padding:0;margin:0;display:flex;gap:16px;flex-wrap:wrap}
form.f .who legend{font-size:14px;font-weight:600;margin-bottom:6px}
form.f .who label{display:flex;gap:8px;align-items:center;min-height:44px;font-weight:400}
form.f .who input{min-height:auto;width:20px;height:20px}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.okmsg{padding:14px 16px;border-radius:14px;background:#e9f6ee;color:var(--ok);font-weight:600}
.errmsg{padding:14px 16px;border-radius:14px;background:#fcf0f1;color:#b32d2e;font-weight:600}
.dark a:not(.btn):not(.msg){color:#c9d3ff}
.entry{font-size:17px;line-height:1.6;max-width:860px}.entry img{border-radius:12px}
.nav-links{display:flex;gap:10px;flex-wrap:wrap}.nav-links .page-numbers{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;border-radius:999px;background:#fff;text-decoration:none}
/* логотип крупнее, по центру над подписью */
.logo{align-items:center;text-align:center}
.logo .wm{height:30px;justify-content:center}
.logo span{margin-top:5px}
@media (max-width:820px){.logo .wm{height:22px}}
/* предзаказ */
a.pre{display:inline-block;margin-left:8px;font-size:13px;font-weight:600;white-space:nowrap}
.preorder{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 24px;display:flex;flex-direction:column;gap:12px}
.sec:not(.soft) .preorder{background:var(--soft);border:none}
.preorder ol.steps li{background:var(--soft);border:none}.sec:not(.soft) .preorder ol.steps li{background:#fff}
@media (max-width:820px){.prices td[data-l="Наличие"]{flex-wrap:wrap}}
/* выпадающее меню с пояснениями */
.ddm{min-width:320px}
.ddm a{display:flex;flex-direction:column;gap:2px;white-space:normal}
.ddm a b{font-weight:600}.ddm a small{font-size:12px;color:var(--muted);font-weight:400}
.ddm a:hover b{color:var(--accent)}
.dd:last-of-type .ddm{left:auto;right:-16px}
.map img{width:100%;height:100%;object-fit:cover}
.map.map-js{display:block}.map.map-js>*{width:100%!important;height:100%!important}
.sec.dark form.f a:not(.btn):not(.msg){color:var(--accent)}
/* мобильное меню: заголовки групп жирные и отделены от пунктов */
.mmenu b{display:block;margin-top:22px;padding-bottom:8px;font-family:Manrope,sans-serif;font-weight:800;font-size:14px;letter-spacing:.06em;color:var(--ink);border-bottom:2px solid var(--ink)}
.mmenu b:first-child{margin-top:8px}
.mmenu a{font-weight:400;padding-left:4px}
h2.h3{font-weight:700;font-size:19px;letter-spacing:-.01em;line-height:1.3}
/* капча */
.smart-captcha{min-height:102px;margin:6px 0}
.capmsg{padding:10px 14px;border-radius:12px;background:#fcf0f1;color:#b32d2e;font-weight:600;font-size:14px}
/* своя карта */
.map.map-osm{display:block;position:relative;z-index:0}
.map.map-osm>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.psc-pin span{display:block;width:30px;height:30px;border-radius:50% 50% 50% 0;background:var(--accent);transform:rotate(-45deg);border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.map .leaflet-popup-content{font:14px/1.4 Inter,sans-serif;margin:10px 14px}
@media (max-width:820px){.map{aspect-ratio:4/3}}
