/* =============================
   МИС УЗОР — дизайн «Госстандарт 2.0» (выбор клиента, вариант 1)
   Светлый #F6F8FB, синий #004A99 + киноварь-деталь #C8271F,
   Inter Tight (заголовки) + Inter, hairline-границы, тонкие линейки,
   белая шапка с прогресс-линией чтения.
   ============================= */

/* ── Локальный Inter (variable, 400–800) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-cyr-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary:        #004A99;
  --primary-dark:   #00376F;
  --primary-light:  #1A6AC8;
  --primary-bg:     #EAF1FA;
  --primary-mid:    #0057B5;

  --accent:         #C8271F;
  --accent-dark:    #A51F18;
  --accent-light:   #E33328;
  --accent-bg:      #FDF1F0;

  --success:        #118A4E;
  --success-bg:     #EDF7F2;
  --warning:        #B45309;
  --warning-bg:     #FFFBEB;

  --bg:             #F6F8FB;
  --bg-alt:         #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FBFCFE;
  --bg-blue-light:  #EAF1FA;

  --bg-nav:         #FFFFFF;
  --bg-footer:      #FFFFFF;

  --text-primary:   #14213B;
  --text-secondary: #51607A;
  --text-muted:     #5D7085;
  --text-on-dark:   #FFFFFF;

  --bg-dark:        #F6F8FB;
  --bg-section:     #FFFFFF;
  --bg-light:       #EAF1FA;
  --bg-light-card:  #FFFFFF;
  --text-dark:      #14213B;
  --text-dark-sec:  #51607A;

  --border:         #D9E2EF;
  --border-accent:  rgba(0,74,153,0.25);
  --border-light:   #E7EDF6;
  --border-strong:  #B4C6DC;

  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  --shadow-sm:   0 1px 2px rgba(9,40,86,0.05);
  --shadow-md:   0 6px 18px rgba(9,40,86,0.08);
  --shadow-lg:   0 24px 60px rgba(9,40,86,0.10);
  --shadow-blue: 0 6px 18px rgba(0,74,153,0.28);

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Inter Tight', 'Inter', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 120px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1 { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-primary); }
h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); }
h3 { font-family: var(--font-head); font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
p { color: var(--text-secondary); line-height: 1.7; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; background: var(--bg); }
.section--card { background: var(--bg-alt); border-block: 1px solid var(--border-light); }
.section--light { background: var(--bg-blue-light); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; }

.gradient-text { color: var(--primary); background: none; -webkit-text-fill-color: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary-bg); }
.btn--outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); }
.btn--lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-md); }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav__progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100px; /* просторнее по замечанию клиента (п.12, образец ЦПИИ) */
  gap: 28px;
}
@media (max-width: 900px) { .nav__inner { height: 72px; } }
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav__logo .gradient-text { color: var(--primary); }
.nav__logo-img { height: 46px; width: auto; display: block; }
@media (max-width: 900px) { .nav__logo-img { height: 38px; } }
.nav__logo-img--footer { height: 34px; }
.nav__logo-icon {
  width: 34px; height: 34px;
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.nav__menu { display: flex; align-items: center; gap: 14px; flex: 1; }
.nav__menu a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
}
.nav__menu a:hover, .nav__menu a.active { color: var(--primary); background: var(--primary-bg); }
.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__phone { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); transition: color var(--transition); }
.nav__phone:hover { color: var(--primary); }
.nav .btn--primary { background: var(--primary); color: #fff; box-shadow: none; }
.nav .btn--primary:hover { background: var(--primary-dark); }

.hero { padding: 168px 0 96px; background: var(--bg); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 46%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, #E5EDF8 70%);
  pointer-events: none;
}
.hero::after { display: none; }
.hero__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFFFFF 0 33.3%, var(--primary) 33.3% 66.6%, var(--accent) 66.6% 100%);
  border-bottom: 1px solid var(--border-light);
}
.hero__inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  border: 1px solid #C4D6EC;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.hero__content p { font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stat-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 5px; }
.hero__stat-label { font-size: 0.82rem; color: var(--text-secondary); }

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  overflow: hidden;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
/* слайдер городов в герое */
.hv-slider { overflow: hidden; }
.hv-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hv-slide { flex: 0 0 100%; min-width: 100%; }
.hv-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.hv-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition), transform var(--transition);
}
.hv-dot:hover { background: var(--primary-light); }
.hv-dot.active { background: var(--primary); transform: scale(1.25); }

