/* ============================================================
   Veoekspert — Main Stylesheet
   Mobile-first. CSS Variables. Plain CSS.
   ============================================================ */

/* ============================================================
   1. FONTS — Manrope (self-hosted)
   Файлы: assets/fonts/manrope/Manrope-*.woff2
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   2. CSS VARIABLES
   ============================================================ */

:root {
  /* --- Цвета --- */
  --color-deep-blue:     #123C7C;
  --color-bright-blue:   #2F6BFF;
  --gradient-primary:    linear-gradient(135deg, #123C7C 0%, #2F6BFF 100%);

  --color-bg-1:          #EAF1FF;
  --color-bg-2:          #F3F7FF;
  --color-bg-3:          #F8FAFC;

  --color-text:          #172033;
  --color-text-secondary:#667085;
  --color-white:         #FFFFFF;
  --color-border:        #E0E9FF;

  /* --- Тени --- */
  --shadow-card:         0 28px 80px rgba(18, 60, 124, 0.13);
  --shadow-element:      0 18px 50px rgba(23, 32, 51, 0.08);
  --shadow-header:       0 2px 24px rgba(18, 60, 124, 0.10);

  /* --- Скругления --- */
  --radius-pill:         999px;
  --radius-card:         16px;
  --radius-small:        8px;

  /* --- Типографика --- */
  --font-main:           'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:             12px;
  --text-sm:             14px;
  --text-base:           18px;
  --text-lg:             20px;
  --text-xl:             24px;
  --text-2xl:            32px;
  --text-3xl:            clamp(28px, 4vw, 48px);
  --text-h1:             clamp(40px, 5.5vw, 72px);

  --leading-tight:       1.1;
  --leading-snug:        1.3;
  --leading-normal:      1.55;

  /* --- Хедер --- */
  --header-height:       60px;

  /* --- Контейнер --- */
  --container-max:       1200px;
  --container-px:        16px;

  /* --- Отступы секций --- */
  --section-py:          40px;

  /* --- Переходы --- */
  --transition-base:     0.2s ease;
  --transition-slow:     0.35s ease;

  /* --- Мобильная панель --- */
  --action-bar-height:   64px;

  /* --- z-индексы --- */
  --z-header:            100;
  --z-mobile-menu:       200;
  --z-overlay:           150;
  --z-floating:          90;
}

/* ============================================================
   3. RESET / BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-normal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--action-bar-height); /* Отступ под мобильную панель */
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-bright-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Скрытый skip-link для доступности */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-deep-blue);
  color: var(--color-white);
  border-radius: var(--radius-small);
  font-weight: 600;
}
.skip-link:focus {
  left: 8px;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.section--bg-1 { background-color: var(--color-bg-1); }
.section--bg-2 { background-color: var(--color-bg-2); }
.section--bg-3 { background-color: var(--color-bg-3); }
.section--dark  { background: var(--gradient-primary); color: var(--color-white); }

/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 700;
}

p {
  line-height: var(--leading-normal);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header__title {
  margin-bottom: 12px;
}

.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  min-height: 52px;
  border: 0;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(47, 107, 255, 0.30);
}

.btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(47, 107, 255, 0.38);
}

.btn--primary:active {
  transform: translateY(0);
  opacity: 1;
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-deep-blue);
  border: 2px solid var(--color-border);
  /* компенсируем 2px рамку, чтобы высота совпадала с primary */
  padding-block: 12px;
}

.btn--secondary:hover {
  border-color: var(--color-bright-blue);
  background: var(--color-bg-1);
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   7. HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 233, 255, 0.6);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  background: rgba(255, 255, 255, 0.99);
}

.site-header__spacer {
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
}

/* Логотип */
.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo a {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 36px;
  width: auto;
}

.site-header__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-deep-blue);
  letter-spacing: -0.03em;
}

.site-header__logo-mark {
  color: var(--color-bright-blue);
}

/* Desktop nav — скрыт на мобильном */
.site-header__nav {
  display: none;
}

/* Действия в хедере */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Переключатель языков в хедере — скрыт на мобильном */
.site-header__lang {
  display: none;
}

/* Поиск — скрыт на мобильном */
.site-header__search-btn {
  display: none;
}

