/*!
 * Coderr ProLive — единый бандл стилей темы (собран из style.css + assets/css/*.css).
 * Не редактировать вручную: пересобрать скриптом или объединением исходников.
 */

/* ========== style.css (без заголовка темы) ========== */
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables - Цветовая палитра на основе логотипа PROLIVE */
:root {
  /* Основные цвета (Primary Palette) - синие оттенки из логотипа */
  --primary-color: #0066CC;           /* Яркий синий (капли воды, верх щита) */
  --primary-dark: #004080;            /* Темно-синий (текст PROLIVE, левая сторона щита) */
  --primary-light: #3399FF;           /* Светлый синий (для акцентов) */
  --primary-pale: #E6F2FF;            /* Бледно-синий (для фонов) */
  
  /* Вторичные цвета (Secondary Palette) - серые оттенки из логотипа */
  --secondary-color: #808080;         /* Серый (кран, правая сторона щита) */
  --secondary-dark: #4D4D4D;          /* Темно-серый (для footer) */
  --secondary-light: #B3B3B3;         /* Светло-серый (для светлых элементов) */
  --secondary-silver: #C0C0C0;        /* Серебристый (металлический кран) */
  
  /* Акцентные цвета (Accent Colors) - красный из логотипа */
  --accent-red: #DC143C;              /* Красный (труба/полоса в логотипе) */
  --accent-red-dark: #B01030;         /* Темно-красный (для hover) */
  --accent-red-light: #FF3366;        /* Светло-красный (для акцентов) */
  --accent-red-pale: #FFE6EB;         /* Бледно-красный (для фонов) */
  
  /* Нейтральные цвета (Neutral Palette) */
  --dark-color: #003366;              /* Очень темно-синий (основной текст) */
  --dark-gray: #333333;               /* Темно-серый (вторичный текст) */
  --gray: #666666;                    /* Серый (мета-информация) */
  --light-gray: #CCCCCC;              /* Светло-серый (границы) */
  --light-color: #F5F5F5;             /* Светло-серый фон */
  --lighter-color: #FAFAFA;           /* Очень светло-серый */
  --white: #ffffff;                   /* Белый (фон щита) */
  
  /* Фоновые цвета (Background Colors) */
  --bg-primary: #FFFFFF;              /* Основной фон (белый) */
  --bg-secondary: #F8F9FA;            /* Вторичный фон (светло-серый) */
  --bg-accent: #E6F2FF;               /* Акцентный фон (бледно-синий) */
  --bg-card: #ffffff;                 /* Фон карточек */
  --bg-overlay: rgba(0, 102, 204, 0.1); /* Наложение синего */
  
  /* Градиенты (Gradients) */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-shield: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-water: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  
  /* Тени (Shadows) */
  --shadow: 0 4px 6px rgba(0, 102, 204, 0.15);
  --shadow-hover: 0 8px 15px rgba(0, 102, 204, 0.25);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  /* Другие переменные */
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--bg-primary);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 {
  font-size: 2rem;
  text-transform: uppercase;
}
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ================================
   Анимации при прокрутке (Scroll Animations)
   ================================ */

/* Базовые стили для анимируемых элементов */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
  will-change: opacity, transform;
}

/* Состояние видимого элемента */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Вариации анимаций */
.animate-on-scroll--fade {
  opacity: 0;
  transform: none;
  transition: opacity 0.3s ease-out;
}

.animate-on-scroll--fade.is-visible {
  opacity: 1;
}

.animate-on-scroll--scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.animate-on-scroll--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Задержки для каскадной анимации элементов внутри контейнера */
.animate-on-scroll.is-visible:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll.is-visible:nth-child(2) { transition-delay: 50ms; }
.animate-on-scroll.is-visible:nth-child(3) { transition-delay: 100ms; }
.animate-on-scroll.is-visible:nth-child(4) { transition-delay: 150ms; }
.animate-on-scroll.is-visible:nth-child(5) { transition-delay: 200ms; }
.animate-on-scroll.is-visible:nth-child(6) { transition-delay: 250ms; }

/* Отключение анимации для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll--fade,
  .animate-on-scroll--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ========== main.css ========== */
/* ===================================
   Coderr ProLive Theme - Main Styles
   =================================== */

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
  display: block;
  font-weight: 700;
  left: -9999em;
  padding: 1em;
  text-decoration: underline;
  top: 0;
  position: absolute;
  z-index: 999;
}

.skip-link:focus {
  left: 6px;
  top: 6px;
}

/* ===================================
   Sticky Footer
   =================================== */
html,
body {
  height: 100%;
}

#page.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===================================
   Header Styles
   =================================== */

.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
}

/* Отступ для админ-панели WordPress */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Компактный хедер при прокрутке */
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-header.scrolled .main-header {
  padding: 8px 0;
}

.site-header.scrolled .site-branding .custom-logo-link img.custom-logo,
.site-header.scrolled .site-branding img.custom-logo {
  max-height: calc(var(--logo-max-height, 80px) * 0.6);
}

.site-header.scrolled .site-title,
.site-header.scrolled .site-logo-text {
  font-size: 20px;
}

.site-header.scrolled .site-description {
  display: none;
}

.site-header.scrolled .primary-menu a {
  font-size: 13px;
  padding: 2px 12px;
}

.site-header.scrolled .header-actions .btn-consultation {
  padding: 7px 16px;
  font-size: 13px;
}

.site-header.scrolled .header-cta--with-phone {
  padding: 4px 12px 5px;
}

.site-header.scrolled .header-cta__phone {
  font-size: 13px;
}

.site-header.scrolled .header-cta--with-phone .btn-consultation {
  padding: 0;
  font-size: 10px;
}

/* Main Header */
.main-header {
  padding: 20px 0;
  transition: padding 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  transition: font-size 0.3s ease;
}

.site-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  transition: font-size 0.3s ease;
}

.site-description {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
  transition: opacity 0.3s ease;
}

/* Логотип: базовые лимиты (дублируют inline из functions.php; в превью кастомайзера — усиление там) */
.site-branding .custom-logo-link img.custom-logo,
.site-branding img.custom-logo {
  max-width: var(--logo-max-width, 200px);
  max-height: var(--logo-max-height, 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: max-height 0.3s ease;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: block;
  padding: 2px 15px;
  color: var(--dark-color);
  font-weight: 600;
  transition: var(--transition);
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 15px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Submenu */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  min-width: 220px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

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

.primary-menu .sub-menu a {
  padding: 10px 20px;
  border-radius: 0;
}

/* Шеврон подменю: только на мобиле, зона касания ≥44px */
.submenu-toggle {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.menu-toggle-icon {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--dark-color);
  position: relative;
  transition: var(--transition);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--dark-color);
  transition: var(--transition);
}

.menu-toggle-icon::before {
  top: -8px;
}

.menu-toggle-icon::after {
  bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Header Actions: телефон + «Оставить заявку» одним компактным блоком */
.header-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.header-cta--with-phone {
  background: var(--accent-red);
  border-radius: var(--border-radius);
  padding: 5px 14px 6px;
  text-align: center;
  transition: var(--transition);
}

.header-cta--with-phone:hover {
  background: var(--accent-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.header-cta__phone {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta__phone:hover,
.header-cta__phone:focus-visible {
  color: var(--white);
}

.header-cta__phone:focus-visible,
.header-cta--with-phone .btn-consultation:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.header-actions .btn-consultation {
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 20px;
  background: var(--accent-red);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.header-actions .btn-consultation:hover {
  background: var(--accent-red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.header-actions .header-cta--with-phone .btn-consultation {
  display: block;
  padding: 1px 0 0;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.header-actions .header-cta--with-phone .btn-consultation:hover,
.header-actions .header-cta--with-phone .btn-consultation:focus-visible {
  background: transparent;
  color: var(--white);
  transform: none;
  box-shadow: none;
}

@media (hover: hover) {
  .header-actions .header-cta--with-phone .btn-consultation:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

/* ===================================
   Content Area
   =================================== */

.content-area {
  padding: 60px 0;
  min-height: 50vh;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Отступ для фиксированного header */
.site-main {
  margin-top: 80px;
  flex: 1;
}

/* Дополнительный отступ при наличии админ-панели */
.admin-bar .site-main {
  margin-top: 112px; /* 80px + 32px (высота админ-панели) */
}

@media screen and (max-width: 782px) {
  .admin-bar .site-main {
    margin-top: 126px; /* 80px + 46px (высота админ-панели на мобильных) */
  }
}

/* Landing page без сайдбара */
.landing-page .content-area,
.no-sidebar .content-area {
  padding: 0;
}

.landing-page .site-main,
.no-sidebar .site-main {
  margin-top: 0;
}

.landing-page .content-wrapper,
.no-sidebar .content-wrapper {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 100%;
}

.content-wrapper .main-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Post Card */
.post-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.post-card .post-thumbnail {
  overflow: hidden;
  height: 220px;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card .post-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card .entry-title {
  margin-bottom: 15px;
  font-size: 1.25rem;
  text-align: center;
}

.post-card .entry-title a {
  color: var(--dark-color);
}

.post-card .entry-title a:hover {
  color: var(--primary-color);
}

/* Архив новостей и лента блога: полоса заголовка как на главной — белый текст */
.content-area .posts-grid .post-card .entry-header,
.contacts-page .posts-grid .post-card .entry-header {
  margin: -25px -25px 15px;
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  text-align: center;
}

.content-area .posts-grid .post-card:not(:has(.post-thumbnail)) .entry-header,
.contacts-page .posts-grid .post-card:not(:has(.post-thumbnail)) .entry-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.content-area .posts-grid .post-card .entry-title,
.contacts-page .posts-grid .post-card .entry-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.content-area .posts-grid .post-card .entry-title,
.content-area .posts-grid .post-card .entry-title a,
.contacts-page .posts-grid .post-card .entry-title,
.contacts-page .posts-grid .post-card .entry-title a {
  color: #fff;
}

.content-area .posts-grid .post-card .entry-title a:hover,
.contacts-page .posts-grid .post-card .entry-title a:hover {
  color: #fff;
  opacity: 0.9;
}

.post-card .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 15px;
}

.post-card .entry-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-card .entry-summary {
  flex: 1;
  width: 100%;
  margin-bottom: 15px;
  text-align: justify;
}

.post-card .entry-summary p {
  width: 100%;
  margin-bottom: 0;
  text-align: justify;
}

.post-card .entry-footer {
  text-align: center;
}

.post-card .read-more {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
}

.post-card .read-more:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Single Post */
.single-post .post-thumbnail-full,
.single-page .post-thumbnail-full {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  max-height: 500px;
}

.single-post .post-thumbnail-full img,
.single-page .post-thumbnail-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post .entry-header,
.single-page .entry-header {
  margin-bottom: 30px;
}

.single-post .entry-title,
.single-page .entry-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  line-height: 1.2;
}

.entry-title {
  display: block;
  visibility: visible;
}

.single-post .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--gray);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--light-gray);
}

.single-post .entry-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-content {
  line-height: 1.8;
}

.entry-content img {
  border-radius: var(--border-radius);
  margin: 20px 0;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
  margin: 20px 0;
  /* padding-left: 30px; */
}

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

/* Блок Gutenberg «Детали» (FAQ: <details>/<summary>) */
.entry-content .wp-block-details {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.entry-content .wp-block-details summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ===================================
   Блок «Как мы работаем» — таймлайн с кругами и линией (класс: .coderr-how-we-work)
   Вставка: KAK_MY_RABOTAEM_KONTENT.html
   =================================== */

.coderr-how-we-work {
  --hww-col: 3.35rem;
  --hww-dot: 2.85rem;
  --hww-li-pl: 0.85rem;
  margin: 0 0 2.5rem;
  width: 100%;
  max-width: 100%;
}

.coderr-how-we-work__lead {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.5rem 1.5rem 1.45rem;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--dark-gray);
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(0, 120, 215, 0.09) 0%, transparent 55%),
    linear-gradient(165deg, var(--white) 0%, var(--primary-pale) 45%, var(--lighter-color) 100%);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 14px;
  box-shadow:
    0 4px 24px rgba(0, 51, 102, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.coderr-how-we-work__lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-dark) 0%,
    var(--primary-color) 35%,
    #20b8e8 100%
  );
}

.coderr-how-we-work ol.coderr-how-we-work__steps {
  position: relative;
  z-index: 0;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
  counter-reset: how-we-work-step;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Вертикальная линия таймлайна (центр колонки номеров) */
.coderr-how-we-work ol.coderr-how-we-work__steps::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: calc(var(--hww-li-pl) + var(--hww-col) * 0.5 - 1.5px);
  top: calc(var(--hww-dot) * 0.5);
  bottom: calc(var(--hww-dot) * 0.45);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(0, 102, 204, 0.85) 0%,
    rgba(0, 102, 204, 0.35) 45%,
    rgba(32, 184, 232, 0.2) 100%
  );
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.15);
  pointer-events: none;
}

.contacts-page-content .coderr-how-we-work ol.coderr-how-we-work__steps > li,
.entry-content .coderr-how-we-work ol.coderr-how-we-work__steps > li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--hww-col) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.45rem;
  align-items: start;
  margin: 0;
  padding: 1.2rem 1.35rem 1.35rem var(--hww-li-pl);
  border: 1px solid rgba(0, 102, 204, 0.11);
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    #ffffff 0%,
    var(--lighter-color) 48%,
    rgba(230, 244, 255, 0.65) 100%
  );
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(0, 51, 102, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: visible;
  transform: translateZ(0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.28s ease;
}

.contacts-page-content .coderr-how-we-work ol.coderr-how-we-work__steps > li:hover,
.entry-content .coderr-how-we-work ol.coderr-how-we-work__steps > li:hover {
  border-color: rgba(0, 102, 204, 0.28);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 1) inset,
    0 16px 48px rgba(0, 102, 204, 0.11),
    0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

/* Круг с номером — в первой колонке сетки */
.coderr-how-we-work ol.coderr-how-we-work__steps > li::before {
  counter-increment: how-we-work-step;
  content: counter(how-we-work-step);
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  justify-self: center;
  width: var(--hww-dot);
  height: var(--hww-dot);
  margin-top: 0.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: conic-gradient(
    from 200deg at 50% 50%,
    #0a7fd4 0deg,
    var(--primary-color) 120deg,
    var(--primary-dark) 240deg,
    #0a7fd4 360deg
  );
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow:
    0 4px 16px rgba(0, 64, 128, 0.28),
    0 0 0 1px rgba(0, 102, 204, 0.2);
}

.coderr-how-we-work__step-title {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  padding-top: 0.1rem;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
}

.coderr-how-we-work__step-body {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin: 0;
  padding-bottom: 0.05rem;
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--dark-gray);
}

@media screen and (max-width: 600px) {
  .coderr-how-we-work {
    --hww-col: 2.85rem;
    --hww-dot: 2.45rem;
    --hww-li-pl: 0.35rem;
  }

  .coderr-how-we-work__lead {
    padding: 1.35rem 1rem 1.2rem;
    font-size: 1rem;
    margin-bottom: 1.65rem;
  }

  .coderr-how-we-work ol.coderr-how-we-work__steps {
    gap: 1.1rem;
  }

  .contacts-page-content .coderr-how-we-work ol.coderr-how-we-work__steps > li,
  .entry-content .coderr-how-we-work ol.coderr-how-we-work__steps > li {
    padding: 1rem 1rem 1.15rem 0.35rem;
    column-gap: 0.55rem;
    border-radius: 12px;
  }

  .coderr-how-we-work ol.coderr-how-we-work__steps > li::before {
    border-width: 3px;
  }

  .coderr-how-we-work__step-title {
    font-size: 1.05rem;
  }

  .coderr-how-we-work__step-body {
    font-size: 0.94rem;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contacts-page-content .coderr-how-we-work ol.coderr-how-we-work__steps > li:hover,
  .entry-content .coderr-how-we-work ol.coderr-how-we-work__steps > li:hover {
    transform: none;
  }
}

.entry-footer {
  /* margin-top: 30px; */
  padding-top: 20px;
  /* border-top: 2px solid var(--light-gray); */
}

.tags-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tags-links a {
  background: var(--bg-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: var(--transition);
}

.tags-links a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Post Navigation */
.post-navigation,
.posts-navigation {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 2px solid var(--light-gray);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous a,
.nav-next a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--dark-color);
}

.nav-previous a:hover,
.nav-next a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(-5px);
}

.nav-next a:hover {
  transform: translateX(5px);
}

.nav-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
}

