/*
Theme Name: 2домена — хостинг и домены
Theme URI: https://2domena.ru
Author: 2domena
Author URI: https://2domena.ru
Description: Быстрая и гибкая тема для регистрации доменных имён, продажи виртуального и VPS-хостинга и SSL-сертификатов. Структура, тексты и цветовая гамма повторяют 2domena.ru. Все тексты, тарифы, цвета и ссылки на биллинг редактируются через «Внешний вид → Настроить» без правки кода. Визуальный блочный редактор: 17 блоков «2домена» (хиро, тарифы, услуги, ЧаВо, таблица зон и др.) для сборки любых страниц. Готовые страницы сразу заполнены блоками и редактируются визуально. Без тяжёлых зависимостей: один CSS, один маленький JS.
Version: 1.3.0
Requires at least: 5.9
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: d2
Tags: custom-colors, custom-logo, custom-menu, featured-images, one-column, translation-ready
*/

:root {
  --d2-navy: #092d5f;
  --d2-navy-dark: #061f42;
  --d2-green: #2fb24f;
  --d2-green-dark: #228b22;
  --d2-text: #092d5f;
  --d2-muted: #4d6584;
  --d2-light: #f2f6fb;
  --d2-line: #e2eaf3;
  --d2-white: #ffffff;
  --d2-radius: 14px;
  --d2-shadow: 0 10px 30px rgba(9, 45, 95, 0.10);
  --d2-shadow-sm: 0 4px 14px rgba(9, 45, 95, 0.08);
  --d2-font: Verdana, "DejaVu Sans", Geneva, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--d2-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--d2-text);
  background: var(--d2-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--d2-green-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--d2-green); }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--d2-navy);
  font-weight: 700;
}

.d2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link ---------- */
.d2-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--d2-green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 700;
}
.d2-skip:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.d2-icon {
  width: 24px;
  height: 24px;
  flex: none;
  vertical-align: middle;
}

.d2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.d2-btn svg { width: 18px; height: 18px; flex: none; }
.d2-btn:hover { transform: translateY(-2px); }

.d2-btn--green {
  background: var(--d2-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 178, 79, 0.35);
}
.d2-btn--green:hover { background: var(--d2-green-dark); color: #fff; }

.d2-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.d2-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

.d2-btn--navy { background: var(--d2-navy); color: #fff; }
.d2-btn--navy:hover { background: var(--d2-navy-dark); color: #fff; }

.d2-btn--outline {
  background: transparent;
  border-color: var(--d2-navy);
  color: var(--d2-navy);
}
.d2-btn--outline:hover { background: var(--d2-navy); color: #fff; }

.d2-btn--sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Topbar ---------- */
.d2-topbar {
  background: var(--d2-navy-dark);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}
.d2-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.d2-topbar a { color: #fff; }
.d2-topbar a:hover { color: var(--d2-green); }
.d2-topbar__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.d2-topbar__contacts .d2-icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.d2-topbar__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
}
.d2-topbar__login:hover { background: var(--d2-green); border-color: var(--d2-green); color: #fff; }

/* ---------- Header ---------- */
.d2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--d2-line);
  transition: box-shadow .2s ease;
}
.d2-header.is-scrolled { box-shadow: var(--d2-shadow-sm); }
.d2-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.d2-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--d2-navy);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.d2-logo:hover { color: var(--d2-navy); }
.d2-logo img { max-height: 44px; width: auto; }
.d2-logo .d2-logo__dot { color: var(--d2-green); }

.d2-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.d2-nav li { position: relative; }
.d2-nav a {
  display: block;
  padding: 10px 13px;
  color: var(--d2-navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
}
.d2-nav a:hover { color: var(--d2-green-dark); background: var(--d2-light); }
.d2-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.d2-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--d2-shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 60;
}
.d2-nav li:hover > .sub-menu,
.d2-nav li:focus-within > .sub-menu { display: flex; }
.d2-nav .sub-menu a { padding: 9px 14px; border-radius: 8px; font-weight: 400; font-size: 14px; }
.d2-nav .sub-menu .sub-menu { left: 100%; top: 0; }

.d2-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--d2-navy);
}
.d2-burger svg { width: 26px; height: 26px; display: block; }