/* Телефон в хедере — скрыт на мобильном */
.site-header__phone {
  display: none;
}

/* CTA-кнопка в хедере — скрыта на мобильном */
.site-header__cta-wrapper {
  display: none;
}

/* Burger-кнопка */
.site-header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-small);
  color: var(--color-text);
  transition: background var(--transition-base);
}

.site-header__burger:hover {
  background: var(--color-bg-1);
}

.burger-icon--close {
  display: none;
}

.site-header__burger[aria-expanded="true"] .burger-icon--open {
  display: none;
}

.site-header__burger[aria-expanded="true"] .burger-icon--close {
  display: block;
}

.site-header__burger svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   8. MOBILE MENU
   ============================================================ */

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: var(--z-mobile-menu);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  -webkit-overflow-scrolling: touch;
}

.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 24px var(--container-px);
  gap: 24px;
  min-height: 100%;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu__phone svg {
  width: 20px;
  height: 20px;
  color: var(--color-bright-blue);
  flex-shrink: 0;
}

.mobile-menu__phone-link {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-deep-blue);
}

/* Mobile nav menu */
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--color-bg-2);
}

.mobile-nav-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  transition: color var(--transition-base);
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li.current-menu-item > a {
  color: var(--color-bright-blue);
}

/* Подменю в мобильном меню */
.mobile-nav-menu .sub-menu {
  padding: 4px 0 12px 12px;
}

.mobile-nav-menu .sub-menu li a {
  display: block;
  padding: 8px 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.mobile-nav-menu .sub-menu li a:hover {
  color: var(--color-bright-blue);
}

/* CTA кнопки в мобильном меню */
.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

/* Язык в мобильном меню */
.mobile-menu__lang {
  display: flex;
  gap: 0;
}

/* Оверлей */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 32, 51, 0.5);
  z-index: var(--z-overlay);
}

.mobile-overlay.is-visible {
  display: block;
}

/* ============================================================
   9. LANGUAGE SWITCHER
   ============================================================ */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher__item a {
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: background var(--transition-base), color var(--transition-base);
}

.lang-switcher__item a:hover,
.lang-switcher__item--active a {
  background: var(--color-bg-1);
  color: var(--color-deep-blue);
}

/* ============================================================
   10. DESKTOP NAVIGATION (стили применяются через медиазапрос)
   ============================================================ */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  border-radius: 8px;
  transition: background var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  background: var(--color-bg-1);
  color: var(--color-deep-blue);
}

/* Dropdown — плавное появление + «мостик» над зазором (стабильный hover) */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 8px;
  min-width: 230px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}

/* Невидимый «мостик», чтобы курсор не терял меню в зазоре */
.nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Длинные меню (Услуги, Города, Информация) — в две колонки */
.nav-menu > li.nav-mega > .sub-menu {
  column-count: 2;
  column-gap: 4px;
  min-width: 460px;
}

.nav-menu > li.nav-mega > .sub-menu li {
  break-inside: avoid;
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: var(--text-sm);
  border-radius: 8px;
  color: var(--color-text);
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base);
}

.nav-menu .sub-menu li a:hover {
  background: var(--color-bg-1);
  color: var(--color-deep-blue);
}

/* CTA Dropdown */
.site-header__cta-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 8px;
  min-width: 220px;
  z-index: 10;
}

.site-header__cta-dropdown.is-open {
  display: block;
}

.cta-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition-base), color var(--transition-base);
}

.cta-dropdown__item:hover {
  background: var(--color-bg-1);
  color: var(--color-deep-blue);
}

.cta-dropdown__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-bright-blue);
  flex-shrink: 0;
}

/* ============================================================
   11. FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__top {
  padding-block: 48px 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Логотип в футере */
.site-footer__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.site-footer__logo img {
  filter: brightness(0) invert(1);
  height: 36px;
  width: auto;
}

.site-footer__about {
  margin-top: 16px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 300px;
}

/* Контакты в футере */
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.site-footer__contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-white);
  transition: color var(--transition-base);
}

.site-footer__contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-bright-blue);
}

.site-footer__contact-link:hover {
  color: var(--color-bright-blue);
}

