/*
Theme Name: Petition Trust
Theme URI: https://petitiontrust.ru/
Author: Petition Trust
Author URI: https://petitiontrust.ru/
Description: Тема интернет-магазина цифровых медицинских документов Petition Trust. Светлая сине-белая дизайн-система старого сайта, перенесённая в WordPress: шапка с меню и корзиной, карточки каталога, формы, подвал с реквизитами продавца. Поддержка WooCommerce (каталог, товар, корзина, оформление заказа), Rank Math и плагинов форм.
Version: 1.0.6
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petitiontrust
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready, right-sidebar, block-styles, wide-blocks
WC requires at least: 7.0
WC tested up to: 9.4
*/

/* =========================================================================
   ЧАСТЬ 1. ДИЗАЙН-СИСТЕМА СТАРОГО САЙТА (перенесена из static/css/styles.css)
   -------------------------------------------------------------------------
   Палитра, типографика, кнопки, сетки, карточки, шапка, подвал и формы
   взяты из исходников без изменения значений — менялась только обвязка
   под WordPress/WooCommerce (см. часть 2 ниже).
   ========================================================================= */

/* =========================================================
   Petition Trust — макет (прототип)
   Все цены, коэффициенты и данные — ЗАГЛУШКИ-ПЛЕЙСХОЛДЕРЫ.
   ========================================================= */

/* ---------- 1. Токены дизайн-системы ---------- */
:root{
  /* ----- Палитра снята с логотипа (лотос «P»): глубокий navy #0A385A,
     светло-серо-голубой контур #B4B9BD, белый. Вся гамма — производные
     от этих тонов, чтобы сайт визуально совпадал с логотипом. ----- */
  --navy:          #0A385A;   /* ТОЧНЫЙ тон логотипа: шапка, подвал, заголовки */
  --navy-2:        #0E4A76;   /* чуть светлее — градиенты, hover-подложки */
  --accent:        #1565A0;   /* основной акцент: кнопки, ссылки, активные элементы */
  --accent-hover:  #0B4175;   /* hover / active — уходит в тон логотипа */
  --accent-2:      #0E4A76;
  --accent-ink:    #ffffff;   /* текст на синих кнопках */
  --accent-soft:   #E9F1F7;   /* светлые подложки: бейджи, выделения */
  --accent-soft-2: #D7E6F1;
  --brand-gray:    #B4B9BD;   /* серо-голубой контур логотипа — точечно (стрелки, тонкие линии) */
  --bg:            #F5F8FB;   /* фон страниц */
  --bg-2:          #EEF4F8;
  --surface:       rgba(255,255,255,.72);
  --surface-2:     rgba(255,255,255,.92);
  --border:        #D8E2EB;   /* тонкие границы */
  --border-2:      #C0D0DE;
  --text:          #1C2733;   /* основной текст */
  --text-2:        #566878;   /* вторичный текст */
  --muted:         #5E7080;
  --warn:          #d92d3f;   /* ошибка — допускается красный */

  --radius-sm:     12px;
  --radius:        18px;
  --radius-lg:     26px;
  --radius-xl:     34px;

  --container:     1200px;
  --gutter:        20px;

  --shadow-sm:     0 1px 2px rgba(10,56,90,.06);
  --shadow:        0 18px 46px -30px rgba(10,56,90,.22);
  --shadow-glow:   0 14px 34px -18px rgba(21,101,160,.45);

  --font-sans: "Inter",-apple-system,"Segoe UI",Arial,sans-serif;
  --font-display: "Manrope","Segoe UI",Arial,sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 74px;
}

/* ---------- 2. Базовое ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font-sans);
  font-size:16px;
  font-weight:400;
  line-height:1.55;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
body.is-locked{ overflow:hidden; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.2; letter-spacing:-.01em; font-weight:600; color:var(--navy); }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
img,svg{ display:block; max-width:100%; }
ul{ margin:0; padding:0; list-style:none; }
[hidden]{ display:none !important; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:8px; }

.wrap{ width:100%; max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }
.section{ padding:clamp(64px,9vw,132px) 0; position:relative; }
/* Ритм светлой темы: чередование очень светлых тонов с мягкими переходами */
main > .section:nth-of-type(even){
  background:linear-gradient(180deg,rgba(247,249,251,0),#f7f9fb 13%,#f7f9fb 87%,rgba(247,249,251,0));
}
#process{ --bg:#f7f9fb; }  /* фон под «вырезом» номеров таймлайна совпадает с тоном секции */
section[id]{ scroll-margin-top:calc(var(--header-h) + 18px); }

/* ---------- 3. Фон и декор ---------- */
.bg-fx{ position:fixed; inset:0; z-index:-2; pointer-events:none; overflow:hidden; }
.bg-fx .grid{
  position:absolute; inset:-2px;
  background-image:linear-gradient(rgba(21,32,48,.05) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(21,32,48,.05) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 100% 70% at 50% 0%,#000 20%,transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 100% 70% at 50% 0%,#000 20%,transparent 78%);
}
.orb{ position:absolute; border-radius:50%; filter:blur(80px); opacity:.55; }
.orb-1{ width:52vw; height:52vw;  top:-16vw; left:-10vw;
        background:radial-gradient(circle at 30% 30%,rgba(21,101,160,.22),transparent 62%); }
.orb-2{ width:44vw; height:44vw;  top:6vw; right:-14vw;
        background:radial-gradient(circle at 60% 40%,rgba(21,101,160,.16),transparent 64%); }
.orb-3{ width:40vw; height:40vw;  top:120vh; left:38%;
        background:radial-gradient(circle at 50% 50%,rgba(180,185,189,.20),transparent 66%); }

/* ---------- 4. Типографика ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--accent); background:var(--accent-soft);
  border:1px solid rgba(21,101,160,.28); border-radius:999px;
  padding:6px 12px; margin-bottom:16px;
}
.eyebrow::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px var(--accent); }
.h-display{ font-size:32px; line-height:1.2; }
.h2{ font-size:24px; }
.h3{ font-size:18px; font-weight:600; letter-spacing:-.01em; }
.lead{ font-size:16px; line-height:1.6; color:var(--text-2); max-width:72ch; }
.muted{ color:var(--muted); }
.text-grad{
  background:linear-gradient(100deg,var(--accent) 0%,#3E7FC1 46%,var(--accent-2) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.section-head{ max-width:760px; margin-bottom:clamp(34px,5vw,58px); }
.section-head .lead{ margin-top:18px; }

/* ---------- 5. Кнопки ---------- */
.btn{
  --btn-bg:transparent;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 24px; border-radius:999px; border:1px solid var(--border-2);
  background:var(--btn-bg); font-weight:600; font-size:.95rem; cursor:pointer;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s var(--ease),border-color .25s var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn-primary{
  --btn-bg:linear-gradient(135deg,var(--accent),#0B4175);
  color:var(--accent-ink); border-color:transparent; box-shadow:var(--shadow-glow);
}
.btn-primary:hover{ box-shadow:0 22px 52px -20px rgba(21,101,160,.55); }
.btn-ghost{ background:var(--surface); border-color:var(--border); color:var(--text); backdrop-filter:blur(12px); }
.btn-ghost:hover{ background:var(--surface-2); border-color:var(--border-2); }
.btn-sm{ padding:10px 18px; font-size:.86rem; }
.btn-block{ width:100%; }
.btn .arw{ transition:transform .25s var(--ease); }
.btn:hover .arw{ transform:translateX(4px); }

/* ---------- 6. Стеклянные панели ---------- */
.glass{
  background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(255,255,255,.66));
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:var(--shadow);
  position:relative;
}
.glass::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.85),transparent 42%);
  opacity:.6; mix-blend-mode:normal;
}

/* ---------- 7. Хедер ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:14px 0;
  transition:padding .35s var(--ease),background .35s var(--ease),backdrop-filter .35s var(--ease),border-color .35s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.is-stuck{
  padding:8px 0;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(20px) saturate(150%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  border-bottom-color:var(--border);
}
.header-inner{ display:flex; align-items:center; gap:20px; }
.logo{ display:flex; align-items:center; gap:11px; font-weight:700; font-family:var(--font-display); letter-spacing:-.03em; font-size:1.12rem; }
.logo-mark{
  width:36px; height:36px; border-radius:11px; flex:none;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:grid; place-items:center; color:#ffffff;
  box-shadow:0 8px 26px -12px rgba(21,101,160,.5);
}
.logo-mark svg{ width:20px; height:20px; }
.logo span.sub{ display:block; font-size:.66rem; font-weight:600; letter-spacing:.1em; color:var(--muted); text-transform:uppercase; }

.nav{ display:none; align-items:center; gap:4px; margin-left:auto; }
.nav a{
  padding:9px 13px; border-radius:999px; font-size:.9rem; font-weight:500; color:var(--text-2);
  transition:color .2s,background .2s;
}
.nav a:hover{ color:var(--text); background:var(--surface); }
.header-actions{ display:none; align-items:center; gap:14px; margin-left:auto; }
.nav + .header-actions{ margin-left:8px; }
.phone{ font-weight:700; font-size:.92rem; color:var(--text); display:inline-flex; align-items:center; gap:8px; }
.phone:hover{ color:var(--accent); }
.phone svg{ width:15px; height:15px; color:var(--accent); }

.burger{
  margin-left:auto; width:44px; height:44px; border-radius:12px; border:1px solid var(--border);
  background:var(--surface); display:grid; place-items:center; gap:5px; cursor:pointer; opacity:1;
  transition:transform .2s var(--ease),background .2s;
}
.burger:hover{ background:var(--surface-2); }
.burger i{ display:block; width:17px; height:2px; border-radius:2px; background:var(--text); transition:transform .3s var(--ease),opacity .3s; }
.site-header.nav-open .burger i:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.site-header.nav-open .burger i:nth-child(2){ opacity:0; }
.site-header.nav-open .burger i:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-nav{
  display:grid; gap:4px; overflow:hidden; max-height:0; opacity:0;
  transition:max-height .4s var(--ease),opacity .3s var(--ease),margin .3s var(--ease);
}
.site-header.nav-open .mobile-nav{ max-height:70vh; opacity:1; margin-top:14px; }
.mobile-nav a{ padding:13px 16px; border-radius:14px; background:var(--surface); border:1px solid var(--border); font-weight:600; }
.mobile-nav .mrow{ display:grid; gap:10px; padding-top:10px; }

@media (min-width:1060px){
  .nav{ display:flex; }
  .header-actions{ display:flex; }
  .burger{ display:none; }
}

/* ---------- 8. Hero ---------- */
.hero{ position:relative; padding:calc(var(--header-h) + 54px) 0 clamp(56px,7vw,96px); overflow:hidden; }
.hero-inner{ position:relative; z-index:2; }
.hero h1{ max-width:16ch; margin:0 0 22px; }
.hero .lead{ margin-bottom:34px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:clamp(42px,6vw,72px); }
.hero-note{ display:flex; align-items:center; gap:10px; font-size:.85rem; color:var(--muted); margin-top:16px; }
.hero-note svg{ width:16px; height:16px; color:var(--accent); flex:none; }

.stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:720px){ .stats{ grid-template-columns:repeat(4,1fr); gap:18px; } }
.stat{ padding:20px 20px 22px; border-radius:var(--radius); }
.stat b{ display:block; font-family:var(--font-display); font-size:clamp(1.6rem,4.4vw,2.35rem); font-weight:700; letter-spacing:-.04em; }
.stat small{ display:block; color:var(--muted); font-size:.82rem; margin-top:4px; line-height:1.35; }

.hero-parallax{ will-change:transform; }

/* ---------- 9. Асимметричные сетки ---------- */
.grid{ display:grid; gap:16px; }
@media (min-width:640px){ .grid-2{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px){
  .grid-3{ grid-template-columns:repeat(3,1fr); }
  .split-asym{ grid-template-columns:1.15fr .85fr; }
  .split-asym-rev{ grid-template-columns: .85fr 1.15fr; }
}
@media (min-width:1060px){
  .grid-catalog{ grid-template-columns:repeat(6,1fr); }
  .grid-catalog > *{ grid-column:span 3; }
  .grid-catalog > *:nth-child(1){ grid-column:span 4; }
  .grid-catalog > *:nth-child(2){ grid-column:span 2; }
  .grid-catalog > *:nth-child(3){ grid-column:span 2; }
  .grid-catalog > *:nth-child(4){ grid-column:span 2; }
  .grid-catalog > *:nth-child(5){ grid-column:span 2; }
  .grid-catalog > *:nth-child(6){ grid-column:span 6; }
}

/* ---------- 10. Карточки ---------- */
.card{ padding:20px; border-radius:var(--radius-lg); transition:transform .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease); }
.card:hover{ transform:translateY(-4px); border-color:var(--border-2); box-shadow:var(--shadow),0 0 0 1px rgba(21,101,160,.16); }
.card h3{ margin-bottom:9px; }
.card p{ color:var(--text-2); font-size:16px; line-height:1.55; }