/* Page Header */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary-color);
}

.page-title {
  color: var(--dark-color);
}

.archive-description {
  margin-top: 15px;
  color: var(--gray);
}

/* ===================================
   Sidebar
   =================================== */

.widget-area {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.widget-title {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-pale);
  color: var(--dark-color);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-primary);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--dark-color);
  transition: var(--transition);
}

.widget ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--white);
}

.footer-widgets {
  padding: 60px 0 40px;
}

.footer-widgets-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-widget-area .widget {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.footer-widget-area .widget-title {
  color: var(--white);
  border-color: var(--primary-color);
}

.footer-widget-area .widget ul li {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-widget-area .widget ul li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area .widget ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px 0;
  position: relative;
}

.footer-bottom .container {
  position: relative;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-col-logo .footer-logo {
  margin-bottom: 0;
}

.footer-col-logo .footer-logo img {
  max-width: var(--logo-max-width, 200px);
  max-height: var(--logo-max-height, 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.footer-col-logo .site-logo-text {
  display: inline-block;
  text-decoration: none;
}

.footer-col-logo .site-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}


.footer-col-logo .copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  margin-top: 15px;
}

.footer-developer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  width: 100%;
}

.footer-developer .footer-copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-developer .developer-info {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.footer-developer .developer-info a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  opacity: 0.12;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

.footer-developer .developer-info a:hover {
  opacity: 0.32;
  text-decoration: none;
}

.footer-developer .developer-info__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-developer .developer-info__brand {
  display: block;
  margin-top: 2px;
  font-size: 1.49rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

/* Заголовки колонок меню в подвале: скрыты визуально, разметка h3 сохранена (SEO/доступность). */
.footer-menu-heading {
  display: none;
}

.footer-col-menu .footer-menu {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}


.developer-info a {
  color: var(--white);
  opacity: 0.35;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

.developer-info a:hover {
  opacity: 0.55;
  text-decoration: underline;
}

.footer-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-menu li {
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  transition: var(--transition);
  display: block;
  padding: 2px 0;
}

.footer-menu a:hover {
  color: var(--white);
}

.footer-col-logo .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-contacts .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-contacts a:hover {
  color: var(--white);
}

/* ===================================
   404 Page
   =================================== */

.error-404-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
}

.error-404-icon {
  margin-bottom: 30px;
}

.error-404-icon svg {
  stroke: var(--primary-color);
}

.error-404-title {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.error-404-subtitle {
  font-size: 2rem;
  margin-bottom: 20px;
}

.error-404-text {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

.error-404-search {
  margin-bottom: 30px;
}

.error-404-actions {
  margin-bottom: 40px;
}

.error-404-links h3 {
  margin-bottom: 20px;
}

.error-404-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-404-links a {
  padding: 8px 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--dark-color);
}

.error-404-links a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ===================================
   Search Form
   =================================== */

.search-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

.search-field:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-submit {
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-submit:hover {
  background: var(--primary-dark);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .footer-bottom-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .footer-developer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-developer .developer-info {
    text-align: center;
  }

  .footer-developer .developer-info a {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .footer-bottom-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 15px 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-branding {
    flex: 1;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-navigation {
    order: 4;
    flex-basis: 100%;
    display: none;
  }

  .main-navigation.toggled {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    padding: 20px 0;
  }

  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
    flex: 1 1 100%;
  }

  .primary-menu .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .primary-menu .menu-item-has-children > a {
    flex: 1 1 auto;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--dark-color);
    cursor: pointer;
    border-radius: 4px;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible {
    background-color: var(--primary-pale);
    color: var(--primary-dark);
  }

  .submenu-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  .submenu-toggle-icon {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
  }

  .submenu-toggle[aria-expanded="true"] .submenu-toggle-icon {
    transform: rotate(225deg);
    margin-top: 2px;
  }

  .header-actions {
    order: 2;
  }

  .header-cta__phone {
    font-size: 13px;
  }

  .header-cta--with-phone {
    min-height: 44px;
    justify-content: center;
    padding: 4px 10px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

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

  .footer-widgets-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-developer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-developer .developer-info {
    text-align: center;
  }

  .footer-developer .developer-info a {
    align-items: center;
  }

  .footer-col-menu .footer-menu {
    align-items: center;
  }

  .footer-col-logo .footer-contacts {
    align-items: center;
  }


  .nav-links {
    flex-direction: column;
  }

  .error-404-title {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .site-title,
  .site-logo-text {
    font-size: 22px;
  }

  .site-description {
    font-size: 12px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .content-area {
    padding: 40px 0;
  }

  .post-card .post-content {
    padding: 20px;
  }

  .footer-right {
    align-items: center;
    width: 100%;
  }

  .footer-contacts {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .developer-info {
    text-align: center;
  }

  .error-404-title {
    font-size: 3rem;
  }

  .error-404-links ul {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===================================
   Consultation Form Modal
   =================================== */
.consultation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.consultation-modal.active {
  opacity: 1;
  visibility: visible;
}

.consultation-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.55);
  backdrop-filter: blur(4px);
}

.consultation-modal-content {
  position: relative;
  z-index: 100000;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--light-gray);
  animation: modalFadeIn 0.3s ease;
}

.consultation-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.consultation-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--light-gray);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
  z-index: 100001;
  border-radius: 50%;
}

.consultation-modal-close:hover,
.consultation-modal-close:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  outline: none;
}

.consultation-modal-close svg {
  width: 20px;
  height: 20px;
}

.consultation-modal-body {
  padding: 40px 32px 32px;
  position: relative;
  z-index: 2;
}

.consultation-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.25;
  text-transform: none;
}

.consultation-modal-lead {
  margin: 0 0 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray);
}

body.consultation-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .consultation-modal {
    padding: 8px;
    align-items: flex-end;
  }

  .consultation-modal-content {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
  }

  .consultation-modal-body {
    padding: 32px 20px 24px;
  }

  .consultation-modal-title {
    font-size: 1.5rem;
  }

  .consultation-modal-lead {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .consultation-modal-close {
    top: 12px;
    right: 12px;
  }
}

/* ===================================
   Privacy Checkbox + Contact Form 7
   =================================== */
.consultation-modal-body .wpcf7,
.consultation-modal-body .wpcf7-form {
  width: 100%;
}

.consultation-modal-body .contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultation-modal-body .contact-form > p,
.consultation-modal-body .wpcf7-form > p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultation-modal-body .contact-form br,
.consultation-modal-body .wpcf7-form label > br {
  display: none;
}

.consultation-modal-body .wpcf7-form p:has(input[name*="subject"]),
.consultation-modal-body .wpcf7-form p:has(input[name*="тема"]) {
  display: none !important;
}

.consultation-modal-body .wpcf7-form label,
.consultation-modal-body .contact-form > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--dark-color);
}

.consultation-modal-body .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.consultation-modal-body .wpcf7-form input[type="text"],
.consultation-modal-body .wpcf7-form input[type="email"],
.consultation-modal-body .wpcf7-form input[type="tel"],
.consultation-modal-body .wpcf7-form input[type="url"],
.consultation-modal-body .wpcf7-form select,
.consultation-modal-body .wpcf7-form textarea,
.consultation-modal-body .contact-form input[type="text"],
.consultation-modal-body .contact-form input[type="email"],
.consultation-modal-body .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-color);
  background-color: var(--bg-secondary);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
  margin: 0;
}

.consultation-modal-body .wpcf7-form input[type="text"]:hover,
.consultation-modal-body .wpcf7-form input[type="email"]:hover,
.consultation-modal-body .wpcf7-form input[type="tel"]:hover,
.consultation-modal-body .wpcf7-form textarea:hover,
.consultation-modal-body .contact-form input[type="text"]:hover,
.consultation-modal-body .contact-form input[type="email"]:hover,
.consultation-modal-body .contact-form textarea:hover {
  border-color: var(--primary-color);
  background-color: var(--white);
}

.consultation-modal-body .wpcf7-form input[type="text"]:focus,
.consultation-modal-body .wpcf7-form input[type="email"]:focus,
.consultation-modal-body .wpcf7-form input[type="tel"]:focus,
.consultation-modal-body .wpcf7-form textarea:focus,
.consultation-modal-body .contact-form input[type="text"]:focus,
.consultation-modal-body .contact-form input[type="email"]:focus,
.consultation-modal-body .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--primary-pale);
}

.consultation-modal-body .wpcf7-form textarea,
.consultation-modal-body .wpcf7-form .wpcf7-form-control.wpcf7-textarea {
  min-height: 64px;
  height: 100px;
  max-height: 140px;
  resize: vertical;
}

.consultation-modal-body .privacy-checkbox,
.privacy-checkbox {
  margin: 0;
  padding: 12px 16px;
  background: var(--primary-pale);
  border-radius: var(--border-radius);
  font-size: 13px;
  line-height: 1.45;
}

.consultation-modal-body .privacy-checkbox p {
  margin: 0;
  display: block;
}

.consultation-modal-body .privacy-checkbox .wpcf7-acceptance,
.consultation-modal-body .privacy-checkbox .wpcf7-list-item,
.consultation-modal-body .privacy-checkbox .wpcf7-list-item label,
.privacy-checkbox .wpcf7-list-item,
.privacy-checkbox label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-weight: 400;
  color: var(--dark-gray);
  cursor: pointer;
}

.consultation-modal-body .privacy-checkbox .wpcf7-list-item-label,
.privacy-checkbox .wpcf7-list-item-label {
  display: inline;
  white-space: normal;
  font-weight: 400;
}

.consultation-modal-body .wpcf7-form input[type="checkbox"],
.privacy-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.privacy-checkbox a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.privacy-checkbox a:hover,
.privacy-checkbox a:focus-visible {
  color: var(--primary-dark);
}

.consultation-modal-body .wpcf7-form input[type="submit"],
.consultation-modal-body .wpcf7-form .wpcf7-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  box-shadow: var(--shadow);
}

.consultation-modal-body .wpcf7-form input[type="submit"]:hover,
.consultation-modal-body .wpcf7-form .wpcf7-submit:hover {
  background: var(--primary-dark);
}