.site-footer__hours {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* Соцсети */
.site-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--transition-base), color var(--transition-base);
}

.social-link:hover {
  background: var(--color-bright-blue);
  color: var(--color-white);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Заголовки колонок футера */
.site-footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

/* Ссылки в футере */
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.70);
  transition: color var(--transition-base);
  line-height: 1.5;
}

.site-footer__links a:hover {
  color: var(--color-white);
}

/* Юридические ссылки */
.site-footer__legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__legal-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-base);
}

.site-footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.80);
}

/* Нижняя строка */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 20px;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.40);
}

.site-footer__lang .lang-switcher__item a {
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__lang .lang-switcher__item--active a,
.site-footer__lang .lang-switcher__item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

/* Accordion для мобильного футера */
.site-footer__accordion-trigger {
  cursor: default;
}

/* ============================================================
   12. FLOATING ELEMENTS
   ============================================================ */

/* --- Мобильная нижняя панель --- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-floating);
  display: flex;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(18, 60, 124, 0.10);
  height: var(--action-bar-height);
  safe-area-inset-bottom: env(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-action-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--transition-base), background var(--transition-base);
  text-decoration: none;
}

.mobile-action-bar__item:hover,
.mobile-action-bar__item:active {
  color: var(--color-deep-blue);
  background: var(--color-bg-1);
}

.mobile-action-bar__item svg {
  width: 22px;
  height: 22px;
}

.mobile-action-bar__item--primary {
  color: var(--color-white);
  background: var(--gradient-primary);
  border-radius: 0;
}

.mobile-action-bar__item--primary:hover,
.mobile-action-bar__item--primary:active {
  opacity: 0.92;
  color: var(--color-white);
  background: var(--gradient-primary);
}

/* --- Кнопка "Наверх" --- */
.scroll-top-btn {
  position: fixed;
  bottom: calc(var(--action-bar-height) + 16px);
  right: 16px;
  z-index: var(--z-floating);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-element);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep-blue);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
}

/* --- Вкладка отзывов Google (desktop) --- */
.review-tab {
  display: flex;
  position: fixed;
  right: 0;
  top: 42%;
  z-index: var(--z-floating);
  writing-mode: vertical-rl;
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 14px 7px;
  border-radius: 10px 0 0 10px; /* скругление со стороны экрана */
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  align-items: center;
  box-shadow: -2px 4px 16px rgba(18, 60, 124, 0.25);
  transition: padding var(--transition-base), opacity var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.review-tab:hover {
  padding-right: 11px;
  opacity: 0.96;
}

.review-tab svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   12b. HOMEPAGE SECTIONS
   ============================================================ */

/* --- Hero --- */
.hero-section {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--color-bg-1) 0%, transparent 60%),
    var(--color-white);
  padding-top: 40px;
}

.hero-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-section__title {
  margin-bottom: 16px;
}

.hero-section__subtitle {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-bg-1);
  color: var(--color-bright-blue);
}

.hero-benefit__icon svg {
  width: 22px;
  height: 22px;
}

.hero-benefit__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.hero-benefit__text strong {
  color: var(--color-text);
  font-weight: 700;
}

.hero-section__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-section__calculator:empty {
  display: none;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-element);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-bright-blue);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: var(--color-white);
  margin-bottom: 4px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex: 1;
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-bright-blue);
  margin-top: 4px;
}

.service-card__more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__more svg {
  transform: translateX(3px);
}

.services-section__cta {
  text-align: center;
  margin-top: 32px;
}

/* --- Info strip --- */
.info-strip {
  padding-block: 36px;
}

.info-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-strip__item {
  position: relative;
  padding-left: 28px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.info-strip__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-mask: url("../icons/check.svg") center / contain no-repeat;
  mask: url("../icons/check.svg") center / contain no-repeat;
}

/* --- Containers grid --- */
.containers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.container-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-element);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.container-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.container-card__size {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-deep-blue);
  letter-spacing: -0.03em;
}

.container-card__unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-bright-blue);
  margin-left: 4px;
}

.container-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex: 1;
}

.container-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-1);
  color: var(--color-deep-blue);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* --- KÜ section --- */