.ico{
  width:46px; height:46px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px;
  background:linear-gradient(140deg,rgba(21,101,160,.14),rgba(21,101,160,.10));
  border:1px solid rgba(21,101,160,.26); color:var(--accent); flex:none;
}
.ico svg{ width:22px; height:22px; }
.ico.alt{ background:linear-gradient(140deg,rgba(21,101,160,.12),rgba(180,185,189,.16)); border-color:rgba(21,101,160,.26); color:#1565A0; }

/* Проблема → решение */
.pain{ display:flex; gap:14px; padding:16px 18px; border-radius:var(--radius); background:rgba(217,45,63,.05); border:1px solid rgba(217,45,63,.16); }
.pain .mk{ width:26px; height:26px; border-radius:9px; flex:none; display:grid; place-items:center; background:rgba(217,45,63,.12); color:var(--warn); margin-top:2px; }
.pain .mk svg{ width:13px; height:13px; }
.pain b{ display:block; font-size:.98rem; margin-bottom:3px; }
.pain span{ color:var(--text-2); font-size:.88rem; }
.fix{ display:flex; gap:14px; padding:16px 18px; border-radius:var(--radius); background:var(--accent-soft); border:1px solid rgba(21,101,160,.22); }
.fix .mk{ width:26px; height:26px; border-radius:9px; flex:none; display:grid; place-items:center; background:rgba(21,101,160,.14); color:var(--accent); margin-top:2px; }
.fix .mk svg{ width:13px; height:13px; }

/* ---------- 11. Прайс ---------- */
.price-group{ padding:0; overflow:hidden; }
.price-group > header{ padding:24px 26px 20px; border-bottom:1px solid var(--border); display:flex; align-items:flex-start; gap:14px; }
.price-group > header .tag{
  font-family:var(--font-display); font-weight:700; font-size:.95rem; width:32px; height:32px; flex:none;
  border-radius:10px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent);
  border:1px solid rgba(21,101,160,.26);
}
.price-group > header p{ color:var(--muted); font-size:.85rem; margin-top:5px; }
.price-list{ padding:8px 12px 14px; }
.price-row{
  display:flex; align-items:baseline; gap:14px; padding:14px 14px; border-radius:14px;
  transition:background .2s var(--ease);
}
.price-row:hover{ background:rgba(21,101,160,.06); }
.price-row .nm{ flex:1 1 auto; min-width:0; }
.price-row .nm b{ font-weight:600; font-size:.95rem; }
.price-row .nm small{ display:block; color:var(--muted); font-size:.79rem; margin-top:3px; }
.price-row .val{ font-family:var(--font-display); font-weight:700; font-size:1rem; white-space:nowrap; letter-spacing:-.02em; }
.dots{ flex:1 1 auto; border-bottom:1px dashed var(--border-2); opacity:.6; transform:translateY(-4px); }
.badge{ display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:3px 9px; border-radius:999px; background:var(--surface-2); color:var(--text-2); border:1px solid var(--border); margin-left:8px; vertical-align:middle; }
.badge.hot{ background:rgba(21,101,160,.12); color:var(--accent); border-color:rgba(21,101,160,.30); }
.priced{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.note{ font-size:.82rem; color:var(--muted); margin-top:14px; padding-left:14px; border-left:2px solid var(--border-2); }

.field{ display:grid; gap:10px; }
.field > label,.flabel{ font-size:.86rem; font-weight:600; color:var(--text-2); display:flex; align-items:center; justify-content:space-between; gap:10px; }

.range-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.range-val{ font-family:var(--font-display); font-weight:700; font-size:1.25rem; color:var(--accent); }
input[type=range]{
  -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px; background:rgba(21,32,48,.09);
  border:1px solid var(--border); cursor:pointer;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,var(--accent),#0B4175);
  border:3px solid #ffffff; box-shadow:0 0 0 4px rgba(21,101,160,.16),0 6px 16px -8px rgba(16,32,56,.35);
}
input[type=range]::-moz-range-thumb{
  width:18px; height:18px; border-radius:50%; background:var(--accent); border:3px solid #ffffff; cursor:pointer;
}
.check{ display:flex; align-items:flex-start; gap:11px; padding:13px 15px; border-radius:14px; border:1px solid var(--border); background:var(--surface); cursor:pointer; transition:all .22s var(--ease); }
.check:hover{ border-color:var(--border-2); }
.check input{ margin-top:3px; accent-color:var(--accent); width:17px; height:17px; flex:none; }
.check b{ display:block; font-size:.9rem; font-weight:600; }
.check small{ color:var(--muted); font-size:.78rem; }

/* ---------- 13. Таймлайн ---------- */
.timeline{ position:relative; display:grid; gap:18px; }
@media (min-width:900px){
  .timeline{ grid-template-columns:repeat(6,1fr); gap:14px; }
  .timeline::before{
    content:""; position:absolute; top:26px; left:2%; right:2%; height:1px;
    background:linear-gradient(90deg,transparent,var(--border-2) 8%,var(--border-2) 92%,transparent);
  }
}
.step{ position:relative; padding-top:0; }
@media (min-width:900px){ .step{ padding-top:64px; } }
.step .num{
  width:52px; height:52px; border-radius:16px; display:grid; place-items:center; flex:none;
  font-family:var(--font-display); font-weight:700; font-size:1.05rem;
  background:linear-gradient(150deg,rgba(21,101,160,.13),rgba(21,101,160,.08));
  border:1px solid rgba(21,101,160,.26); color:var(--accent); position:relative; z-index:2;
  box-shadow:0 0 0 6px var(--bg);
}
@media (min-width:900px){ .step .num{ position:absolute; top:0; left:0; } }
.step .txt{ display:flex; gap:16px; }
@media (min-width:900px){ .step .txt{ display:block; } }
.step h3{ font-size:1rem; margin-bottom:6px; }
.step p{ color:var(--text-2); font-size:.87rem; }

/* ---------- 14. Преимущества / кому подходит ---------- */
.mini{ display:flex; gap:14px; padding:20px; border-radius:var(--radius); }
.mini .ico{ margin-bottom:0; width:40px; height:40px; border-radius:12px; }
.mini .ico svg{ width:19px; height:19px; }
.mini b{ display:block; font-size:.97rem; margin-bottom:5px; font-weight:600; }
.mini span{ color:var(--text-2); font-size:.86rem; }

.chip-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media (min-width:700px){ .chip-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1000px){ .chip-grid{ grid-template-columns:repeat(6,1fr); } }
.chip{ display:grid; gap:12px; padding:22px 18px; border-radius:var(--radius); text-align:left; }
.chip .ico{ margin-bottom:0; }
.chip b{ font-size:.92rem; font-weight:600; }

/* ---------- 15. Доказательства ---------- */
.logos{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media (min-width:760px){ .logos{ grid-template-columns:repeat(4,1fr); } }
.logo-ph{
  height:78px; display:grid; place-items:center; border-radius:var(--radius); border:1px dashed var(--border-2);
  background:var(--surface); color:var(--muted); font-weight:700; letter-spacing:.04em; font-size:.85rem; text-align:center; padding:10px;
  transition:all .25s var(--ease);
}
.logo-ph:hover{ color:var(--text); border-color:rgba(21,101,160,.45); background:var(--surface-2); }

.case{ padding:26px; border-radius:var(--radius-lg); display:grid; gap:14px; align-content:start; }
.case .kpi{ font-family:var(--font-display); font-size:1.9rem; font-weight:700; letter-spacing:-.03em; color:var(--accent); }
.case .tagline{ font-size:.75rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); font-weight:700; }

.review{ padding:26px; border-radius:var(--radius-lg); display:grid; gap:16px; align-content:start; }
.review p{ color:var(--text-2); font-size:.94rem; }
.review .who{ display:flex; align-items:center; gap:12px; }
.avatar{ width:42px; height:42px; border-radius:50%; flex:none; display:grid; place-items:center; font-weight:700; font-family:var(--font-display);
  background:linear-gradient(135deg,rgba(21,101,160,.18),rgba(21,101,160,.16)); border:1px solid var(--border-2); color:var(--text); }
.review .who b{ display:block; font-size:.9rem; }
.review .who small{ color:var(--muted); font-size:.79rem; }
.stars{ color:var(--accent); letter-spacing:2px; font-size:.9rem; }

/* ---------- 16. FAQ ---------- */
.faq{ display:grid; gap:12px; }
.qa{ border-radius:var(--radius); overflow:hidden; }
.qa button{
  width:100%; text-align:left; background:none; border:0; cursor:pointer; padding:22px 24px;
  display:flex; align-items:center; gap:16px; font-weight:600; font-size:1rem; font-family:var(--font-display);
  letter-spacing:-.01em;
}
.qa .pm{ margin-left:auto; width:30px; height:30px; border-radius:10px; flex:none; display:grid; place-items:center;
  background:var(--surface-2); border:1px solid var(--border); transition:transform .3s var(--ease),background .3s; }
.qa .pm svg{ width:14px; height:14px; color:var(--accent); }
.qa.open .pm{ background:var(--accent-soft); transform:rotate(180deg); }
.qa .ans{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.qa .ans p{ padding:0 24px 22px; color:var(--text-2); font-size:.93rem; }

/* ---------- 17. О компании ---------- */
.about-facts{ display:grid; gap:12px; }
.about-fact{ display:flex; gap:14px; padding:18px; border-radius:var(--radius); }
.about-fact .nm{ font-family:var(--font-display); font-size:1.5rem; font-weight:700; color:var(--accent); min-width:76px; letter-spacing:-.03em; }
.about-fact p{ font-size:.88rem; color:var(--text-2); }

/* ---------- 18. Контакты и форма ---------- */
.contact-grid{ display:grid; gap:18px; }
@media (min-width:960px){ .contact-grid{ grid-template-columns:.9fr 1.1fr; } }
.form{ padding:clamp(22px,4vw,36px); display:grid; gap:16px; }
.form .row{ display:grid; gap:16px; }
@media (min-width:620px){ .form .row.two{ grid-template-columns:1fr 1fr; } }
input[type=text],input[type=tel],input[type=email],select,textarea{
  width:100%; padding:14px 16px; border-radius:14px; background:#ffffff;
  border:1px solid rgba(21,32,48,.14); color:var(--text); transition:border-color .2s,background .2s,box-shadow .2s;
}
input::placeholder,textarea::placeholder{ color:#98a2ae; }
input:focus,select:focus,textarea:focus{ border-color:rgba(21,101,160,.55); background:#ffffff; box-shadow:0 0 0 4px rgba(21,101,160,.10); outline:none; }
select{ appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--accent) 50%),linear-gradient(135deg,var(--accent) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%; background-size:6px 6px,6px 6px; background-repeat:no-repeat; }
.consent{ display:flex; gap:11px; align-items:flex-start; font-size:.8rem; color:var(--muted); }
.consent input{ margin-top:3px; accent-color:var(--accent); width:16px; height:16px; flex:none; }
.consent a{ color:var(--text-2); text-decoration:underline; text-decoration-color:var(--border-2); }
.form-ok{
  display:none; margin-top:4px; padding:16px 18px; border-radius:var(--radius); font-size:.9rem;
  background:var(--accent-soft); border:1px solid rgba(21,101,160,.32); color:var(--text);
}
.form-ok.show{ display:block; animation:pop .45s var(--ease); }
@keyframes pop{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }

.contact-list{ display:grid; gap:12px; }
.cline{ display:flex; gap:14px; padding:18px; border-radius:var(--radius); align-items:center; }
.cline .ico{ margin-bottom:0; width:42px; height:42px; border-radius:12px; }
.cline .ico svg{ width:19px; height:19px; }
.cline b{ display:block; font-size:.95rem; }
.cline small{ color:var(--muted); font-size:.8rem; }
.cline a{ word-break:break-word; }

/* ---------- 19. Подвал ---------- */
.footer{ border-top:1px solid var(--border); padding:clamp(44px,6vw,72px) 0 34px; margin-top:clamp(40px,6vw,80px); background:linear-gradient(180deg,transparent,var(--bg-2)); }
.foot-grid{ display:grid; gap:34px; }
@media (min-width:820px){ .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1.2fr; } }
.foot-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; margin-bottom:12px; font-family:var(--font-sans); }
.foot-col li{ margin-bottom:10px; }
.foot-col a{ color:var(--text-2); font-size:.9rem; }
.foot-col a:hover{ color:var(--accent); }
.foot-bottom{ margin-top:24px; padding-top:0; border-top:0; display:grid; gap:10px; font-size:14px; color:var(--muted); }
@media (min-width:760px){ .foot-bottom{ grid-template-columns:1fr auto; align-items:center; } }
.foot-bottom a{ color:var(--text-2); text-decoration:underline; text-decoration-color:var(--border-2); }

/* Ряд логотипов платёжных систем в подвале.
   Тот же набор, что в блоке «Способы оплаты» на «Контактах»
   (одна функция pt_payment_logos()): высота 28 px, object-fit: contain,
   flex с переносом. Стоит под реквизитами, перед копирайтом. */
.foot-pay{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:32px;
  padding-top:22px;
  border-top:1px solid var(--border);
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.foot-pay__caption{
  margin:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
  line-height:1.3;
}
.foot-pay .pt-pay-logos{ gap:12px 18px; max-width:100%; }
.foot-pay .pt-pay-logos li{ flex:0 0 auto; max-width:100%; }
.foot-pay .pt-pay-logos img{ height:28px; width:auto; max-width:100%; object-fit:contain; }
@media (max-width:560px){
  .foot-pay{ margin-top:26px; padding-top:18px; }
  .foot-pay .pt-pay-logos{ gap:10px 14px; }
  .foot-pay .pt-pay-logos img{ height:24px; }
}
.legal{ font-size:14px; color:var(--muted); line-height:1.55; }

/* ---------- 19b. Преимущества (кратко), аудитории и CTA-ряды ---------- */
.adv-band{
  padding:clamp(24px,3.8vw,38px) clamp(24px,4vw,42px);
  border-radius:var(--radius-xl);
  display:grid; gap:22px;
}
@media (min-width:900px){
  .adv-band{ grid-template-columns:minmax(min(200px,100%),.30fr) 1fr; align-items:center; gap:38px; }
}
.adv-band h2{ margin:0; }
.adv-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
@media (min-width:760px){ .adv-list{ grid-template-columns:repeat(2,1fr); gap:12px 28px; } }
.adv-list li{ color:var(--text-2); font-size:.95rem; line-height:1.5; }

.aud-card{ display:flex; flex-direction:column; padding:28px; }
.aud-card > h3{ margin:0 0 12px; color:var(--accent); }
.aud-head{
  font-family:var(--font-display); font-size:1.04rem; font-weight:700; line-height:1.4;
  letter-spacing:-.01em; color:var(--text); margin:0 0 14px;
}
.aud-card > p{ color:var(--text-2); font-size:.92rem; margin:0 0 16px; }
.aud-sub{ display:block; font-weight:700; color:var(--text); font-size:.93rem; margin-bottom:11px; }
.aud-list{ list-style:none; margin:0 0 18px; padding:0; display:grid; gap:11px; }
.aud-list li{ position:relative; padding-left:21px; color:var(--text-2); font-size:.88rem; line-height:1.55; }
.aud-list li::before{
  content:""; position:absolute; left:2px; top:.6em; width:7px; height:7px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 3px rgba(21,101,160,.12);
}
.aud-card .aud-final{
  margin-top:auto; padding-top:15px; border-top:1px solid var(--border);
  font-size:.89rem; font-weight:600; color:var(--accent);
}
.cta-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }


/* ---------- 19c. Добровольная сертификация ---------- */
.cert-highlight{
  position:relative; overflow:hidden;
  border-radius:var(--radius-xl);
  padding:clamp(28px,4.6vw,54px) clamp(24px,4.6vw,58px);
  background:linear-gradient(150deg,rgba(21,101,160,.12),rgba(21,101,160,.06));
  border:1px solid rgba(21,101,160,.34);
  box-shadow:var(--shadow-glow);
}
.cert-highlight::before{
  content:""; position:absolute; top:-45%; right:-8%; width:58%; height:150%;
  background:radial-gradient(closest-side,rgba(21,101,160,.16),transparent 72%);
  pointer-events:none;
}
.cert-highlight > *{ position:relative; z-index:1; }
.cert-highlight h1,.cert-highlight h2{ font-size:clamp(1.4rem,3.4vw,2.1rem); max-width:36ch; margin-bottom:18px; }
.cert-highlight > p{ color:var(--text-2); font-size:1rem; max-width:80ch; }
.cert-sub{ display:block; font-weight:700; color:var(--text); font-size:.98rem; margin:26px 0 13px; }
.cert-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
@media (min-width:820px){ .cert-list{ grid-template-columns:repeat(2,1fr); gap:12px 30px; } }
.cert-list li{ position:relative; padding-left:24px; color:var(--text-2); font-size:.93rem; line-height:1.55; }
.cert-list li::before{
  content:""; position:absolute; left:3px; top:.58em; width:8px; height:8px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 3px rgba(21,101,160,.14);
}
.cert-final{
  margin:24px 0 0; padding-top:18px; border-top:1px solid rgba(21,101,160,.26);
  font-size:.96rem; font-weight:600; color:var(--accent); max-width:90ch;
}
.cert-highlight .cert-final{ font-size:.96rem; color:var(--accent); max-width:90ch; }
.cert-package{ padding:clamp(28px,4.5vw,56px); border-radius:var(--radius-xl); }
.cert-package h2{ max-width:42ch; margin-bottom:18px; }
.cert-package > p{ color:var(--text-2); font-size:1rem; max-width:86ch; }
.cert-package .cert-final{ border-top-color:var(--border); color:var(--accent); }

/* ---------- 20. Анимации появления ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease),transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .orb{ display:none; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}


/* ---------- 21. Многостраничная навигация: «Услуги», «Ещё», карточки-разделы ---------- */
body.page-inner main{ padding-top:var(--header-h); }

.nav a.active{ color:var(--accent); background:var(--accent-soft); }

.nav-drop{ position:relative; }
.nav-drop-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 13px; border-radius:999px; font-family:inherit;
  font-size:.9rem; font-weight:500; color:var(--text-2);
  background:none; border:0; cursor:pointer; transition:color .2s,background .2s;
}
.nav-drop-btn:hover{ color:var(--text); background:var(--surface); }
.nav-drop-btn.active{ color:var(--accent); background:var(--accent-soft); }
.nav-drop-btn .arw{ transition:transform .25s var(--ease); }
.nav-drop:hover .nav-drop-btn .arw{ transform:rotate(180deg); }
.nav-drop-menu{
  position:absolute; top:calc(100% + 10px); right:0; min-width:236px;
  display:grid; gap:2px; padding:10px; border-radius:var(--radius);
  background:rgba(255,255,255,.97); border:1px solid var(--border);
  backdrop-filter:blur(18px) saturate(150%); -webkit-backdrop-filter:blur(18px) saturate(150%);
  box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu{ opacity:1; visibility:visible; transform:none; }
.nav-drop-menu a{ display:block; padding:10px 12px; border-radius:10px; font-size:.9rem; font-weight:500; color:var(--text-2); }
.nav-drop-menu a:hover{ color:var(--text); background:var(--surface); }

.nav-cards{ display:grid; gap:16px; }
@media (min-width:640px){ .nav-cards{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .nav-cards{ grid-template-columns:repeat(3,1fr); } }
.nav-card{
  display:flex; align-items:center; gap:16px; padding:22px 24px; border-radius:var(--radius-lg);
  transition:transform .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease);
}
.nav-card:hover{ transform:translateY(-4px); border-color:var(--border-2); box-shadow:var(--shadow),0 0 0 1px rgba(21,101,160,.16); }
.nav-card .ico{ margin-bottom:0; }
.nav-card b{ font-family:var(--font-display); font-size:1.05rem; letter-spacing:-.02em; font-weight:700; }
.nav-card .arw{ margin-left:auto; color:var(--accent); flex:none; transition:transform .25s var(--ease); }
.nav-card:hover .arw{ transform:translateX(4px); }

/* ---------- 22. Логотип-картинка и выравнивание в шапке/подвале ---------- */
.logo{ display:flex; align-items:center; gap:10px; }
.logo-img{ display:block; height:34px; width:auto; flex:0 0 auto; align-self:center; vertical-align:middle; }
.logo-img--foot{ height:28px; }
.logo-text{ display:flex; flex-direction:column; justify-content:center; line-height:1.06; }
.logo-text .sub{ line-height:1.2; margin-top:2px; }
@media (max-width:520px){
  .logo{ gap:8px; }
  .logo-img{ height:30px; }
  .logo-text{ line-height:1.1; }
  .logo span.sub{ display:none; }
}

/* ---------- 23. Прайс-лист: текстовые блоки-списки ---------- */
.block-list{ list-style:none; display:grid; gap:10px; margin:0; padding:2px 22px 22px; }
.block-list li{ position:relative; padding-left:22px; color:var(--text-2); font-size:.95rem; line-height:1.5; }
.block-list li::before{ content:''; position:absolute; left:4px; top:.5em; width:6px; height:6px; border-radius:50%; background:var(--accent); }

/* ---------- 25. Антиспам-поле формы (honeypot) ---------- */
.hp-field{ position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.form-ok.is-error{ color:#b42318; border-color:rgba(180,35,24,.35); }

/* ---------- 26. Списки-буллеты в карточках услуг ---------- */
#presentations .card .block-list, #abonement .card .block-list, #expertise .card .block-list{ padding-left:0; }
.price-group .badge.hot{ white-space:nowrap; }

/* ---------- 27. Телефон — всегда одной строкой ---------- */
a[href^="tel:"]{ white-space:nowrap; }
.phone{ white-space:nowrap; }
.cline a[href^="tel:"], .cline b a{ word-break:normal; white-space:nowrap; }
.foot-grid a[href^="tel:"]{ white-space:nowrap; }

/* ---------- 28. Правовая информация / реквизиты ---------- */
.req-card{ max-width:820px; }
.req-card .legal{ margin-top:12px; line-height:1.8; }

/* ---------- 29. Адаптивность: телефон (≤480), планшет (~768), десктоп (≥1024) ---------- */
@media (max-width:480px){
  :root{ --gutter:16px; --header-h:64px; }
  .h-display{ font-size:26px; }
  .h2{ font-size:20px; }
  .section{ padding:clamp(38px,9vw,58px) 0; }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .cta-row{ flex-direction:column; align-items:stretch; }
  .btn{ width:100%; justify-content:center; }
  .nav-card{ padding:18px; }
  .price-row{ flex-wrap:wrap; }
  .foot-grid{ gap:26px; }
}
@media (max-width:768px){
  .nav{ display:none; }
  .header-actions{ display:none; }
  .burger{ display:grid; }
  .contact-grid{ grid-template-columns:1fr; }
  .form .row.two{ grid-template-columns:1fr; }
}
@media (min-width:1024px){
  .nav{ display:flex; }
  .header-actions{ display:flex; }
  .burger{ display:none; }
}

/* ---------- 30. Способы оплаты + условие про договор ---------- */
.pay-grid{ display:grid; gap:16px; }
@media (min-width:560px){ .pay-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .pay-grid{ grid-template-columns:repeat(4,1fr); } }
.pay-card{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:16px; padding:30px 20px; border-radius:var(--radius-lg);
}
.pay-card .ico{ margin-bottom:0; width:54px; height:54px; border-radius:16px; }
.pay-card .ico svg{ width:25px; height:25px; }
.pay-card b{
  font-family:var(--font-display); font-size:1rem; font-weight:700;
  letter-spacing:-.01em; color:var(--text); line-height:1.35; max-width:16ch;
}
.pay-note{
  display:flex; gap:14px; align-items:flex-start; margin-top:22px;
  padding:18px 22px; border-radius:var(--radius);
  background:var(--accent-soft); border:1px solid rgba(21,101,160,.28);
}
.pay-note .mk{
  width:32px; height:32px; border-radius:10px; flex:none; display:grid; place-items:center;
  background:rgba(21,101,160,.16); color:var(--accent);
}
.pay-note .mk svg{ width:18px; height:18px; }
.pay-note p{ margin:0; color:var(--text); font-size:.98rem; line-height:1.55; font-weight:500; }
.pay-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.pay-chip{
  display:inline-flex; align-items:center; gap:9px; padding:10px 15px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border); color:var(--text-2);
  font-size:.9rem; font-weight:500;
}
.pay-chip svg{ width:16px; height:16px; color:var(--accent); flex:none; }
/* ---------- 31. Порядок оплаты ---------- */
.pay-order{
  margin-top:22px; padding:26px 28px; border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--border);
}
.pay-order .h2{ margin:6px 0 0; }
.pay-order-list{ list-style:none; margin:20px 0 0; padding:0; display:grid; gap:14px; }
.pay-order-list li{
  display:flex; gap:16px; align-items:flex-start;
  padding:16px 18px; border-radius:var(--radius);
  background:var(--accent-soft); border:1px solid rgba(21,101,160,.22);
}
.pay-order-list .num{
  flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:rgba(21,101,160,.16); color:var(--accent);
  font-family:var(--font-display); font-weight:700; font-size:.95rem;
}
.pay-order-list p{ margin:0; color:var(--text); font-size:.98rem; line-height:1.55; font-weight:500; }

/* ---------- 32. Заявки по электронной почте (блок вместо формы) ---------- */
.mail-cta{ display:grid; gap:14px; align-content:center; justify-items:start; }
.mail-cta .ico{ margin-bottom:0; }
.mail-cta h3{ margin:0; }
.mail-cta p{ margin:0; color:var(--text-2); font-size:.98rem; line-height:1.55; }
.mail-cta p.muted{ font-size:.9rem; }
.mail-cta a{ color:var(--accent); font-weight:700; word-break:break-word; }
.pres-link-copy{ flex:1 1 320px; min-width:0; max-width:100%; }

/* ---------- 33. Адаптив: защита от горизонтального переполнения ---------- */
/* 33.1 Ни html, ни body не шире экрана — обрезаем любой вылет по горизонтали */
html{ max-width:100%; overflow-x:hidden; }
body{ max-width:100%; overflow-x:hidden; }
*,*::before,*::after{ box-sizing:border-box; }
.wrap,.grid,.glass,.card,.price-group,.price-list,.adv-band,.adv-list,.aud-card,
.nav-card,.pay-card,.pay-note,.pay-order,.cert-highlight,.cert-package,.contact-grid,
.foot-grid,.split-asym,.grid-2,.grid-3,.grid-catalog,.chip-grid,.stats,.logos,.timeline,
.contact-list,.about-facts,.qa,.review,.case,.mini,.hero-inner,.header-inner,.mail-cta{ min-width:0; }
.grid > *,.split-asym > *,.chip-grid > *,.stats > *,.logos > *,.pay-grid > *,
.nav-cards > *,.contact-grid > *,.foot-grid > *,.timeline > *,.adv-list > *,
.price-group > header > *,.pay-note > *,.pay-order-list li > *{ min-width:0; }

/* 33.2 Медиа не выходят за контейнер; длинные слова и адреса переносятся */
img,svg,video,canvas{ max-width:100%; height:auto; }
body,h1,h2,h3,h4,p,li,a,b,strong,small,span,.lead,.legal,.val,.badge{ overflow-wrap:break-word; }
h1,h2,h3,h4,.h-display,.h2,.h3,.lead,.eyebrow,.btn,.badge,.val{ overflow-wrap:anywhere; }

/* 33.3 Декор-орбы: убираем фиксированный минимум 300–420 px, из-за которого
   блок мог быть шире вьюпорта (размер и так задаётся в vw) */
.orb-1,.orb-2,.orb-3{ min-width:0; min-height:0; }

/* 33.4 Выпадающее меню в шапке не шире экрана */
.nav-drop-menu{ max-width:calc(100vw - 24px); }

/* 33.5 Кнопки не растягивают страницу */
.btn{ max-width:100%; }

/* 33.6 Таблицы (если появятся) скроллятся внутри блока, а не тянут страницу */
.table-wrap{ width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-wrap table{ width:100%; max-width:100%; border-collapse:collapse; }

/* 33.6b Мобильное меню: полноэкранная НЕПРОЗРАЧНАЯ панель поверх всего.

   Разметка и логика:
     <header class="site-header">            <- script.js вешает сюда .nav-open
       <div class="wrap">
         <div class="header-inner"> ...логотип, .burger... </div>
         <div class="mobile-nav" id="mobileNav"> ...ссылки... </div>
       </div>
     </header>
   script.js по клику на .burger делает header.classList.toggle('nav-open')
   и body.classList.toggle('is-locked'). Значит стилизуем ИМЕННО
   .site-header.nav-open .mobile-nav.

   Почему прежняя правка не помогла: панель оставалась обычным блоком ВНУТРИ
   фиксированной шапки (position:relative, max-height:76vh) — это не оверлей,
   она не перекрывала экран, а фон/слои зависели от прозрачной «шапки». Здесь
   панель вырываем из потока и делаем position:fixed на весь экран. */

/* Шапка при открытом меню: сплошной белый фон и, главное, ВЫКЛЮЧАЕМ
   backdrop-filter — иначе по спецификации он становится containing block для
   потомков с position:fixed, и панель перестаёт растягиваться на весь экран
   (именно это ломало полноэкранный оверлей). */
.site-header.nav-open{
  background:#ffffff;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom-color:transparent;
  box-shadow:none;
}
/* Сама панель — непрозрачный полноэкранный слой выше контента и шапки */
.site-header.nav-open .mobile-nav{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  flex-direction:column;
  gap:8px;
  width:auto;
  max-width:100%;
  max-height:none;
  margin:0;
  padding:calc(var(--header-h) + 10px) var(--gutter) 26px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  background:var(--bg);
  border:0;
  border-radius:0;
  box-shadow:none;
  opacity:1;
}
/* Логотип и бургер — выше панели, чтобы меню можно было закрыть */
.site-header.nav-open .header-inner{
  position:relative;
  z-index:1001;
}
/* Ссылки: крупные, контрастные, с разделителями */
.site-header.nav-open .mobile-nav a{
  display:block;
  padding:16px 4px;
  border:0;
  border-bottom:1px solid var(--border);
  border-radius:0;
  background:transparent;
  color:var(--text);
  font-size:1.02rem;
  font-weight:600;
  transition:color .2s,background .2s,padding .2s;
}
.site-header.nav-open .mobile-nav a:hover,
.site-header.nav-open .mobile-nav a:focus-visible{
  background:var(--accent-soft);
  color:var(--accent);
  padding-left:10px;
}
.site-header.nav-open .mobile-nav a.active{
  color:var(--accent);
  font-weight:700;
  border-bottom-color:rgba(21,101,160,.28);
}
/* Нижний блок с кнопками — прижат к низу экрана */
.site-header.nav-open .mobile-nav .mrow{
  margin-top:auto;
  padding-top:22px;
  gap:12px;
}
.site-header.nav-open .mobile-nav .btn-primary{ color:#ffffff; background:linear-gradient(135deg,var(--accent),#0B4175); }
.site-header.nav-open .mobile-nav .btn-ghost{ color:var(--text); background:var(--bg-2); }

/* 33.7 Планшет: каталог и подобные сетки — в две колонки */
@media (min-width:640px) and (max-width:1059px){
  .grid-catalog{ grid-template-columns:repeat(2,1fr); }
}

/* 33.8 ≤768 px: планшет — компактнее отступы, крупные блоки сжимаются */
@media (max-width:768px){
  .section{ padding:clamp(44px,6.6vw,74px) 0; }
  .section-head{ margin-bottom:clamp(24px,5vw,38px); }
  .card{ padding:20px; }
  .aud-card{ padding:22px; }
  .cert-package{ padding:24px; }
  .adv-band{ padding:26px 22px; border-radius:var(--radius-lg); }
  .pay-order{ padding:22px 20px; }
  .pay-note{ padding:16px 18px; }
  .price-group > header{ padding:20px 20px 16px; }
  .price-list{ padding:6px 8px 12px; }
  .foot-grid{ gap:28px; }
}

/* 33.9 ≤480 px: телефон — одноколоночная раскладка и узкие поля */
@media (max-width:480px){
  .section{ padding:clamp(38px,8vw,59px) 0; }
  .section-head{ margin-bottom:24px; }
  .chip-grid,.logos,.stats{ grid-template-columns:1fr; }
  .card{ padding:18px; }
  .aud-card{ padding:18px; }
  .cert-package{ padding:20px 18px; }
  .adv-band{ padding:22px 18px; }
  .pay-order{ padding:18px 16px; }
  .pay-order-list li{ padding:14px; gap:12px; }
  .price-group > header{ padding:16px 16px 12px; }
  .price-row{ padding:12px 8px; gap:10px; }
  .btn{ white-space:normal; }
  .header-inner{ gap:12px; }
  .hero h1{ max-width:none; }
  .req-card{ width:100%; }
}


/* ---------- 34. Логотип мессенджера МАКС в «Контактах» ---------- */
.cline .max-logo{ height:28px; width:auto; max-width:100%; vertical-align:middle; margin-right:9px; border-radius:6px; }
@media (max-width:480px){ .cline .max-logo{ height:24px; margin-right:8px; } }

/* ---------- 35. Публичная оферта (/oferta/) ---------- */
.offer-download{ margin-top:14px; font-size:.9rem; color:var(--muted); }
.offer-download a{ color:var(--accent); text-decoration:underline; }
.offer-doc{ max-width:900px; }
.offer-title{ margin:0; font-size:1.5rem; letter-spacing:.04em; text-transform:uppercase; }
.offer-subtitle{ margin:6px 0 18px; color:var(--muted); font-size:1rem; }
.offer-doc .h3{ margin-top:26px; }
.offer-p{ margin:8px 0; line-height:1.6; }
.offer-num{ font-weight:600; color:var(--text); }
.offer-list{ margin:8px 0 12px 22px; display:grid; gap:6px; }
.offer-list li{ line-height:1.55; }
.offer-requisites{ margin:6px 0 0; display:grid; grid-template-columns:auto 1fr; gap:6px 14px; }
.offer-requisites dt{ font-weight:600; }
.offer-requisites dd{ margin:0; }
.offer-requisites a{ color:var(--accent); text-decoration:underline; }
.offer-accept{ margin-top:8px; font-size:.9rem; color:var(--muted); }
.offer-accept a{ color:var(--accent); text-decoration:underline; }
.legal-note{ max-width:900px; margin-top:18px; font-size:.85rem; color:var(--muted); }


/* ---------- 36. Каталог: боковое подменю разделов ---------- */
.catalog-layout{
  display:grid;
  grid-template-columns:minmax(210px,260px) 1fr;
  gap:26px;
  align-items:start;
}
.catalog-sidebar{ position:sticky; top:86px; }
.cat-nav-toggle{ position:absolute; opacity:0; pointer-events:none; }
.cat-nav-btn{
  display:none;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border:1px solid rgba(16,32,56,.12);
  border-radius:var(--radius-sm);
  background:var(--bg);
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  user-select:none;
}
.cat-nav-btn-icon{ font-size:1.05rem; line-height:1; }
.catalog-nav{
  background:var(--card, #fff);
  border:1px solid rgba(16,32,56,.10);
  border-radius:var(--radius);
  padding:16px 14px;
  box-shadow:var(--shadow-sm);
}
.catalog-nav-title{
  margin:0 0 10px;
  font-size:.74rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
/* --- Разделы каталога: дерево-аккордеон (подкаталоги по клику) --- */
.catalog-nav ul{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.cat-tree{ display:grid; gap:2px; }

.cat-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:9px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  font:inherit;
  text-align:left;
  cursor:pointer;
  color:var(--text-2);
  text-decoration:none;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.cat-link:hover{ background:var(--accent-soft); color:var(--accent); }
.cat-link .cat-name{ line-height:1.25; }
.cat-meta{ display:inline-flex; align-items:center; gap:8px; flex:none; }

/* Заголовок основного каталога — чуть крупнее и заметнее */
.cat-link-parent .cat-name{ font-size:1rem; font-weight:700; color:var(--navy); }
.cat-link-parent:hover .cat-name{ color:var(--accent); }
.cat-link-all .cat-name{ font-weight:700; color:var(--text); }

/* Подкаталоги — на 1–2 пункта меньше, обычным начертанием, вторичным цветом */
.cat-link-sub{ padding-top:7px; padding-bottom:7px; }
.cat-link-sub .cat-name{ font-size:.85rem; font-weight:400; line-height:1.3; color:var(--text-2); }
.cat-link-sub:hover .cat-name{ color:var(--accent); }
.cat-link-allof .cat-name{ font-weight:600; color:var(--muted); }

/* Вложенный список подкаталогов: отступ и тонкая направляющая линия */
.cat-sub{
  margin:2px 0 4px;
  padding-left:10px;
  display:grid;
  gap:2px;
  border-left:1px solid var(--border);
}
.cat-sub .cat-sub{ padding-left:12px; }

/* Шеврон раскрытия — аккуратный, в палитре сайта; разворачивается при открытии */
.cat-chevron{
  flex:none;
  color:var(--brand-gray);
  transition:transform .25s var(--ease), color .2s var(--ease);
}
.cat-link-parent:hover .cat-chevron{ color:var(--accent); }
.cat-link-parent[aria-expanded="true"] .cat-chevron{
  transform:rotate(180deg);
  color:var(--accent);
}

.cat-count{
  flex:none;
  min-width:24px;
  padding:1px 8px;
  border-radius:20px;
  background:var(--accent-soft);
  color:var(--muted);
  font-size:.76rem;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
.cat-link.is-active{ background:var(--accent); color:var(--accent-ink); box-shadow:var(--shadow-glow); }
.cat-link.is-active .cat-name{ color:var(--accent-ink); }
.cat-link.is-active .cat-count{ background:rgba(255,255,255,.28); color:var(--accent-ink); }

@media (max-width:900px){
  .catalog-layout{ grid-template-columns:1fr; gap:16px; }
  .catalog-sidebar{ position:static; }
  .cat-nav-btn{ display:flex; }
  .catalog-nav{ display:none; margin-top:10px; }
  .catalog-nav ul{ gap:2px; }
  .cat-nav-toggle:checked ~ .catalog-nav{ display:block; }
}


/* =========================================================
   30. Шапка: пункты меню без наложений и обрезки (правка 2)
   ========================================================= */
.header-inner{ display:flex; align-items:center; gap:16px; flex-wrap:nowrap; }
.logo{ flex:0 0 auto; }
.nav{ flex:1 1 auto; display:none; justify-content:center; flex-wrap:nowrap; gap:2px; min-width:0; }
.nav a,
.nav-drop-btn{ white-space:nowrap; }
.nav-drop-menu{ white-space:normal; }
.header-actions{ flex:0 0 auto; display:none; align-items:center; gap:12px; }

/* На средних экранах — бургер; полноценное меню только когда есть место. */
@media (max-width:1199px){
  .nav{ display:none; }
  .header-actions{ display:none; }
  .burger{ display:grid; }
}
@media (min-width:1200px){
  .nav{ display:flex; }
  .header-actions{ display:flex; }
  .burger{ display:none; }
}

/* Переключатель тем (правка 10) */
.theme-switch{
  display:inline-flex; align-items:center; gap:2px;
  padding:3px; border:1px solid var(--border); border-radius:999px;
  background:var(--surface);
}
.theme-btn{
  display:grid; place-items:center; width:32px; height:32px;
  border:0; border-radius:999px; background:transparent; color:var(--text-2);
  cursor:pointer; transition:background .2s var(--ease),color .2s var(--ease);
}
.theme-btn svg{ width:16px; height:16px; }
.theme-btn:hover{ background:var(--surface-2); color:var(--text); }
.theme-btn.is-active{ background:var(--accent); color:var(--accent-ink); }
.theme-switch--mobile{ width:100%; margin-bottom:4px; }
.theme-switch--mobile .theme-btn{
  flex:1 1 0; width:auto; height:auto; padding:11px 10px;
  border-radius:10px; font-size:.86rem; font-weight:600;
}

/* Метаданные карточек (дата актуализации, срок) — тонко и не жирно */
.doc-actual{ font-size:.75rem; margin-top:10px; color:var(--muted); font-weight:400; letter-spacing:.01em; }

/* Панель «Показывать» над списком документов каталога */
.catalog-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:0 0 18px; }
.perpage-form{ display:flex; align-items:center; gap:10px; margin:0; }
.perpage-label{ font-size:.86rem; color:var(--text-2); font-weight:500; }
.perpage-select{
  padding:8px 12px; border-radius:10px; min-width:88px;
  border:1px solid var(--border); background:var(--surface-2);
  color:var(--text); font-size:.88rem; line-height:1.2; cursor:pointer;
}
.perpage-select:hover{ border-color:var(--border-2); }
.perpage-select:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.perpage-total{ font-size:.84rem; }

/* =========================================================
   31. Карточки каталога: утончённые и «воздушные»
       (кнопка «Купить» по-прежнему прижата к низу карточки)
   ========================================================= */
.catalog-main .grid > .card{
  display:flex; flex-direction:column; height:100%;
  padding:22px;                              /* компактнее прежних 26px */
  border-radius:18px;
  background:rgba(255,255,255,.72);          /* светлая полупрозрачная подложка */
  border:1px solid var(--border);            /* тонкая граница 1px #D9E3EE */
  box-shadow:0 1px 2px rgba(10,56,90,.06);   /* очень мягкая тень */
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.catalog-main .grid > .card::after{ display:none; }   /* убираем блик .glass на карточках */
.catalog-main .grid > .card:hover{
  transform:translateY(-2px);                /* лёгкий подъём, без резких заливок */
  border-color:var(--accent-soft-2);
  box-shadow:0 10px 24px -14px rgba(10,56,90,.22), 0 1px 2px rgba(10,56,90,.06);
}
.catalog-main .grid > .card > .ico{
  margin-bottom:16px; width:40px; height:40px; border-radius:12px;
  background:var(--accent-soft); border:1px solid var(--accent-soft-2); color:var(--accent);
}
.catalog-main .grid > .card > .ico svg{ width:20px; height:20px; }
.catalog-main .grid > .card > .h3{
  font-weight:500;               /* не жирный */
  font-size:1.06rem; line-height:1.34; letter-spacing:-.01em;
  color:var(--text);             /* #1F2A37, не чистый чёрный */
  margin:0 0 10px;               /* заголовок отделён от текста */
  overflow-wrap:anywhere;        /* длинные названия корректно переносятся */
}
.catalog-main .grid > .card > .card-cat{
  font-size:.78rem; font-weight:400; letter-spacing:.015em;
  text-transform:none;           /* без тяжёлого UPPERCASE */
  color:var(--text-2);           /* #5B6B7C */
  margin:0 0 12px;
}
.catalog-main .grid > .card > .card-desc{
  flex:1 1 auto; margin:0 0 16px;
  color:var(--text-2); font-size:.9rem; line-height:1.62;
}
.catalog-main .grid > .card > .doc-actual{
  font-size:.74rem; font-weight:400; letter-spacing:.01em;
  color:var(--muted); margin:0;
}
.catalog-main .grid > .card > .priced{
  margin-top:auto; padding-top:16px; align-items:center;
  border-top:1px solid var(--border); gap:12px;
}
.catalog-main .grid > .card .val{
  font-weight:500; font-size:1rem; color:var(--text); letter-spacing:-.01em;
}
.catalog-main .grid > .card .card-buy{ margin:0; display:flex; }
.catalog-main .grid > .card .card-buy .btn{ white-space:nowrap; }
@media (max-width:640px){
  .catalog-main .grid > .card{ padding:18px; }
}

/* =========================================================
   32. Блок «Что мы предлагаем» на главной — ровные отступы (правка 15)
   ========================================================= */
.offer-card{ display:grid; gap:16px; padding:clamp(22px,3vw,40px); }
.offer-card__title{ margin:0; max-width:34ch; }
.offer-card__lead{ margin:0; }
.offer-card__text{ margin:0; color:var(--text-2); }
.offer-facts{
  display:grid; gap:16px; margin-top:6px;
  grid-template-columns:1fr;
}
@media (min-width:760px){ .offer-facts{ grid-template-columns:repeat(3,1fr); gap:20px; } }
.offer-fact{
  display:flex; flex-direction:column; gap:8px; min-width:0;
  padding:18px; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface-2);
}
.offer-fact .h3{ margin:0; font-size:1.02rem; }
.offer-fact p{ margin:0; }
.offer-card__cta{ margin-top:10px; flex-wrap:wrap; }
@media (max-width:640px){
  .offer-card__cta .btn{ width:100%; justify-content:center; }
}

/* =========================================================
   33. Тёмная тема и режим для слабовидящих (правка 10)
   ========================================================= */
html[data-theme="dark"]{
  --bg:#0e141b;
  --bg-2:#0b1016;
  --surface:rgba(28,36,46,.72);
  --surface-2:rgba(34,44,56,.92);
  --border:rgba(255,255,255,.12);
  --border-2:rgba(255,255,255,.22);
  --text:#eaf0f5;
  --text-2:#c2ccd6;
  --muted:#93a0ad;
  --accent:#6FA8DC;
  --accent-2:#6f97ff;
  --accent-ink:#0B1B30;
  --accent-soft:rgba(21,101,160,.18);
  color-scheme:dark;
}
html[data-theme="dark"] body{ background:var(--bg); color:var(--text); }
html[data-theme="dark"] .site-header.is-stuck{ background:rgba(14,20,27,.86); }
html[data-theme="dark"] .nav-drop-menu{ background:rgba(20,27,35,.98); }
html[data-theme="dark"] .nav-drop-menu a{ color:var(--text-2); }
html[data-theme="dark"] .bg-fx{ opacity:.45; }
html[data-theme="dark"] .footer{ background:var(--bg-2); }

html[data-theme="contrast"]{
  --bg:#000000; --bg-2:#000000;
  --surface:#000000; --surface-2:#0a0a0a;
  --border:#ffffff; --border-2:#ffff00;
  --text:#ffffff; --text-2:#ffffff; --muted:#ffe600;
  --accent:#ffff00; --accent-2:#ffff00;
  --accent-ink:#000000; --accent-soft:#1a1a00;
  color-scheme:dark;
}
html[data-theme="contrast"] body{
  background:#000; color:#fff; font-size:19px; line-height:1.75;
}
html[data-theme="contrast"] .glass,
html[data-theme="contrast"] .card,
html[data-theme="contrast"] .mobile-nav a{
  background:#000; border:2px solid #fff;
}
html[data-theme="contrast"] .btn{ border-width:2px; font-weight:700; }
html[data-theme="contrast"] .btn-primary{ background:#ffff00; color:#000; }
html[data-theme="contrast"] .nav a,
html[data-theme="contrast"] .nav-drop-btn{ color:#fff; }
html[data-theme="contrast"] .nav a.active,
html[data-theme="contrast"] .nav-drop-btn.active{ background:#ffff00; color:#000; }
html[data-theme="contrast"] a{ text-decoration:underline; }
html[data-theme="contrast"] .site-header.is-stuck{ background:#000; border-bottom-color:#fff; }
html[data-theme="contrast"] .bg-fx{ display:none; }
html[data-theme="contrast"] .cat-link.is-active{ background:#ffff00; color:#000; }
html[data-theme="contrast"] .site-header.nav-open{ background:#000 !important; }
html[data-theme="contrast"] .site-header.nav-open .mobile-nav{ background:#000 !important; }

/* =========================================================
   34. Адаптивность: мелкие уточнения (правка 1)
   ========================================================= */
@media (max-width:520px){
  .offer-card__title{ max-width:none; }
  .doc-actual{ font-size:.78rem; }
}
img, svg{ max-width:100%; }

/* =========================================================
   37. Корзина в шапке и страница корзины (правка 21)
   ========================================================= */
.cart-link{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px; flex:none;
  color:var(--text); background:var(--surface); border:1px solid var(--border);
  transition:color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.cart-link:hover{ color:var(--accent); border-color:var(--border-2); background:var(--surface-2); }
.cart-link svg{ width:20px; height:20px; }
.cart-count{
  position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background:var(--accent); color:#fff;
  font-size:.68rem; font-weight:700; line-height:1; font-variant-numeric:tabular-nums;
  box-shadow:0 2px 6px -2px rgba(21,101,160,.6);
}
.cart-count.is-empty{ display:none; }
html[data-theme="contrast"] .cart-count{ background:#ffff00; color:#000; }
.card-actions{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.card-actions form{ margin:0; display:inline-flex; }

.cart-layout{ display:grid; grid-template-columns:1fr; gap:20px; align-items:start; }
@media (min-width:960px){ .cart-layout{ grid-template-columns:1fr 340px; } }
.cart-items{ display:grid; gap:14px; }
.cart-row{
  display:grid; gap:14px 18px; align-items:center;
  grid-template-columns:1fr; padding:20px 22px;
}
@media (min-width:720px){
  .cart-row{ grid-template-columns:minmax(0,1fr) auto auto auto; }
  .cart-row-del{ grid-column:4; }
}
.cart-row-main h3{ margin-bottom:4px; }
.cart-row-main h3 a{ color:inherit; }
.cart-row-qty form{ display:flex; align-items:flex-end; gap:8px; margin:0; }
.cart-row-qty input[type=number]{ width:88px; }
.cart-row-price .val,.cart-row-sum .val{ font-family:var(--font-display); font-weight:700; }
.cart-row-sum .val{ color:var(--accent); }
.cart-summary{ padding:24px; position:sticky; top:96px; }
@media (max-width:959px){ .cart-summary{ position:static; } }

/* =========================================================
   38. Акции и распродажи (правка 19)
   ========================================================= */
.promo-card{ display:flex; flex-direction:column; height:100%; }
.promo-card-media{
  margin:-26px -26px 18px; border-radius:var(--radius-lg) var(--radius-lg) 0 0; overflow:hidden;
  border-bottom:1px solid var(--border);
}
.promo-card-media img{ display:block; width:100%; height:180px; object-fit:cover; }
.promo-badge{
  display:inline-block; align-self:flex-start; margin-bottom:10px; padding:4px 12px;
  border-radius:999px; font-size:.74rem; font-weight:700; letter-spacing:.02em;
  background:var(--accent-soft); color:var(--accent);
}
.promo-badge--done{ background:var(--surface-2); color:var(--muted); }
.promo-text{ margin-top:10px; }
.promo-links{ margin-top:10px; font-size:.84rem; }
.promo-links a{ color:var(--accent); text-decoration:underline; }
.promo-card--done{ opacity:.86; }

/* =========================================================
   39. Шапка: финальная аккуратная раскладка (правка шапки)
   Пункты меню не накладываются и не обрезаются ни при какой ширине:
   при нехватке места меню и блок действий сворачиваются в бургер
   (класс .head-tight ставит скрипт из base.html).
   Специфичность селекторов с .site-header выше прежних правок,
   поэтому этот блок перекрывает их независимо от порядка.
   ========================================================= */

/* 39.1 Каркас строки шапки: [логотип] [меню] [действия] [бургер] */
.site-header .header-inner{
  display:flex; align-items:center; flex-wrap:nowrap; gap:16px;
}
.site-header .logo{ flex:0 0 auto; min-width:0; }

/* Меню занимает свободное место и центрируется. Пункты НЕ сжимаются
   (flex:0 0 auto) — иначе текст с nowrap вылезал бы и накладывался.
   min-width у .nav оставлен auto (не 0): контейнер меню не может стать
   уже своего содержимого, поэтому пункты не «наползают» друг на друга. */
.site-header .nav{
  flex:1 1 auto;
  min-width:auto;              /* не даём меню сжаться уже своего содержимого */
  display:none; align-items:center; justify-content:center;
  gap:2px; margin:0;
}
.site-header .nav > *{ flex:0 0 auto; }
.site-header .nav a,
.site-header .nav-drop-btn{ white-space:nowrap; }

/* Блок действий: телефон, темы, корзина, заявка — одной строкой, не сжимается */
.site-header .header-actions{
  flex:0 0 auto;
  display:none; align-items:center; gap:12px; margin:0;
}
.site-header .header-actions .btn{ white-space:nowrap; }

/* Бургер прижат вправо, когда меню и действия скрыты */
.site-header .burger{ display:grid; margin-left:auto; flex:0 0 auto; }

/* 39.2 Телефон: иконка фиксированного размера + номер одной строкой.
   Отступ между ними даёт gap, поэтому наложения исключены. */
.site-header .phone{
  display:inline-flex; align-items:center; gap:8px;
  flex:0 0 auto; white-space:nowrap;
}
.site-header .phone svg{
  width:16px; height:16px; flex:0 0 auto; display:block; color:var(--accent);
}
.site-header .phone-num{ white-space:nowrap; }

/* 39.3 Переключатель тем и корзина не сжимаются */
.site-header .theme-switch{ flex:0 0 auto; }
.site-header .cart-link{ flex:0 0 auto; }

/* 39.4 Раскладка: широкий десктоп — полное меню; уже — бургер */
@media (min-width:1200px){
  .site-header .nav{ display:flex; }
  .site-header .header-actions{ display:flex; }
  .site-header .burger{ display:none; }
}
@media (max-width:1199.98px){
  .site-header .nav{ display:none; }
  .site-header .header-actions{ display:none; }
  .site-header .burger{ display:grid; }
}

/* 39.5 Даже на десктопе меню может не поместиться (длинный набор пунктов
   из админки): скрипт ставит .head-tight и всё сворачивается в бургер. */
.site-header.head-tight .nav,
.site-header.head-tight .header-actions{ display:none; }
.site-header.head-tight .burger{ display:grid; }

/* 39.6 Чуть компактнее отступы на десктопе — чтобы меню чаще помещалось целиком */
@media (min-width:1200px){
  .site-header .header-inner{ gap:14px; }
  .site-header .nav a,
  .site-header .nav-drop-btn{ padding:8px 11px; font-size:.88rem; }
  .site-header .header-actions{ gap:10px; }
  .site-header .phone{ font-size:.9rem; }
}

/* =========================================================================
   40. ЕДИНАЯ ТИПОГРАФИКА ТЕКСТОВЫХ БЛОКОВ
   -------------------------------------------------------------------------
   Приводим текст на всех страницах к одному виду, чтобы строки не
   «плясали»: единое выравнивание по ЛЕВОМУ краю (без justify — не бывает
   растянутых пробелов), единые междустрочный интервал и отступы между
   абзацами и списками, одинаковая максимальная ширина текстовой колонки
   (measure), корректные отступы у списков. Правила применяются только к
   тексту внутри <main> и не трогают служебные элементы (шапка, меню,
   счётчики). Блоки, которые задуманы центрированными (плитки оплаты,
   CTA с inline text-align:center), сохраняют свой вид: inline-стиль всегда
   приоритетнее, а классовые исключения перечислены ниже.
   ========================================================================= */
main h1, main h2, main h3, main h4{ text-align: left; }
main p, main li, main dd, main dt{ text-align: left; }

/* Единый вертикальный ритм абзацев и соседних блоков */
main p{ line-height: 1.6; }
main p + p,
main p + ul, main p + ol,
main ul + p, main ol + p,
main p + .lead, main .lead + p{ margin-top: .85em; }

/* Единая ширина текстовой колонки: строки не слишком длинные и не короткие */
main .lead,
main .section-head p,
main .section-head .lead{ max-width: 72ch; }
main p, main li{ max-width: 72ch; }
main .card p, main .glass p, main .offer-card p, main .offer-card__text{ max-width: 72ch; }

/* Списки: одинаковые отступы и межстрочный ритм */
main ul, main ol{ padding-left: 1.25em; }
main li{ line-height: 1.6; }
main li + li{ margin-top: .4em; }
/* У списков со своими маркерами (иконки/счётчики) отступы не дублируем */
main .cert-list li, main .adv-list li, main .aud-list li,
main .block-list li, main .offer-list li{ margin-top: .45em; }

/* Заголовки — ровные, без «рваных» концов строк; абзацы — аккуратные переносы */
main h1, main h2, main h3, main h4{ text-wrap: balance; }
main p, main li{ text-wrap: pretty; }

/* Возвращаем задуманное центрирование акцентных/служебных блоков */
main .pay-card, main .pay-card *,
main .pay-note, main .pay-order,
main .stat, main .chip{ text-align: center; }

/* =========================================================================
   Бесплатные документы
   Метка, цена и кнопка скачивания. Используются только токены текущей
   палитры (акцентный синий), поэтому стиль одинаково работает в светлой,
   тёмной темах и в режиме для слабовидящих.
   ========================================================================= */
.badge.badge-free{
  background:var(--accent);
  color:var(--accent-ink);
  border-color:var(--accent);
  white-space:nowrap;
}
.badge.free-mark{
  background:var(--accent-soft);
  color:var(--accent);
  border-color:rgba(21,101,160,.30);
}
.val-free{ color:var(--accent); font-weight:700; }
.priced-free{ align-items:center; }
.free-filter{
  display:flex; align-items:center; gap:10px;
  font-size:.92rem; color:var(--text-2); cursor:pointer;
  padding:4px 0; user-select:none;
}
.free-filter input{ width:18px; height:18px; accent-color:var(--accent); flex:none; cursor:pointer; }

/* Сообщения сайта (ошибки и подсказки после действий) */
.site-messages{ padding-top:18px; }
.site-messages .form-ok{ display:block; margin-top:0; }
.site-messages .form-ok + .form-ok{ margin-top:8px; }



/* =========================================================================
   ЧАСТЬ 2. WORDPRESS + WOOCOMMERCE + ФОРМЫ
   -------------------------------------------------------------------------
   Ниже — только то, чего не было в исходном CSS старого сайта: обёртки
   WordPress, стили WooCommerce (карточки, корзина, оформление заказа,
   хлебные крошки), формы плагинов (Fluent Forms, Contact Form 7),
   таблицы, комментарии и служебные классы ядра.
   ========================================================================= */

/* ---------- 2.1. Служебное ядро WordPress ---------- */
.screen-reader-text{
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute !important;
  width:1px; word-wrap:normal !important;
}
.screen-reader-text:focus{
  background:#fff; clip:auto !important; clip-path:none;
  color:var(--accent); display:block; font-size:.9rem; font-weight:700;
  height:auto; left:16px; line-height:normal; padding:14px 20px;
  text-decoration:none; top:16px; width:auto; z-index:100000;
  border-radius:12px; box-shadow:var(--shadow);
}
.skip-link{ position:absolute; }
.alignleft{ float:left; margin:6px 26px 18px 0; }
.alignright{ float:right; margin:6px 0 18px 26px; }
.aligncenter{ margin-left:auto; margin-right:auto; display:block; }
.alignwide{ max-width:1100px; margin-left:auto; margin-right:auto; }
.alignfull{ width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); }
.wp-caption{ max-width:100%; }
.wp-caption-text{ font-size:.82rem; color:var(--muted); margin-top:8px; }
.sticky .entry-card{ border-color:rgba(21,101,160,.35); }
.bypostauthor > .comment-body .comment-author{ font-weight:700; }
.gallery{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin:24px 0; }
.gallery-item img{ border-radius:var(--radius-sm); }
embed,iframe,object,video{ max-width:100%; }
.wp-block-image img{ border-radius:var(--radius); height:auto; }
.wp-block-quote{
  margin:26px 0; padding:18px 24px; border-left:3px solid var(--accent);
  background:var(--accent-soft); border-radius:0 var(--radius) var(--radius) 0;
}
.wp-block-quote cite{ display:block; margin-top:8px; font-style:normal; font-size:.85rem; color:var(--muted); }
.wp-block-separator{ border:0; border-top:1px solid var(--border); margin:34px 0; }
.wp-block-button__link{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 24px; border-radius:999px; font-weight:600; font-size:.95rem;
  background:linear-gradient(135deg,var(--accent),#0B4175); color:#fff; text-decoration:none;
}
.wp-block-button.is-style-outline .wp-block-button__link{
  background:var(--surface); color:var(--text); border:1px solid var(--border-2);
}

/* ---------- 2.2. Каркас страниц ---------- */
.site-main{ padding-top:calc(var(--header-h) + 46px); padding-bottom:clamp(30px,5vw,60px); min-height:52vh; }
.home .site-main{ padding-top:0; padding-bottom:0; }
body.admin-bar .site-header{ top:32px; }
@media (max-width:782px){ body.admin-bar .site-header{ top:46px; } }
.page-head{ max-width:900px; margin:0 0 clamp(24px,4vw,40px); }
.page-head h1{ font-size:clamp(1.75rem,4.6vw,2.9rem); margin:6px 0 14px; }
.page-head .lead{ margin:0; }
.page-head--center{ margin-left:auto; margin-right:auto; text-align:center; }
.page-head--center h1{ text-align:center; }

.breadcrumbs{ font-size:.82rem; color:var(--muted); margin-bottom:14px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.breadcrumbs a{ color:var(--text-2); text-decoration:none; border-bottom:1px solid transparent; }
.breadcrumbs a:hover{ color:var(--accent); border-bottom-color:rgba(21,101,160,.35); }
.breadcrumbs .sep{ color:var(--brand-gray); }
.rank-math-breadcrumb, .woocommerce-breadcrumb{
  font-size:.82rem !important; color:var(--muted) !important;
  margin:0 0 14px !important; display:flex; flex-wrap:wrap; gap:6px; align-items:center;
}
.rank-math-breadcrumb a, .woocommerce-breadcrumb a{ color:var(--text-2) !important; text-decoration:none !important; }
.rank-math-breadcrumb a:hover, .woocommerce-breadcrumb a:hover{ color:var(--accent) !important; }
.rank-math-breadcrumb .separator, .woocommerce-breadcrumb .delimiter{ color:var(--brand-gray); margin:0 2px; }

.entry-card{ padding:clamp(24px,4vw,46px); border-radius:var(--radius-lg); }
.entry-layout{ max-width:900px; margin-left:auto; margin-right:auto; }
.entry-layout--wide{ max-width:1100px; }
/* Страница с шорткодом [pt_contacts] — шире обычной статьи, чтобы две колонки дышали.
   Два правила намеренно разделены: в браузерах без :has() список селекторов
   целиком считался бы невалидным. */
body.pt-has-contacts .entry-layout{ max-width:1120px; }
body:has(.pt-contacts) .entry-layout{ max-width:1120px; }
.entry-meta{ display:flex; flex-wrap:wrap; gap:14px; font-size:.82rem; color:var(--muted); margin:0 0 22px; }
.entry-meta a{ color:var(--text-2); }
.entry-thumb{ margin:0 0 26px; }
.entry-thumb img{ width:100%; height:auto; border-radius:var(--radius); }
.entry-footer{ margin-top:30px; padding-top:20px; border-top:1px solid var(--border); font-size:.84rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:10px 22px; }
.entry-footer a{ color:var(--text-2); }
.post-nav{ display:grid; gap:14px; margin-top:28px; }
@media (min-width:720px){ .post-nav{ grid-template-columns:1fr 1fr; } }
.post-nav a{ display:block; padding:18px 20px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); }
.post-nav a:hover{ border-color:var(--border-2); }
.post-nav small{ display:block; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.post-nav b{ font-weight:600; font-size:.95rem; color:var(--text); }

/* Текст статьи */
.entry-content{ font-size:17px; line-height:1.6; color:var(--text); }
.entry-content > *:first-child{ margin-top:0; }
.entry-content p{ margin:0 0 1.1em; color:var(--text); max-width:72ch; }
.entry-content h2{ font-size:clamp(1.4rem,2.6vw,1.85rem); margin:1.8em 0 .6em; }
.entry-content h3{ font-size:clamp(1.15rem,2vw,1.4rem); margin:1.6em 0 .5em; }
.entry-content h4{ font-size:1.1rem; margin:1.4em 0 .5em; }
.entry-content ul, .entry-content ol{ margin:0 0 1.2em; padding-left:1.4em; }
.entry-content ul{ list-style:disc; }
.entry-content ol{ list-style:decimal; }
.entry-content li{ margin:0 0 .45em; padding-left:2px; }
.entry-content li::marker{ color:var(--accent); }
.entry-content a{ color:var(--accent); text-decoration:underline; text-decoration-color:rgba(21,101,160,.35); text-underline-offset:2px; }
.entry-content a:hover{ text-decoration-color:var(--accent); }
.entry-content blockquote{
  margin:1.6em 0; padding:18px 24px; border-left:3px solid var(--accent);
  background:var(--accent-soft); border-radius:0 var(--radius) var(--radius) 0; color:var(--text-2);
}
.entry-content code, .entry-content pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em; background:var(--bg-2); border-radius:8px;
}
.entry-content code{ padding:2px 7px; }
.entry-content pre{ padding:18px 20px; overflow:auto; border:1px solid var(--border); }
.entry-content img{ height:auto; border-radius:var(--radius); }
.entry-content hr{ border:0; border-top:1px solid var(--border); margin:2em 0; }

/* Таблицы (прайс, характеристики, документы) */
.entry-content table, .pt-table, .shop_table{
  width:100%; border-collapse:separate; border-spacing:0; margin:1.4em 0;
  font-size:.94rem; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden;
}
.entry-content table th, .pt-table th, .shop_table th{
  background:var(--accent-soft); color:var(--navy); font-weight:700;
  text-align:left; padding:13px 16px; border-bottom:1px solid var(--border);
}
.entry-content table td, .pt-table td, .shop_table td{
  padding:13px 16px; border-bottom:1px solid var(--border); vertical-align:top;
}
.entry-content table tr:last-child td, .shop_table tr:last-child td{ border-bottom:0; }
.entry-content table tbody tr:hover td{ background:rgba(21,101,160,.04); }
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:var(--radius); }

/* Пагинация */
.navigation.pagination{ margin:clamp(26px,4vw,44px) 0 0; }
.navigation.pagination .nav-links, .page-numbers{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center;
}
.page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:42px; height:42px; padding:0 12px; border-radius:12px;
  background:var(--surface); border:1px solid var(--border);
  color:var(--text-2); font-size:.9rem; font-weight:600; text-decoration:none;
}
.page-numbers:hover{ border-color:var(--border-2); color:var(--accent); }
.page-numbers.current{ background:var(--accent); border-color:var(--accent); color:#fff; }
.page-numbers.dots{ border:0; background:none; }

/* Комментарии */
.comments-area{ margin-top:clamp(30px,5vw,54px); }
.comments-title, .comment-reply-title{ font-size:clamp(1.25rem,2.4vw,1.6rem); margin:0 0 20px; }
.comment-list{ list-style:none; margin:0 0 30px; padding:0; display:grid; gap:14px; }
.comment-list .children{ list-style:none; margin:12px 0 0; padding-left:22px; display:grid; gap:12px; }
.comment-body{ padding:20px 22px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); }
.comment-meta{ display:flex; gap:12px; align-items:center; font-size:.84rem; color:var(--muted); margin-bottom:8px; }
.comment-author img{ border-radius:50%; }
.comment-content{ font-size:.94rem; }
.comment-content p:last-child{ margin-bottom:0; }
.reply a{ font-size:.82rem; color:var(--accent); font-weight:600; }
.comment-form{ display:grid; gap:14px; }
.comment-form label{ font-size:.85rem; font-weight:600; color:var(--text-2); display:block; margin-bottom:6px; }
.comment-form p{ margin:0; }
.comment-form .submit{
  display:inline-flex; align-items:center; justify-content:center; padding:14px 26px;
  border:0; border-radius:999px; cursor:pointer; font-weight:600; color:#fff;
  background:linear-gradient(135deg,var(--accent),#0B4175); box-shadow:var(--shadow-glow);
}

/* Поиск */
.search-form{ display:flex; gap:10px; width:100%; max-width:560px; }
.search-form label{ flex:1 1 auto; margin:0; min-width:0; }
.search-form .search-field{ width:100%; }
.search-form .search-submit{
  flex:0 0 auto; padding:14px 24px; border:0; border-radius:999px; cursor:pointer;
  font-weight:600; font-size:.95rem; color:#fff;
  background:linear-gradient(135deg,var(--accent),#0B4175); box-shadow:var(--shadow-glow);
}
.search-form .search-submit:hover{ transform:translateY(-2px); }
.search-empty-hint{ color:var(--text-2); }

/* Заголовок архива */
.archive-head{ margin-bottom:30px; }
.archive-head .h2{ margin:0; }

/* Сетка записей */
.post-grid{ display:grid; gap:16px; }
@media (min-width:640px){ .post-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .post-grid{ grid-template-columns:repeat(3,1fr); } }
.post-card{ display:flex; flex-direction:column; height:100%; padding:0; overflow:hidden; }
.post-card__media{
  display:block; aspect-ratio:16/9; background:
    linear-gradient(135deg,var(--accent-soft),var(--accent-soft-2));
  border-bottom:1px solid var(--border); overflow:hidden;
}
.post-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.post-card__body{ padding:22px; display:flex; flex-direction:column; flex:1 1 auto; gap:10px; }
.post-card__date{ font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.post-card__title{ font-size:1.08rem; line-height:1.32; margin:0; font-weight:700; }
.post-card__title a{ color:var(--navy); }
.post-card__title a:hover{ color:var(--accent); }
.post-card__excerpt{ color:var(--text-2); font-size:.9rem; margin:0; }
.post-card__more{ margin-top:auto; padding-top:8px; font-size:.86rem; font-weight:600; color:var(--accent); display:inline-flex; align-items:center; gap:6px; }

/* 404 */
.error-404-card{ text-align:center; padding:clamp(34px,6vw,70px) clamp(22px,4vw,50px); }
.error-404-num{
  font-family:var(--font-display); font-size:clamp(4.5rem,16vw,8rem); font-weight:700;
  line-height:.9; letter-spacing:-.05em; margin:0 0 8px;
  background:linear-gradient(100deg,var(--accent),#3E7FC1 55%,var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.error-404-card h1{ font-size:clamp(1.4rem,3.4vw,2.1rem); margin:0 0 12px; }
.error-404-card p{ color:var(--text-2); max-width:56ch; margin:0 auto 24px; }
.error-404-actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:30px; }
.error-404-card .search-form{ margin:0 auto; }

/* Меню в шапке: выпадающие подменю WordPress */
.site-header .nav-menu{ display:flex; align-items:center; justify-content:center; gap:2px; padding:0; margin:0; list-style:none; }
.site-header .nav-menu > li{ position:relative; margin:0; padding:0; }
.site-header .nav-menu > li > a{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 13px; border-radius:999px;
  font-size:.9rem; font-weight:500; color:var(--text-2);
  transition:color .2s,background .2s; white-space:nowrap;
}
.site-header .nav-menu > li > a:hover{ color:var(--text); background:var(--surface); }
.site-header .nav-menu > li.current-menu-item > a,
.site-header .nav-menu > li.current-menu-ancestor > a,
.site-header .nav-menu > li.current_page_item > a{ color:var(--accent); background:var(--accent-soft); }
.site-header .nav-menu .sub-menu{
  position:absolute; top:calc(100% + 10px); left:0; min-width:236px; z-index:120;
  display:grid; gap:2px; padding:10px; margin:0; list-style:none;
  border-radius:var(--radius); background:rgba(255,255,255,.98);
  border:1px solid var(--border); box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s;
}
.site-header .nav-menu li:hover > .sub-menu,
.site-header .nav-menu li:focus-within > .sub-menu{ opacity:1; visibility:visible; transform:none; }
.site-header .nav-menu .sub-menu a{
  display:block; padding:10px 12px; border-radius:10px;
  font-size:.9rem; font-weight:500; color:var(--text-2); white-space:normal;
}
.site-header .nav-menu .sub-menu a:hover{ color:var(--text); background:var(--surface); }
.site-header .nav-menu .sub-menu li{ margin:0; }

/* Мобильное меню: список WordPress */
.mobile-nav .nav-menu{ display:grid; gap:4px; padding:0; margin:0; list-style:none; }
.mobile-nav .nav-menu li{ margin:0; }
.mobile-nav .nav-menu .sub-menu{
  list-style:none; margin:4px 0 6px 12px; padding:0 0 0 12px;
  border-left:1px solid var(--border); display:grid; gap:2px;
}
.mobile-nav .nav-menu .sub-menu a{ padding:10px 12px; font-size:.94rem; background:transparent; border:0; }
.mobile-nav .mrow .btn{ width:100%; }

/* Переключатель темы в мобильном меню */
.theme-switch--mobile .theme-btn{ display:flex; gap:8px; }

/* Кнопка «наверх» */
.to-top{
  position:fixed; right:20px; bottom:20px; z-index:90;
  width:46px; height:46px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,.92); border:1px solid var(--border);
  color:var(--accent); box-shadow:var(--shadow); cursor:pointer;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s;
}
.to-top.is-visible{ opacity:1; visibility:visible; transform:none; }
.to-top svg{ width:18px; height:18px; }
@media (max-width:600px){ .to-top{ right:14px; bottom:14px; width:42px; height:42px; } }

/* ---------- 2.3. Формы: WP, Fluent Forms, Contact Form 7 ---------- */
input[type=text],input[type=tel],input[type=email],input[type=url],input[type=password],
input[type=number],input[type=date],input[type=search],select,textarea{
  font-size:.95rem;
}
input[type=number]{ padding:12px 14px; border-radius:12px; background:#fff; border:1px solid rgba(21,32,48,.14); }
textarea{ min-height:120px; resize:vertical; }
label{ color:var(--text-2); font-size:.88rem; font-weight:600; }
input[type=checkbox],input[type=radio]{ accent-color:var(--accent); }

/* Fluent Forms */
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label{ font-size:.86rem; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.fluentform .ff-el-form-control{
  width:100% !important; padding:14px 16px !important; border-radius:14px !important;
  background:#fff !important; border:1px solid rgba(21,32,48,.14) !important;
  color:var(--text) !important; font-size:.95rem !important; box-shadow:none !important;
}
.fluentform .ff-el-form-control:focus{
  border-color:rgba(21,101,160,.55) !important;
  box-shadow:0 0 0 4px rgba(21,101,160,.10) !important; outline:none !important;
}
.fluentform textarea.ff-el-form-control{ min-height:120px; }
.fluentform .ff-btn-submit,
.fluentform .ff-btn{
  display:inline-flex !important; align-items:center; justify-content:center; gap:10px;
  padding:14px 28px !important; border:0 !important; border-radius:999px !important;
  background:linear-gradient(135deg,var(--accent),#0B4175) !important;
  color:#fff !important; font-weight:600 !important; font-size:.95rem !important;
  box-shadow:var(--shadow-glow) !important; cursor:pointer;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease) !important;
}
.fluentform .ff-btn-submit:hover, .fluentform .ff-btn:hover{ transform:translateY(-2px); }
.fluentform .ff-el-is-error .ff-el-form-control{ border-color:rgba(217,45,63,.6) !important; }
.fluentform .error.text-danger, .fluentform .ff-el-is-error .error{ color:var(--warn) !important; font-size:.8rem !important; }
.fluentform .ff-message-success{
  padding:16px 18px !important; border-radius:var(--radius) !important;
  background:var(--accent-soft) !important; border:1px solid rgba(21,101,160,.32) !important;
  color:var(--text) !important;
}
.fluentform .ff-el-group{ margin-bottom:16px !important; }
.fluentform .ff-el-input--content{ width:100%; }
.fluentform .ff-checkbox, .fluentform .ff-radio{ display:flex; gap:10px; align-items:flex-start; }
.fluentform .ff-el-form-check-input{ margin-top:3px; }

/* Contact Form 7 */
.wpcf7-form{ display:grid; gap:14px; }
.wpcf7-form p{ margin:0; }
.wpcf7-form label{ display:block; font-size:.85rem; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.wpcf7-form .wpcf7-form-control-wrap{ display:block; }
.wpcf7-form input[type=text], .wpcf7-form input[type=tel], .wpcf7-form input[type=email],
.wpcf7-form input[type=url], .wpcf7-form select, .wpcf7-form textarea{
  width:100%; padding:14px 16px; border-radius:14px; background:#fff;
  border:1px solid rgba(21,32,48,.14); color:var(--text);
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus{
  border-color:rgba(21,101,160,.55); box-shadow:0 0 0 4px rgba(21,101,160,.10); outline:none;
}
.wpcf7-form input[type=submit]{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 28px; border:0; border-radius:999px; cursor:pointer;
  font-weight:600; font-size:.95rem; color:#fff;
  background:linear-gradient(135deg,var(--accent),#0B4175); box-shadow:var(--shadow-glow);
}
.wpcf7-form input[type=submit]:hover{ transform:translateY(-2px); }
.wpcf7-form .wpcf7-not-valid-tip{ color:var(--warn); font-size:.8rem; margin-top:5px; }
.wpcf7-form .wpcf7-response-output{
  margin:12px 0 0 !important; padding:14px 16px !important; border-radius:var(--radius) !important;
  border:1px solid rgba(21,101,160,.32) !important; background:var(--accent-soft) !important;
  font-size:.9rem !important;
}
.wpcf7-form-control-wrap .wpcf7-list-item{ margin:0 0 6px; display:block; }
.wpcf7-form-control-wrap .wpcf7-list-item-label{ font-size:.85rem; font-weight:400; color:var(--muted); }

/* Универсальные «карточки форм» для шорткодов в контенте */
.pt-form-card{ padding:clamp(22px,4vw,36px); border-radius:var(--radius-lg); background:var(--surface-2); border:1px solid var(--border); box-shadow:var(--shadow); }

/* ---------- 2.4. WooCommerce: общее ---------- */
.woocommerce .site-main{ padding-top:calc(var(--header-h) + 40px); }
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error{
  list-style:none; margin:0 0 22px; padding:16px 20px 16px 48px; position:relative;
  border-radius:var(--radius); font-size:.92rem; line-height:1.5;
  background:var(--accent-soft); border:1px solid rgba(21,101,160,.28); color:var(--text);
}
.woocommerce .woocommerce-error{ background:rgba(217,45,63,.06); border-color:rgba(217,45,63,.28); }
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before{
  position:absolute; left:18px; top:50%; transform:translateY(-50%);
  color:var(--accent); font-size:1rem;
}
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button{
  margin-left:12px; padding:8px 16px; border-radius:999px;
  background:var(--accent); color:#fff; font-size:.82rem; font-weight:600; text-decoration:none;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.wc-block-components-button{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:13px 24px; border-radius:999px; border:1px solid transparent;
  background:linear-gradient(135deg,var(--accent),#0B4175); color:#fff !important;
  font-weight:600; font-size:.92rem; line-height:1.2; text-decoration:none;
  box-shadow:var(--shadow-glow); cursor:pointer;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover{ transform:translateY(-2px); color:#fff; }
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{ background:linear-gradient(135deg,var(--accent),#0B4175); }
.woocommerce a.button.wc-backward,
.woocommerce .button.wc-backward,
.woocommerce a.button--ghost{
  background:var(--surface); color:var(--text) !important; border-color:var(--border-2); box-shadow:none;
}
.woocommerce a.button.wc-backward:hover{ background:var(--surface-2); }
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:var(--navy); font-family:var(--font-display); font-weight:700;
  font-size:1.05rem; letter-spacing:-.02em;
}
.woocommerce .price del{ color:var(--muted); font-weight:500; opacity:1; font-size:.88em; }
.woocommerce .price ins{ text-decoration:none; font-weight:700; }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before{ color:#E8B94A; }
.woocommerce .onsale{
  min-height:0; min-width:0; padding:6px 12px; border-radius:999px;
  background:linear-gradient(135deg,var(--accent),#0B4175); color:#fff;
  font-size:.72rem; font-weight:700; letter-spacing:.02em; line-height:1.2;
  box-shadow:var(--shadow-glow);
}
.woocommerce span.onsale{ top:14px !important; left:14px !important; right:auto; margin:0; }
.woocommerce .woocommerce-result-count{ margin:0; font-size:.86rem; color:var(--muted); }
.woocommerce .woocommerce-ordering{ margin:0; }
.woocommerce .woocommerce-ordering select{
  padding:10px 38px 10px 14px; border-radius:12px; border:1px solid var(--border);
  background-color:#fff; font-size:.88rem; color:var(--text); min-width:200px;
}
.woocommerce .woocommerce-breadcrumb{ margin-bottom:16px !important; }
.woocommerce nav.woocommerce-pagination ul{
  display:flex; gap:8px; border:0; margin:30px 0 0; padding:0; justify-content:center;
}
.woocommerce nav.woocommerce-pagination ul li{ border:0; margin:0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px;
  padding:0 12px; border-radius:12px; background:var(--surface); border:1px solid var(--border);
  color:var(--text-2); font-size:.9rem; font-weight:600;
}
.woocommerce nav.woocommerce-pagination ul li span.current{ background:var(--accent); border-color:var(--accent); color:#fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover{ border-color:var(--border-2); color:var(--accent); }

/* Сетка товаров */
.woocommerce ul.products{
  display:grid !important; gap:16px; margin:0 0 10px !important; padding:0 !important; list-style:none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after{ display:none; }
.woocommerce ul.products.columns-2{ grid-template-columns:repeat(2,1fr); }
.woocommerce ul.products.columns-3{ grid-template-columns:repeat(2,1fr); }
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,
.woocommerce ul.products.columns-6{ grid-template-columns:repeat(2,1fr); }
@media (min-width:700px){
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-5,
  .woocommerce ul.products.columns-6{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:1060px){
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-5,
  .woocommerce ul.products.columns-6{ grid-template-columns:repeat(4,1fr); }
}
.woocommerce ul.products li.product{
  width:100% !important; float:none !important; margin:0 !important; padding:0 !important;
  display:flex; flex-direction:column; height:100%;
  background:rgba(255,255,255,.78); border:1px solid var(--border);
  border-radius:18px; box-shadow:var(--shadow-sm);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease);
  overflow:hidden;
}
.woocommerce ul.products li.product:hover{
  transform:translateY(-2px); border-color:var(--accent-soft-2);
  box-shadow:0 10px 24px -14px rgba(10,56,90,.22), 0 1px 2px rgba(10,56,90,.06);
}

/* Карточка товара */
.pt-card__media{
  position:relative; display:block; aspect-ratio:4/3; overflow:hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(21,101,160,.16), transparent 60%),
    linear-gradient(135deg, var(--accent-soft), #fff 70%);
  border-bottom:1px solid var(--border);
}
.pt-card__media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .45s var(--ease);
}
.woocommerce ul.products li.product:hover .pt-card__media img{ transform:scale(1.03); }
.pt-card__media--empty::after{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(21,101,160,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(21,101,160,.10) 1px,transparent 1px);
  background-size:26px 26px;
  mask-image:radial-gradient(circle at 50% 50%,#000 10%,transparent 75%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 10%,transparent 75%);
}
.pt-card__media--empty::before{
  content:"DOC"; position:absolute; inset:0; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:700; font-size:1.6rem; letter-spacing:.16em;
  color:rgba(21,101,160,.35);
}
.pt-card__body{ display:flex; flex-direction:column; flex:1 1 auto; padding:18px 20px 20px; gap:8px; }
.pt-card__cat{ font-size:.76rem; color:var(--text-2); margin:0; }
.pt-card__cat a{ color:inherit; }
.pt-card__cat a:hover{ color:var(--accent); }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:1.02rem; line-height:1.34; font-weight:500; color:var(--text);
  letter-spacing:-.01em; margin:0; padding:0; overflow-wrap:anywhere;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a{ color:inherit; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover{ color:var(--accent); }
.pt-card__desc{ font-size:.86rem; line-height:1.55; color:var(--text-2); margin:0; }
.pt-card__meta{ font-size:.74rem; color:var(--muted); margin:0; }
.woocommerce ul.products li.product .price{
  margin:auto 0 0; padding-top:14px; border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; font-size:1rem;
}
.woocommerce ul.products li.product .button{
  margin:12px 0 0 !important; width:100%; padding:11px 18px; font-size:.88rem;
  border-radius:12px; box-shadow:none;
}
.woocommerce ul.products li.product .added_to_cart{
  display:block; margin-top:8px; font-size:.8rem; font-weight:600; color:var(--accent); text-align:center;
}

/* ---------- 2.5. Каталог WooCommerce: боковая колонка ---------- */
.shop-layout{ display:grid; grid-template-columns:1fr; gap:22px; align-items:start; }
@media (min-width:960px){ .shop-layout{ grid-template-columns:minmax(220px,262px) 1fr; gap:26px; } }
.shop-sidebar{ display:grid; gap:14px; }
@media (min-width:960px){ .shop-sidebar{ position:sticky; top:96px; } }
.shop-sidebar .widget{
  background:#fff; border:1px solid rgba(16,32,56,.10); border-radius:var(--radius);
  padding:16px 14px; box-shadow:var(--shadow-sm);
}
.shop-sidebar .widget-title, .shop-sidebar .wp-block-heading{
  margin:0 0 12px; font-size:.74rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted); font-weight:700; font-family:var(--font-sans);
}
.shop-sidebar ul{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.shop-sidebar li{ margin:0; }
.shop-sidebar li a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 12px; border-radius:10px; color:var(--text-2); font-size:.92rem;
  transition:background .2s var(--ease),color .2s var(--ease);
}
.shop-sidebar li a:hover{ background:var(--accent-soft); color:var(--accent); }
.shop-sidebar li.current-cat > a, .shop-sidebar li.current-menu-item > a{ background:var(--accent); color:#fff; }
.shop-sidebar .count{ font-size:.76rem; opacity:.8; }
.shop-sidebar .woocommerce-widget-layered-nav-list .count{ margin-left:auto; }
.shop-sidebar .price_slider_wrapper .button{ width:100%; margin-top:10px; }
.shop-sidebar .ui-slider{ background:var(--bg-2); border:0; height:4px; border-radius:4px; }
.shop-sidebar .ui-slider .ui-slider-range{ background:var(--accent); }
.shop-sidebar .ui-slider .ui-slider-handle{ background:var(--accent); border:2px solid #fff; box-shadow:var(--shadow-sm); }

.shop-toolbar{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:14px; margin:0 0 18px; padding:14px 18px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
}
.shop-search{ margin:0 0 16px; }
.shop-search .search-form{ max-width:none; }
.shop-cats-toggle{
  display:none; align-items:center; gap:10px; padding:12px 16px;
  border:1px solid var(--border); border-radius:var(--radius-sm);
  background:#fff; color:var(--text); font-weight:600; cursor:pointer; width:100%;
}
@media (max-width:959px){
  .shop-cats-toggle{ display:flex; }
  .shop-sidebar .shop-cats{ display:none; }
  .shop-sidebar.is-open .shop-cats{ display:block; }
}
.shop-empty{
  padding:34px 30px; border-radius:var(--radius-lg); background:var(--surface-2);
  border:1px solid var(--border); text-align:center; color:var(--text-2);
}

/* ---------- 2.6. Карточка товара ---------- */
.woocommerce div.product{ display:grid; gap:28px; }
@media (min-width:900px){
  .woocommerce div.product{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:44px; align-items:start; }
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells,
  .woocommerce div.product .woocommerce-product-gallery{ grid-column:auto; }
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells{ grid-column:1 / -1; }
}
.woocommerce div.product div.images{
  margin:0; border-radius:var(--radius-lg); overflow:hidden;
  background:linear-gradient(135deg,var(--accent-soft),#fff 70%);
  border:1px solid var(--border); padding:14px;
}
.woocommerce div.product div.images img{ border-radius:var(--radius); }
.woocommerce div.product div.images .flex-control-thumbs{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(70px,1fr)); gap:8px; margin:10px 0 0;
}
.woocommerce div.product div.images .flex-control-thumbs li{ width:auto; margin:0; float:none; }
.woocommerce div.product div.images .flex-control-thumbs img{ border-radius:10px; border:1px solid var(--border); opacity:.75; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active{ opacity:1; border-color:var(--accent); }
.woocommerce div.product .summary.entry-summary{ padding:0; }
.woocommerce div.product .product_title{
  font-size:clamp(1.5rem,3.2vw,2.15rem); line-height:1.16; margin:0 0 12px; letter-spacing:-.02em;
}
.woocommerce div.product .woocommerce-product-rating{ margin-bottom:12px; display:flex; align-items:center; gap:10px; }
.woocommerce div.product .woocommerce-product-details__short-description{
  color:var(--text-2); font-size:.96rem; line-height:1.65; margin:0 0 18px;
}
.woocommerce div.product p.price{
  font-size:clamp(1.6rem,3.4vw,2.1rem); margin:0 0 6px; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
}
.woocommerce div.product p.price del{ font-size:.55em; }
.woocommerce div.product p.price ins{ text-decoration:none; }
.woocommerce div.product .woocommerce-price-suffix{ font-size:.8rem; color:var(--muted); font-weight:500; }
.woocommerce div.product form.cart{
  display:flex; flex-wrap:wrap; gap:12px; align-items:stretch;
  margin:18px 0 22px; padding:18px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border);
}
.woocommerce div.product form.cart .quantity{ display:flex; align-items:center; }
.woocommerce div.product form.cart .quantity .qty{
  width:92px; height:100%; min-height:48px; padding:10px 12px; border-radius:12px;
  border:1px solid rgba(21,32,48,.14); background:#fff; text-align:center;
}
.woocommerce div.product form.cart .button{
  flex:1 1 200px; min-height:48px; font-size:.98rem; border-radius:12px;
}
.woocommerce div.product form.cart .variations{ width:100%; margin:0 0 10px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td{ padding:6px 0; border:0; background:none; }
.woocommerce div.product form.cart .variations select{ min-width:200px; }
.woocommerce div.product .product_meta{
  font-size:.82rem; color:var(--muted); display:grid; gap:6px;
  padding-top:16px; border-top:1px solid var(--border);
}
.woocommerce div.product .product_meta a{ color:var(--text-2); }
.woocommerce div.product .product_meta a:hover{ color:var(--accent); }
.woocommerce div.product .woocommerce-tabs{ margin-top:12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs{
  display:flex; flex-wrap:wrap; gap:6px; margin:0 0 20px; padding:0; border:0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{ display:none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin:0; padding:0; border:0; border-radius:999px; background:var(--surface);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{ display:none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:inline-block; padding:10px 18px; font-size:.88rem; font-weight:600; color:var(--text-2);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{ background:var(--accent); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{ color:#fff; }
.woocommerce div.product .woocommerce-tabs .panel{
  padding:24px 26px; border-radius:var(--radius-lg); background:var(--surface-2);
  border:1px solid var(--border); margin:0;
}
.woocommerce div.product .woocommerce-tabs .panel h2{ font-size:1.3rem; margin:0 0 14px; }
.woocommerce .related > h2, .woocommerce .upsells > h2{
  font-size:clamp(1.3rem,2.6vw,1.7rem); margin:10px 0 18px;
}
.woocommerce div.product .related, .woocommerce div.product .upsells{ margin-top:14px; }
.woocommerce div.product .wc-tabs-wrapper{ margin-top:6px; }

/* Цифровой товар: пояснение под кнопкой */
.pt-digital-note{
  display:flex; gap:12px; align-items:flex-start; margin:0 0 18px;
  padding:14px 16px; border-radius:var(--radius); font-size:.86rem; color:var(--text-2);
  background:var(--accent-soft); border:1px solid rgba(21,101,160,.22);
}
.pt-digital-note svg{ width:18px; height:18px; color:var(--accent); flex:none; margin-top:1px; }

/* ---------- 2.7. Корзина и оформление заказа ---------- */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce{ max-width:1120px; }
.woocommerce table.shop_table{
  border:1px solid var(--border); border-radius:var(--radius); border-collapse:separate;
  background:#fff; margin:0 0 24px;
}
.woocommerce table.shop_table th{
  background:var(--accent-soft); color:var(--navy); font-size:.8rem; text-transform:uppercase;
  letter-spacing:.06em; padding:14px 16px; border-bottom:1px solid var(--border);
}
.woocommerce table.shop_table td{ padding:16px; border-top:1px solid var(--border); vertical-align:middle; }
.woocommerce table.shop_table tbody tr:first-child td{ border-top:0; }
.woocommerce table.shop_table .product-thumbnail img{ width:64px; border-radius:12px; }
.woocommerce table.shop_table .product-name a{ color:var(--navy); font-weight:600; }
.woocommerce table.shop_table .product-name a:hover{ color:var(--accent); }
.woocommerce table.cart td.actions{ padding:16px; }
.woocommerce table.cart td.actions .coupon{ display:flex; flex-wrap:wrap; gap:10px; }
.woocommerce table.cart td.actions .coupon .input-text{
  width:180px; padding:11px 14px; border-radius:12px; border:1px solid rgba(21,32,48,.14);
}
.woocommerce .cart-collaterals{ display:grid; gap:20px; }
.woocommerce .cart-collaterals .cart_totals{
  width:100%; max-width:420px; margin-left:auto; padding:24px 26px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-lg);
}
.woocommerce .cart-collaterals .cart_totals h2{ font-size:1.2rem; margin:0 0 14px; }
.woocommerce .cart-collaterals .cart_totals table{ margin:0 0 16px; border:0; }
.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td{ padding:9px 0; border:0; background:none; }
.woocommerce .cart-collaterals .cart_totals .order-total td, .woocommerce .cart-collaterals .cart_totals .order-total th{ font-size:1.1rem; }
.woocommerce .cart-collaterals .cart_totals .button{ width:100%; }
.woocommerce .cart-empty, .woocommerce .return-to-shop{ text-align:center; }
.woocommerce .cart-empty{ font-size:1.05rem; color:var(--text-2); padding:24px 0 6px; }
.woocommerce .return-to-shop{ padding-bottom:20px; }
.woocommerce .cart_totals .woocommerce-shipping-destination{ font-size:.82rem; color:var(--muted); }

/* Оформление заказа */
.woocommerce-checkout .woocommerce-info{ }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register{
  border:1px solid var(--border); border-radius:var(--radius); padding:22px; background:var(--surface-2);
}
.woocommerce form .form-row{ padding:0; margin:0 0 16px; }
.woocommerce form .form-row label{ font-size:.86rem; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.woocommerce form .form-row .required{ color:var(--warn); text-decoration:none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select{
  width:100%; padding:13px 15px; border-radius:14px; background:#fff;
  border:1px solid rgba(21,32,48,.14); color:var(--text); font-size:.95rem;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{
  border-color:rgba(21,101,160,.55); box-shadow:0 0 0 4px rgba(21,101,160,.10); outline:none;
}
.woocommerce-checkout .col2-set{ display:grid; gap:20px; }
@media (min-width:800px){ .woocommerce-checkout .col2-set{ grid-template-columns:1fr 1fr; } }
.woocommerce-checkout h3{ font-size:1.1rem; margin:0 0 16px; }
#order_review_heading{ margin-top:26px; }
.woocommerce-checkout #order_review{
  padding:24px 26px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-lg);
}
.woocommerce-checkout #order_review table.shop_table{ margin-bottom:18px; }
.woocommerce-checkout #payment{
  background:transparent; border-radius:0; margin-top:8px;
}
.woocommerce-checkout #payment ul.payment_methods{
  list-style:none; margin:0 0 16px; padding:0; border:0; display:grid; gap:8px;
}
.woocommerce-checkout #payment ul.payment_methods li{
  margin:0; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:#fff;
}
.woocommerce-checkout #payment div.payment_box{
  margin:10px 0 0; padding:12px 14px; border-radius:10px; background:var(--accent-soft);
  font-size:.86rem; color:var(--text-2);
}
.woocommerce-checkout #payment div.payment_box::before{ display:none; }
.woocommerce-checkout #payment div.form-row.place-order{ padding:0; margin:0; }
.woocommerce-checkout #payment #place_order{ width:100%; padding:16px 24px; font-size:1rem; border-radius:12px; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{ margin-bottom:14px; font-size:.86rem; }
.woocommerce ul.order_details{
  list-style:none; display:grid; gap:10px; padding:18px 20px; margin:0 0 26px;
  border-radius:var(--radius); background:var(--accent-soft); border:1px solid rgba(21,101,160,.24);
  font-size:.88rem;
}
.woocommerce ul.order_details li{ margin:0; border:0; padding:0; }
.woocommerce .woocommerce-order p.woocommerce-notice{
  padding:20px 24px; border-radius:var(--radius); background:var(--accent-soft);
  border:1px solid rgba(21,101,160,.3); font-size:1rem;
}
.woocommerce .woocommerce-thankyou-order-received{ font-size:1.15rem !important; color:var(--navy); }

/* Личный кабинет */
.woocommerce-account .woocommerce{ display:grid; gap:26px; }
@media (min-width:900px){ .woocommerce-account .woocommerce{ grid-template-columns:260px 1fr; align-items:start; } }
.woocommerce-account .woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:14px; display:grid; gap:2px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); }
.woocommerce-account .woocommerce-MyAccount-navigation li a{ display:block; padding:10px 14px; border-radius:10px; font-size:.9rem; color:var(--text-2); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{ background:var(--accent); color:#fff; }
.woocommerce-account .woocommerce-MyAccount-content{ padding:24px 26px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); }

/* Заглушки изображений WooCommerce */
.woocommerce-placeholder, .woocommerce div.product div.images .woocommerce-placeholder{
  background:linear-gradient(135deg,var(--accent-soft),#fff 70%) !important;
  border:1px dashed var(--accent-soft-2) !important; opacity:1 !important;
}

/* ---------- 2.8. Адаптивность ---------- */
@media (max-width:900px){
  .header-actions .phone{ display:none; }
}
@media (max-width:600px){
  .site-main{ padding-top:calc(var(--header-h) + 28px); }
  .entry-card{ padding:20px 18px; }
  .shop-toolbar{ padding:12px 14px; }
  .woocommerce .woocommerce-ordering select{ min-width:0; width:100%; }
  .woocommerce table.shop_table_responsive tr td{ text-align:right; }
  .woocommerce table.shop_table_responsive tr td::before{ font-weight:600; color:var(--muted); }
  .woocommerce div.product form.cart{ padding:14px; }
  .woocommerce div.product form.cart .button{ flex:1 1 100%; }
  .pt-card__body{ padding:16px 16px 18px; }
  .error-404-actions .btn{ width:100%; }
}

/* ---------- 2.9. Печать ---------- */
@media print{
  .site-header, .footer, .to-top, .theme-switch, .burger, .header-actions{ display:none !important; }
  .site-main{ padding-top:0; }
  body{ background:#fff; }
  .entry-card, .glass{ box-shadow:none; border:0; }
}

/* =========================================================================
   ЧАСТЬ 3. БЛОКИ ГЛАВНОЙ И МЕЛКИЕ КОМПОНЕНТЫ ТЕМЫ
   ========================================================================= */

/* Карточки разделов каталога на главной */
.cat-card{ display:flex; flex-direction:column; gap:10px; height:100%; }
.cat-card .ico{ margin-bottom:4px; }
.cat-card .h3{ margin:0; }
.cat-card p{ margin:0; color:var(--text-2); font-size:.92rem; }
.cat-card__count{
  margin-top:auto; padding-top:12px; font-size:.8rem; font-weight:600;
  color:var(--accent); letter-spacing:.01em;
}

/* Вопросы-ответы (details/summary) */
.faq-item{ padding:22px 24px; }
.faq-item summary{
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  list-style:none; cursor:pointer; font-family:var(--font-display);
  font-weight:700; font-size:1.02rem; letter-spacing:-.01em; color:var(--navy);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; flex:none; width:26px; height:26px; border-radius:8px;
  display:grid; place-items:center; background:var(--accent-soft); color:var(--accent);
  font-size:1.05rem; font-weight:700; line-height:1; transition:transform .25s var(--ease);
}
.faq-item[open] summary::after{ content:"–"; transform:rotate(180deg); }
.faq-item p{ margin:14px 0 0; color:var(--text-2); font-size:.94rem; line-height:1.65; }

/* Товары на главной */
.home-products .woocommerce{ margin:0; }
.home-products ul.products{ margin-bottom:0 !important; }

/* Подвал: меню */
.foot-col ul{ list-style:none; margin:0; padding:0; }
.foot-col .foot-menu{ display:grid; gap:10px; }
.foot-col .foot-menu li{ margin:0; }

/* Карточка товара: положение метки «Скидка» */
.woocommerce ul.products li.product{ position:relative; }

/* Поиск товаров WooCommerce (виджет и шорткод) */
.woocommerce-product-search{ display:flex; gap:8px; }
.woocommerce-product-search input[type=search]{
  flex:1 1 auto; min-width:0; padding:12px 14px; border-radius:12px;
  border:1px solid rgba(21,32,48,.14); background:#fff; font-size:.9rem;
}
.woocommerce-product-search button{
  flex:0 0 auto; padding:12px 16px; border:0; border-radius:12px; cursor:pointer;
  background:var(--accent); color:#fff; font-weight:600; font-size:.85rem;
}
.shop-sidebar .woocommerce-product-search{ flex-direction:column; }

/* Колонка каталога не должна распирать сетку */
.shop-main-col{ min-width:0; }

/* Плашки «категория / дата» в карточках */
.pt-card__cat a{ text-decoration:none; }

/* Кнопки «В корзину» в каталоге: компактнее стандартных */
.woocommerce ul.products li.product .pt-add-to-cart{ width:100%; }

/* Заголовки секций главной */
.home-main .section-head{ margin-bottom:clamp(26px,4vw,44px); }

/* Мобильная шапка: логотип не сжимается, телефон скрыт */
@media (max-width:520px){
  .site-header .logo-text .sub{ display:none; }
  .logo-img{ height:30px; }
}

/* Контрастный режим: карточки товаров */
html[data-theme="contrast"] .woocommerce ul.products li.product,
html[data-theme="contrast"] .shop-sidebar .widget,
html[data-theme="contrast"] .entry-card{ background:#000; border-color:#fff; }

/* Тёмная тема: карточки, формы, таблицы */
html[data-theme="dark"] .woocommerce ul.products li.product,
html[data-theme="dark"] .entry-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .faq-item{ background:rgba(28,36,46,.72); }
html[data-theme="dark"] .shop-sidebar .widget,
html[data-theme="dark"] .woocommerce table.shop_table,
html[data-theme="dark"] .pt-card__media{ background:#141c25; }
html[data-theme="dark"] .pt-card__media--empty::before{ color:rgba(111,168,220,.55); }
html[data-theme="dark"] input[type=text],
html[data-theme="dark"] input[type=tel],
html[data-theme="dark"] input[type=email],
html[data-theme="dark"] input[type=search],
html[data-theme="dark"] input[type=number],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{ background:#141c25; color:var(--text); border-color:rgba(255,255,255,.18); }

/* =========================================================================
   ЧАСТЬ 4. МОБИЛЬНОЕ МЕНЮ: ПОЛНОЭКРАННЫЙ ОВЕРЛЕЙ
   (перенесено из инлайн-стилей base.html старого сайта)
   ========================================================================= */
.site-header.nav-open{
  z-index:99998 !important;
  background:#ffffff !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  border-bottom-color:transparent !important;
  box-shadow:none !important;
}
.site-header.nav-open .mobile-nav{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  max-width:100% !important;
  height:100% !important;
  max-height:none !important;
  margin:0 !important;
  display:block !important;
  padding:86px 18px 32px !important;
  background:#ffffff !important;
  opacity:1 !important;
  visibility:visible !important;
  z-index:99999 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.site-header.nav-open .header-inner,
.site-header.nav-open .logo,
.site-header.nav-open .burger{ position:relative !important; z-index:100000 !important; }
.site-header.nav-open .mobile-nav .nav-menu a{
  display:block !important;
  padding:16px 6px !important;
  margin:0 !important;
  color:#16202e !important;
  background:transparent !important;
  font-size:1.05rem !important;
  font-weight:600 !important;
  line-height:1.35 !important;
  text-decoration:none !important;
  border:0 !important;
  border-bottom:1px solid rgba(21,32,48,.14) !important;
  border-radius:0 !important;
}
.site-header.nav-open .mobile-nav .nav-menu a:hover,
.site-header.nav-open .mobile-nav .nav-menu a:focus-visible{
  background:rgba(21,101,160,.08) !important;
  color:#1565A0 !important;
}
.site-header.nav-open .mobile-nav .nav-menu .sub-menu{
  margin:0 !important;
  padding:0 0 0 14px !important;
  border-left:1px solid rgba(21,32,48,.14) !important;
}
.site-header.nav-open .mobile-nav .nav-menu .sub-menu a{ font-size:.96rem !important; padding:12px 6px !important; }
.site-header.nav-open .mobile-nav .mrow{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
  padding-top:24px !important;
  margin-top:8px !important;
}
.site-header.nav-open .mobile-nav .btn{
  width:100% !important;
  text-align:center;
  border-radius:12px !important;
  padding:15px 18px !important;
}
.site-header.nav-open .mobile-nav .btn-primary{ color:#ffffff !important; background:linear-gradient(135deg,#1565A0,#0B4175) !important; }
.site-header.nav-open .mobile-nav .btn-ghost{ color:#16202e !important; background:#eef2f4 !important; }
.site-header.nav-open .theme-switch--mobile{ margin:18px 0 0 !important; width:100%; }
html[data-theme="dark"] .site-header.nav-open,
html[data-theme="dark"] .site-header.nav-open .mobile-nav{ background:#0e141b !important; }
html[data-theme="dark"] .site-header.nav-open .mobile-nav .nav-menu a{ color:#eaf0f5 !important; border-bottom-color:rgba(255,255,255,.14) !important; }
html[data-theme="contrast"] .site-header.nav-open,
html[data-theme="contrast"] .site-header.nav-open .mobile-nav{ background:#000 !important; }
html[data-theme="contrast"] .site-header.nav-open .mobile-nav .nav-menu a{ color:#fff !important; }

/* =========================================================================
   ЧАСТЬ 5. ТОЧЕЧНЫЕ ПРАВКИ ЧИТАЕМОСТИ И ШИРИНЫ
   ========================================================================= */

/* «Блик» стеклянных панелей приглушён на карточках с текстом */
.glass.card::after{ opacity:.22; }
.entry-card::after,
.faq-item::after,
.cat-card::after,
.post-card::after{ display:none; }

/* Метка скидки */
.woocommerce span.onsale{ position:absolute; z-index:3; }

/* Корзина и оформление заказа — шире обычной статьи */
body.woocommerce-cart .entry-layout,
body.woocommerce-checkout .entry-layout,
body.woocommerce-account .entry-layout{ max-width:1120px; }
body.woocommerce-cart .entry-card,
body.woocommerce-checkout .entry-card,
body.woocommerce-account .entry-card{ background:#fff; }

/* Строка сортировки и счётчик в каталоге */
.shop-toolbar .woocommerce-result-count{ flex:1 1 auto; }
.shop-toolbar .woocommerce-ordering{ flex:0 0 auto; }
.shop-toolbar .woocommerce-ordering select{ margin:0; }

/* Заголовок каталога */
.shop-head{ max-width:820px; }
.shop-head .lead{ color:var(--text-2); }

/* Карточка товара: описание не распирает высоту */
.pt-card__desc{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* =========================================================================
   ЧАСТЬ 4. СТРАНИЦА «КОНТАКТЫ» — ШОРТКОД [pt_contacts]
   Раскладка по макету: вводная строка, слева четыре информационные
   карточки, справа карточка с формой CF7; ниже — блоки «Способы оплаты»
   (с логотипами платёжных систем), «Реквизиты и статус» и «Договор».
   ========================================================================= */

/* Страница контактов живёт на фоне сайта: большая карточка-обёртка
   записи здесь не нужна — карточки рисует сам шорткод. */
body.pt-has-contacts .entry-card{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding:0;
}
body.pt-has-contacts .entry-card::after{ display:none; }
body.pt-has-contacts .entry-layout{ max-width:1160px; }
body.pt-has-contacts .page-head{ max-width:820px; }
body.pt-has-contacts .page-head h1{ font-size:clamp(2rem,4.4vw,3rem); letter-spacing:-.025em; }
body.pt-has-contacts .entry-footer{ border-top:0; padding-top:0; }

.pt-contact-page{ display:grid; gap:26px; align-items:start; }
.pt-contact-page__lead{
  max-width:72ch;
  margin:0;
  color:var(--text-2);
  font-size:1.06rem;
  line-height:1.6;
}

/* ----- Верхний блок: карточки + форма ----- */
.pt-contact-top{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.pt-contact-cards{ display:grid; gap:14px; min-width:0; align-content:start; grid-auto-rows:min-content; }

.pt-ccard{
  align-self:start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 24px;
  box-shadow:0 16px 40px -38px rgba(10,56,90,.55);
  min-width:0;
}
.pt-ccard__icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  display:grid;
  place-items:center;
  margin:0 0 14px;
}
.pt-ccard__icon svg{ width:20px; height:20px; }
.pt-ccard__title{
  font-family:var(--font-display);
  font-size:1.02rem;
  line-height:1.35;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--navy);
  margin:0 0 8px;
}
.pt-ccard__value{
  display:inline-block;
  font-family:var(--font-display);
  font-size:1.12rem;
  line-height:1.3;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--navy);
  text-decoration:none;
  margin:0 0 8px;
}
.pt-ccard__value:hover,
.pt-ccard__value:focus-visible{ color:var(--accent); }
.pt-ccard__sub{
  margin:0 0 8px;
  max-width:none;
  color:var(--text-2);
  font-size:.93rem;
  line-height:1.55;
}
.pt-ccard__sub:last-child{ margin-bottom:0; }

/* ----- Форма ----- */
.pt-cform{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:26px 28px;
  box-shadow:0 16px 40px -38px rgba(10,56,90,.55);
  min-width:0;
}
.pt-contacts__form{ width:100%; max-width:100%; }
.pt-contacts__form .wpcf7,
.pt-contacts__form .wpcf7-form,
.pt-contacts__form form{ width:100%; max-width:100%; }
.pt-contacts__form .wpcf7-form p,
.pt-contacts__form .wpcf7-form-control-wrap{ width:100%; max-width:100%; }
.pt-cform .wpcf7-form > p{ margin:0 0 16px; max-width:none; }
.pt-cform .wpcf7-form > p:last-of-type{ margin-bottom:0; }
.pt-cform .wpcf7-form label{
  display:block;
  font-size:.88rem;
  line-height:1.4;
  font-weight:600;
  color:var(--text);
  margin:0 0 7px;
}
.pt-cform .wpcf7-form-control-wrap{ display:block; margin-top:7px; }
.pt-contacts__form .wpcf7-form input[type=text],
.pt-contacts__form .wpcf7-form input[type=tel],
.pt-contacts__form .wpcf7-form input[type=email],
.pt-contacts__form .wpcf7-form input[type=url],
.pt-contacts__form .wpcf7-form input[type=number],
.pt-contacts__form .wpcf7-form select,
.pt-contacts__form .wpcf7-form textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  background:#FBFDFE;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  font-family:var(--font-sans);
  font-size:.95rem;
  font-weight:400;
  line-height:1.5;
  color:var(--text);
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.pt-contacts__form .wpcf7-form textarea{ min-height:132px; resize:vertical; }
.pt-contacts__form .wpcf7-form input:focus,
.pt-contacts__form .wpcf7-form select:focus,
.pt-contacts__form .wpcf7-form textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(21,101,160,.14);
}
.pt-contacts__form .wpcf7-form input::placeholder,
.pt-contacts__form .wpcf7-form textarea::placeholder{ color:#93A3B1; }
.pt-contacts__form .wpcf7-form input[type=submit],
.pt-contacts__form .wpcf7-form button[type=submit]{
  width:100%;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:13px 22px;
  border:0;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:#fff;
  font-family:var(--font-display);
  font-size:.98rem;
  font-weight:600;
  cursor:pointer;
  box-shadow:var(--shadow-glow);
  transition:transform .2s var(--ease),filter .2s var(--ease);
}
.pt-contacts__form .wpcf7-form input[type=submit]:hover,
.pt-contacts__form .wpcf7-form button[type=submit]:hover{ filter:brightness(1.06); transform:translateY(-1px); }

/* Согласие на обработку данных: чекбокс и подпись в одну строку */
.pt-cform .wpcf7-acceptance .wpcf7-list-item{ margin:0; }
.pt-cform .wpcf7-acceptance label{
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:.86rem;
  font-weight:400;
  line-height:1.45;
  color:var(--text-2);
}
.pt-cform .wpcf7-acceptance input[type=checkbox]{
  flex:none;
  width:17px;
  height:17px;
  margin:2px 0 0;
  accent-color:var(--accent);
}
.pt-cform .wpcf7-not-valid-tip{ font-size:.82rem; color:var(--warn); margin-top:5px; }
.pt-cform .wpcf7-response-output{
  margin:16px 0 0;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:.88rem;
  line-height:1.5;
}

/* Подсказка владельцу сайта, если форма ещё не подключена */
.pt-contacts__note{
  padding:16px 18px;
  border:1px dashed #C0D0DE;
  border-radius:12px;
  background:#F5F8FB;
  color:#566878;
  font-size:.9rem;
  line-height:1.55;
}
.pt-contacts__note code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.85em;
  background:#EEF4F8;
  border-radius:6px;
  padding:2px 6px;
  color:#0A385A;
}

/* ----- Нижние блоки ----- */
.pt-cblock{
  max-width:none;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:30px 32px;
  box-shadow:0 16px 40px -38px rgba(10,56,90,.55);
}
.pt-cblock__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  padding:6px 13px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.2;
}
.pt-cblock__eyebrow::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}
.pt-cblock h2{
  font-family:var(--font-display);
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.01em;
  font-weight:600;
  color:var(--navy);
  margin:0 0 14px;
}
.pt-cblock h3{
  font-family:var(--font-display);
  font-size:18px;
  line-height:1.35;
  font-weight:600;
  color:var(--navy);
  margin:26px 0 10px;
}
.pt-cblock p{
  margin:0 0 12px;
  max-width:72ch;
  color:var(--text);
  font-size:16px;
  line-height:1.55;
}
.pt-cblock p:last-child{ margin-bottom:0; }
.pt-cblock__lead{ font-size:16px; line-height:1.55; color:var(--text); }
.pt-cblock__cta{ margin:20px 0 0; }

/* Чипы способов оплаты */
.pt-pay-chips{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 20px;
  padding:0;
}
.pt-pay-chips li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:9px 15px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--text);
  font-size:.9rem;
  font-weight:500;
  line-height:1.3;
}
.pt-pay-chips svg{ width:18px; height:18px; color:var(--accent); flex:none; }

/* Логотипы платёжных систем */
.pt-pay-logos-block{ margin:20px 0 18px; }
.pt-pay-logos__caption{
  margin:0 0 10px;
  color:var(--text-2);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.3;
}
.pt-pay-logos{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 22px;
  margin:0;
  padding:0;
}
.pt-pay-logos li{ display:flex; align-items:center; margin:0; padding:0; }
.pt-pay-logos img{
  height:28px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  display:block;
}

/* Реквизиты */
.pt-req{ margin:4px 0 0; display:grid; gap:8px; }
.pt-req__row{ display:flex; flex-wrap:wrap; align-items:baseline; gap:0 6px; margin:0; }
.pt-req dt{
  font-weight:600;
  color:var(--navy);
  font-size:1rem;
  line-height:1.6;
}
.pt-req dt::after{ content:":"; }
.pt-req dd{ margin:0; color:var(--text); font-size:1rem; line-height:1.6; }

@media (max-width:1040px){
  .pt-contact-top{ grid-template-columns:minmax(0,.9fr) minmax(0,1fr); }
  .pt-cblock{ max-width:none; }
}
@media (max-width:900px){
  .pt-contact-top{ grid-template-columns:1fr; gap:16px; }
  .pt-contact-page{ gap:20px; }
  .pt-cblock{ padding:24px 22px; }
}
@media (max-width:560px){
  .pt-ccard{ padding:18px 18px; }
  .pt-cform{ padding:20px 18px; }
  .pt-cblock{ padding:20px 18px; border-radius:16px; }
  .pt-cblock h2{ font-size:20px; }
  .pt-pay-chips li{ font-size:.86rem; padding:8px 12px; }
  .pt-pay-logos{ gap:10px 16px; }
  .pt-pay-logos img{ height:24px; }
}

/* =========================================================================
   ЧАСТЬ 5. СТРАНИЦА «ПРАЙС» — ШОРТКОД [pt_pricelist]
   Таблица собирается из каталога WooCommerce: наименование (ссылка на
   карточку товара) и цена. Группы категорий — строка-разделитель внутри
   таблицы. На узких экранах таблица прокручивается по горизонтали.
   ========================================================================= */

/* Контентная колонка шире обычной статьи, чтобы таблица дышала.
   Два правила разделены: в браузерах без :has() список селекторов
   целиком считался бы невалидным. */
body.pt-has-pricelist .entry-layout{ max-width:1120px; }
body:has(.pt-price) .entry-layout{ max-width:1120px; }

.pt-price{ margin:6px 0 0; width:100%; max-width:100%; }

.pt-price__scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid #D8E2EB;
  border-radius:12px;
  background:#fff;
}

.pt-price .pt-price__table{
  width:100%;
  min-width:540px;
  margin:0;
  border:0;
  border-radius:0;
  border-collapse:collapse;
  border-spacing:0;
  background:#fff;
  font-size:.95rem;
  overflow:visible;
}

.pt-price .pt-price__table thead th{
  background:#F5F8FB;
  color:#0A385A;
  font-weight:700;
  font-size:.9rem;
  line-height:1.35;
  letter-spacing:.01em;
  text-align:left;
  padding:14px 18px;
  border:0;
  border-bottom:1px solid #D8E2EB;
  white-space:nowrap;
}

.pt-price .pt-price__table td{
  padding:14px 18px;
  border:0;
  border-bottom:1px solid #D8E2EB;
  color:#1C2733;
  vertical-align:middle;
  background:#fff;
  line-height:1.5;
}

.pt-price .pt-price__table tbody tr:last-child td{ border-bottom:0; }
.pt-price .pt-price__table tbody tr:hover td{ background:#F5F8FB; }

/* Строка-разделитель группы категорий */
.pt-price .pt-price__group th{
  background:#0A385A;
  color:#fff;
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  text-align:left;
  padding:10px 18px;
  border:0;
  border-bottom:1px solid #D8E2EB;
}

/* Наименование — ссылка на карточку товара */
.pt-price .pt-price__name{ color:#1C2733; }
.pt-price .pt-price__link{
  color:#1C2733;
  font-weight:500;
  text-decoration:none;
  text-underline-offset:2px;
}
.pt-price .pt-price__link:hover{ color:#1565A0; text-decoration:underline; }

/* Категория в третьей колонке (при group_by_category="no") */
.pt-price .pt-price__cat{ color:#566878; font-size:.9rem; }

/* Цена: обычная, распродажная (зачёркнутая старая + новая) */
.pt-price .pt-price__price{
  white-space:nowrap;
  color:#0A385A;
  font-weight:600;
}
.pt-price .pt-price__price del{
  color:#566878;
  font-weight:400;
  opacity:.85;
  margin-right:6px;
  text-decoration:line-through;
}
.pt-price .pt-price__price ins{
  color:#1565A0;
  font-weight:700;
  text-decoration:none;
}
.pt-price .pt-price__ask{ color:#566878; font-weight:400; }

/* Кнопка «Купить» в строке (show_button="yes") */
.pt-price .pt-price__buy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:14px;
  vertical-align:middle;
  white-space:nowrap;
}

/* Заметки владельцу сайта: WooCommerce не активен, товаров нет */
.pt-price__note{
  padding:16px 18px;
  margin:0 0 1.2em;
  border:1px dashed #C0D0DE;
  border-radius:12px;
  background:#fff;
  color:#566878;
  font-size:.9rem;
  line-height:1.55;
}
.pt-price__empty{
  margin:0 0 1.2em;
  padding:16px 18px;
  background:#F5F8FB;
  border:1px solid #D8E2EB;
  border-radius:12px;
  color:#566878;
}

@media (max-width:782px){
  .pt-price .pt-price__table{ min-width:560px; font-size:.9rem; }
  .pt-price .pt-price__table thead th{ padding:12px 14px; }
  .pt-price .pt-price__table td{ padding:12px 14px; }
  .pt-price .pt-price__group th{ padding:9px 14px; }
  .pt-price .pt-price__buy{ margin-left:0; margin-top:8px; display:flex; width:100%; }
  .pt-price .pt-price__price{ white-space:normal; }
  body.pt-has-pricelist .entry-layout{ max-width:100%; }
}

/* =========================================================================
   ЧАСТЬ 6. КОНТЕНТ СТРАНИЦ, КОТОРЫЕ СОЗДАЁТ ТЕМА
   Главная, «О нас», «Услуги», боковое меню каталога.
   Палитра, отступы и скругления — из дизайн-системы (часть 1).
   ========================================================================= */

/* ---------- 6.1. Общая обёртка страниц с контентом ---------- */
.pt-front__content{ padding:clamp(22px,4vw,44px) 0 clamp(40px,6vw,80px); }
.pt-front__content > section + section{ margin-top:clamp(40px,6vw,72px); }
.pt-front__content > section > h2{ margin-bottom:18px; }
.entry-content > section + section{ margin-top:clamp(32px,4vw,56px); }
.entry-content > h1{ font-size:clamp(1.7rem,3.6vw,2.5rem); line-height:1.16; margin:0 0 16px; }

/* ---------- 6.2. Главная: первый экран ---------- */
.pt-home-hero{ padding:clamp(8px,2vw,20px) 0 0; }
.pt-home-hero h1{
  font-size:clamp(1.9rem,4.4vw,3rem); line-height:1.12; letter-spacing:-.03em;
  max-width:22ch; margin:0 0 18px; color:var(--navy);
}
.pt-home-hero .lead{ font-size:clamp(1rem,1.9vw,1.15rem); color:var(--text-2); max-width:60ch; }
.pt-home-hero__cta{ margin:28px 0 12px; }
.pt-home-hero__note{
  font-size:.86rem; color:var(--muted); margin:0;
  display:inline-flex; align-items:center; gap:8px;
}
.pt-home-more{
  margin-top:18px; padding:16px 18px; border-radius:var(--radius);
  background:var(--accent-soft); color:var(--text-2); font-size:.96rem;
}
.pt-home-more a{ color:var(--accent-hover); text-decoration:underline; text-underline-offset:2px; }
.pt-home-more a:hover{ color:var(--navy); }

/* ---------- 6.3. Карточки «Почему мы» ---------- */
.pt-cards{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:640px){ .pt-cards{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .pt-cards--4{ grid-template-columns:repeat(4,1fr); } }
.pt-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:22px 22px 24px; box-shadow:var(--shadow-sm);
}
.pt-card h3{ font-size:1.05rem; line-height:1.3; margin:0 0 8px; color:var(--navy); }
.pt-card p{ margin:0; font-size:.95rem; color:var(--text-2); max-width:44ch; }

/* ---------- 6.4. Списки с галочками ---------- */
.pt-list--check{ list-style:none; padding-left:0; display:grid; gap:10px; }
.pt-list--check li{
  position:relative; padding-left:30px; margin:0; font-size:1rem; color:var(--text);
}
.pt-list--check li::before{
  content:""; position:absolute; left:0; top:.45em;
  width:16px; height:16px; border-radius:50%;
  background:var(--accent-soft);
  border:1.5px solid var(--accent);
}
.pt-list--check li::after{
  content:""; position:absolute; left:4px; top:.72em;
  width:8px; height:4px; border-left:2px solid var(--accent); border-bottom:2px solid var(--accent);
  transform:rotate(-45deg);
}

/* Ссылка со стрелкой */
.pt-link-arrow{ color:var(--accent); font-weight:600; }
.pt-link-arrow:hover{ color:var(--accent-hover); }

/* ---------- 6.5. Закрывающий блок ---------- */
.pt-cta{
  margin-top:clamp(40px,6vw,72px);
  padding:clamp(28px,4vw,44px);
  border-radius:var(--radius-lg);
  background:linear-gradient(135deg,var(--navy),var(--accent-hover));
  color:#fff;
}
.pt-cta h2{ color:#fff; font-size:clamp(1.35rem,2.8vw,1.9rem); margin:0 0 10px; max-width:26ch; }
.pt-cta p{ color:rgba(255,255,255,.88); max-width:60ch; }
.pt-cta__btn{ margin:22px 0 0 !important; }
.pt-cta__btn .btn-primary{ background:#fff; color:var(--navy); }
.pt-cta__btn .btn-primary:hover{ background:var(--accent-soft); color:var(--navy); }

/* ---------- 6.6. «О нас»: финальные кнопки ---------- */
.pt-about-links{ margin:clamp(30px,4vw,48px) 0 0; display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- 6.7. Услуги: вводный блок ---------- */
.pt-serv-intro{ margin:0 0 clamp(28px,4vw,44px); }
.pt-serv-intro h1{ font-size:clamp(1.8rem,3.8vw,2.6rem); line-height:1.14; margin:0 0 10px; }
.pt-serv-intro__sub{
  font-family:var(--font-display); font-weight:600; font-size:clamp(1.02rem,1.9vw,1.2rem);
  color:var(--accent); margin:0 0 14px; max-width:52ch;
}
.pt-serv-intro .lead{ font-size:clamp(1rem,1.8vw,1.1rem); color:var(--text-2); max-width:72ch; }

/* ---------- 6.8. Услуги: три карточки-уровня ---------- */
.pt-serv-grid{ display:grid; gap:20px; grid-template-columns:1fr; align-items:stretch; }
@media (min-width:980px){ .pt-serv-grid{ grid-template-columns:repeat(3,1fr); gap:22px; } }

.pt-serv-card{
  display:flex; flex-direction:column; position:relative;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:26px 24px 24px; box-shadow:var(--shadow-sm);
}
.pt-serv-card__label{
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  font-weight:600; color:var(--muted); margin:0 0 8px;
}
.pt-serv-card h2{ font-size:clamp(1.25rem,2.2vw,1.5rem); line-height:1.2; margin:0 0 10px; color:var(--navy); }
.pt-serv-card__note{ font-size:.95rem; color:var(--text-2); margin:0 0 18px; }
.pt-serv-card h3{
  font-family:var(--font-sans); font-size:.8rem; letter-spacing:.1em; text-transform:uppercase;
  font-weight:600; color:var(--muted); margin:0 0 12px;
}
.pt-serv-list{ list-style:none; padding:0; margin:0 0 20px; display:grid; gap:10px; }
.pt-serv-list li{
  position:relative; padding-left:22px; margin:0; font-size:.95rem; line-height:1.55; color:var(--text);
}
.pt-serv-list li::before{
  content:""; position:absolute; left:2px; top:.55em; width:6px; height:6px;
  border-radius:50%; background:var(--accent);
}
.pt-serv-card__term{
  margin:auto 0 0; padding:12px 14px; border-radius:var(--radius-sm);
  background:var(--accent-soft); color:var(--navy); font-weight:600; font-size:.95rem;
}
.pt-serv-card__term-label{
  display:inline-block; font-size:.74rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent-hover); margin-right:8px;
}
.pt-serv-card__fit{ margin:12px 0 0; font-size:.88rem; color:var(--text-2); }

/* Средний уровень — акцент */
.pt-serv-card--featured{
  border:2px solid var(--accent);
  box-shadow:0 20px 46px -28px rgba(21,101,160,.5);
  background:linear-gradient(180deg,#fff, #f7fbff 70%);
}
.pt-serv-card--featured .pt-serv-card__label{ color:var(--accent-hover); }
.pt-serv-card__badge{
  position:absolute; top:-14px; left:24px;
  margin:0; padding:6px 14px; border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:#fff; font-size:.74rem; font-weight:600; letter-spacing:.02em;
  box-shadow:var(--shadow-glow);
}

/* ---------- 6.9. Услуги: финальный блок ---------- */
.pt-serv-cta{
  margin-top:clamp(30px,4vw,50px);
  padding:clamp(26px,4vw,40px);
  border-radius:var(--radius-lg);
  background:var(--accent-soft);
  border:1px solid var(--border);
}
.pt-serv-cta h2{ font-size:clamp(1.2rem,2.4vw,1.6rem); line-height:1.25; margin:0 0 10px; max-width:32ch; }
.pt-serv-cta p{ color:var(--text-2); margin:0 0 0; max-width:72ch; }
.pt-serv-cta p a{ color:var(--accent-hover); text-decoration:underline; text-underline-offset:2px; }
.pt-serv-cta .pt-cta__btn{ margin-top:22px !important; }

/* ---------- 6.10. Боковое меню каталога: вложенность ---------- */
.shop-sidebar .shop-cats-list .children{
  margin:2px 0 2px 12px; padding-left:10px; border-left:1px solid var(--border);
}
.shop-sidebar .shop-cats-list .children a{ font-size:.88rem; padding:7px 10px; }
.shop-sidebar li.current-cat-parent > a{ color:var(--accent); font-weight:600; background:transparent; }
.shop-sidebar li.current-cat > a{ background:var(--accent); color:#fff; }
.shop-sidebar li.current-cat > a .count{ opacity:.9; }
.shop-sidebar .widget-title{ text-transform:none; letter-spacing:.06em; }
.shop-layout--single{ margin-top:6px; }

/* Кнопка-аккордеон на телефоне */
@media (max-width:959px){
  .shop-sidebar{ gap:0; }
  .shop-cats-toggle{ justify-content:space-between; }
  .shop-cats-toggle svg{ width:18px; height:18px; }
  .shop-sidebar .shop-cats{ margin-top:12px; }
}

/* ---------- 6.11. Списки внутри контента страницы ---------- */
/* .entry-content ul задаёт диски — у списков с собственными маркерами
   (галочки, точки) их убираем, иначе маркеры дублируются. */
.entry-content .pt-list--check,
.entry-content .pt-serv-list{ list-style:none; padding-left:0; margin-left:0; }
.entry-content .pt-list--check li,
.entry-content .pt-serv-list li{ padding-left:30px; margin:0; max-width:none; }
.entry-content .pt-serv-list li{ padding-left:22px; }
.entry-content .pt-serv-list li::marker,
.entry-content .pt-list--check li::marker{ content:""; }
.pt-serv-levels{ margin:0; }

/* =========================================================================
   ЧАСТЬ 9. ТИПОГРАФИКА 1.0.6 — компактная шкала
   -------------------------------------------------------------------------
   Претензия к 1.0.5: текст и заголовки слишком крупные и «топорные».
   Новая шкала:
     основной текст . . 16 px / 1.55, вес 400, цвет #1C2733
     H1 . . . . . . . . 32 px (мобильные 26), вес 600, трекинг -0.01em
     H2 . . . . . . . . 24 px (мобильные 20), вес 600
     H3 . . . . . . . . 18 px (мобильные 17), вес 600
     мелкий текст . . . 13–14 px (подписи, бейджи, метаданные)
   Внутренние отступы карточек 20 px, вертикальный ритм секций −18 %,
   межбуквенные расстояния убраны до 0.06em.
   ========================================================================= */

body{ font-size:16px; line-height:1.55; font-weight:400; color:var(--text); }
p, li, dt, dd, td, th, blockquote{ line-height:1.55; }

h1, .h-display{ font-size:32px; line-height:1.2; font-weight:600; letter-spacing:-.01em; }
h2, .h2{ font-size:24px; line-height:1.25; font-weight:600; letter-spacing:-.01em; }
h3, .h3{ font-size:18px; line-height:1.3; font-weight:600; letter-spacing:-.01em; }
h4{ font-size:16px; line-height:1.3; font-weight:600; }
.lead{ font-size:16px; line-height:1.6; max-width:72ch; }

/* Заголовки карточек — не «жирные на весь экран» */
.card h3, .card .h3{ font-size:18px; font-weight:600; line-height:1.3; margin-bottom:9px; }
.card p{ font-size:16px; line-height:1.55; }

/* Мелкий текст, подписи, метаданные — 14 px */
.legal, .foot-bottom, .note, .consent, .cline small, .check small,
.price-row .nm small, .review .who small, .card-cat, .pt-card__cat,
.pt-card__meta, .doc-actual, .catalog-nav-title,
.shop-sidebar .widget-title, .shop-sidebar .wp-block-heading,
.pt-form-card .field > label, .field > label, .flabel{ font-size:14px; }

/* Бейджи, метки, счётчики — 13 px */
.badge, .cat-count, .promo-badge, .post-card__date, .post-nav small, .cart-count,
.pt-pay-logos__caption, .pt-serv-card__label, .pt-serv-card__term-label,
.pt-serv-card__badge, .case .tagline, .woocommerce .onsale, .eyebrow,
.pt-cblock__eyebrow{ font-size:13px; letter-spacing:.04em; }

.pt-serv-card h3{ font-size:16px; font-weight:600; letter-spacing:0; }
.foot-col a{ font-size:15px; }

/* Кнопки и поля */
.btn{ font-size:15px; font-weight:600; padding:12px 22px; }
.btn-sm{ font-size:14px; padding:9px 16px; }
input, select, textarea{ font-size:16px; }

/* Вертикальный ритм — на 18 % компактнее */
.section{ padding:clamp(52px,7.4vw,108px) 0; }
.section-head{ margin-bottom:clamp(28px,4vw,48px); }
.section-head .lead{ margin-top:14px; }
.grid{ gap:14px; }
.stats{ gap:12px; }
.chip-grid{ gap:10px; }
.logos{ gap:10px; }
.foot-grid{ gap:28px; }
.foot-col li{ margin-bottom:8px; }
.card{ padding:20px; }
.pt-cblock{ padding:24px 26px; }
.pt-cblock h2{ margin-bottom:10px; }
.pt-cblock h3{ margin:20px 0 8px; }


@media (max-width:600px){
  h1, .h-display{ font-size:26px; }
  h2, .h2{ font-size:20px; }
  h3, .h3{ font-size:17px; }
  .section{ padding:clamp(38px,9vw,58px) 0; }
  .card{ padding:18px; }
  .pt-cblock{ padding:20px 18px; }
}