.consultation-modal-body .wpcf7-form input[type="submit"]:focus-visible,
.consultation-modal-body .wpcf7-form .wpcf7-submit:focus-visible {
  outline: 3px solid var(--primary-pale);
  outline-offset: 2px;
}

.consultation-modal-body .wpcf7-form input[type="submit"]:disabled,
.consultation-modal-body .wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--secondary-color);
  box-shadow: none;
}

.consultation-modal-body .wpcf7-not-valid-tip {
  color: var(--accent-red);
  font-size: 13px;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

.consultation-modal-body .wpcf7-form-control-wrap.wpcf7-not-valid input,
.consultation-modal-body .wpcf7-form-control-wrap.wpcf7-not-valid textarea {
  border-color: var(--accent-red);
  background-color: var(--accent-red-pale);
}

.consultation-modal-body .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.consultation-modal-body .wpcf7-form.init .wpcf7-response-output,
.consultation-modal-body .wpcf7-form.resetting .wpcf7-response-output,
.consultation-modal-body .wpcf7-form.submitting .wpcf7-response-output {
  display: none;
}

.consultation-modal-body .wpcf7-form.sent .wpcf7-response-output {
  background-color: #E8F5E9;
  border-color: #4CAF50;
  color: #2E7D32;
}

.consultation-modal-body .wpcf7-form.failed .wpcf7-response-output,
.consultation-modal-body .wpcf7-form.aborted .wpcf7-response-output {
  background-color: var(--accent-red-pale);
  border-color: var(--accent-red);
  color: var(--accent-red-dark);
}

.consultation-modal-body .wpcf7-form.invalid .wpcf7-response-output,
.consultation-modal-body .wpcf7-form.unaccepted .wpcf7-response-output,
.consultation-modal-body .wpcf7-form.spam .wpcf7-response-output {
  background-color: #FFF3E0;
  border-color: #FF9800;
  color: #E65100;
}

.consultation-modal-body .wpcf7-spinner {
  background-color: var(--accent-red);
  width: 20px;
  height: 20px;
  margin: 0 0 0 12px;
  border-radius: 50%;
}

.consultation-modal-body .wpcf7-form input::placeholder,
.consultation-modal-body .wpcf7-form textarea::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .consultation-modal-body .wpcf7-form input[type="text"],
  .consultation-modal-body .wpcf7-form input[type="email"],
  .consultation-modal-body .wpcf7-form input[type="tel"],
  .consultation-modal-body .wpcf7-form textarea {
    font-size: 16px;
  }
}

/* ===================================
   Страница «Доставка» — инфографика (корень: .delivery-infographic-section; работает без внешней обёртки)
   Специфичность с .contacts-page-content — файл page-banners.css подключается после main.css
   =================================== */

.contacts-page-content .delivery-infographic-section,
.delivery-infographic-section {
  margin-bottom: 2.5rem;
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__title,
.delivery-infographic-section .delivery-infographic__title {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.3;
  color: var(--primary-dark);
  text-align: center;
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__lead,
.delivery-infographic-section .delivery-infographic__lead {
  margin: 0 auto 32px;
  max-width: 36rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--dark-gray);
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__steps,
.delivery-infographic-section .delivery-infographic__steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
}

@media screen and (min-width: 900px) {
  .contacts-page-content .delivery-infographic-section .delivery-infographic__steps,
  .delivery-infographic-section .delivery-infographic__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
  }

  .contacts-page-content .delivery-infographic-section .delivery-infographic__step,
  .delivery-infographic-section .delivery-infographic__step {
    position: relative;
  }

  .contacts-page-content .delivery-infographic-section .delivery-infographic__step:not(:last-child)::after,
  .delivery-infographic-section .delivery-infographic__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.25rem;
    right: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(0, 102, 204, 0.25) 0%,
      rgba(0, 102, 204, 0.55) 100%
    );
    transform: translateX(50%);
    z-index: 0;
    pointer-events: none;
  }

  .contacts-page-content .delivery-infographic-section .delivery-infographic__step:nth-child(2)::after,
  .delivery-infographic-section .delivery-infographic__step:nth-child(2)::after {
    background: linear-gradient(
      90deg,
      rgba(0, 102, 204, 0.35) 0%,
      rgba(0, 102, 204, 0.55) 100%
    );
  }
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__step,
.delivery-infographic-section .delivery-infographic__step {
  margin: 0;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  box-shadow:
    0 2px 12px rgba(0, 51, 102, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__step:hover,
.delivery-infographic-section .delivery-infographic__step:hover {
  border-color: rgba(0, 102, 204, 0.22);
  box-shadow:
    0 8px 28px rgba(0, 102, 204, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__icon-wrap,
.delivery-infographic-section .delivery-infographic__icon-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-pale);
  border: 2px solid rgba(0, 102, 204, 0.2);
  border-radius: 50%;
  color: var(--primary-color);
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__icon-wrap .fa-solid,
.delivery-infographic-section .delivery-infographic__icon-wrap .fa-solid {
  font-size: 1.85rem;
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__step-num,
.delivery-infographic-section .delivery-infographic__step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1.65rem;
  height: 1.65rem;
  line-height: 1.65rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 64, 128, 0.25);
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__step-title,
.delivery-infographic-section .delivery-infographic__step-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
}

.contacts-page-content .delivery-infographic-section .delivery-infographic__step-text,
.delivery-infographic-section .delivery-infographic__step-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dark-gray);
}

.dostavka-kontent-html {
  margin-bottom: 2rem;
}

/* Условия доставки — текстовый блок под инфографикой */
.contacts-page-content .delivery-terms,
.delivery-terms {
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding: 26px 28px;
  border-radius: 2px;
  border: 1px dashed rgba(0, 102, 204, 0.35);
  background: linear-gradient(
    165deg,
    var(--primary-pale) 0%,
    var(--lighter-color) 55%,
    var(--white) 100%
  );
  box-shadow: 0 2px 14px rgba(0, 51, 102, 0.06);
}

.contacts-page-content .delivery-terms__title,
.delivery-terms__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid rgba(0, 102, 204, 0.2);
}

.contacts-page-content .delivery-terms__list,
.delivery-terms__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.contacts-page-content .delivery-terms__list li,
.delivery-terms__list li {
  position: relative;
  margin: 0 0 14px;
  padding: 12px 14px 12px 42px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--dark-color);
  background: var(--white);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.contacts-page-content .delivery-terms__list li:last-child,
.delivery-terms__list li:last-child {
  margin-bottom: 0;
}

.contacts-page-content .delivery-terms__list li::before,
.delivery-terms__list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.contacts-page-content .delivery-terms__note,
.delivery-terms__note {
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-gray);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  border-left: 4px solid var(--primary-color);
}

.contacts-page-content .delivery-terms__footer,
.delivery-terms__footer {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dark-gray);
  background: var(--white);
  border-radius: 2px;
  border: 1px solid rgba(0, 102, 204, 0.12);
}

.contacts-page-content .delivery-terms__footer .fa-solid,
.delivery-terms__footer .fa-solid {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1.05rem;
  vertical-align: -0.06em;
}

/* ===================================
   Страница «Оплата» — индивидуальная вёрстка (токены темы)
   =================================== */

.oplata-kontent-html {
  margin-bottom: 1rem;
}

/* Вводной блок */
.contacts-page-content .oplata-hero,
.oplata-hero {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border-radius: 2px;
  background: linear-gradient(
    120deg,
    var(--primary-pale) 0%,
    var(--lighter-color) 48%,
    var(--white) 100%
  );
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.07);
}

.oplata-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0, 102, 204, 0.65) 100%);
}

.contacts-page-content .oplata-hero__label,
.oplata-hero__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.contacts-page-content .oplata-hero__lead,
.oplata-hero__lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--dark-gray);
}

/* Секции */
.contacts-page-content .oplata-block,
.oplata-block {
  margin-bottom: 2.5rem;
}

.contacts-page-content .oplata-block__intro,
.oplata-block__intro {
  margin-bottom: 1.35rem;
}

.contacts-page-content .oplata-block__title,
.oplata-block__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

.oplata-block__title-mark {
  flex-shrink: 0;
  display: inline-block;
  width: 6px;
  height: 1.45em;
  border-radius: 1px;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

/* Карточки способов оплаты — горизонтальные с номером */
.oplata-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.oplata-pay-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0 1.15rem;
  align-items: center;
  margin: 0;
  padding: 1.25rem 1.15rem 1.25rem 1.05rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  box-shadow:
    0 2px 10px rgba(0, 51, 102, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.oplata-pay-card:hover {
  background: linear-gradient(
    125deg,
    rgba(0, 102, 204, 0.09) 0%,
    var(--primary-pale) 42%,
    rgba(255, 255, 255, 0.95) 100%
  );
  border-color: rgba(0, 102, 204, 0.42);
  box-shadow:
    0 10px 32px rgba(0, 102, 204, 0.14),
    0 0 0 1px rgba(0, 102, 204, 0.08);
}

.oplata-pay-card__badge {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 1.85rem;
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(0, 102, 204, 0.45);
  line-height: 1;
  text-align: center;
}

.oplata-pay-card__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  color: var(--primary-color);
  background: var(--white);
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.oplata-pay-card__icon .fa-solid {
  font-size: 2.35rem;
}

.oplata-pay-card:hover .oplata-pay-card__badge {
  color: var(--primary-color);
}

.oplata-pay-card:hover .oplata-pay-card__icon {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 102, 204, 0.45);
  color: var(--primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 10px rgba(0, 102, 204, 0.12);
}

.oplata-pay-card__content {
  grid-column: 3;
  align-self: center;
  min-width: 0;
}

.contacts-page-content .oplata-pay-card__title,
.oplata-pay-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
}

.contacts-page-content .oplata-pay-card__text,
.oplata-pay-card__text {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--dark-gray);
}

@media screen and (max-width: 600px) {
  .oplata-pay-card {
    grid-template-columns: 6.25rem 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .oplata-pay-card__badge {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.2rem;
    justify-self: center;
    align-self: start;
  }

  .oplata-pay-card__icon {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    width: 5.5rem;
    height: 5.5rem;
    margin-top: 0.25rem;
  }

  .oplata-pay-card__icon .fa-solid {
    font-size: 2.35rem;
  }

  .oplata-pay-card__content {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Гарантии — заголовок + три карточки в одну строку (на широком экране) */
.contacts-page-content .oplata-guarantees-wrap,
.oplata-guarantees-wrap {
  margin-bottom: 2rem;
}

.contacts-page-content .oplata-guarantees__title,
.oplata-guarantees__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1.25rem;
  padding: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(0, 102, 204, 0.18);
}

.contacts-page-content .oplata-guarantees__list,
.oplata-guarantees__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.oplata-guarantee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1.1rem 0.85rem 1.15rem;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  box-shadow:
    0 2px 10px rgba(0, 51, 102, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.oplata-guarantee-card:hover {
  border-color: rgba(0, 102, 204, 0.24);
  box-shadow: 0 6px 22px rgba(0, 102, 204, 0.1);
}

.contacts-page-content .oplata-guarantee-card__icon,
.oplata-guarantee-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.85rem;
  height: 3.85rem;
  color: var(--primary-color);
  background: var(--white);
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 204, 0.2);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.07);
}

.oplata-guarantee-card__icon .fa-solid {
  font-size: 1.55rem;
}

.contacts-page-content .oplata-guarantee-card__text,
.oplata-guarantee-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--dark-color);
}

@media screen and (max-width: 900px) {
  .contacts-page-content .oplata-guarantees__list,
  .oplata-guarantees__list {
    grid-template-columns: 1fr;
  }

  .oplata-guarantee-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 1.1rem 1.2rem;
    gap: 1rem;
  }

  .contacts-page-content .oplata-guarantee-card__text,
  .oplata-guarantee-card__text {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}

/* Личный кабинет и контакты — ниже гарантий, две одинаковые строки с круглыми иконками */
.contacts-page-content .oplata-support-blocks,
.oplata-support-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.contacts-page-content .oplata-info-line,
.oplata-info-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  box-shadow:
    0 2px 10px rgba(0, 51, 102, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.contacts-page-content .oplata-info-line__icon,
.oplata-info-line__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.85rem;
  height: 3.85rem;
  color: var(--primary-color);
  background: var(--white);
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 204, 0.2);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.07);
}

.oplata-info-line__icon .fa-solid {
  font-size: 1.55rem;
}

.contacts-page-content .oplata-info-line__text,
.oplata-info-line__text {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dark-gray);
}

/* ===================================
   Страница «Покупателям» — хаб для заказчиков
   Вставка: _DOCS/CODERR/POKUPATELYAM_KONTENT.html
   =================================== */

.pokupatelyam-kontent-html {
  margin-bottom: 1rem;
}

.contacts-page-content .buyers-hero,
.buyers-hero {
  position: relative;
  margin: 0 0 2.25rem;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border-radius: 2px;
  background: linear-gradient(
    120deg,
    var(--primary-pale) 0%,
    var(--lighter-color) 48%,
    var(--white) 100%
  );
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.07);
}

.buyers-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0, 102, 204, 0.65) 100%);
}

.contacts-page-content .buyers-hero__label,
.buyers-hero__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.contacts-page-content .buyers-hero__lead,
.buyers-hero__lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--dark-gray);
}