.ku-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.ku-section__content h2 {
  margin-bottom: 16px;
}

.ku-section__content p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

/* Картинка KÜ добавляется в Phase 7. Пока блок скрыт. */
.ku-section__image:empty {
  display: none;
}

/* --- How it works --- */
.how-steps {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.how-steps::-webkit-scrollbar { display: none; }

.how-step {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  text-align: center;
  padding: 8px;
}

.how-step__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-bright-blue);
  box-shadow: 0 6px 16px rgba(18, 60, 124, 0.10);
  margin-bottom: 14px;
}

.how-step__icon svg { width: 26px; height: 26px; }

.how-step__num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step__title {
  font-size: var(--text-md, 16px);
  margin-bottom: 6px;
}

.how-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

/* --- Blog grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-element);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.blog-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.blog-card__title {
  font-size: var(--text-lg);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex: 1;
}

/* --- Contact section --- */
.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
  align-items: start;
}

.contact-card {
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-element);
  text-align: center;
}

.contact-card svg {
  width: 28px;
  height: 28px;
  color: var(--color-bright-blue);
  margin-inline: auto;
}

.contact-card__phone {
  display: block;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-deep-blue);
  margin-block: 8px;
}

.contact-card__hours {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.contact-section__regions {
  text-align: center;
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* Форма заявки добавляется в Phase 6. Пока блок скрыт. */
.contact-section__form:empty {
  display: none;
}

/* --- Empty placeholders (секции в разработке) --- */
.reviews-section .container > .section-header:only-child,
.gallery-section .container > .section-header:only-child,
.faq-section .container > .section-header:only-child {
  margin-bottom: 0;
}

/* ============================================================
   13. PAGE CONTENT
   ============================================================ */

.entry-content {
  max-width: 720px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 6px;
}

/* ============================================================
   14. 404 / ERROR PAGE
   ============================================================ */

.error-page {
  text-align: center;
  padding-block: 80px;
}

.error-page__code {
  font-size: 96px;
  font-weight: 800;
  color: var(--color-bg-1);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  margin-bottom: 16px;
}

.error-page__text {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   16. TABLET — min-width: 768px
   ============================================================ */

@media (min-width: 768px) {
  :root {
    --container-px:  24px;
    --section-py:    52px;
    --header-height: 68px;
  }

  body {
    padding-bottom: 0; /* Мобильной панели нет на планшете */
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .site-footer__col--about {
    grid-column: 1 / -1;
  }

  /* Акордеон в футере — раскрыт на планшете */
  .site-footer__heading {
    cursor: default;
  }

  /* Прячем мобильную панель */
  .mobile-action-bar {
    display: none;
  }

  /* Кнопка наверх на планшете — ближе к правому краю */
  .scroll-top-btn {
    bottom: 24px;
    right: 24px;
  }
}

/* ============================================================
   17. DESKTOP — min-width: 1024px
   ============================================================ */

@media (min-width: 1024px) {
  :root {
    --container-px:  40px;
    --header-height: 72px;
  }

  /* Показываем десктопную навигацию */
  .site-header__nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .site-header__lang {
    display: flex;
  }

  .site-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    transition: background var(--transition-base), color var(--transition-base);
  }

  .site-header__search-btn:hover {
    background: var(--color-bg-1);
    color: var(--color-deep-blue);
  }

  .site-header__search-btn svg {
    width: 18px;
    height: 18px;
  }

  .site-header__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-bg-1);
    border: 1.5px solid var(--color-bright-blue);
    color: var(--color-bright-blue);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(47, 107, 255, 0.18);
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  }

  .site-header__phone:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(47, 107, 255, 0.32);
  }

  .site-header__phone svg {
    width: 21px;
    height: 21px;
  }

  .site-header__cta-wrapper {
    display: block;
    position: relative;
  }

  /* Прячем burger на desktop */
  .site-header__burger {
    display: none;
  }

  /* Сетка футера на desktop */
  .site-footer__grid {
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 40px;
  }

  .site-footer__col--about {
    grid-column: auto;
  }

  /* Раскрываем вкладку отзывов */
  .review-tab {
    display: flex;
  }

  /* Акордеон не нужен на desktop */
  .site-footer__accordion-trigger {
    cursor: default;
  }
}