.hv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.hv-row:last-child { border-bottom: none; }
.hv-row b { font-family: var(--font-head); font-weight: 700; color: var(--text-primary); }
.hv-ok { color: var(--success); font-weight: 600; }
.hero__visual-badge {
  position: static;
  margin-top: 14px;
  display: inline-block;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px; height: 48px;
  background: var(--primary-bg);
  border: 1px solid rgba(0,74,153,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.card:hover .card__icon { transform: translateY(-2px) scale(1.06); }
.card__icon--accent { background: var(--accent-bg); border-color: rgba(200,39,31,0.12); }
.card__icon--warning { background: var(--warning-bg); border-color: rgba(180,83,9,0.12); }
.card__icon--danger { background: var(--accent-bg); border-color: rgba(200,39,31,0.12); }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.9rem; }

a.card { text-decoration: none; display: block; }
a.card .card-more { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.section--card .grid-3 { gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.section--card .grid-3 > .card { border: none; border-radius: 0; box-shadow: none; }
.section--card .grid-3 > .card:hover { transform: none; background: var(--primary-bg); }
.section--card .grid-4 > .card { background: var(--bg); }

.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.problem-card {
  background: var(--accent-bg);
  border: 1px solid rgba(200,39,31,0.14);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
}
.problem-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.problem-card h4 { margin-bottom: 6px; font-size: 0.98rem; }
.problem-card p { font-size: 0.875rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-item:hover { border-color: var(--border-strong); border-left-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-emoji { font-size: 1.8rem; flex-shrink: 0; }
.feature-item h4 { margin-bottom: 6px; }
.feature-item p { font-size: 0.875rem; }

.steps { display: grid; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(0,74,153,0.12));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.1s cubic-bezier(0.4,0,0.2,1) 0.15s;
}
.steps.in-view::before { transform: scaleY(1); }
.step { display: flex; gap: 24px; padding: 24px 0; position: relative; }
.step:not(:last-child) { border-bottom: 1px solid var(--border-light); }
.step__num {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}
.section--card .step__num { box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--border); }
.step__content h4 { margin-bottom: 6px; }
.step__content p { font-size: 0.9rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: transparent !important;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.stat-item {
  background: transparent !important;
  padding: 6px 0 6px 20px !important;
  text-align: left !important;
  border-left: 2px solid var(--primary);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--primary);
}
.stat-value.gradient-text { color: var(--primary); background: none; -webkit-text-fill-color: currentColor; }
.stat-label { font-size: 0.875rem; color: var(--text-secondary) !important; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare-table th {
  background: var(--bg);
  padding: 16px 22px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.compare-table th.highlight { color: var(--primary); background: var(--primary-bg); }
.compare-table td {
  padding: 14px 22px;
  font-size: 0.92rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #FAFBFD; }
.check { color: var(--success); font-weight: 600; }
.cross { color: var(--accent); font-weight: 600; }

.cta-section { background: var(--bg); padding: 0 24px 96px; position: relative; overflow: visible; }
.cta-section::before, .cta-section::after { display: none; }
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1152px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { color: #fff; margin-bottom: 16px; }
.cta-inner p { font-size: 1.05rem; color: #CFE0F2; margin-bottom: 40px; max-width: 640px; margin-inline: auto; }
.cta-inner .section-label { color: #FFD9D6; justify-content: center; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-inner .btn--primary { background: #fff; color: var(--primary); }
.cta-inner .btn--primary:hover { background: var(--primary-bg); box-shadow: none; }

.cta-inner--form { text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px; }
.cta-inner--form p { margin-inline: 0; margin-bottom: 0; }
.cta-inner--form .section-label { justify-content: flex-start; }
.cta-form .input { margin-bottom: 14px; }
.cta-form .input > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #CFE0F2;
  margin-bottom: 6px;
}
.cta-form .input input, .cta-form .input select {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color var(--transition), background-color var(--transition);
}
.cta-form .input input::placeholder { color: #B9CFE6; }
.cta-form .input select { color: #fff; }
.cta-form .input select option { color: var(--text-primary); background: #fff; }
.cta-form .input input:focus, .cta-form .input select:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.16); }
.cta-form button.btn, .cta-form .wpcf7-submit {
  width: 100%;
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background-color var(--transition);
}
.cta-form button.btn:hover, .cta-form .wpcf7-submit:hover { background: var(--primary-bg); }
.cta-form .wpcf7-not-valid-tip { color: #FFC7C2; font-size: 0.8rem; margin-top: 5px; display: block; }
.cta-form .wpcf7 form .wpcf7-response-output {
  margin: 14px 0 0; padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  font-size: 0.85rem; color: #fff;
}
.cta-form .wpcf7 form.sent .wpcf7-response-output { background: rgba(17,138,78,0.35); border-color: rgba(140,220,180,0.6); }
.cta-form .wpcf7-spinner { display: block; margin: 8px auto 0; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,33,59,0.66);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { margin-bottom: 8px; font-size: 1.4rem; }
.modal > p { margin-bottom: 28px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}
.modal-close:hover { background: var(--primary-bg); color: var(--primary); border-color: var(--primary); }

.modal .input { margin-bottom: 18px; }
.modal .input label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-primary); }
.modal .input input, .modal .input textarea, .modal .input select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.modal .input input:focus, .modal .input textarea:focus, .modal .input select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,74,153,0.1);
}
.modal .input input::placeholder, .modal .input textarea::placeholder { color: var(--text-muted); }
.modal .input select { cursor: pointer; }
.modal .input .input-file { position: relative; }
.modal .input .input-file input[type=file] { padding: 10px 14px; }
.modal form button.btn, .modal form .wpcf7-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition);
  background: var(--primary);
  color: #fff;
}
.modal form button.btn:hover, .modal form .wpcf7-submit:hover { background: var(--primary-dark); }
/* видимая проверка «не робот» (CF7 quiz) */
.wpcf7-quiz-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.cta-form .wpcf7-quiz-label { color: #CFE0F2; }

.wpcf7-not-valid-tip { color: var(--accent); font-size: 0.8rem; margin-top: 5px; display: block; }
.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: rgba(17,138,78,0.4); background: var(--success-bg); color: var(--success); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: rgba(200,39,31,0.35); background: var(--accent-bg); color: var(--accent); }
.wpcf7-spinner { margin: 8px auto 0; display: block; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag--blue { background: var(--primary-bg); color: var(--primary); border: 1px solid rgba(0,74,153,0.18); }
.tag--green { background: var(--success-bg); color: var(--success); border: 1px solid rgba(17,138,78,0.18); }
.tag--red { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(200,39,31,0.18); }

/* Сколково в шапке */
.nav__sk { display: flex; align-items: center; flex-shrink: 0; }
.nav__sk img { height: 34px; width: auto; display: block; }

/* Карта РФ с точками внедрений */
.rus-map {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.rus-map img { width: 100%; height: auto; display: block; }
.rus-dot {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(200,39,31,0.18);
}
.rus-dot--cluster {
  width: 26px; height: 26px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(0,74,153,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rus-dot--cluster i {
  font-style: normal;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-head);
}
/* маленькие точки округов МО */
.rus-dot--sm {
  width: 10px; height: 10px;
  background: var(--primary);
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(0,74,153,0.14);
}
/* кроп-карта: крупнее, уже; мягкие кромки среза */
.rus-map--crop { max-width: 780px; }
/* мягкая виньетка по всем кромкам среза (работает во всех браузерах) */
.rus-map--crop::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 34px 28px var(--bg-alt);
  pointer-events: none;
  z-index: 2;
}
.rus-map--crop .rus-dot { z-index: 3; }
.rus-dot em.lft { left: auto; right: 13px; text-align: right; }
.rus-dot--sm em.lft { right: 11px; }

/* живость точек: мягкий пульс ореола + hover */
.rus-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--accent);
  opacity: 0;
  animation: dotPulse 3s ease-out infinite;
}
.rus-dot--sm::after { color: var(--primary); inset: -5px; animation-duration: 3.6s; }
@keyframes dotPulse {
  0%   { transform: scale(0.5); opacity: 0.55; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.rus-dot { transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1); cursor: default; }
.rus-dot:hover { transform: translate(-50%, -50%) scale(1.35); }
.rus-dot:hover em { color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .rus-dot::after { animation: none; opacity: 0; }
}
.rus-dot em {
  position: absolute;
  left: 13px; top: -6px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.rus-dot--sm em { font-size: 0.72rem; left: 11px; top: -5px; }

/* врезка Московской области */
.rus-inset {
  position: absolute;
  right: 3%;
  top: 6%;
  width: 36%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.rus-inset__title {
  position: absolute;
  top: 12px; left: 16px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rus-inset__title span {
  display: block;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.idot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(0,74,153,0.16);
}
.idot em {
  position: absolute;
  left: 12px; top: -5px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.imoscow {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}

@media (max-width: 860px) {
  .rus-inset {
    position: static;
    width: 100%;
    margin-top: 16px;
    aspect-ratio: 16 / 10;
  }
}

/* список клиентов группами */
.clients-list { display: grid; gap: 14px; }
.clients-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.clients-row > b { font-size: 0.9rem; margin-right: 4px; flex-shrink: 0; }

.clients-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.client-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}
.client-tag:hover { border-color: var(--primary); color: var(--primary); }

.product-hero {
  padding: 150px 0 72px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.product-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, transparent 25%, #E5EDF8 85%);
  pointer-events: none;
}
.product-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFFFFF 0 33.3%, var(--primary) 33.3% 66.6%, var(--accent) 66.6% 100%);
}
.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.product-hero__content .section-label { margin-bottom: 18px; }
.product-hero__content h1 { margin-bottom: 18px; font-size: clamp(1.9rem, 4vw, 3rem); }
.product-hero__content p { font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.product-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.product-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  background: var(--bg-alt);
}
.product-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.before-col, .after-col { border-radius: var(--radius-lg); padding: 30px; }
.before-col { background: var(--accent-bg); border: 1px solid rgba(200,39,31,0.14); }
.after-col { background: var(--success-bg); border: 1px solid rgba(17,138,78,0.18); }
.col-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.before-col .col-label { color: var(--accent); }
.after-col .col-label { color: var(--success); }
.col-list { display: flex; flex-direction: column; gap: 12px; }
.col-list li { font-size: 0.875rem; color: var(--text-secondary); display: flex; gap: 10px; align-items: flex-start; }
.col-list .icon { flex-shrink: 0; }

.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer__brand p { font-size: 0.875rem; color: var(--text-secondary); margin-top: 14px; margin-bottom: 22px; max-width: 280px; }
.footer .nav__logo { color: var(--text-primary); }
.footer__badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer__badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}
a.footer__badge:hover { border-color: var(--primary); color: var(--primary); }
.footer h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer__links a:hover { color: var(--primary); }
.footer__links span { font-size: 0.875rem; color: var(--text-secondary) !important; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__contact a { color: var(--text-secondary); transition: color var(--transition); }
.footer__contact a:hover { color: var(--primary); }

/* контент обычных страниц (page.php) */
.page-content { max-width: 780px; }
.page-content h2 { margin: 40px 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.page-content h3 { margin: 28px 0 10px; }
.page-content p { margin-bottom: 16px; font-size: 1rem; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; color: var(--text-secondary); }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius-md); margin: 8px 0 16px; }
.page-content a { color: var(--primary); text-decoration: underline; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.cta-inner :where(a, button, input, select):focus-visible { outline-color: #FFFFFF; }

.rv {
  opacity: 0;
  transition:
    opacity 0.55s cubic-bezier(0, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0, 0, 0.2, 1);
  transition-delay: var(--rv-delay, 0ms);
}
.rv.in-view { opacity: 1; transform: none; }
.rv--up     { transform: translateY(26px); }
.rv--left   { transform: translateX(-34px); }
.rv--right  { transform: translateX(34px); }
.rv--scale  { transform: scale(0.96); }
.rv--pop    { transform: scale(0.88); }
.rv--tilt   { transform: translateY(26px); }
.rv--flip   { transform: translateY(20px); }
.rv--blur   { transform: translateY(16px); }
.rv--rise   { transform: translateY(34px); }
.rv--wipe   { clip-path: inset(0 100% 0 0); transform: none; transition-property: opacity, clip-path; transition-duration: 0.65s; }
.rv--wipe.in-view { clip-path: inset(0 0 0 0); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp 0.45s ease forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition);
}
.nav__burger:hover { background: var(--primary-bg); }

.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.section img, .modal img { max-width: 100%; height: auto; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .product-hero__inner { grid-template-columns: 1fr; }
  .product-hero__image { max-height: 320px; aspect-ratio: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav__menu { gap: 0; }
  .nav__menu a { padding: 7px 9px; font-size: 0.82rem; }
  .cta-inner--form { grid-template-columns: 1fr; padding: 44px 32px; }
}
@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 22px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 13px 12px; font-size: 1rem; }
  .nav__actions .btn { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .problem-grid, .before-after { grid-template-columns: 1fr; }
  .section--card .grid-3 { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3) { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-inner { padding: 44px 24px; }
  .cta-section { padding: 0 16px 64px; }
}
@media (max-width: 1100px) {
  .nav__sk img { height: 28px; }
}
@media (max-width: 900px) {
  .nav__sk { display: none; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .btn--lg { padding: 14px 26px; }
  .hero { padding: 128px 0 64px; }
  .nav__phone { display: none; }
  .nav__inner { gap: 16px; }
}

/* ═══════════ Внутренние страницы (Контакты, Статьи, Команда, Сертификаты) — v4.3 ═══════════ */

/* Контакты */
.contacts-layout { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: start; }
.contact-item { padding: 18px 0; border-top: 1px solid var(--border-light); }
.contact-item:first-child { border-top: none; padding-top: 0; }
.contact-item .name {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.contact-item .value { display: block; font-size: 1.02rem; font-weight: 500; color: var(--text-primary); line-height: 1.5; }
.contact-item a.value { transition: color var(--transition); }
.contact-item a.value:hover { color: var(--primary); }
.contact-item--lg .value { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; }

.form-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.form-card .input { margin-bottom: 16px; }
.form-card .input label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-primary); }
.form-card .input input, .form-card .input textarea, .form-card .input select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; font: inherit;
  color: var(--text-primary); transition: border-color var(--transition);
}
.form-card .input input:focus, .form-card .input textarea:focus, .form-card .input select:focus {
  outline: none; border-color: var(--primary);
}
.form-card .input input::placeholder, .form-card .input textarea::placeholder { color: var(--text-muted); }
.form-card button.btn, .form-card .wpcf7-submit {
  width: 100%; padding: 14px 24px; border: none; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.form-card button.btn:hover, .form-card .wpcf7-submit:hover { background: var(--primary-dark); }
.form-card .wpcf7-not-valid-tip { color: var(--accent); font-size: 0.8rem; margin-top: 5px; display: block; }
.form-card .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.875rem;
}
.form-card .wpcf7 form.sent .wpcf7-response-output { background: var(--success-bg); border-color: var(--success); color: var(--success); }

.map-embed { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Статьи */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-blue-light); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 22px; }
.article-card__body h3 { font-size: 1.05rem; line-height: 1.45; }
.article-card__more { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--primary); }

.article-cover {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border-light); margin-bottom: 32px;
}

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  text-align: center; background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-card__photo {
  width: 116px; height: 116px; margin: 0 auto 16px; border-radius: 50%;
  overflow: hidden; background: var(--bg-blue-light); border: 1px solid var(--border-light);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--text-secondary); }

.cta-inner .cta-text { font-size: 1.05rem; color: #CFE0F2; margin-bottom: 40px; max-width: 640px; margin-inline: auto; }
.cta-inner .cta-text p { color: #CFE0F2; }

/* Сертификаты */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-item {
  display: block; padding: 10px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition); cursor: zoom-in;
}
.cert-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-item img { width: 100%; aspect-ratio: 0.72; object-fit: contain; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 32px;
  background: rgba(10, 22, 40, 0.88);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(920px, 100%); max-height: 92vh; border-radius: var(--radius-sm); background: #fff; cursor: default; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.12);
  color: #fff; font-size: 1.1rem; cursor: pointer; transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 1000px) {
  .contacts-layout { grid-template-columns: 1fr; gap: 44px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .certs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .team-grid, .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 320px; }
  .form-card { padding: 26px 20px; }
}

/* ═══════════ v4.4: умеренные заголовки, новости с рубриками, ПД и cookie ═══════════ */

/* умеренный h1 внутренних страниц (замечание «слишком крупный шрифт») */
.page-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 820px; }

/* дата в отдельной статье */
.article-date { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

/* раскладка «Новости, статьи, публикации»: рубрики слева, материалы справа */
.news-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.news-side { position: sticky; top: 100px; }
.news-side h4 { margin-bottom: 14px; }
.news-side__list { display: flex; flex-direction: column; gap: 4px; }
.news-side__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.92rem;
  color: var(--text-secondary); transition: background var(--transition), color var(--transition);
}
.news-side__list a:hover { background: var(--primary-bg); color: var(--primary); }
.news-side__list a.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.news-side__list a span { font-size: 0.78rem; color: var(--text-muted); }

.articles-grid--news { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.article-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-card__date { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.article-card__cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-bg); padding: 3px 8px; border-radius: 999px;
}

/* согласие на обработку ПД в формах (CF7 acceptance) */
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.wpcf7-acceptance input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.form-card .wpcf7-acceptance, .modal .wpcf7-acceptance { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px; display: block; }
.form-card .wpcf7-acceptance a, .modal .wpcf7-acceptance a { color: var(--primary); text-decoration: underline; }
.cta-form .wpcf7-acceptance { font-size: 0.82rem; color: #CFE0F2; margin-bottom: 14px; display: block; }
.cta-form .wpcf7-acceptance a { color: #fff; text-decoration: underline; }

/* декоративная кнопка старой формы файла (иконочный шрифт не грузится в редизайне) */
.modal .input-file b { display: none; }

/* география внедрений без карты: регионы с тегами городов */
.clients-regions { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; align-items: start; }
.clients-region h4 { margin-bottom: 14px; font-size: 0.95rem; }
@media (max-width: 900px) { .clients-regions { grid-template-columns: 1fr; gap: 24px; } }

/* ═══ Hero V2: полноэкранный слайдер главной (п.12, предпросмотр ?hero=v2) ═══ */
.fs-hero {
  position: relative; margin-top: 100px; height: calc(100vh - 100px);
  min-height: 540px; max-height: 960px; overflow: hidden; background: var(--primary-dark);
}
.fs-track { display: flex; height: 100%; transition: transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.fs-slide {
  position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
/* брендовый слайд без фото: фирменный градиент + мягкий блик */
.fs-slide--brand { background: linear-gradient(135deg, #00284F 0%, #00376F 45%, #0057B5 100%); }
.fs-slide--brand::before {
  background: radial-gradient(90% 130% at 82% 18%, rgba(255,255,255,0.10), transparent 60%);
}
.fs-slide::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0,26,54,0.85) 0%, rgba(0,26,54,0) 38%),
    linear-gradient(100deg, rgba(0,26,54,0.93) 0%, rgba(0,42,86,0.80) 45%, rgba(0,55,111,0.48) 100%);
}
.fs-slide__content { position: relative; z-index: 1; }
.fs-slide .section-label { color: #FFD9D6; margin-bottom: 20px; }
.fs-slide h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.6rem); max-width: 780px; margin-bottom: 22px; }
.fs-slide p { color: #CFE0F2; font-size: 1.12rem; max-width: 560px; margin-bottom: 36px; }
.fs-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.fs-slide .btn--primary { background: #fff; color: var(--primary); }
.fs-slide .btn--primary:hover { background: var(--primary-bg); box-shadow: none; }
.fs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.fs-arrow:hover { background: rgba(255,255,255,0.22); }
.fs-arrow--prev { left: 28px; }
.fs-arrow--next { right: 28px; }
.fs-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.fs-dot {
  width: 36px; height: 4px; border-radius: 2px; border: none; padding: 0;
  background: rgba(255,255,255,0.32); cursor: pointer; transition: background var(--transition);
}
.fs-dot.active { background: #fff; }
@media (max-width: 900px) {
  .fs-hero { height: auto; min-height: 0; max-height: none; margin-top: 72px; }
  .fs-track { height: auto; }
  .fs-slide { height: auto; padding: 64px 0 88px; align-items: flex-start; }
  .fs-arrow { display: none; }
  .fs-slide h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
}

/* политика в подвале */
.footer__policy { font-size: 0.82rem; color: var(--text-secondary); text-decoration: underline; transition: color var(--transition); }
.footer__policy:hover { color: var(--primary); }

/* cookie-уведомление */
.cookie-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 250; display: flex; align-items: center; gap: 18px;
  width: min(720px, calc(100% - 32px)); padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { font-size: 0.85rem; line-height: 1.5; margin: 0; }
.cookie-bar a { color: var(--primary); text-decoration: underline; }
.cookie-bar .btn { flex-shrink: 0; }

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; gap: 28px; }
  .news-side { position: static; }
  .news-side__list { flex-direction: row; flex-wrap: wrap; }
  .news-side__list a { border: 1px solid var(--border-light); }
}
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; clip-path: none; }
  .steps::before { transform: scaleY(1); }
}