.contacts-page-content .buyers-section-title,
.buyers-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

.buyers-quick-nav {
  margin-bottom: 2.5rem;
}

.buyers-quick-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.buyers-quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  min-height: 44px;
  padding: 1rem 1rem 1rem 0.95rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  box-shadow:
    0 2px 10px rgba(0, 51, 102, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.buyers-quick-card:hover {
  background: linear-gradient(
    125deg,
    rgba(0, 102, 204, 0.09) 0%,
    var(--primary-pale) 42%,
    rgba(255, 255, 255, 0.95) 100%
  );
  border-color: rgba(0, 102, 204, 0.38);
  box-shadow:
    0 10px 28px rgba(0, 102, 204, 0.12),
    0 0 0 1px rgba(0, 102, 204, 0.06);
}

.buyers-quick-card:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.buyers-quick-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--primary-color);
  background: var(--white);
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 2px;
}

.buyers-quick-card__icon .fa-solid {
  font-size: 1.35rem;
}

.buyers-quick-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.buyers-quick-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.buyers-quick-card__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dark-gray);
  opacity: 0.92;
}

.buyers-quick-card__arrow {
  flex-shrink: 0;
  color: rgba(0, 102, 204, 0.45);
  font-size: 0.85rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.buyers-quick-card:hover .buyers-quick-card__arrow {
  color: var(--primary-color);
  transform: translateX(3px);
}

.buyers-values {
  margin-bottom: 2.5rem;
}

.buyers-values__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.buyers-value-card {
  margin: 0;
  padding: 1.2rem 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.05);
}

.buyers-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  background: rgba(0, 102, 204, 0.08);
  border-radius: 2px;
}

.buyers-value-card__icon .fa-solid {
  font-size: 1.2rem;
}

.contacts-page-content .buyers-value-card__title,
.buyers-value-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.contacts-page-content .buyers-value-card__text,
.buyers-value-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--dark-gray);
}

.buyers-b2b {
  margin-bottom: 2rem;
}

.buyers-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.buyers-checklist li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 2.35rem;
  background: var(--lighter-color);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 2px;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--dark-gray);
}

.buyers-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0.85rem;
  top: 0.82rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.buyers-support-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contacts-page-content .pokupatelyam-kontent-html .oplata-info-line__text a,
.pokupatelyam-kontent-html .oplata-info-line__text a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contacts-page-content .pokupatelyam-kontent-html .oplata-info-line__text a:hover,
.pokupatelyam-kontent-html .oplata-info-line__text a:hover {
  color: var(--primary-dark);
}

@media screen and (max-width: 900px) {
  .buyers-quick-nav__list {
    grid-template-columns: 1fr;
  }

  .buyers-values__grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Страница «Проектирование» (slug: proektirovanie)
   Вставка: _DOCS/CODERR/PROEKTIROVANIE_KONTENT.html
   =================================== */

.proektirovanie-kontent-html {
  margin-bottom: 1rem;
}

.contacts-page-content .proektirovanie-kontent-html .buyers-section-title,
.proektirovanie-kontent-html .buyers-section-title {
  margin-top: 0;
}

.design-page-section {
  margin: 0 0 2.5rem;
}

.design-page-section:last-of-type {
  margin-bottom: 1.5rem;
}

.design-page-lead {
  margin: -0.5rem 0 1.5rem;
  max-width: 48rem;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--dark-gray);
}

/* Сетка компетенций */
.design-page-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.design-page-cap-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 1.1rem 1.1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: 2px;
  box-shadow:
    0 2px 10px rgba(0, 51, 102, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.design-page-cap-card:hover {
  border-color: rgba(0, 102, 204, 0.28);
  box-shadow:
    0 8px 22px rgba(0, 102, 204, 0.1),
    0 0 0 1px rgba(0, 102, 204, 0.06);
}

.design-page-cap-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  color: var(--primary-color);
  background: rgba(0, 102, 204, 0.09);
}

.design-page-cap-card__icon .fa-solid {
  font-size: 1.1rem;
}

.design-page-cap-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

.design-page-cap-card__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--dark-gray);
}

/* Состав документации */
.design-page-deliver {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.design-page-deliver li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 2.45rem;
  background: var(--lighter-color);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 2px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--dark-gray);
}

.design-page-deliver li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary-color), rgba(204, 51, 0, 0.85));
}

/* Этапы проектирования */
.design-page-process {
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--primary-pale) 0%, var(--white) 55%, var(--lighter-color) 100%);
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
}

.design-page-process__lead {
  margin: 0 0 1.35rem;
  max-width: 44rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--dark-gray);
}

.design-page-process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.design-page-process__step {
  margin: 0;
  padding: 1rem 0.85rem 1.05rem;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 2px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.design-page-process__step:hover {
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.1);
  transform: translateY(-2px);
}

.design-page-process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), rgba(204, 51, 0, 0.92));
  border-radius: 2px;
}

.design-page-process__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

.design-page-process__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--dark-gray);
}

/* Полоса показателей */
.design-page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.design-page-stat {
  margin: 0;
  padding: 1.15rem 0.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(0, 102, 204, 0.11);
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.05);
}

.design-page-stat__num {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-primary, linear-gradient(135deg, #cc3300, #ff6633));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.design-page-stat__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
}

/* CTA */
.design-page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.25rem 1.2rem;
  border-radius: 2px;
  background: var(--lighter-color);
  border: 1px dashed rgba(0, 102, 204, 0.22);
}

.design-page-cta__label {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary-dark);
}

.design-page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.design-page-cta__actions .btn {
  text-decoration: none;
}

@media screen and (max-width: 1024px) {
  .design-page-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 560px) {
  .design-page-cap-grid {
    grid-template-columns: 1fr;
  }

  .design-page-process__steps {
    grid-template-columns: 1fr;
  }

  .design-page-stats {
    grid-template-columns: 1fr;
  }

  .design-page-cta__actions {
    width: 100%;
  }

  .design-page-cta__actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ===================================
   Страница «Обратная связь» — отдельная вёрстка (не «Оплата»)
   =================================== */

.feedback-page-html {
  margin: 0 0 2rem;
}

.contacts-page-content .feedback-page-html__hero,
.feedback-page-html__hero {
  position: relative;
  margin: 0 0 2.25rem;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(1200px 400px at 100% 0%, rgba(0, 102, 204, 0.35) 0%, transparent 55%),
    linear-gradient(155deg, var(--primary-dark) 0%, #0c1929 52%, #060d16 100%);
  border: 1px solid rgba(0, 102, 204, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 20, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feedback-page-html__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 28px 28px;
}

.contacts-page-content .feedback-page-html__hero-eyebrow,
.feedback-page-html__hero-eyebrow {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.95);
}

.contacts-page-content .feedback-page-html__hero-body,
.feedback-page-html__hero-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 48rem;
}

.contacts-page-content .feedback-page-html__hero-lead,
.feedback-page-html__hero-lead {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: rgba(248, 250, 252, 0.94);
}

.contacts-page-content .feedback-page-html__section,
.feedback-page-html__section {
  margin: 0 0 2rem;
}

.contacts-page-content .feedback-page-html__section-title,
.feedback-page-html__section-title {
  margin: 0 0 1.15rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary-dark);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(0, 102, 204, 0.2);
}

.contacts-page-content .feedback-page-html__reason-grid,
.feedback-page-html__reason-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.contacts-page-content .feedback-page-html__reason-tile,
.feedback-page-html__reason-tile {
  margin: 0;
  padding: 1.2rem 1.1rem 1.25rem;
  background: var(--white);
  border-radius: 4px;
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 2px 14px rgba(0, 51, 102, 0.07);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.feedback-page-html__reason-tile:hover {
  border-color: rgba(0, 102, 204, 0.28);
  box-shadow: 0 10px 28px rgba(0, 102, 204, 0.12);
  transform: translateY(-2px);
}

.contacts-page-content .feedback-page-html__reason-icon,
.feedback-page-html__reason-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  background: rgba(0, 102, 204, 0.08);
  border-radius: 4px;
  font-size: 1.2rem;
}

.contacts-page-content .feedback-page-html__reason-title,
.feedback-page-html__reason-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary-dark);
}

.contacts-page-content .feedback-page-html__sla,
.feedback-page-html__sla {
  margin: 0 0 2rem;
  padding: 0.95rem 1.2rem;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--primary-dark);
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.02) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.contacts-page-content .feedback-page-html__contacts-inner,
.feedback-page-html__contacts-inner {
  margin: 0;
}

.contacts-page-content .feedback-page-html__contact-cards,
.feedback-page-html__contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contacts-page-content .feedback-page-html__contact-card,
.feedback-page-html__contact-card {
  margin: 0;
  padding: 1.25rem 1rem 1.3rem;
  text-align: center;
  background: var(--bg-card, var(--lighter-color));
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.05);
}

.contacts-page-content .feedback-page-html__contact-icon,
.feedback-page-html__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.65rem;
  color: var(--primary-color);
  background: var(--white);
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 204, 0.18);
  font-size: 1.25rem;
}

.contacts-page-content .feedback-page-html__contact-label,
.feedback-page-html__contact-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray, #64748b);
}

.contacts-page-content .feedback-page-html__contact-value,
.feedback-page-html__contact-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary-dark);
  word-break: break-word;
}

.contacts-page-content .feedback-page-html__form-hint,
.feedback-page-html__form-hint {
  margin: 0;
  padding: 1.15rem 1.2rem;
  font-size: 0.96rem;
  line-height: 1.66;
  color: var(--dark-gray);
  background: transparent;
  border: 1px dashed rgba(0, 102, 204, 0.35);
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .contacts-page-content .feedback-page-html__reason-grid,
  .feedback-page-html__reason-grid {
    grid-template-columns: 1fr;
  }

  .contacts-page-content .feedback-page-html__contact-cards,
  .feedback-page-html__contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Комментарии (страницы и статьи базы знаний)
   =================================== */

.coderr-comments {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 102, 204, 0.15);
}

.coderr-comments__title {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.coderr-comments__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coderr-comments__list .comment-body {
  position: relative;
}

.coderr-comments__list .comment {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.05);
}

.coderr-comments__list .comment .children {
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--primary-pale);
}

.coderr-comments__list .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.coderr-comments__list .comment-author .fn,
.coderr-comments__list .comment-author a.url {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-dark);
}

.coderr-comments__list .comment-content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-color);
}

.coderr-comments__list .comment-content p:last-child {
  margin-bottom: 0;
}

.coderr-comments__list .reply {
  margin-top: 0.75rem;
}

.coderr-comments__list .reply .comment-reply-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  border: 1px solid rgba(0, 102, 204, 0.35);
  border-radius: 2px;
  text-decoration: none;
  transition: var(--transition);
}

.coderr-comments__list .reply .comment-reply-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.coderr-comments__nav-label {
  font-weight: 600;
}

.coderr-comments .comment-navigation,
.coderr-comments .comments-pagination {
  margin: 0 0 1.75rem;
}

.coderr-comments .comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.coderr-comments .comment-navigation a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.coderr-comments .comment-navigation a:hover {
  text-decoration: underline;
}

.coderr-comments__closed {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--secondary-light);
  color: var(--dark-gray);
}

.coderr-comments__reply-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--primary-dark);
}

.coderr-comments__cancel {
  margin-bottom: 1rem;
}

.coderr-comments__cancel #cancel-comment-reply-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
}

.coderr-comments__cancel #cancel-comment-reply-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.coderr-comments__form {
  margin: 0;
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--bg-accent);
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.06);
}

.coderr-comments__form .logged-in-as {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.coderr-comments__form .logged-in-as a {
  color: var(--primary-color);
}

.coderr-comments__field {
  margin: 0 0 1rem;
}

.coderr-comments__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.coderr-comments__form input[type='text'],
.coderr-comments__form input[type='email'],
.coderr-comments__form input[type='url'] {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--light-gray);
  border-radius: 2px;
  background: var(--white);
  color: var(--dark-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coderr-comments__form input[type='text']:focus,
.coderr-comments__form input[type='email']:focus,
.coderr-comments__form input[type='url']:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

.coderr-comments__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 140px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  line-height: 1.6;
  font-family: inherit;
  border: 1px solid var(--light-gray);
  border-radius: 2px;
  background: var(--white);
  color: var(--dark-color);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coderr-comments__textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

.coderr-comments__submit-wrap {
  margin: 0;
  padding-top: 0.35rem;
}

.coderr-comments__submit,
.coderr-comments__form input.coderr-comments__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.85rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.coderr-comments__submit:hover,
.coderr-comments__form input.coderr-comments__submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 64, 128, 0.35);
}

.coderr-comments__submit:active,
.coderr-comments__form input.coderr-comments__submit:active {
  transform: translateY(1px);
}