/* ============================================================
   18. WIDE — min-width: 1280px
   ============================================================ */

@media (min-width: 1280px) {
  :root {
    --container-px: 48px;
  }
}

/* ============================================================
   19. PRINT
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .mobile-action-bar,
  .review-tab,
  .scroll-top-btn {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ============================================================
   20. HOMEPAGE — RESPONSIVE GRIDS
   ============================================================ */

@media (min-width: 600px) {
  .hero-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .containers-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .info-strip__inner {
    grid-template-columns: 1fr 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .how-steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-section__content {
    max-width: 820px;
  }

  /* Hero c калькулятором — две колонки на десктопе */
  .hero-section__inner--with-calc {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
  }

  .hero-section__inner--with-calc .hero-section__content {
    max-width: none;
  }
}

.hero-section__calculator {
  width: 100%;
}

.hero-section__calculator .veo-calc {
  max-width: none;
}

@media (min-width: 1280px) {
  .services-grid {
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .contact-section__inner {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ============================================================
   21. SERVICE PAGE
   ============================================================ */

.breadcrumbs {
  padding-block: 14px;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-bright-blue); }
.breadcrumbs span { color: var(--color-text-secondary); }
.breadcrumbs__current { color: var(--color-text); font-weight: 600; }

/* Hero услуги */
.svc-hero {
  background:
    radial-gradient(1000px 400px at 85% -20%, var(--color-bg-1) 0%, transparent 60%),
    var(--color-white);
}

.svc-hero__title { margin-bottom: 14px; }

.svc-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-bottom: 24px;
}

.svc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Тело услуги: контент + калькулятор */
.svc-body__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.svc-calc__title {
  font-size: var(--text-xl);
  margin-bottom: 16px;
}

/* Города */
.svc-areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.svc-areas__item {
  display: inline-flex;
  padding: 10px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-deep-blue);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.svc-areas__item:hover {
  border-color: var(--color-bright-blue);
  background: var(--color-bg-1);
}

/* Связанные услуги */
.svc-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.svc-related__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-element);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.svc-related__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-bright-blue);
}

.svc-related__card svg { width: 18px; height: 18px; color: var(--color-bright-blue); flex-shrink: 0; }

/* Финальный CTA */
.svc-final { padding-block: 44px; }

.svc-final__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.svc-final__text h2 { margin-bottom: 8px; }
.svc-final__text p { opacity: 0.9; }

.svc-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.svc-final .btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.svc-final .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* FAQ аккордеоны */
.faq-list {
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--color-bright-blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item__a {
  padding: 0 0 16px;
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

@media (min-width: 992px) {
  .svc-body__inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .svc-body__aside {
    position: sticky;
    top: calc(var(--header-height) + 16px);
  }

  .svc-related__grid {
    grid-template-columns: 1fr 1fr;
  }

  .svc-final__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   22. ХАБЫ (обзорные страницы) — сетка ссылок
   ============================================================ */

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0 28px;
}

.hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-element);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-bright-blue);
}

.hub-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-bright-blue);
}

@media (min-width: 600px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   23. ИЗОБРАЖЕНИЯ СТРАНИЦ + ГАЛЕРЕЯ «Наши работы»
   ============================================================ */

.svc-hero__image,
.page-article__image {
  margin-top: 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-element);
}

.svc-hero__image img,
.page-article__image img {
  display: block;
  width: 100%;
  height: auto;
}

.page-article__image {
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-grid__item {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-element);
  aspect-ratio: 4 / 3;
}