/* ---------- Sections ---------- */
.d2-section { padding: 84px 0; }
.d2-section--light { background: var(--d2-light); }
.d2-section--tight { padding: 56px 0; }

.d2-section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.d2-section-head h2 { font-size: 32px; text-transform: uppercase; letter-spacing: .5px; }
.d2-section-head .d2-sub {
  color: var(--d2-muted);
  font-size: 16px;
  margin: 0;
}
.d2-section-head .d2-eyebrow {
  display: inline-block;
  color: var(--d2-green-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

/* ---------- Hero ---------- */
.d2-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47, 178, 79, .28), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(34, 139, 34, .22), transparent 60%),
    linear-gradient(135deg, var(--d2-navy) 0%, var(--d2-navy-dark) 100%);
  color: #fff;
  padding: 92px 0 100px;
  position: relative;
  overflow: hidden;
}
.d2-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.d2-hero h1 {
  color: #fff;
  font-size: 44px;
  margin: 18px 0 18px;
}
.d2-hero h1 .d2-accent { color: var(--d2-green); }
.d2-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: rgba(47, 178, 79, .18);
  border: 1px solid rgba(47, 178, 79, .55);
  color: #7fe29a;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.d2-hero__badge .d2-icon { width: 16px; height: 16px; }
.d2-hero__text {
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 30px;
}
.d2-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.d2-hero__points {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.d2-hero__point { color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.d2-hero__point .d2-icon { width: 18px; height: 18px; color: var(--d2-green); }

/* Hero side card */
.d2-hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(3, 15, 35, .45);
  padding: 28px;
  color: var(--d2-text);
  position: relative;
}
.d2-hero-card__title { font-size: 18px; margin-bottom: 14px; }
.d2-hero-card .d2-search__form { margin-bottom: 16px; }
.d2-hero-card__zones { display: flex; gap: 10px; flex-wrap: wrap; }
.d2-hero-float {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--d2-shadow);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--d2-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.d2-hero-float .d2-icon { width: 18px; height: 18px; color: var(--d2-green-dark); }
.d2-hero-float--up { top: -22px; right: -14px; }
.d2-hero-float--down { bottom: -20px; left: -16px; }

/* ---------- Domain search ---------- */
.d2-search__form {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--d2-shadow);
}
.d2-search__form input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  padding: 10px 18px;
  color: var(--d2-text);
}
.d2-search__form input::placeholder { color: #9fb1c7; }
.d2-search__result { margin-top: 14px; font-size: 14px; color: var(--d2-muted); display: none; }
.d2-search__result.is-visible { display: block; }
.d2-search__result strong { color: var(--d2-navy); }

.d2-zones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.d2-zone-chip {
  background: #fff;
  border: 1px solid var(--d2-line);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
  min-width: 132px;
  box-shadow: var(--d2-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.d2-zone-chip:hover { transform: translateY(-3px); box-shadow: var(--d2-shadow); }
.d2-zone-chip__zone { font-weight: 700; font-size: 16px; color: var(--d2-navy); }
.d2-zone-chip__price { color: var(--d2-green-dark); font-size: 13px; font-weight: 700; }
.d2-zone-chip__renew { color: var(--d2-muted); font-size: 11.5px; }
.d2-zone-chip--sm { min-width: 0; padding: 8px 14px; border-radius: 10px; }
.d2-zone-chip--sm .d2-zone-chip__zone { font-size: 14px; }
.d2-zone-chip--sm .d2-zone-chip__price { font-size: 12px; }

.d2-search-cta { text-align: center; margin-top: 26px; }

/* ---------- Pricing ---------- */
.d2-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.d2-plan {
  background: #fff;
  border: 1px solid var(--d2-line);
  border-radius: var(--d2-radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.d2-plan:hover { transform: translateY(-6px); box-shadow: var(--d2-shadow); border-color: rgba(47, 178, 79, .4); }
.d2-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--d2-navy);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  white-space: nowrap;
  letter-spacing: .4px;
}
.d2-plan--featured { border-color: var(--d2-green); box-shadow: var(--d2-shadow); }
.d2-plan--featured .d2-plan__badge { background: var(--d2-green-dark); }
.d2-plan__title { font-size: 22px; margin-bottom: 6px; }
.d2-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.d2-plan__price b { font-size: 40px; color: var(--d2-green-dark); letter-spacing: -1px; }
.d2-plan__price span { color: var(--d2-muted); font-size: 14px; }
.d2-plan__features { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.d2-plan__features li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--d2-muted);
}
.d2-plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(47, 178, 79, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23228b22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.d2-plan .d2-btn { width: 100%; }

/* ---------- Services ---------- */
.d2-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.d2-service {
  background: #fff;
  border-radius: var(--d2-radius);
  border: 1px solid var(--d2-line);
  padding: 30px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.d2-service:hover { transform: translateY(-6px); box-shadow: var(--d2-shadow); }
.d2-service__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(9, 45, 95, .08), rgba(47, 178, 79, .14));
  color: var(--d2-navy);
}
.d2-service__icon .d2-icon { width: 30px; height: 30px; }
.d2-service h3 { font-size: 17px; margin-bottom: 10px; }
.d2-service p { font-size: 13.5px; color: var(--d2-muted); margin-bottom: 16px; }
.d2-service .d2-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--d2-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.d2-service .d2-more .d2-icon { width: 15px; height: 15px; }

/* ---------- Stats band ---------- */
.d2-band {
  background: linear-gradient(120deg, var(--d2-navy) 0%, var(--d2-navy-dark) 70%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.d2-band::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 178, 79, .35), transparent 70%);
}
.d2-band__head { text-align: center; margin-bottom: 40px; }
.d2-band__head h2 { color: #fff; font-size: 28px; text-transform: uppercase; }
.d2-band__head p { color: rgba(255, 255, 255, .75); margin: 0; font-size: 16px; }
.d2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
}
.d2-stat b {
  display: block;
  font-size: 38px;
  color: var(--d2-green);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.d2-stat span { color: rgba(255, 255, 255, .8); font-size: 14px; }
.d2-band__note {
  text-align: center;
  color: rgba(255, 255, 255, .65);
  font-size: 13.5px;
  margin: 34px auto 0;
  max-width: 760px;
}

/* ---------- Features ---------- */
.d2-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.d2-feature {
  background: #fff;
  border-radius: var(--d2-radius);
  border: 1px solid var(--d2-line);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow .2s ease, transform .2s ease;
}
.d2-feature:hover { box-shadow: var(--d2-shadow); transform: translateY(-4px); }
.d2-feature__icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--d2-navy), #16407e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d2-feature__icon .d2-icon { width: 26px; height: 26px; }
.d2-feature h3 { font-size: 17px; margin-bottom: 8px; }
.d2-feature p { font-size: 14px; color: var(--d2-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.d2-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.d2-testi {
  background: #fff;
  border-radius: var(--d2-radius);
  border: 1px solid var(--d2-line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.d2-testi:hover { transform: translateY(-4px); box-shadow: var(--d2-shadow); }
.d2-testi__stars { color: #f5b940; display: flex; gap: 3px; }
.d2-testi__stars .d2-icon { width: 16px; height: 16px; }
.d2-testi p { font-size: 14px; color: var(--d2-muted); margin: 0; flex: 1; }
.d2-testi__author { display: flex; align-items: center; gap: 12px; }
.d2-testi__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--d2-green), var(--d2-green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.d2-testi__name { font-weight: 700; font-size: 14px; }

/* ---------- CTA ---------- */
.d2-cta {
  background:
    radial-gradient(600px 300px at 90% 20%, rgba(47, 178, 79, .35), transparent 60%),
    linear-gradient(120deg, var(--d2-navy-dark), var(--d2-navy));
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.d2-cta h2 { color: #fff; font-size: 30px; }
.d2-cta p { color: rgba(255, 255, 255, .8); font-size: 16px; margin: 0 0 26px; }

/* ---------- Footer ---------- */
.d2-footer {
  background: var(--d2-navy-dark);
  color: rgba(255, 255, 255, .78);
  padding: 60px 0 0;
  font-size: 14px;
}
.d2-footer a { color: rgba(255, 255, 255, .78); }
.d2-footer a:hover { color: var(--d2-green); }
.d2-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.d2-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.d2-footer ul { list-style: none; margin: 0; padding: 0; }
.d2-footer li { margin-bottom: 9px; }
.d2-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.d2-footer__contact .d2-icon { width: 16px; height: 16px; margin-top: 4px; color: var(--d2-green); flex: none; }
.d2-footer__brand .d2-logo { color: #fff; margin-bottom: 14px; display: inline-flex; }
.d2-footer__brand p { color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.d2-socials { display: flex; gap: 10px; margin-top: 16px; }
.d2-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}
.d2-socials a:hover { background: var(--d2-green); border-color: var(--d2-green); color: #fff; }
.d2-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.d2-footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Page hero (internal pages) ---------- */
.d2-page-hero {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(47, 178, 79, .3), transparent 60%),
    linear-gradient(135deg, var(--d2-navy), var(--d2-navy-dark));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.d2-page-hero h1 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.d2-page-hero p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 16px; }
.d2-breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.d2-breadcrumb a { color: rgba(255, 255, 255, .85); }

/* ---------- Domain table ---------- */
.d2-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--d2-radius); box-shadow: var(--d2-shadow-sm); border: 1px solid var(--d2-line); }
table.d2-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.d2-table th {
  background: var(--d2-navy);
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
}
.d2-table td { padding: 12px 18px; border-top: 1px solid var(--d2-line); font-size: 14px; }
.d2-table tr:hover td { background: var(--d2-light); }
.d2-table td:first-child { font-weight: 700; color: var(--d2-navy); }
.d2-table td.d2-price { color: var(--d2-green-dark); font-weight: 700; white-space: nowrap; }

/* ---------- FAQ ---------- */
.d2-faq { max-width: 860px; margin: 0 auto; }
.d2-faq details {
  background: #fff;
  border: 1px solid var(--d2-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.d2-faq details[open] { box-shadow: var(--d2-shadow-sm); }
.d2-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-weight: 700;
  color: var(--d2-navy);
  position: relative;
  min-height: 30px;
}
.d2-faq summary::-webkit-details-marker { display: none; }
.d2-faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--d2-green-dark);
  border-bottom: 2.5px solid var(--d2-green-dark);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.d2-faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.d2-faq .d2-faq__body { padding: 0 22px 20px; color: var(--d2-muted); font-size: 14.5px; }
.d2-faq .d2-faq__body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.d2-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.d2-contact-card {
  background: #fff;
  border: 1px solid var(--d2-line);
  border-radius: var(--d2-radius);
  padding: 30px;
  box-shadow: var(--d2-shadow-sm);
}
.d2-contact-card h3 { margin-bottom: 18px; }
.d2-contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--d2-line);
}
.d2-contact-line:last-child { border-bottom: 0; }
.d2-contact-line .d2-icon { width: 20px; height: 20px; color: var(--d2-green-dark); flex: none; margin-top: 3px; }
.d2-contact-line b { display: block; font-size: 13px; color: var(--d2-muted); font-weight: 400; margin-bottom: 2px; }
.d2-form .d2-form__row { margin-bottom: 16px; }
.d2-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--d2-navy);
}
.d2-form input[type="text"],
.d2-form input[type="email"],
.d2-form textarea {
  width: 100%;
  border: 1px solid var(--d2-line);
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--d2-text);
  background: var(--d2-light);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.d2-form input:focus,
.d2-form textarea:focus {
  border-color: var(--d2-green);
  box-shadow: 0 0 0 3px rgba(47, 178, 79, .15);
  background: #fff;
}
.d2-form textarea { min-height: 130px; resize: vertical; }
.d2-form__hp { position: absolute !important; left: -9999px !important; }
.d2-notice {
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}
.d2-notice--ok { background: rgba(47, 178, 79, .12); color: var(--d2-green-dark); border: 1px solid rgba(47, 178, 79, .35); }
.d2-notice--err { background: rgba(220, 53, 69, .1); color: #b02a37; border: 1px solid rgba(220, 53, 69, .3); }

/* ---------- Generic content ---------- */
.d2-prose { max-width: 860px; margin: 0 auto; font-size: 15.5px; }
.d2-prose h2, .d2-prose h3 { margin-top: 1.6em; }
.d2-prose ul li { margin-bottom: 6px; }
.d2-intro-list { margin: 22px 0 0; padding: 0; list-style: none; }
.d2-intro-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.d2-intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(47, 178, 79, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23228b22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.d2-tip {
  background: rgba(47, 178, 79, .08);
  border: 1px dashed rgba(34, 139, 34, .45);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--d2-navy);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
}
.d2-tip .d2-icon { width: 22px; height: 22px; color: var(--d2-green-dark); flex: none; margin-top: 2px; }

/* Абзац-примечание в блочных страницах (параграф с классом d2-note) */
.d2-note {
  background: rgba(47, 178, 79, .08);
  border-left: 3px solid rgba(34, 139, 34, .55);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--d2-navy);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.d2-note strong { color: var(--d2-green-dark); }

.d2-subs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.d2-sub-card { background: #fff; border: 1px solid var(--d2-line); border-radius: 12px; padding: 22px; }
.d2-sub-card h3 { font-size: 15px; margin-bottom: 8px; }
.d2-sub-card p { font-size: 13px; color: var(--d2-muted); margin: 0; }

/* ---------- Blog / archive ---------- */
.d2-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.d2-post-card {
  background: #fff;
  border: 1px solid var(--d2-line);
  border-radius: var(--d2-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.d2-post-card:hover { transform: translateY(-4px); box-shadow: var(--d2-shadow); }
.d2-post-card__thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
.d2-post-card__body { padding: 22px; }
.d2-post-card h3 { font-size: 17px; }
.d2-post-card h3 a { color: var(--d2-navy); }
.d2-post-card h3 a:hover { color: var(--d2-green-dark); }
.d2-post-card time { font-size: 12.5px; color: var(--d2-muted); }
.d2-post-card p { font-size: 14px; color: var(--d2-muted); margin: 8px 0 0; }

.d2-single { max-width: 820px; margin: 0 auto; }
.d2-single h1 { font-size: 34px; }
.d2-entry-meta { color: var(--d2-muted); font-size: 13.5px; margin-bottom: 26px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .d2-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .d2-reveal.d2-in-view { opacity: 1; transform: none; }
  .d2-reveal--d1 { transition-delay: .08s; }
  .d2-reveal--d2 { transition-delay: .16s; }
  .d2-reveal--d3 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d2-btn:hover, .d2-plan:hover, .d2-service:hover, .d2-feature:hover, .d2-testi:hover, .d2-post-card:hover, .d2-zone-chip:hover { transform: none; }
}

/* ---------- Back to top ---------- */
.d2-totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--d2-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(34, 139, 34, .4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.d2-totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.d2-totop:hover { background: var(--d2-green-dark); }
.d2-totop svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .d2-services { grid-template-columns: repeat(2, 1fr); }
  .d2-subs-grid { grid-template-columns: repeat(2, 1fr); }
  .d2-hero h1 { font-size: 38px; }
}

@media (max-width: 900px) {
  .d2-hero__grid { grid-template-columns: 1fr; }
  .d2-hero-card { max-width: 520px; margin: 40px auto 0; }
  .d2-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .d2-testimonials { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .d2-features { grid-template-columns: 1fr; }
  .d2-stats { grid-template-columns: repeat(2, 1fr); }
  .d2-footer__grid { grid-template-columns: 1fr 1fr; }
  .d2-contact-grid { grid-template-columns: 1fr; }
  .d2-posts { grid-template-columns: repeat(2, 1fr); }

  /* Mobile nav */
  .d2-burger { display: block; }
  .d2-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--d2-line);
    box-shadow: var(--d2-shadow);
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .d2-nav.is-open { display: block; }
  .d2-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; }
  .d2-nav a { padding: 12px 10px; border-radius: 8px; font-size: 15px; }
  .d2-nav .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 18px;
    border-left: 2px solid var(--d2-line);
    margin: 2px 0 6px;
  }
  .d2-nav .menu-item-has-children > a::after { transform: rotate(45deg) translateY(-2px); }
}

@media (max-width: 640px) {
  .d2-section { padding: 60px 0; }
  .d2-hero { padding: 64px 0 72px; }
  .d2-hero h1 { font-size: 30px; }
  .d2-hero__actions .d2-btn { width: 100%; }
  .d2-section-head h2 { font-size: 25px; }
  .d2-services { grid-template-columns: 1fr; }
  .d2-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .d2-stat b { font-size: 30px; }
  .d2-subs-grid { grid-template-columns: 1fr; }
  .d2-posts { grid-template-columns: 1fr; }
  .d2-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .d2-topbar__contacts span.d2-topbar__time { display: none; }
  .d2-page-hero h1 { font-size: 28px; }
  .d2-search__form { flex-direction: column; border-radius: 18px; }
  .d2-search__form .d2-btn { width: 100%; }
}

/* ================================================================
   Страницы, собранные из блоков («Блочная страница» и page.php)
   ================================================================ */
.d2-blocks { padding: 0 0 30px; width: 100%; }
/* Обычные элементы (абзацы, списки, картинки, колонки из ядра) — в центральной колонке */
.d2-blocks > *:not([class^="d2-"]):not([class*=" d2-"]) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
/* Секции блоков темы занимают всю ширину контейнера страницы */
.d2-blocks > .d2-hero,
.d2-blocks > .d2-section,
.d2-blocks > .d2-band,
.d2-blocks > .d2-cta,
.d2-blocks > .d2-search-section {
  max-width: 100%;
}
.d2-blocks .d2-hero:last-child,
.d2-blocks .d2-cta:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .d2-blocks > *:not([class^="d2-"]):not([class*=" d2-"]) { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Палитра редактора: классы has-* на фронтенде ---------- */
.has-d2-navy-color, .has-d-2-navy-color { color: #092d5f; }
.has-d2-navy-dark-color, .has-d-2-navy-dark-color { color: #061f42; }
.has-d2-green-color, .has-d-2-green-color { color: #2fb24f; }
.has-d2-green-dark-color, .has-d-2-green-dark-color { color: #228b22; }
.has-d2-muted-color, .has-d-2-muted-color { color: #4d6584; }
.has-d2-light-color, .has-d-2-light-color { color: #f2f6fb; }
.has-d2-white-color, .has-d-2-white-color { color: #ffffff; }
.has-d2-navy-background-color, .has-d-2-navy-background-color { background-color: #092d5f; }
.has-d2-navy-dark-background-color, .has-d-2-navy-dark-background-color { background-color: #061f42; }
.has-d2-green-background-color, .has-d-2-green-background-color { background-color: #2fb24f; }
.has-d2-green-dark-background-color, .has-d-2-green-dark-background-color { background-color: #228b22; }
.has-d2-muted-background-color, .has-d-2-muted-background-color { background-color: #4d6584; }
.has-d2-light-background-color, .has-d-2-light-background-color { background-color: #f2f6fb; }
.has-d2-white-background-color, .has-d-2-white-background-color { background-color: #ffffff; }