.coderr-comments__form .comment-notes,
.coderr-comments__form .form-allowed-tags {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.coderr-comments__form .comment-form-cookies-consent label {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

@media screen and (max-width: 600px) {
  .coderr-comments {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
  }

  .coderr-comments__title {
    font-size: 1.45rem;
  }

  .coderr-comments__form {
    padding: 1.2rem 1rem 1.35rem;
  }

  .coderr-comments__submit,
  .coderr-comments__form input.coderr-comments__submit {
    width: 100%;
  }
}

/* ===================================
   Страница «FAQ» — аккордеон и CTA (токены темы)
   Вставка: _DOCS/CODERR/FAQ_KONTENT.html
   =================================== */

.faq-kontent-html {
  margin-bottom: 1rem;
}

.contacts-page-content .faq-hero,
.faq-hero {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border-radius: 2px;
  background: linear-gradient(
    120deg,
    var(--primary-pale) 0%,
    var(--lighter-color) 48%,
    var(--white) 100%
  );
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.07);
}

.faq-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0, 102, 204, 0.65) 100%);
}

.contacts-page-content .faq-hero__label,
.faq-hero__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.contacts-page-content .faq-hero__lead,
.faq-hero__lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--dark-gray);
}

.contacts-page-content .faq-section,
.faq-section {
  margin-bottom: 2.5rem;
}

.contacts-page-content .faq-section__intro,
.faq-section__intro {
  margin-bottom: 1.25rem;
}

.contacts-page-content .faq-section__title,
.faq-section__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--primary-dark);
}

.faq-section__title-mark {
  flex-shrink: 0;
  display: inline-block;
  width: 6px;
  height: 1.35em;
  border-radius: 1px;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Аккордеон: native details для доступности и без JS */
.contacts-page-content .faq-item,
.faq-item {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 2px;
  background: var(--bg-card);
  box-shadow:
    0 2px 10px rgba(0, 51, 102, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contacts-page-content .faq-item[open],
.faq-item[open] {
  border-color: rgba(0, 102, 204, 0.35);
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.98) 0%,
    var(--primary-pale) 55%,
    rgba(255, 255, 255, 0.96) 100%
  );
  box-shadow:
    0 8px 28px rgba(0, 51, 102, 0.1),
    0 0 0 1px rgba(0, 102, 204, 0.08);
}

.contacts-page-content .faq-item__summary,
.faq-item__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 0.85rem;
  padding: 1rem 1rem 1rem 1.05rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--primary-dark);
}

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

.faq-item__summary::marker {
  content: '';
}

.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: var(--primary-color);
  background: var(--white);
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 2px;
  font-size: 1.05rem;
}

.faq-item[open] .faq-item__icon {
  background: rgba(0, 102, 204, 0.08);
  border-color: rgba(0, 102, 204, 0.35);
}

.faq-item__q {
  min-width: 0;
}

.faq-item__chevron {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border-radius: 2px;
  background: rgba(0, 102, 204, 0.07);
  position: relative;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item__chevron::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin: -0.32rem 0 0 -0.22rem;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__chevron {
  background: rgba(0, 102, 204, 0.14);
}

.faq-item[open] .faq-item__chevron::after {
  margin-top: -0.18rem;
  transform: rotate(-135deg);
}

.contacts-page-content .faq-item__answer,
.faq-item__answer {
  padding: 0 1rem 1.15rem 4.05rem;
  border-top: 1px solid rgba(0, 102, 204, 0.1);
  margin-top: -2px;
}

.contacts-page-content .faq-item__answer p,
.faq-item__answer p {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--dark-gray);
  font-weight: 400;
}

.contacts-page-content .faq-item__answer p:first-child,
.faq-item__answer p:first-child {
  margin-top: 0.75rem;
}

@media screen and (max-width: 600px) {
  .faq-item__summary {
    grid-template-columns: auto 1fr auto;
    padding: 0.85rem 0.75rem;
    gap: 0 0.65rem;
    font-size: 0.95rem;
  }

  .faq-item__answer {
    padding-left: 0.85rem;
    padding-right: 0.75rem;
  }

  .faq-item__icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.95rem;
  }
}

/* Нижний призыв */
.contacts-page-content .faq-cta,
.faq-cta {
  margin: 2.5rem 0 0.5rem;
  padding: 0;
}

.faq-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem 1.5rem 1.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a4d8c 50%, var(--secondary-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 40, 80, 0.28);
}

.faq-cta__text {
  flex: 1 1 16rem;
  min-width: 0;
}

.contacts-page-content .faq-cta__title,
.faq-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.contacts-page-content .faq-cta__lead,
.faq-cta__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-cta__btn--primary {
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.faq-cta__btn--primary:hover {
  background: var(--lighter-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.faq-cta__btn--ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.faq-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

/* ===================================
   Страница «Услуги» — таблица (карточка)
   Разметка: _DOCS/USLUGI_KONTENT.html
   =================================== */

.uslugi-kontent-html {
  margin-bottom: 1rem;
}

.contacts-page-content .uslugi-kontent-html .faq-hero,
.uslugi-kontent-html .faq-hero {
  margin-bottom: 1.25rem;
}

.contacts-page-content .uslugi-kontent-html .faq-hero__lead,
.uslugi-kontent-html .faq-hero__lead {
  margin: 0;
}

.contacts-page-content .uslugi-table-wrap,
.uslugi-table-wrap {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(0, 102, 204, 0.16);
  background: var(--bg-card);
  box-shadow:
    0 4px 24px rgba(0, 51, 102, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.contacts-page-content .uslugi-services-table,
.uslugi-services-table {
  width: 100%;
  min-width: 420px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.contacts-page-content .uslugi-services-table thead th,
.uslugi-services-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(145deg, var(--primary-dark) 0%, #085a9e 42%, #063d6b 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.contacts-page-content .uslugi-services-table thead th:first-child,
.uslugi-services-table thead th:first-child {
  border-top-left-radius: 11px;
}

.contacts-page-content .uslugi-services-table thead th:last-child,
.uslugi-services-table thead th:last-child {
  border-top-right-radius: 11px;
}

.contacts-page-content .uslugi-services-table tbody td,
.uslugi-services-table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: top;
  color: var(--dark-gray);
  border-bottom: 1px solid rgba(0, 102, 204, 0.09);
  transition: background-color 0.18s ease;
}

.contacts-page-content .uslugi-services-table tbody tr:last-child td,
.uslugi-services-table tbody tr:last-child td {
  border-bottom: none;
}

.contacts-page-content .uslugi-services-table tbody tr:last-child td:first-child,
.uslugi-services-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 11px;
}

.contacts-page-content .uslugi-services-table tbody tr:last-child td:last-child,
.uslugi-services-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 11px;
}

.contacts-page-content .uslugi-services-table tbody tr:nth-child(even),
.uslugi-services-table tbody tr:nth-child(even) {
  background: rgba(0, 102, 204, 0.045);
}

.contacts-page-content .uslugi-services-table tbody tr:hover,
.uslugi-services-table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0%,
    var(--primary-pale) 38%,
    rgba(230, 242, 255, 0.65) 100%
  );
}

.contacts-page-content .uslugi-services-table__name,
.uslugi-services-table__name {
  font-weight: 600;
  color: var(--primary-dark);
  width: 38%;
  border-right: 1px solid rgba(0, 102, 204, 0.08);
}

.contacts-page-content .uslugi-kontent-html__footer,
.uslugi-kontent-html__footer {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark-gray);
}

.contacts-page-content .uslugi-kontent-html__footer a,
.uslugi-kontent-html__footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-page-content .uslugi-kontent-html__footer a:hover,
.uslugi-kontent-html__footer a:hover {
  color: var(--primary-dark);
}

@media screen and (max-width: 600px) {
  .contacts-page-content .uslugi-table-wrap,
  .uslugi-table-wrap {
    border-radius: 10px;
  }

  .contacts-page-content .uslugi-services-table thead th,
  .uslugi-services-table thead th,
  .contacts-page-content .uslugi-services-table tbody td,
  .uslugi-services-table tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
  }
}


/* ========== animations.css ========== */
/**
 * Coderr ProLive Theme - Animations
 * 
 * @package Coderr_ProLive
 */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Delayed animations for staggered effect */
.fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

.fade-in-up:nth-child(5) {
    animation-delay: 0.4s;
}