.gallery-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-grid__item:hover .gallery-grid__img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* CTA-карточка в боковой колонке услуг/городов (когда калькулятор скрыт) */
.svc-cta-card {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.svc-cta-card__title {
  margin: 0 0 8px;
  font-size: var(--text-lg);
  color: var(--color-deep-blue);
}

.svc-cta-card__text {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.svc-cta-card .btn--full {
  margin-bottom: 10px;
}

.svc-cta-card .btn--full:last-child {
  margin-bottom: 0;
}

/* ============================================================
   24. ФАЗА 2 — полировка дизайна
   ============================================================ */

/* --- #12 Хедер: разделитель языков ET | RU --- */
.site-header__lang.lang-switcher { gap: 0; align-items: center; }
.site-header__lang .lang-switcher__item { display: flex; align-items: center; }
.site-header__lang .lang-switcher__item + .lang-switcher__item::before {
  content: "|";
  color: var(--color-border);
  margin: 0 4px;
  line-height: 1;
}

/* --- #12 Хедер: более лёгкая кнопка «Заказать / Saada päring» --- */
.site-header__cta.btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.20);
}
.site-header__cta.btn:hover { box-shadow: 0 4px 14px rgba(47, 107, 255, 0.28); }

/* --- #14 Hero-заголовок: гео-часть фирменным градиентом --- */
.hero-section__title-accent {
  background: linear-gradient(135deg, #2F6BFF 0%, #14B8A6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #2F6BFF; /* запасной цвет, если clip не поддержан */
}

/* --- #16 Блок преимуществ: иконка слева, заголовок + описание, глубина --- */
.hero-benefit {
  align-items: flex-start;
  gap: 14px;
}
.hero-benefit__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-bright-blue);
  box-shadow: 0 4px 12px rgba(18, 60, 124, 0.10);
}
.hero-benefit__icon svg { width: 20px; height: 20px; }
.hero-benefit__text { display: flex; flex-direction: column; gap: 2px; }
.hero-benefit__title {
  font-size: var(--text-md, 15px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}
.hero-benefit__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --- #17 Отступы вокруг H1 на внутренних страницах --- */
.svc-hero.section { padding-top: 22px; }
.svc-hero__title { margin-bottom: 22px; }
.page-article .entry-title { margin-bottom: 22px; }
.breadcrumbs + .svc-hero.section { padding-top: 18px; }

/* --- #20 KÜ: центрируем блок (картинки нет), кнопка не «теряется» --- */
.ku-section__inner { grid-template-columns: 1fr; }
.ku-section__content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.ku-section__content p { margin-inline: auto; }
/* Если в KÜ добавят картинку — вернуть две колонки слева */
.ku-section__inner:has(.ku-section__image img) { grid-template-columns: 1.1fr 0.9fr; }
.ku-section__inner:has(.ku-section__image img) .ku-section__content {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

/* --- #21 Контрастная кнопка на синем финальном CTA --- */
.svc-final .btn--primary {
  background: #fff;
  color: var(--color-deep-blue);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.svc-final .btn--primary:hover {
  background: #fff;
  color: var(--color-bright-blue);
  transform: translateY(-1px);
}

/* --- #22 Боковая вкладка Tagasiside: текст снизу вверх --- */
.review-tab {
  transform: rotate(180deg);
  border-radius: 0 10px 10px 0; /* после поворота скругление со стороны экрана */
}
.review-tab:hover { padding-left: 11px; padding-right: 7px; }

/* --- #12 Мобильная панель: телефон заметнее (крупнее, фирменный синий) --- */
.mobile-action-bar__item--phone { color: var(--color-bright-blue); font-weight: 700; }
.mobile-action-bar__item--phone svg { width: 26px; height: 26px; }

/* ============================================================
   25. ФАЗА 3 — карусели и компактные блоки
   ============================================================ */

/* --- Карусель (отзывы, галерея) --- */
.veo-carousel { position: relative; }
.veo-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.veo-carousel__track::-webkit-scrollbar { display: none; }

/* Обёртка отзывов от шорткода исчезает из потока — карточки становятся слайдами */
.veo-carousel__track > .veo-reviews {
  display: contents;
}
.veo-carousel__track .veo-rev,
.veo-carousel__slide {
  flex: 0 0 auto;
  width: 290px;
  scroll-snap-align: start;
  margin: 0;
}
@media (min-width: 768px) {
  .veo-carousel__track .veo-rev,
  .veo-carousel__slide { width: 330px; }
}

/* Слайд галереи */
.gallery-carousel .veo-carousel__slide {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-element);
  aspect-ratio: 4 / 3;
}
.gallery-carousel .veo-carousel__slide .gallery-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Стрелки */
.veo-carousel__arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  color: var(--color-deep-blue);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), color var(--transition-base);
}
.veo-carousel__arrow:hover { background: var(--color-bg-1); color: var(--color-bright-blue); }
.veo-carousel__arrow:disabled { opacity: 0.35; cursor: default; }
.veo-carousel__arrow--prev { left: -10px; }
.veo-carousel__arrow--next { right: -10px; }
@media (min-width: 1024px) {
  .veo-carousel__arrow { display: inline-flex; }
  .veo-carousel--static .veo-carousel__arrow { display: none; }
}