.fade-in-up:nth-child(6) {
    animation-delay: 0.5s;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(46, 196, 182, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(46, 196, 182, 0.4);
}

/* Sticky Header Animation */
.site-header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

/* Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease forwards;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* ========== home.css ========== */
/**
 * Home Page Styles
 * 
 * @package Coderr_ProLive
 */

/* Landing Page Layout - убираем сайдбар */
.page-template-template-home .content-area,
.home.page .content-area {
  padding: 0;
}

.page-template-template-home .content-wrapper,
.home.page .content-wrapper {
  grid-template-columns: 1fr;
  gap: 0;
}

.page-template-template-home .widget-area,
.home.page .widget-area {
  display: none;
}

.home-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 140px 0 180px;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  margin-top: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero Section с фоновым изображением */
.hero-section-with-image {
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-section-with-image::before {
  background: rgba(0, 0, 0, 0.4);
  background-image: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title .highlight {
  color: var(--white);
  display: block;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  background: var(--white);
  color: var(--primary-color);
}

.hero-actions .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
}

.hero-actions .btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.hero-actions .btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.hero-features {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.hero-feature svg {
  flex-shrink: 0;
  stroke: var(--white);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Section Common Styles */
.section-header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray);
  margin-top: 20px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--cta-section-bg, var(--gradient-primary));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-actions .btn {
  background: var(--accent-red);
  color: var(--white);
}

.cta-actions .btn:hover {
  background: var(--accent-red-dark);
}

.cta-actions .btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.cta-actions .btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Latest Posts Section */
.latest-posts-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.latest-posts-section .section-header {
  text-align: center;
  max-width: 100%;
  margin-bottom: 50px;
}

.latest-posts-section .section-title {
  margin-bottom: 15px;
  display: inline-block;
}

.latest-posts-section .section-title::after {
  display: block;
}

.latest-posts-section .posts-grid {
  justify-items: center;
}

/* Убираем нумерацию карточек (::before / counter), если заданы снаружи */
.latest-posts-section .post-card::before {
  content: none !important;
  display: none !important;
}

/* Новости: белая карточка; полоса заголовка — синий фон, белый текст */
.latest-posts-section .post-card {
  background: var(--white);
}

.latest-posts-section .post-card .entry-header {
  margin: -25px -25px 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  text-align: center;
}

.latest-posts-section .post-card:not(:has(.post-thumbnail)) .entry-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.latest-posts-section .post-card .entry-title {
  margin-bottom: 0;
  color: var(--white, #fff);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.latest-posts-section .post-card .entry-title a {
  color: var(--white, #fff);
}

.latest-posts-section .post-card .entry-title a:hover {
  color: var(--white);
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 100px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 15px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .latest-posts-section {
    padding: 120px 0;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }

  .latest-posts-section .section-header {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 16px;
  }

  .latest-posts-section .post-card .entry-header {
    margin: -20px -20px 1rem;
  }
}

/* =====================================================
   Design Intro Section — «Проектирование пожарных систем»
   ===================================================== */
.design-intro-section {
  padding: 80px 0;
  /* Фон: Внешний вид → Настроить → Проектирование пожарных систем (inline-стили на секции) */
  background-color: var(--white, #fff);
}

.design-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.design-intro-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color, #0f172a);
  margin: 0 0 18px;
}

.design-intro-title::after {
  display: none;
}

.design-intro-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.75;
  margin: 0 0 28px;
}

.design-intro-cta-wrap {
  margin: 0 0 24px;
}

.design-intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.design-intro-section a.design-intro-cta.btn {
  background-color: var(--accent-red, #dc143c);
  color: var(--white, #fff);
  border: none;
}

.design-intro-section a.design-intro-cta.btn:hover {
  background-color: var(--accent-red-dark, #b01030);
  color: var(--white, #fff);
}

/* Список направлений на всю ширину контейнера (под колонкой текста и статистикой) */
.design-intro-list-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 36px;
  padding: 20px 24px;
  border: 1px dashed rgba(26, 26, 46, 0.22);
  border-radius: 12px;
  box-sizing: border-box;
}

.design-intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}

.design-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--heading-color, #1a1a2e);
  font-weight: 500;
  min-width: 0;
}

.design-intro-list-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(204, 51, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-intro-list-icon i {
  color: var(--accent-red, #cc3300);
  font-size: 1rem;
}

/* Блок статистики — 2×2 */
.design-intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.design-stat-card {
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.design-stat-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.design-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-primary, linear-gradient(135deg, #cc3300, #ff6633));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.design-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
}

/* Готовые решения: объект, задача, решение, результат, пример (секция на главной) */
.home-cases-section {
  padding: 72px 0 88px;
  background: var(--home-cases-section-bg, linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%));
}

.home-cases-section .design-intro-cases {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.home-cases-section .section-header {
  margin-bottom: 40px;
}

.home-cases-section .section-title {
  color: var(--home-cases-title-color, var(--dark-color));
}

.home-cases-section .section-title::after {
  background: var(--home-cases-title-color, var(--gradient-primary));
}

.design-intro-cases {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.design-cases-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.design-case-card {
  background: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.design-case-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.design-case-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
}

.design-case-card--has-image:not(.design-case-card--media-only) .design-case-card__layout {
  grid-template-columns: minmax(140px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "media intro"
    "media spoiler";
}

.design-case-card--has-image:not(.design-case-card--media-only) .design-case-card__media {
  grid-area: media;
  align-self: start;
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1;
}

.design-case-card--has-image:not(.design-case-card--media-only) .design-case-card__intro {
  grid-area: intro;
}

.design-case-card--has-image:not(.design-case-card--media-only) .design-case-spoiler {
  grid-area: spoiler;
}

.design-case-card--has-image.design-case-card--no-intro:not(.design-case-card--media-only) .design-case-card__layout {
  grid-template-areas:
    "media spoiler";
}

.design-case-card--no-image .design-case-card__layout {
  grid-template-columns: minmax(0, 1fr);
}

.design-case-card--media-only .design-case-card__layout {
  grid-template-columns: minmax(0, 1fr);
}

.design-case-card--media-only .design-case-card__media {
  min-height: 200px;
  aspect-ratio: 21 / 9;
}

@media (min-width: 720px) {
  .design-case-card--media-only .design-case-card__media {
    min-height: 280px;
  }
}

.design-case-card__media {
  position: relative;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
  overflow: hidden;
}

.design-case-card--media-only .design-case-card__media .design-case-card__img,
.design-case-card--has-image:not(.design-case-card--media-only) .design-case-card__media .design-case-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.design-case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.design-case-card:hover .design-case-card__img {
  transform: scale(1.03);
}

.design-case-card__intro {
  padding: 22px 24px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.design-case-card--no-image .design-case-card__intro {
  padding: 26px 24px 8px;
}

.design-case-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-red, #dc143c);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.design-case-object {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.design-case-object__k {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color, #0066cc);
  background: var(--primary-pale, #e6f2ff);
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.2;
}

.design-case-object__v {
  color: var(--dark-gray, #333);
  font-weight: 500;
}

.design-case-spoiler {
  min-width: 0;
  margin: 0;
  padding: 0 24px 20px;
  background: none;
}

.design-case-spoiler__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color, #0066cc);
  line-height: 1.3;
}

.design-case-spoiler__summary::-webkit-details-marker {
  display: none;
}

.design-case-spoiler__summary::marker {
  content: '';
}

.design-case-spoiler__summary::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.design-case-spoiler[open] .design-case-spoiler__summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.design-case-spoiler__summary:focus {
  outline: none;
}

.design-case-spoiler__summary:focus-visible {
  outline: 2px solid var(--primary-color, #0066cc);
  outline-offset: 3px;
  border-radius: 4px;
}

.design-case-spoiler__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.design-case-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  min-width: 0;
}

.design-case-block {
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 12px;
  padding: 16px 16px 18px;
  min-width: 0;
}

.design-case-block__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark, #004080);
  line-height: 1.3;
}

.design-case-block__text {
  display: block;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.design-case-example {
  margin: 0;
  padding: 16px 18px;
  background: var(--primary-pale, #e6f2ff);
  border-radius: 12px;
  min-width: 0;
}

.design-case-example__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color, #0066cc);
  line-height: 1.3;
}

.design-case-example__text {
  display: block;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dark-color, #003366);
}

@media (max-width: 720px) {
  .design-case-card--has-image:not(.design-case-card--media-only) .design-case-card__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "intro"
      "spoiler";
  }

  .design-case-card--has-image:not(.design-case-card--media-only) .design-case-card__media {
    min-height: 200px;
    max-width: none;
    max-height: 300px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .design-intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .design-cases-grid {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .design-intro-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .design-intro-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .design-stat-card {
    padding: 22px 16px;
  }

  .design-stat-number {
    font-size: 2rem;
  }

  .design-intro-title {
    font-size: 1.75rem;
  }
}

/* =====================================================
   Installation Section — Блок «Монтаж»
   ===================================================== */
.installation-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

.installation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.installation-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e6fcc;
  margin-bottom: 14px;
}

.installation-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e6fcc;
  margin: 0 0 18px;
}

.installation-title::after {
  display: none;
}

.installation-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.75;
  margin: 0 0 28px;
}

.installation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.installation-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--heading-color, #1a1a2e);
  font-weight: 500;
}

.installation-list-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 111, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.installation-list-icon i {
  color: #1e6fcc;
  font-size: 1rem;
}

.installation-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.installation-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .installation-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .installation-title {
    font-size: 1.75rem;
  }
}

/* =====================================================
   Advantages Section — Блок «Преимущества» (лёгкий, воздушный)
   ===================================================== */
.advantages-section {
  position: relative;
  padding: 5.5rem 0 5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f4f7fb 100%);
  overflow: hidden;
}

.advantages-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 204, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 102, 204, 0.03), transparent 60%);
  pointer-events: none;
}

.advantages-section .container {
  position: relative;
  z-index: 1;
}

.advantages-section .section-header {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.advantages-section .section-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading-color, #0f172a);
}

.advantages-section .section-title::after {
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color, #0066cc), rgba(0, 102, 204, 0.25));
  opacity: 1;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray, #666);
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Сетка «крестики-нолики»: линии между ячейками, без border у карточек */
.advantages-grid {
  --adv-line: 1px solid rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  /* gap:0 — линии рисуются тенями, не пространством */
  gap: 0;
}

/* Каждая карточка — ячейка сетки */
.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  /* Линия справа и снизу от каждой ячейки */
  outline: none;
  position: relative;
  transition: background 0.25s ease;
}

/* Правая линия — кроме последнего в строке */
.advantage-card:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(15, 23, 42, 0.1);
}

/* Нижняя линия — только для первого ряда (не последнего) */
.advantage-card:not(:nth-last-child(-n+3))::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.advantage-card:hover {
  background: rgba(0, 102, 204, 0.03);
  border-radius: 16px;
}

.advantage-card-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(0, 102, 204, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  border: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.advantage-card:hover .advantage-card-icon {
  background: rgba(0, 102, 204, 0.12);
  transform: scale(1.06);
}

.advantage-card-icon i {
  color: var(--primary-color, #0066cc);
}

.advantage-card-icon--default {
  background: rgba(0, 102, 204, 0.07);
}

.advantage-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.advantage-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--heading-color, #0f172a);
  margin: 0;
  line-height: 1.35;
}

.advantage-card-text {
  font-size: 0.97rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.68;
  margin: 0;
  max-width: 26ch;
}

/* ---- Адаптив ---- */
@media (max-width: 900px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Пересчитываем правую линию для 2 колонок */
  .advantage-card:not(:nth-child(3n))::after {
    display: none;
  }

  .advantage-card:not(:nth-child(2n))::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(15, 23, 42, 0.1);
  }

  .advantage-card:not(:nth-last-child(-n+2))::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 12%;
    width: 76%;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
  }

  /* Убираем нижнюю линию для 3-колоночного правила */
  .advantage-card:not(:nth-last-child(-n+3))::before {
    display: none;
  }
}

@media (max-width: 540px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card::after,
  .advantage-card::before {
    display: none !important;
  }

  /* Горизонтальный разделитель для 1 колонки */
  .advantage-card:not(:last-child) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  }

  .advantage-card {
    padding: 2rem 1.25rem;
  }

  .advantage-card-text {
    max-width: 100%;
  }
}

/* Legacy styles (для обратной совместимости) */
.advantages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--light-bg, #f8f9fa);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color, #cc3300);
}

.advantage-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-color, #cc3300);
  color: var(--white, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.advantage-text {
  font-size: 1rem;
  color: var(--text-color, #333);
  line-height: 1.5;
}

/* =====================================================
   Equipment Section — «Оборудование»
   ===================================================== */
.equipment-section {
  padding: 70px 0;
  background: var(--light-bg, #f8f9fa);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

.equipment-card {
  background: var(--white, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.equipment-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 22px;
  background: transparent;
  color: #1a73e8;
  border: 2px solid #1a73e8;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  align-self: center;
}

.equipment-card-btn:hover {
  background: #1a73e8;
  color: #fff;
}

.equipment-card-btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.equipment-card-image {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  max-height: 260px;
  overflow: hidden;
  background: var(--light-bg, #f8f9fa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipment-card-content {
  padding: 20px 28px 28px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.equipment-card-title {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color, #1a1a2e);
  margin: 0;
  padding: 22px 24px 8px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 100%;
  margin-bottom: 10px;
  height: 80px;
}

.equipment-card-description {
  font-size: 0.925rem;
  color: var(--text-muted, #555);
  line-height: 1.7;
  margin: 0;
  text-align: center;
  max-width: 100%;
}

@media (max-width: 768px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .equipment-card-image {
    aspect-ratio: 16 / 10;
    min-height: 160px;
    max-height: 220px;
  }

  .equipment-card-content {
    padding: 18px 20px 22px;
  }
}

/* =====================================================
   Simple Product/Service Sections
   (Проектирование, Монтаж)
   ===================================================== */
.simple-product-section {
  padding: 70px 0;
  position: relative;
}

.simple-product-section:nth-child(even) {
  background: var(--light-bg, #f8f9fa);
}

.simple-product-section--bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.simple-product-section--bg-image:nth-child(even) {
  background-color: #1a1a1a;
}

.simple-product-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}

.design-section .simple-product-bg-overlay {
  background: rgba(0, 0, 0, 0.68);
}

.simple-product-section--bg-image .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.simple-product-block-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.simple-product-block-link:hover,
.simple-product-block-link:focus-visible {
  opacity: 0.92;
}

.simple-product-block-link:focus-visible {
  outline: 2px solid var(--primary-color, #cc3300);
  outline-offset: 4px;
}

.simple-product-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.simple-product-inner.has-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.simple-product-content {
  text-align: center;
}

.simple-product-content .section-title {
  margin-bottom: 20px;
}

.simple-product-content .section-description {
  font-size: 1rem;
  color: var(--text-muted, #555);
  line-height: 1.7;
}

.simple-product-content .section-description p {
  margin-bottom: 12px;
}

.simple-product-subtitle {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 16px;
  margin-top: -10px;
}

.simple-product-content--on-bg .section-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.simple-product-content--on-bg .simple-product-subtitle {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.simple-product-content--on-bg .section-description,
.simple-product-content--on-bg .section-description p {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   How We Work Section — «Как мы работаем»
   ===================================================== */
.howwework-section {
  padding: 70px 0;
  background: var(--white);
  overflow: visible;
}

.steps-grid {
  --step-gap: 24px;
  --step-arrow-w: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  column-gap: var(--step-gap);
  margin-top: 10px;
  /* Место под круг .step-number (top: -18px), иначе overflow-x обрезает выступ */
  padding-top: 22px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.step-card {
  --step-card-pad-x: 10px;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  padding: 30px var(--step-card-pad-x) 24px;
  background: var(--white, #fff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-color, #cc3300);
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Стрелка по центру промежутка column-gap: от правого края padding-box + (gap − ширина) / 2 */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + (var(--step-gap) - var(--step-arrow-w)) / 2);
  right: auto;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: var(--step-arrow-w) solid var(--primary-color, #cc3300);
  z-index: 0;
  pointer-events: none;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary-color, #cc3300);
  color: var(--white, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  z-index: 2;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading-color, #1a1a2e);
  margin: 0 0 10px;
  text-align: center;
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-muted, #555);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* =====================================================
   Projects Section — Галерея выполненных работ
   ===================================================== */
.projects-section {
  padding: 70px 0;
  background: var(--light-bg, #f8f9fa);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.gallery-item-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .advantages-list {
    grid-template-columns: 1fr;
  }

  .projects-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .projects-gallery {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Logos Section — Нам доверяют
   ===================================================== */
.logos-section {
  padding: 80px 0;
}

.clients-section {
  background: var(--white, #fff);
}

/* =====================================================
   Suppliers Section — Поставщики (тёмная сетка «стекло»)
   Концепция: контраст к светлым секциям, без слайдера
   ===================================================== */
.suppliers-section {
  position: relative;
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.suppliers-section__bg {
  position: absolute;
  inset: 0;
  /* Базовый градиент; на главной переопределяется через CSS-переменные из кастомайзера */
  background: linear-gradient(
    var(--suppliers-grad-angle, 155deg),
    var(--suppliers-grad-from, #001a33) 0%,
    var(--suppliers-grad-to, #0066cc) 100%
  );
  z-index: 0;
}

.suppliers-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 10% 20%, rgba(220, 20, 60, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.suppliers-section__inner {
  position: relative;
  z-index: 1;
}

/* Заголовок как в остальных секциях (.section-header / .section-title), светлый текст на тёмном фоне */
.suppliers-section .section-header {
  margin-bottom: 50px;
}

.suppliers-section .section-title {
  color: #fff;
}

.suppliers-section .section-title::after {
  background: var(--gradient-primary);
}

.suppliers-section .section-subtitle,
.suppliers-section__subtitle {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.suppliers-section .section-header .section-title + .section-subtitle {
  margin-top: 0.65rem;
}

.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1.35rem;
  counter-reset: suppliers;
}

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

.supplier-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  counter-increment: suppliers;
}

.supplier-tile::before {
  content: counter(suppliers, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(0, 51, 102, 0.22);
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

.supplier-tile__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.supplier-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 102, 204, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.supplier-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.supplier-tile__img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.supplier-tile:hover .supplier-tile__img {
  transform: scale(1.05);
}

.supplier-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
  min-width: 0;
  background: #fff;
}

.supplier-tile__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a1628;
  margin: 0;
  line-height: 1.35;
}

.supplier-tile__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(10, 22, 40, 0.72);
  margin: 0;
}

@media (max-width: 480px) {
  .suppliers-grid {
    gap: 1rem;
  }

  .supplier-tile__logo {
    min-height: 128px;
    padding: 1.35rem 1.15rem;
  }
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 20px 0;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-height: 80px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.logo-item:hover .logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted, #777);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.logo-item:hover .logo-text {
  color: var(--primary-color, #cc3300);
}

@media (max-width: 600px) {
  .logos-grid {
    gap: 24px 32px;
  }

  .logo-img {
    max-height: 50px;
    max-width: 120px;
  }
}


/* ========== page-banners.css ========== */
/**
 * Page Banners Styles
 * Общие стили для баннеров страниц (контакты и страницы с тем же разметочным шаблоном)
 *
 * @package Coderr_ProLive
 */

/* Common Banner Styles */
.contacts-banner {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  margin-top: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.contacts-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Banner с фоновым изображением */
.contacts-banner-with-image {
  /* Используем только background-color, чтобы не перезаписывать background-image из inline стилей */
  background-color: rgba(0, 0, 0, 0.3);
  background-attachment: scroll;
  background-position: center center; /* Начальное выравнивание по центру */
  will-change: background-position;
  transform: translateZ(0); /* Аппаратное ускорение */
  /* Фоновое изображение задается через inline стили и будет отображаться поверх background-color */
}

.contacts-banner-with-image::before {
  background: rgba(0, 0, 0, 0.4);
  background-image: none;
}

.contacts-banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.contacts-banner-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 700;
}

.contacts-banner-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.95;
  color: var(--white);
}

/* Полоса с миниатюрой сразу под баннером (вне .contacts-banner).
 * Вертикальные отступы у .contacts-banner-media — одинаковые сверху/снизу;
 * flow-root убирает схлопывание margin с соседним .contacts-content-area. */
.contacts-banner-after {
  background: var(--white);
  padding: 0;
  width: 100%;
  display: flow-root;
}

.contacts-banner-after .contacts-banner-media {
  margin-top: 48px;
  margin-bottom: 48px;
}

/* Изображение записи/страницы — на всю ширину .container, как .contacts-main */
.contacts-banner-media {
  margin-top: 1.5rem;
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contacts-banner-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Content Area */
.contacts-content-area {
  padding: 60px 0;
  background: var(--white);
}

.contacts-main {
  margin: 0 auto;
}

.contacts-page-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-color);
}

.contacts-page-content h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contacts-page-content h2:first-child {
  margin-top: 0;
}

.contacts-page-content h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.contacts-page-content p {
  margin-bottom: 20px;
}

.contacts-page-content ul,
.contacts-page-content ol {
  margin-bottom: 20px;
  /* padding-left: 30px; */
}

.contacts-page-content li {
  margin-bottom: 10px;
}

/* Страница обработки персональных данных */
.pdn-page-content {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.pdn-doc h2 {
  text-transform: none;
}

.pdn-page-content .pdn-doc ul,
.pdn-page-content .pdn-doc ol {
  margin: 12px 0 24px;
  padding-left: 1.75rem;
  list-style-position: outside;
}

.pdn-page-content .pdn-doc ul {
  list-style-type: disc;
}

.pdn-page-content .pdn-doc ol {
  list-style-type: decimal;
}

.pdn-page-content .pdn-doc li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.pdn-page-content .pdn-doc li:last-child {
  margin-bottom: 0;
}

.pdn-doc__lead {
  font-size: 1.05rem;
  color: var(--dark-gray);
  margin-bottom: 24px;
}

.pdn-doc__card {
  margin: 0 0 32px;
  padding: 24px;
  background: var(--primary-pale);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 102, 204, 0.12);
}

.pdn-doc__card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.pdn-doc__meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.pdn-doc__meta dt {
  margin: 0;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.pdn-doc__meta dd {
  margin: 0;
}

.pdn-doc__updated {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--gray);
}

@media (max-width: 768px) {
  .pdn-doc__card {
    padding: 16px;
  }

  .pdn-doc__meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pdn-doc__meta dt {
    margin-top: 8px;
  }

  .pdn-doc__meta dt:first-child {
    margin-top: 0;
  }
}

/* Блок «Как мы работаем» (.coderr-how-we-work) — отмена отступов между пунктами списка */
.contacts-page-content .coderr-how-we-work ol.coderr-how-we-work__steps > li {
  margin-bottom: 0;
}

/* Page Layout */
.page-template-template-contacts .content-area,
.contacts-page {
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.page-template-template-contacts .content-wrapper,
.contacts-page .content-wrapper {
  grid-template-columns: 1fr;
  gap: 0;
}

.page-template-template-contacts .widget-area,
.contacts-page .widget-area {
  display: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .contacts-main {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .contacts-banner {
    padding: 100px 0 60px;
    margin-top: 60px;
  }
  
  .contacts-banner-title {
    font-size: 2.5rem;
  }
  
  .contacts-banner-subtitle {
    font-size: 1.1rem;
  }

  .contacts-banner-after .contacts-banner-media {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  
  .contacts-content-area {
    padding: 40px 0;
  }
  
  .contacts-page-content {
    font-size: 1rem;
  }
  
  .contacts-page-content h2 {
    font-size: 1.75rem;
  }
  
  .contacts-page-content h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .contacts-banner-title {
    font-size: 2rem;
  }
  
  .contacts-banner-subtitle {
    font-size: 1rem;
  }
}

/* Каталог оборудования (шаблон page-oborudovanie.php) */
.contacts-content-area--oborudovanie-catalog .contacts-main--catalog-intro {
  margin-bottom: 0;
}

.equipment-catalog-intro {
  margin-bottom: 1.5rem;
}

.equipment-catalog-empty {
  text-align: center;
  color: var(--text-muted, #666);
  padding: 2rem 1rem;
  margin: 0;
}

/* ========== team.css ========== */
/**
 * Страница «Команда»: отдельные карточки (полная ширина, визуально разнесены)
 *
 * @package Coderr_ProLive
 */

/* Карточки из шаблона theme (article) */
.team-page-content article.team-member-card--wide:first-of-type {
  margin-top: 48px;
}

.team-page-content article.team-member-card--wide + article.team-member-card--wide {
  margin-top: 36px;
}

/* Опционально: карточки внутри блока «Произвольный HTML» в редакторе */
.team-page-content > .wp-block-html {
  margin-bottom: 36px;
}

.team-page-content > .wp-block-html:last-child {
  margin-bottom: 0;
}

.team-page-content > *:not(.wp-block-html) + .wp-block-html,
.team-page-content > .wp-block-html:first-child {
  margin-top: 48px;
}

.team-page-content .wp-block-html .team-member-card--wide + .team-member-card--wide {
  margin-top: 36px;
}

.team-member-card--wide {
  display: grid;
  /* Уже колонка с фото (было до 380px) */
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 28px 28px;
  align-items: stretch;
  align-content: start;
  width: 100%;
  max-width: 100%;
  padding: 22px 26px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: visible;
  border: 1px solid rgba(0, 102, 204, 0.12);
  transition: var(--transition);
}

.team-member-card--wide:hover {
  box-shadow: 0 8px 28px rgba(0, 102, 204, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 102, 204, 0.2);
}

.team-member-card__photo-wrap {
  background: var(--primary-pale);
  min-height: 100%;
  align-self: stretch;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.team-member-card--wide .team-member-card__photo-wrap {
  aspect-ratio: 1;
  width: 100%;
  max-height: none;
}

.team-member-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: var(--gradient-primary);
}

.team-member-card__initials {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.team-member-card__body {
  padding: 6px 4px 8px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-member-card--wide .team-member-card__body {
  flex: 1;
}

.team-member-card__name {
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.team-member-card__position {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 16px;
  line-height: 1.4;
}

.team-member-card__description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-gray);
  margin: 0 0 20px;
  flex: 1;
}

.team-member-card__achievements {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

.team-member-card__achievements-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary-dark);
  margin: 0 0 10px;
  font-weight: 700;
}

.team-member-card__achievements-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dark-color);
}

.team-member-card__achievements-list li {
  margin-bottom: 6px;
}

.team-member-card__achievements-list li:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .team-page-content article.team-member-card--wide + article.team-member-card--wide {
    margin-top: 28px;
  }

  .team-page-content > .wp-block-html {
    margin-bottom: 28px;
  }

  .team-page-content .wp-block-html .team-member-card--wide + .team-member-card--wide {
    margin-top: 28px;
  }

  .team-member-card--wide {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 18px 22px;
  }

  .team-member-card--wide .team-member-card__photo-wrap {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }

  .team-member-card__body {
    padding: 0 2px 4px;
  }
}

/* ========== partners.css ========== */
/**
 * Страница «Партнёры и сертификаты»: карточки с логотипом, названием и описанием
 *
 * @package Coderr_ProLive
 */

/* =====================================================
   Partners & Certificates — блок кастомайзера
   Заголовок по центру; слева пункты с иконками, справа текст;
   снизу сетка сертификатов по центру + лайтбокс
   ===================================================== */
.partners-certs-section {
  padding: 80px 0;
  /* Градиент по умолчанию; кастомный фон — через модификатор (без запятых в var-fallback) */
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.partners-certs-section.partners-certs-section--custom-bg {
  background: var(--partners-certs-section-bg);
}

.partners-certs-section--page {
  padding: 48px 0 56px;
}

.partners-certs-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.partners-certs-section .partners-certs-header .partners-certs-title,
.partners-certs-section .partners-certs-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin: 0;
  text-align: center;
}

.partners-certs-section.partners-certs-section--custom-title .partners-certs-title {
  color: var(--partners-certs-title-color);
}

.partners-certs-title::after {
  display: none;
}

.partners-certs-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.partners-certs-points {
  min-width: 0;
}

.partners-certs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.partners-certs-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--heading-color, #1a1a2e);
  font-weight: 500;
}

.partners-certs-list-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 111, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-certs-list-icon i {
  color: #1e6fcc;
  font-size: 1rem;
}

.partners-certs-text {
  min-width: 0;
}

.partners-certs-desc {
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.75;
}

.partners-certs-desc p {
  margin: 0 0 0.85em;
}

.partners-certs-desc p:last-child {
  margin-bottom: 0;
}

.partners-certs-gallery {
  margin-top: 48px;
}

.partners-certs-inner + .partners-certs-gallery {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.partners-certs-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  max-width: 100%;
}

.partners-certs-item {
  margin: 0;
  flex: 0 1 200px;
  width: 200px;
  max-width: calc(50% - 8px);
}

.partners-certs-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.06);
  cursor: pointer;
  transition: var(--transition);
}

.partners-certs-trigger:hover,
.partners-certs-trigger:focus-visible {
  border-color: rgba(0, 102, 204, 0.28);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.14);
  outline: none;
}

.partners-certs-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 111, 204, 0.35);
}

.partners-certs-img {
  display: block;
  width: 100%;
  max-height: 140px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Лайтбокс сертификатов */
.partners-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.partners-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.partners-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.82);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.partners-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 100%);
  max-height: min(90vh, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.partners-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.partners-lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-lightbox__close:hover,
.partners-lightbox__close:focus-visible {
  background: var(--primary-color);
  color: #fff;
  outline: none;
}

.partners-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-lightbox__nav:hover,
.partners-lightbox__nav:focus-visible {
  background: var(--primary-color);
  color: #fff;
  outline: none;
}

.partners-lightbox__prev {
  left: -56px;
}

.partners-lightbox__next {
  right: -56px;
}

body.partners-lightbox-open {
  overflow: hidden;
}

@media screen and (max-width: 1100px) {
  .partners-lightbox__prev {
    left: 8px;
  }

  .partners-lightbox__next {
    right: 8px;
  }
}

@media screen and (max-width: 992px) {
  .partners-certs-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .partners-certs-section .partners-certs-title {
    font-size: 1.85rem;
  }
}

@media screen and (max-width: 560px) {
  .partners-certs-section {
    padding: 56px 0;
  }

  .partners-certs-item {
    flex: 1 1 100%;
    width: 100%;
    max-width: 280px;
  }

  .partners-certs-trigger {
    min-height: 120px;
  }

  .partners-lightbox {
    padding: 16px;
  }

  .partners-lightbox__close {
    top: -4px;
    right: 0;
  }
}

.partners-page-content article.partner-card:first-of-type {
  margin-top: 48px;
}

.partners-page-content article.partner-card + article.partner-card {
  margin-top: 28px;
}

.partners-page-content > .wp-block-html {
  margin-bottom: 28px;
}

.partners-page-content > .wp-block-html:last-child {
  margin-bottom: 0;
}

.partners-page-content > *:not(.wp-block-html) + .wp-block-html,
.partners-page-content > .wp-block-html:first-child {
  margin-top: 48px;
}

.partners-page-content .wp-block-html .partner-card + .partner-card {
  margin-top: 28px;
}

.partner-card {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 24px 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 22px 26px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 102, 204, 0.12);
  transition: var(--transition);
}

.partner-card:hover {
  box-shadow: 0 8px 28px rgba(0, 102, 204, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 102, 204, 0.2);
}

.partner-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 102, 204, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.partner-card__logo {
  width: 100%;
  max-height: 88px;
  height: auto;
  object-fit: contain;
  display: block;
}

.partner-card__logo--placeholder {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-dark);
  text-align: center;
  line-height: 1.35;
}

.partner-card__body {
  padding: 4px 4px 6px 0;
  min-width: 0;
}

/* Сильнее, чем .contacts-page-content h2 из page-banners.css */
.partners-page-content .partner-card h2.partner-card__title {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--primary-dark);
  line-height: 1.35;
}

.partner-card__description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-gray);
  margin: 0;
}

.partner-card__description p {
  margin: 0 0 0.75em;
}

.partner-card__description p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .partners-page-content article.partner-card + article.partner-card {
    margin-top: 22px;
  }

  .partner-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 18px 22px;
  }

  .partner-card__logo-wrap {
    min-height: auto;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ========== specialization.css ========== */
/**
 * Страница «Кратко по специализации» — композиция блоков внутри .specialization-layout
 *
 * @package Coderr_ProLive
 */

/* Корневая группа: не перекрывать отступы page-banners для первого заголовка */
.contacts-page-content .specialization-layout {
  max-width: 100%;
}

.contacts-page-content .specialization-layout > .wp-block-heading:first-of-type,
.contacts-page-content .specialization-layout > h2:first-of-type {
  margin-top: 0;
}

/* Лид: мягкий акцентный фон */
.specialization-lead {
  margin-bottom: 28px;
  padding: 22px 24px;
  border-radius: 2px;
  border: 1px dashed rgba(0, 102, 204, 0.35);
}

.specialization-lead p {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.75;
}

/* Заголовки секций внутри layout */
.specialization-layout .wp-block-heading,
.specialization-layout h2.wp-block-heading {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.65rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.specialization-layout .wp-block-heading:first-of-type,
.specialization-layout h2.wp-block-heading:first-of-type {
  margin-top: 0;
}

.specialization-layout .specialization-lead + .wp-block-heading,
.specialization-layout .specialization-lead + h2 {
  margin-top: 32px;
}

/* Список направлений — нумерация 1…6, сетка 2×3 на широком экране */
ol.specialization-directions-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: spec-dir;
}

@media screen and (min-width: 640px) {
  ol.specialization-directions-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.specialization-directions-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  column-gap: 14px;
  row-gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px;
  background: var(--bg-card);
  border-radius: 2px;
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  line-height: 1.55;
  transition: var(--transition);
  counter-increment: spec-dir;
}

/* Номер — одна линия с подзаголовком, выравнивание по центру строки */
.specialization-directions-list > li::before {
  content: counter(spec-dir);
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 2px;
}

.specialization-directions-list > li:hover {
  border-color: rgba(0, 102, 204, 0.22);
  box-shadow: 0 8px 28px rgba(0, 102, 204, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.specialization-dir__title {
  display: block;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.specialization-dir__desc {
  display: block;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 10px 12px;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--dark-gray);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(230, 242, 255, 0.45) 100%);
  border-left: 3px solid var(--primary-color);
  border-radius: 2px;
}

/* Сертификаты: сетка карточек с изображениями (в редакторе замените src у img) */
.specialization-trust {
  margin: 28px 0 24px;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border-radius: 2px;
  border: 1px solid rgba(0, 102, 204, 0.1);
}

/* Сертификаты: два блока в одну линию; в каждом — слева A4, справа текст */
.specialization-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: stretch;
}

@media screen and (max-width: 920px) {
  .specialization-trust__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.specialization-trust__item {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px 16px;
}

/* A4 портрет: ширина/высота = 210/297 */
.specialization-trust__img-wrap {
  margin: 0;
  flex: 0 0 auto;
  width: min(36%, 150px);
  max-width: 170px;
  aspect-ratio: 210 / 297;
  padding: 10px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 2px;
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.specialization-trust__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

/* Одна колонка сертификатов — можно чуть крупнее превью */
@media screen and (min-width: 561px) and (max-width: 920px) {
  .specialization-trust__item .specialization-trust__img-wrap {
    width: min(38%, 200px);
    max-width: 200px;
  }
}

.specialization-trust__caption {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--dark-gray);
  text-align: left;
  align-self: center;
  padding: 0 4px 0 0;
}

@media screen and (max-width: 560px) {
  .specialization-trust__item {
    flex-direction: column;
    align-items: center;
  }

  .specialization-trust__img-wrap {
    width: min(72%, 200px);
    max-width: 100%;
  }

  .specialization-trust__caption {
    text-align: center;
    padding: 0 0 0 0;
  }
}

/* Заключительные абзацы после полосы доверия */
.specialization-layout .specialization-trust ~ p {
  margin-bottom: 18px;
}

@media screen and (max-width: 768px) {
  .specialization-lead {
    padding: 18px 16px;
  }

  .specialization-lead p {
    font-size: 1.05rem;
  }

  .specialization-layout .wp-block-heading,
  .specialization-layout h2.wp-block-heading {
    font-size: 1.45rem;
  }

  .specialization-directions-list > li {
    padding: 12px;
    column-gap: 12px;
    row-gap: 10px;
  }
}

/* ========== advantages-page.css ========== */
/**
 * Страница «Преимущества»: карточки с иконками слева.
 *
 * @package Coderr_ProLive
 */

.contacts-content-area--preimushhestva {
  padding: 0;
  background: transparent;
}

/* Стык с баннером: воздух без двойного белого блока */
.advantages-section.advantages-page {
  padding-top: 3.25rem;
}

.advantages-page-intro-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading-color, #0f172a);
  margin: 0 0 1rem;
  max-width: 42rem;
}

.advantages-page-intro {
  /* max-width: 48rem; */
  margin-bottom: 2.75rem;
}

.advantages-page-intro p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 1rem;
}

.advantages-page-intro p:last-child {
  margin-bottom: 0;
}

.advantages-page-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* max-width: 820px; */
  margin: 0 auto;
}

/* Иконка и заголовок — одна строка; текст — второй ряд под заголовком */
.advantages-page-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: left;
}

.advantages-page-row:last-child {
  border-bottom: none;
}

.advantages-page-card {
  display: contents;
}

/* Квадрат с «головкой» извещателя — сверху по строке заголовка, не выше текста */
.advantages-page-node {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: rgba(0, 102, 204, 0.07);
  border: 1px solid rgba(0, 102, 204, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.advantages-page-node img,
.advantages-page-node svg {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.advantages-page-node i {
  font-size: 1.65rem;
  line-height: 1;
  color: var(--primary-color, #0066cc);
}

.advantages-page-card-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--heading-color, #0f172a);
  margin: 0;
  line-height: 1.35;
  min-width: 0;
}

.advantages-page-card-text {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.98rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.68;
  margin: 0;
}

@media (max-width: 540px) {
  .advantages-page-row,
  .advantages-page-row--right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.1rem 0;
  }

  .advantages-page-card {
    display: block;
    width: 100%;
  }

  .advantages-page-node {
    grid-column: unset;
    grid-row: unset;
    align-self: center;
  }

  .advantages-page-card-title,
  .advantages-page-card-text {
    grid-column: unset;
    grid-row: unset;
  }
}

/* ========== about-page.css ========== */
/**
 * Страница «О компании» — оформление блока .coderr-about-page
 *
 * @package Coderr_ProLive
 */

.coderr-about-page {
  /* max-width: 920px; */
  margin: 0 auto;
}

.coderr-about-page p {
  margin: 0 0 1.25rem;
}

.coderr-about-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--dark-color);
  padding-bottom: 0.5rem;
}

.coderr-about-panel {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.06) 0%,
    rgba(0, 26, 51, 0.04) 100%
  );
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 8px 24px rgba(0, 26, 51, 0.06);
}

.coderr-about-panel p {
  margin-bottom: 0;
  line-height: 1.75;
}

.coderr-about-panel--trust {
  margin-top: 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Сертификаты: превью A4 + подпись (как на странице специализации) */
.coderr-about-certs {
  margin-top: 2.25rem;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--bg-secondary, #f4f8fc);
  border-radius: 12px;
  border: 1px solid rgba(0, 102, 204, 0.12);
}

/* Перекрываем общие отступы .contacts-page-content h2 из page-banners.css */
.contacts-page-content .coderr-about-certs__title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.coderr-about-certs__intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dark-gray, #4a5568);
}

.coderr-about-certs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.coderr-about-certs__item {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px 16px;
  min-width: 0;
}

.coderr-about-certs__img-wrap {
  margin: 0;
  flex: 0 0 auto;
  width: min(36%, 150px);
  max-width: 170px;
  aspect-ratio: 210 / 297;
  padding: 10px;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0, 102, 204, 0.12);
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coderr-about-certs__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.coderr-about-certs__caption {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-gray, #374151);
  text-align: left;
  align-self: center;
  padding: 0 4px 0 0;
}

@media screen and (min-width: 561px) and (max-width: 920px) {
  .coderr-about-certs__item .coderr-about-certs__img-wrap {
    width: min(38%, 200px);
    max-width: 200px;
  }
}

@media screen and (max-width: 560px) {
  .coderr-about-certs__item {
    flex-direction: column;
    align-items: center;
  }

  .coderr-about-certs__img-wrap {
    width: min(72%, 200px);
    max-width: 100%;
  }

  .coderr-about-certs__caption {
    text-align: center;
    padding: 0;
  }
}

@media screen and (max-width: 768px) {
  .coderr-about-lead {
    font-size: 1.05rem;
  }

  .coderr-about-panel {
    padding: 1.25rem 1.1rem;
  }
}

/* ========== history-page.css ========== */
/**
 * Страница «История компании» — таймлайн (.coderr-history-timeline)
 *
 * @package Coderr_ProLive
 */

/* Ширина контента как у остальных страниц (.container), без отдельного max-width */
.coderr-history-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 0.25rem;
  list-style: none;
}

/* Вертикальная линия */
.coderr-history-timeline::before {
  content: '';
  position: absolute;
  left: 3.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(0, 102, 204, 0.35) 0%,
    rgba(0, 102, 204, 0.12) 100%
  );
}

.coderr-history-item {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  padding-bottom: 1.75rem;
  align-items: start;
}

.coderr-history-item:last-child {
  padding-bottom: 0;
}

.coderr-history-item__marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.coderr-history-item__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--primary-color, #0066cc) 0%,
    var(--primary-dark, #004d99) 100%
  );
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.28);
}

/* Точка на линии */
.coderr-history-item__marker::after {
  content: '';
  position: absolute;
  right: -1.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-color, #0066cc);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.coderr-history-item__body {
  min-width: 0;
  padding: 0.15rem 0 0;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.04) 0%,
    rgba(0, 26, 51, 0.02) 100%
  );
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.15rem;
  box-shadow: 0 6px 20px rgba(0, 26, 51, 0.05);
}