/* --- #19 «Как мы работаем»: линия-соединитель на десктопе --- */
@media (min-width: 768px) {
  .how-steps {
    overflow: visible;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .how-step {
    flex: 1 1 0;
    width: auto;
    max-width: 220px;
  }
  .how-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 38px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
  }
}

/* ============================================================
   26. ФАЗА 5 — блог и статья
   ============================================================ */

.container--narrow { max-width: 820px; }

/* --- Статья --- */
.single-post__header { margin-bottom: 20px; }
.single-post__title { margin-bottom: 12px; }
.single-post__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.single-post__meta a { color: var(--color-bright-blue); }

.single-post__thumbnail {
  margin: 0 0 26px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-element);
}
.single-post__thumbnail img { display: block; width: 100%; height: auto; }

/* Оглавление */
.post-toc {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 0 0 26px;
}
.post-toc__title {
  display: block;
  font-weight: 700;
  color: var(--color-deep-blue);
  margin-bottom: 8px;
}
.post-toc__list { margin: 0; padding-left: 18px; }
.post-toc__list li { margin: 4px 0; }
.post-toc__list a { color: var(--color-text); text-decoration: none; }
.post-toc__list a:hover { color: var(--color-bright-blue); text-decoration: underline; }
.post-toc__list .toc-h3 { margin-left: 14px; font-size: var(--text-sm); }

/* Текст статьи */
.single-post__content { font-size: 17px; line-height: 1.7; }
.single-post__content h2 {
  margin-top: 34px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.single-post__content h3 {
  margin-top: 24px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.single-post__faq { margin-top: 38px; }
.single-post__faq h2 { margin-bottom: 16px; }

.single-post__cta {
  margin-top: 38px;
  padding: 30px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-card);
  text-align: center;
}
.single-post__cta h2 { color: #fff; margin-bottom: 8px; }
.single-post__cta p { opacity: 0.92; margin-bottom: 18px; }
.single-post__cta .btn--primary { background: #fff; color: var(--color-deep-blue); }
.single-post__cta .btn--primary:hover { background: #fff; color: var(--color-bright-blue); }

/* --- Список блога --- */
.blog-card__date {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.blog-related { margin-top: 8px; }

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base);
}
.blog-pagination .page-numbers.current {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}
.blog-pagination a.page-numbers:hover {
  border-color: var(--color-bright-blue);
  color: var(--color-bright-blue);
}

/* ============================================================
   27. ФАЗА 6 — cookie-баннер
   ============================================================ */
.veo-cookie[hidden] { display: none !important; }
.veo-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-floating);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 44px rgba(18, 60, 124, 0.20);
  padding: 16px 20px;
}
.veo-cookie__text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  flex: 1 1 280px;
}
.veo-cookie__text a { color: var(--color-bright-blue); text-decoration: underline; }
.veo-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.veo-cookie__btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: opacity var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.veo-cookie__btn--ghost { background: #fff; color: var(--color-text-secondary); }
.veo-cookie__btn--ghost:hover { border-color: var(--color-bright-blue); color: var(--color-deep-blue); }
.veo-cookie__btn--primary { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.veo-cookie__btn--primary:hover { opacity: 0.93; }

/* Ссылка «Настройки cookie» в футере */
.site-footer__cookie-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
}
.site-footer__cookie-link:hover { opacity: 1; }

/* Над мобильной нижней панелью, чтобы не перекрывать */
@media (max-width: 1023px) {
  .veo-cookie {
    left: 8px;
    right: 8px;
    bottom: calc(var(--action-bar-height) + 8px);
    padding: 14px;
  }
  .veo-cookie__actions { width: 100%; }
  .veo-cookie__btn { flex: 1; }
}