.coderr-history-item__body p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark-color);
}

@media screen and (max-width: 640px) {
  .coderr-history-timeline::before {
    display: none;
  }

  .coderr-history-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 4px solid rgba(0, 102, 204, 0.35);
    margin-left: 0.15rem;
  }

  .coderr-history-item__marker::after {
    display: none;
  }

  .coderr-history-item__marker {
    justify-content: flex-start;
  }

  .coderr-history-item__year {
    font-size: 0.78rem;
    min-width: auto;
  }

  .coderr-history-item__body {
    padding: 1rem 1rem 1.05rem;
  }

  .coderr-history-item__body p {
    font-size: 1rem;
  }
}

/* ========== mission-values-page.css ========== */
/**
 * Страница «Миссия и ценности» — блок .coderr-mission-page
 *
 * @package Coderr_ProLive
 */

.coderr-mission-page {
  /* max-width: 960px; */
  margin: 0 auto;
}

.coderr-mission-page p {
  margin: 0 0 1.1rem;
}

.coderr-mission-section-title {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark, #003366);
  line-height: 1.25;
}

/* Блок миссии — коротко, без иконок */
.coderr-mission-statement {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.05);
  border: 1px solid rgba(0, 102, 204, 0.12);
}

.coderr-mission-statement .coderr-mission-section-title {
  margin-bottom: 0.75rem;
}

.coderr-mission-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--dark-color, #1a202c);
  margin: 0;
}

/* Сетка ценностей */
.coderr-mission-values {
  margin-top: 0.5rem;
}

.coderr-mission-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.coderr-mission-value-card {
  margin: 0;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 12px;
  background: var(--white, #fff);
  border: 1px solid rgba(0, 102, 204, 0.1);
  box-shadow: 0 4px 18px rgba(0, 26, 51, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.coderr-mission-value-card:hover {
  border-color: rgba(0, 102, 204, 0.2);
  box-shadow: 0 8px 28px rgba(0, 26, 51, 0.09);
}

.coderr-mission-value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.07);
  border: 1px solid rgba(0, 102, 204, 0.12);
  color: var(--primary-color, #0066cc);
  font-size: 1.25rem;
}

/* Перебиваем .contacts-page-content h3 */
.contacts-page-content .coderr-mission-page h3.coderr-mission-value-card__title {
  margin-top: 0;
}

.coderr-mission-value-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--heading-color, #0f172a);
  line-height: 1.35;
}

.coderr-mission-value-card__text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: #64748b;
}

@media screen and (max-width: 720px) {
  .coderr-mission-values-grid {
    grid-template-columns: 1fr;
  }

  .coderr-mission-statement {
    padding: 1.15rem 1.1rem;
  }

  .coderr-mission-lead {
    font-size: 1.08rem;
  }

  .coderr-mission-section-title {
    font-size: 1.4rem;
  }
}
