﻿:root {
  /* Design System Colors  #17529E*/
  --bg-primary: #f8faff;
  --bg-secondary: #e8f0fe;
  --bg-tertiary: #ffffff;

  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-accent: #0E3D70;
  --text-disabled: #999999;
  --text-heading: #2A68B6;

  --border-default: #b0c8ff;
  --border-hover: #8aa8e6;
  --border-active: #0E3D70;

  --primary: #17529E; 
  --primary-hover: #2A68B6;
  --primary-active: #0E3D70;

  --btn-secondary-bg: #e8f0fe;
  --btn-secondary-hover: #d0e0ff;
  --btn-secondary-active: #b0c8ff;

  --shadow-elevation: rgba(0, 38, 217, 0.15);

  /* Legacy support */
  --secondary: #ffac05;
  --success: #00d4aa;
  --warning: #ff9500;
  --light-bg: #f8faff;
  --dark-bg: #17529E;

  /* Layout */
  --header-height: 175px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;

  --text-muted: #999999;

  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-color: color 0.2s ease-in-out;
  --transition-all: all 0.2s ease-in-out;
  --transition-transform: transform 0.2s ease;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

a[class] {
  text-decoration: none;
}

.form * {
  outline: none;
}

html,
body {
  height: 100%;
  position: relative;
}

body {
  font-family: "Inter", "Roboto", Arial, sans-serif;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  h1 {
    margin-bottom: 22px;
  }

  h2 {
    margin-bottom: 20px;
  }

  h3 {
    margin-bottom: 14px;
  }

  h4,
  h5,
  h6 {
    margin-bottom: 10px;
  }
}

h1 {
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 24px;
}

h3 {
  margin-bottom: 16px;
}

h4,
h5,
h6 {
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
}

.section-heading::after {
  content: "\\\\";
  position: absolute;
  right: -40px;
  color: var(--border-active);
}

.hero-section {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 30%, var(--primary-hover) 70%, var(--primary) 100%);
  margin-top: calc(-1 * var(--header-height));
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--bg-tertiary);
  margin-bottom: 20px;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 200px 0 80px;
  }

  .hero-section h1 {
    font-size: 40px;
  }

  .hero-section p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 20px;
    margin-top: -82px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .hero-section p {
    font-size: 15px;
  }

  .header-logo {
    height: 70px;
  }
}

@media (max-width: 900px) {
  .hero-title {
    margin-bottom: 18px;
  }
}

.container {
  max-width: 1270px;
  padding: 0 15px;
  margin: 0 auto;
}

.main {
  flex-grow: 1;
}

/* ================= BREADCRUMBS ================= */
.breadcrumbs {
  padding: 30px 0 4px;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumbs-item:not(:last-child)::after {
  content: "/";
  margin: 0 var(--spacing-xs);
  color: var(--text-disabled);
  font-weight: 400;
}

.breadcrumbs-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-color);
  display: flex;
  gap: 5px;
  align-items: center;
}

.breadcrumbs-link:hover {
  color: var(--primary);
}

.breadcrumbs-item:last-child .breadcrumbs-link {
  color: var(--text-primary);
  font-weight: 500;
  pointer-events: none;
}

.breadcrumbs-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .breadcrumbs-item {
    font-size: 13px;
  }
}

/* ================= HEADER ================= var(--primary)*/
.header {
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
	backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 
  background: transparent;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    position 0s;
  width: 100%;
  height: 175px;
}

.single-product .header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
	backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    position 0s;
  width: 100%;
  height: 175px;
}

.header.scrolled {
  position: fixed;
 background: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 
}

.header.scrolled .header-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header .container {
  max-width: 1270px;
  margin: 0 auto;
}

/* Header Top Line */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: var(--spacing-lg);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 48px;
  gap: var(--spacing-lg);
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-top-left .logo {
  max-width: 230px;
}

.header-slogan {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.7);
  max-width: 200px;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-top-right-box {
	display: flex;
	align-items: center;
	gap: 12px 24px;
	flex-wrap: wrap;
}

.header-email {
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition-color);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
}

.header-email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #bababa;
  transition: var(--transition-color);
}

.header-email:hover {
  color: rgba(255, 255, 255, 0.9);
}

.header-email:hover svg {
  color: rgba(255, 255, 255, 0.9);
}

.header-phone {
  color: var(--bg-tertiary);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition-color);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.header-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #bababa;
  transition: var(--transition-color);
}

.header-phone:hover {
  color: rgba(255, 255, 255, 0.8);
}

.header-phone:hover svg {
  color: rgba(255, 255, 255, 0.8);
}

.header-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-tertiary);
  transition: opacity var(--transition-base);
  text-decoration: none;
}

.header-telegram:hover {
  opacity: 0.8;
}

.header-telegram svg {
  width: 30px;
  height: 30px;
}

/* Header Navigation */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: relative;
  background: transparent;
}

.header-nav .btn-primary {
  white-space: nowrap;
  margin-left: auto;
  background: transparent;
  border: 2px solid var(--bg-tertiary);
  color: var(--bg-tertiary);
  transition: all 0.3s ease;
}

.header-nav .btn-primary:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.header-nav .btn-primary:active {
  transform: translateY(0);
}

/* Mobile CTA button - скрыт на десктопе */
.header-nav .mobile-cta {
  display: none;
}

/* Logo */
.logo {
  display: block;
  max-width: 300px;
}

.logo:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
}

.nav-list {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li > a {
  text-decoration: none;
  color: var(--bg-tertiary);
  cursor: pointer;
  transition: var(--transition-all);
  font-weight: 500;
  font-size: 16px;
  display: block;
  white-space: nowrap;
}

.nav-list > li > a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-list > li > a.active {
  color: var(--bg-tertiary);
  font-weight: 400;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: var(--transition-transform);
  vertical-align: middle;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--bg-tertiary);
  width: 300px;
  box-shadow: 0 4px 12px var(--shadow-elevation);
  top: 100%;
  left: 0;
  overflow: visible;
  z-index: 100;
}

.dropdown:hover > .dropdown-menu,
.dropdown.active > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-sm) 20px;
  transition: var(--transition-all);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  padding-left: 24px;
}

/* Первый вложенный уровень (.dropdown-submenu) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.submenu-arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid currentColor;
  transition: transform 0.2s ease;
}

.dropdown-submenu:hover > a .submenu-arrow {
  transform: rotate(90deg);
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Blog Section */
.blog-section {
  padding: 60px 0;
  position: relative;
  z-index: 5;
}

.blog-section-title {
  font-size: 32px;
  color: var(--text-primary);
  margin: 0 0 48px 0;
  text-align: center;
}

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

.blog-card {
  background: var(--bg-tertiary);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-elevation);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-primary);
}

.blog-card-content .blog-date {
  font-size: 12px;
  color: #e91e63;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  flex: 1;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-link:hover {
  color: var(--primary-hover);
}

.blog-card-link::after {
  content: "→";
  transition: var(--transition-transform);
  padding-left: 6px;
}

.blog-card-link:hover::after {
  transform: translateX(4px);
}

/* Reviews Section */
.reviews-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 3;
  overflow: visible;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title.reviews-section-title {
  margin: 0;
}

.reviews-slider-wrapper {
  position: relative;
  max-width: 1270px;
  margin: 0 auto;
}

.reviews-swiper {
  padding: 0 70px;
  overflow: visible;
}

.review-card {
  background: var(--bg-tertiary);
  padding: 32px 28px;
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: 16px;
}

.review-box-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5efe7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-heading);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.review-category {
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-category span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.review-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}

.review-date svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.review-date span {
  font-size: 13px;
  color: var(--text-secondary);
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
}

.reviews-nav-btn:hover {
  background: var(--primary);
  color: var(--bg-tertiary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.reviews-nav-btn:active {
  transform: scale(0.95);
}

.reviews-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* About Section */
.about-section {
  padding: 50px 0;
  position: relative;
  z-index: 5;
}

.about-container {
  display: flex;
  align-items: stretch;
  min-height: 520px;
}

.about-image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.about-image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 1600px) {
  .about-image img {
    height: auto;
  }
}

.about-content {
  flex: 0 0 55%;
  background: var(--dark-bg);
  color: var(--bg-tertiary);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--bg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-description p{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
}

.about-industries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-color);
}

.industry-item:not(:nth-child(2n)) {
  padding-right: 24px;
}

.industry-item:nth-child(2n) {
  padding-left: 24px;
}

.industry-item:hover {
  color: var(--primary-hover);
}

.industry-item:last-child,
.industry-item:nth-last-child(2) {
  border-bottom: none;
}

.industry-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: currentColor;
  stroke: currentColor;
}

.industry-item span {
  font-size: 16px;
  font-weight: 400;
  color: currentColor;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

.card {
  border: 1px solid rgba(0, 38, 217, 0.1);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--bg-tertiary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-elevation);
  border-color: var(--primary);
}

/* ===== Categories Section ===== */
.categories-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 3;
}

.catalog-categories-section {
  padding: 60px 0;
  position: relative;
  z-index: 3;
}

/* ===== Section Heading (Unified) ===== */

.categories-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 60px 0;
  max-width: 800px;
} 

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ===== Category Cards (unified) ===== */
.category-card,
.catalog-categories-card {
  display: flex;
  align-items: stretch;
  gap: var(--spacing-lg);
  background: var(--bg-tertiary);
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-card:hover,
.catalog-categories-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-elevation);
}

.category-box:hover .category-arrow {
  background: var(--primary);
  color: var(--bg-tertiary);
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Compact variant (subcategory pages) */
.catalog-categories-card--compact {
  text-decoration: none;
  color: inherit;
  overflow: visible;
  background: var(--bg-primary);
  align-items: center;
}

.catalog-categories-card--compact .category-name {
  font-size: 16px;
}

/* ===== Category Graphic ===== */
.category-graphic {
  flex-shrink: 0;
  width: 175px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-graphic svg {
  width: 100%;
  height: 100%;
}

.category-graphic--sm {
  width: 50px;
  height: 50px;
}

/* ===== Category Content ===== */
.category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 12px 20px 0;

}

.category-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.category-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-name a:hover {
  color: var(--primary);
}

.category-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em;
}

.category-box {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: 12px;
  text-decoration: none;
  color: inherit;
}

.category-box-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e91e63;
  transition: all 0.3s ease;
}

.category-arrow svg {
  width: 20px;
  height: 20px;
}

/* Subcategory list inside a category card */
.category-children {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-child-item {
  margin: 0;
  padding: 0;
}

.category-child-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a.category-child-link:hover {
  opacity: 0.75;
}

/* Deeper nesting levels — indent + slightly smaller text */
.category-children .category-children {
  margin-top: 4px;
  padding-left: 16px;
}

.category-children--depth-1 .category-child-link {
  font-size: 12px;
  color: var(--primary);
  opacity: 0.90;
}

.category-children--depth-2 .category-child-link,
.category-children--depth-3 .category-child-link {
  font-size: 11px;
  color: var(--primary);
  opacity: 0.75;
}

/* Categories Section Tablet */
@media (max-width: 1024px) {
  .categories-section,
  .catalog-categories-section {
    padding: 40px 0;
  }

  .section-heading {
    font-size: 40px;
  }

  .section-heading::after {
    right: -35px;
  }

  .categories-intro {
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 100%;
  }

  .category-card,
  .catalog-categories-card {
    gap: 20px;
  }

  .category-graphic {
    width: 140px;
    height: 160px;
  }

  .category-content {
    padding: 20px 16px 20px 0;
    gap: 10px;
  }

  .category-name {
    font-size: 18px;
  }

  .category-description {
    font-size: 14px;
  }

  .category-box {
    margin-top: 8px;
  }

  .category-box-text {
    font-size: 13px;
  }

  .category-arrow {
    width: 36px;
    height: 36px;
  }

  .category-arrow svg {
    width: 18px;
    height: 18px;
  }

  .subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Categories Section Mobile */
@media (max-width: 768px) {
  .categories-section,
  .catalog-categories-section {
    padding: 30px 0;
  }

  .section-heading {
    font-size: 32px;
  }

  .section-heading::after {
    right: -30px;
    font-size: 28px;
  }

  .categories-intro {
    font-size: 15px;
    margin-bottom: 40px;
    max-width: 100%;
  }

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

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

  .category-card,
  .catalog-categories-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .category-graphic {
    width: 100%;
    height: 200px;
  }

  .category-content {
    padding: 20px;
    gap: 12px;
    width: 100%;
  }

  .category-name {
    font-size: 18px;
    line-height: 1.3;
  }

  .category-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .category-box {
    margin-top: 12px;
  }

  .category-box-text {
    font-size: 13px;
  }

  .category-arrow {
    width: 36px;
    height: 36px;
  }

  .category-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Catalog Products Section ===== */
.catalog-products-section {
  padding: 60px 0;
  position: relative;
  z-index: 3;
}

.catalog-products-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 48px 0;
  position: relative;
  display: inline-block;
}

.catalog-products-heading::after {
  content: "\\\\";
  position: absolute;
  right: -40px;
  color: var(--border-active);
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.catalog-product-card {
  background: var(--bg-tertiary);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.catalog-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 38, 217, 0.2);
}

.catalog-product-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalog-product-image img {
  width: 100%;
  object-fit: cover;
}

.catalog-product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--spacing-md);
}

.catalog-product-title a{
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  text-decoration: none;
}

.catalog-product-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-product-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-product-specs li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 0;
  position: relative;
  padding-left: 20px;
}

.catalog-product-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.catalog-product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.catalog-product-actions .btn {
  width: 200px;
  white-space: nowrap;
}

.catalog-product-pdf-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-all);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-product-pdf-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: var(--transition-all);
}

.catalog-product-pdf-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.catalog-product-pdf-link:hover svg {
  transform: scale(1.1);
}

/* Catalog Products Section Tablet */
@media (max-width: 1024px) {
  .catalog-products-section {
    padding: 40px 0;
  }

  .catalog-products-heading {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .catalog-products-heading::after {
    right: -35px;
  }

  .catalog-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-product-image {
    height: 200px;
  }

  .catalog-product-content {
    gap: 14px;
  }

  .catalog-product-title {
    font-size: 20px;
  }

  .catalog-product-desc {
    font-size: 14px;
  }

  .catalog-product-specs li {
    font-size: 13px;
  }

  .catalog-product-actions .btn {
    min-width: 120px;
    white-space: nowrap;
  }
}

/* Catalog Products Section Mobile */
@media (max-width: 768px) {
  .catalog-products-section {
    padding: 40px 0;
  }

  .catalog-products-heading {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .catalog-products-heading::after {
    right: -30px;
    font-size: 28px;
  }

  .catalog-products-grid {
    grid-template-columns: 1fr;
  }

  .catalog-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-elevation);
  }

  .catalog-product-image {
    height: 180px;
  }

  .catalog-product-content {
    gap: 12px;
  }

  .catalog-product-title {
    font-size: 18px;
  }

  .catalog-product-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  .catalog-product-specs {
    gap: 6px;
  }

  .catalog-product-specs li {
    font-size: 13px;
    padding-left: 18px;
  }

  .catalog-product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-product-actions .btn {
    width: 100%;
    min-width: auto;
    white-space: nowrap;
  }

  .catalog-product-pdf-link {
    text-align: center;
    font-size: 13px;
    justify-content: center;
  }

  .catalog-product-pdf-link svg {
    width: 14px;
    height: 14px;
  }
}

/* ===== Contacts Info Section ===== */
.contacts-info-section {
  padding: 60px 0;
  position: relative;
  z-index: 3;
}

.contacts-address-section {
  margin-bottom: 48px;
}

.contacts-section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}

.contacts-company-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 24px 0;
}

.contacts-address-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-address-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-address-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.contacts-address-value {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
}

.contacts-phone-email-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: start;
}

.contacts-phone-section,
.contacts-email-section {
  display: flex;
  flex-direction: column;
}

.contacts-phone-value,
.contacts-email-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  text-decoration: none;
  transition: var(--transition-color);
  margin-top: 8px;
}

.contacts-phone-value {
  margin-bottom: 20px;
}

.contacts-phone-value:hover,
.contacts-email-value:hover {
  color: var(--primary);
}

.contacts-details-section {
  margin-top: 48px;
}

.contacts-details-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-top: 20px;
}

.contacts-details-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-details-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.contacts-details-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Contacts Info Section Tablet */
@media (max-width: 1024px) {
  .contacts-info-section {
    padding: 40px 0;
  }

  .contacts-header {
    margin-bottom: 50px;
  }

  .contacts-main-title {
    font-size: 40px;
  }

  .contacts-description {
    font-size: 16px;
  }

  .contacts-address-section {
    margin-bottom: 40px;
  }

  .contacts-section-title {
    font-size: 22px;
  }

  .contacts-company-name {
    font-size: 24px;
  }

  .contacts-phone-email-wrapper {
    gap: 40px;
  }

  .contacts-phone-value,
  .contacts-email-value {
    font-size: 28px;
  }

  .contacts-details-section {
    margin-top: 40px;
  }

  .contacts-details-block {
    gap: 20px;
  }

  .contacts-details-label {
    font-size: 15px;
  }

  .contacts-details-value {
    font-size: 17px;
  }
}

/* Contacts Info Section Mobile */
@media (max-width: 768px) {
  .contacts-info-section {
    padding: 40px 0;
  }

  .contacts-header {
    margin-bottom: 40px;
  }

  .contacts-main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .contacts-main-title::after {
    width: 60px;
    height: 2px;
    bottom: -6px;
  }

  .contacts-description {
    font-size: 15px;
    line-height: 1.6;
  }

  .contacts-address-section {
    margin-bottom: 32px;
  }

  .contacts-section-title {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .contacts-section-title::after {
    width: 50px;
    height: 2px;
  }

  .contacts-company-name {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .contacts-address-block {
    gap: var(--spacing-md);
  }

  .contacts-address-label,
  .contacts-address-value {
    font-size: 15px;
  }

  .contacts-phone-email-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contacts-phone-value,
  .contacts-email-value {
    font-size: 24px;
  }

  .contacts-details-section {
    margin-top: 32px;
  }

  .contacts-details-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: 16px;
  }

  .contacts-details-label,
  .contacts-details-value {
    font-size: 15px;
  }
}

/* ===== Contacts Form Section ===== */
.contacts-form-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 3;
}

.contacts-form-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0 0 12px 0;
}

.contacts-form-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 40px 0;
}

.contacts-form {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: 40px;
  background: var(--bg-tertiary);
}

.contacts-form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.contacts-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-form-group--full {
  grid-column: 1 / -1;
}

.contacts-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.contacts-form-input,
.contacts-form-textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  font-size: 15px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.contacts-form-input::placeholder,
.contacts-form-textarea::placeholder {
  color: var(--text-disabled);
}

.contacts-form-input:focus,
.contacts-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 38, 217, 0.1);
}

.contacts-form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contacts-form-consent {
  margin-top: 0;
}

.contacts-form-consent-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 500px;
}

.contacts-form-box p{
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 10px 0 0 0;
}

.contacts-form-box span{
  display: inline !important;
  width: auto !important;
}

.contacts-form-consent-text a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.wpcf7-list-item {
  margin: 0;
}

.contacts-form-consent-link {
  color: var(--primary);
  text-decoration: underline;
  transition: var(--transition-color);
}

.contacts-form-consent-link:hover {
  color: var(--primary-hover);
}

.contacts-form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 16px;
  user-select: none;
}

.contacts-form-checkbox-input {
  display: none;
}

.contacts-form-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.contacts-form-checkbox-label
  input[type="checkbox"]:checked
  + .contacts-form-checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.contacts-form-checkbox-label
  input[type="checkbox"]:checked
  + .contacts-form-checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.contacts-form-checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* =============================================================
   CF7 [acceptance] checkbox — единые стили для всех форм
   CF7 рендерит: .wpcf7-form-control-wrap > .wpcf7-acceptance > label > input + text
   ============================================================= */

.wpcf7-acceptance {
  display: inline;
}

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.wpcf7-acceptance label a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.wpcf7-acceptance label a:hover {
  color: var(--primary-hover);
}

/* Кастомный чекбокс через appearance: none — работает во всех современных браузерах */
.wpcf7-acceptance input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border-default);
  background: var(--bg-tertiary);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 2px 0 0 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 8px;
}

.wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  /* SVG-галочка белого цвета */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wpcf7-acceptance input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* CTA-формы на тёмном фоне — переопределяем цвета */
.cta-form .wpcf7-acceptance label {
  color: rgba(255, 255, 255, 0.75);
}

.cta-form .wpcf7-acceptance input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.cta-form .wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}


/* Форма контактов — совместимость с .contacts-form-consent layout */
.contacts-form .wpcf7-acceptance {
  margin-top: 12px;
}

.contacts-form-submit {
  align-self: flex-start;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Contacts Form Section Tablet */
@media (max-width: 1024px) {
  .contacts-form-section {
    padding: 40px 0;
  }

  .contacts-form-title {
    font-size: 28px;
  }

  .contacts-form-description {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .contacts-form {
    max-width: 100%;
    padding: 32px;
    gap: 20px;
  }

  .contacts-form-fields-grid {
    gap: 20px;
  }

  .contacts-form-input,
  .contacts-form-textarea {
    padding: 14px;
    font-size: 14px;
  }

  .contacts-form-submit {
    padding: 14px 28px;
    font-size: 15px;
    margin-bottom: 16px;
  }

  .contacts-form-consent-text {
    font-size: 12px;
  }

  .contacts-form-checkbox-text {
    font-size: 13px;
  }
}

/* Contacts Form Section Mobile */
@media (max-width: 768px) {
  .contacts-form-section {
    padding: 40px 0;
  }

  .contacts-form-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .contacts-form-description {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .contacts-form {
    max-width: 100%;
    padding: 24px;
    gap: 18px;
  }

  .contacts-form-fields-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contacts-form-group {
    gap: 6px;
  }

  .contacts-form-label {
    font-size: 13px;
  }

  .contacts-form-input,
  .contacts-form-textarea {
    padding: 12px;
    font-size: 14px;
  }

  .contacts-form-textarea {
    min-height: 100px;
  }

  .contacts-form-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    align-self: stretch;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .contacts-form-consent-text {
    font-size: 12px;
    line-height: 1.5;
  }

  .contacts-form-checkbox-label {
    margin-top: 12px;
    gap: 10px;
  }

  .contacts-form-checkbox-custom {
    width: 18px;
    height: 18px;
  }

  .contacts-form-checkbox-text {
    font-size: 13px;
  }
}

/* ===== Card Hero Section ===== */
.card-hero-section {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 30%, var(--primary-hover) 70%, var(--primary) 100%);
  margin-top: calc(-1 * var(--header-height));
}

.card-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.card-hero-section .container {
  position: relative;
  z-index: 2;
}

.card-hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
}

/* ===== Card Gallery Section ===== */
.card-gallery-section {
  padding: 60px 0;
  position: relative;
  z-index: 3;
}

/* Двухколоночный layout: слайдер + информация */
.card-gallery-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.card-gallery-col {
  position: relative;
}

.card-gallery-col img{
  object-fit: cover;
}

/* Информационная колонка */
.card-gallery-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-gallery-info .page-hero-title {
  display: block;
  font-size: 42px;
  line-height: 1.15;
  color: var(--text-heading);
  margin: 0;
}

.card-gallery-info .card-hero-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

.card-gallery-info-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0;
}

.card-gallery-info-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.card-gallery-price {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary);
}

.price-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-gallery-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.product-phone-link:hover {
  color: var(--primary);
}

.product-phone-link svg {
  flex-shrink: 0;
  color: var(--primary);
}

.card-gallery-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-gallery-feature-item {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: 14px;
}

/* Адаптив — планшет */
@media (max-width: 1024px) {
  .card-gallery-layout {
    gap: 32px;
  }

  .card-gallery-info-title {
    font-size: 24px;
  }
}

/* Адаптив — мобильный: информация сверху, слайдер снизу */
@media (max-width: 768px) {
  .card-gallery-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-gallery-info {
    gap: 14px;
    padding: 0 15px;
  }

  .card-gallery-info-title {
    font-size: 20px;
  }

  .card-gallery-actions .btn {
    width: 100%;
  }
}

/* Gallery Swiper */
.card-gallery-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-gallery-swiper .swiper-wrapper {
  height: 480px;
  width: 480px;
}

.card-gallery-swiper .swiper-slide {
  height: 100%;
  overflow: hidden;
}

.card-gallery-swiper .card-gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.card-gallery-swiper .card-gallery-slide:hover img {
  transform: scale(1.05);
}

.card-gallery-swiper .swiper-button-prev.card-gallery-prev,
.card-gallery-swiper .swiper-button-next.card-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-gallery-swiper .swiper-button-prev.card-gallery-prev {
  left: 24px;
}

.card-gallery-swiper .swiper-button-next.card-gallery-next {
  right: 24px;
}

.card-gallery-swiper .swiper-button-prev.card-gallery-prev:hover,
.card-gallery-swiper .swiper-button-next.card-gallery-next:hover {
  background: var(--primary);
  color: var(--bg-tertiary);
  transform: translateY(-50%) scale(1.1);
}

.card-gallery-swiper .swiper-button-prev.card-gallery-prev::after,
.card-gallery-swiper .swiper-button-next.card-gallery-next::after {
  font-size: 20px;
  font-weight: 700;
  color: currentColor;
}

.card-section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0 0 48px 0;
  position: relative;
  display: inline-block;
}

.card-section-title::after {
  content: "\\\\";
  position: absolute;
  right: -40px;
  color: var(--border-active);
}

/* ===== Card Tabs Section ===== */
.card-tabs-section {
  padding: 0px 0;
  background: var(--bg-tertiary);
  position: relative;
  z-index: 3;
}

.card-tabs {
  max-width: 100%;
}

.card-tabs-header {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-default);
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  &::-webkit-scrollbar {
    display: none;
  }
}

.card-tab-btn {
  padding: 16px 32px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.card-tab-btn:hover {
  color: var(--primary);
}

.card-tab-btn.active {
  color: var(--primary);
}

.card-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  color: var(--primary);
}

.card-tabs-content {
  position: relative;
  min-height: 400px;
}

.card-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.card-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Card Specs Section ===== */

/* ===== Card Video ===== */
.card-video-content {
  padding: 8px 0;
}

.card-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--text-primary)
}

.card-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Card Returns ===== */
.card-returns-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 760px;
}

.card-returns-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.card-returns-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.card-returns-content p {
  margin-bottom: 12px;
}

.card-returns-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.card-specs-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

.card-specs-content p {
  margin-bottom: 12px;
}

.card-specs-content ul,
.card-specs-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.card-specs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: var(--bg-tertiary);
}

.card-specs-content table tr {
  border-bottom: 1px solid var(--border-default);
}

.card-specs-content table tr:last-child {
  border-bottom: none;
}

.card-specs-content table td,
.card-specs-content table th {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
}

.card-specs-content table td:first-child,
.card-specs-content table th {
  font-weight: 600;
  color: var(--text-heading);
  width: 100%;
}

.card-specs-content table thead {
  background: var(--bg-secondary);
}

.card-specs-content table thead th {
  color: var(--text-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Responsive table wrapper */
.card-specs-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.card-specs-content .table-responsive table {
  margin-bottom: 0;
  min-width: 480px;
}

@media (max-width: 768px) {
  /* Все таблицы внутри specs — горизонтальный скролл */
  .card-specs-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    min-width: unset;
  }

  .card-specs-content table thead,
  .card-specs-content table tbody,
  .card-specs-content table tfoot {
    display: block;
    white-space: nowrap;
  }

  .card-specs-content table tr {
    display: flex;
  }

  .card-specs-content table td,
  .card-specs-content table th {
    padding: 12px 14px;
    font-size: 14px;
    flex: 1 1 auto;
  }

  /* Таблица с двумя колонками (название–значение): стекуем вертикально */
  .card-specs-content table:not(:has(thead)) tr {
    flex-direction: column;
    white-space: normal;
  }

  .card-specs-content table:not(:has(thead)) td {
    min-width: unset;
    width: 100%;
    padding: 10px 14px;
  }

  .card-specs-content table:not(:has(thead)) td:first-child {
    padding-bottom: 2px;
    border-bottom: none;
    width: 100%;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .card-specs-content table:not(:has(thead)) td:last-child {
    padding-top: 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
  }
}

/* ===== Card Description ===== */
.card-description {
  max-width: 100%;
}

.card-description p {
	display: flex;
	align-items: center;
flex-wrap: wrap;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0 0 24px 0;
}

.card-description p:last-child {
  margin-bottom: 0;
}

.card-description table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: var(--bg-tertiary);
}

.card-description table tr {
  border-bottom: 1px solid var(--border-default);
}

.card-description table tr:last-child {
  border-bottom: none;
}

.card-description table td,
.card-description table th {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
}

.card-description table td:first-child,
.card-description table th {
  font-weight: 600;
  color: var(--text-heading);
  width: 40%;
}

.card-description table thead {
  background: var(--bg-secondary);
}

.card-description table thead th {
  color: var(--text-heading);
  font-size: 13px;
  text-transform: uppercase;
}

/* ===== Card Docs Section ===== */

.card-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.card-docs-list li {
  margin: 0;
}

.card-docs-list a {
  color: var(--primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-all);
  padding: 12px 16px;
  background: var(--bg-primary);
}

.card-docs-list a:hover {
  color: var(--primary-hover);
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Card Sections Tablet */
@media (max-width: 1024px) {
  .card-hero-section {
    padding: 80px 0;
  }

  .card-hero-description {
    font-size: 16px;
  }

  .card-gallery-info .page-hero-title {
    font-size: 36px;
  }

  .card-gallery-section,
  .card-tabs-section {
    padding: 40px 0;
  }

  .card-section-title {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .card-section-title::after {
    right: -35px;
  }

  .card-gallery-swiper .swiper-wrapper {
    height: 380px;
    width: 380px;
  }

  .card-gallery-swiper .swiper-button-prev.card-gallery-prev,
  .card-gallery-swiper .swiper-button-next.card-gallery-next {
    width: 40px;
    height: 40px;
  }

  .card-gallery-swiper .swiper-button-prev.card-gallery-prev {
    left: 16px;
  }

  .card-gallery-swiper .swiper-button-next.card-gallery-next {
    right: 16px;
  }

  .card-tabs-header {
    gap: 4px;
  }

  .card-tab-btn {
    padding: 10px 24px;
    font-size: 16px;
  }

  .card-description p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .card-specs-content {
    font-size: 15px;
  }

  .card-description p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .card-docs-list a {
    font-size: 15px;
  }
  .card-description table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: unset;
  }

  .card-description table thead,
  .card-description table tbody,
  .card-description table tfoot {
    display: block;
    white-space: nowrap;
  }

  .card-description table tr {
    display: flex;
  }

  .card-description table td,
  .card-description table th {
    padding: 12px 14px;
    font-size: 14px;
    flex: 1 1 auto;
    width: 100% !important;
  }

  .card-description table:not(:has(thead)) tr {
    flex-direction: column;
    white-space: normal;
  }

  .card-description table tr:first-child {
    display: none;
  }

  .card-description table:not(:has(thead)) td {
    min-width: unset;
    width: 100%;
    padding: 10px 14px;
  }

  .card-description table:not(:has(thead)) td p img{
    margin: 0 auto;
  }

  .card-description table:not(:has(thead)) td:first-child {
    padding-bottom: 2px;
    border-bottom: none;
    width: 100%;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .card-description table:not(:has(thead)) td:last-child {
    padding-top: 2px;
    font-size: 15px;
    font-weight: 500;
  }

}


/* Card Sections Mobile */
@media (max-width: 768px) {
  .card-hero-section {
    padding: 100px 0 20px;
    margin-top: -82px;
  }

  .card-hero-description {
    font-size: 15px;
  }

  .card-gallery-info .page-hero-title {
    font-size: 30px;
  }

  .card-gallery-info .card-hero-description {
    font-size: 15px;
  }

  .card-gallery-section,
  .card-tabs-section {
    padding: 30px 0;
  }

  .card-gallery-section .container {
    padding: 0;
  }

  .card-gallery-section .swiper-wrapper {
    padding-left: 15px;
  }

  .card-gallery-slide:last-child {
    padding-right: 15px;
  }

  .card-gallery-swiper {
    overflow: hidden;
  }

  .card-gallery-swiper .swiper-wrapper {
    height: 300px;
    width: 300px;
  }

  .card-gallery-swiper .swiper-slide {
    overflow: hidden;
  }

  .card-gallery-swiper .swiper-button-prev.card-gallery-prev {
    left: 15px;
  }

  .card-gallery-swiper .swiper-button-next.card-gallery-next {
    right: 15px;
  }

  .card-gallery-swiper .swiper-button-prev.card-gallery-prev,
  .card-gallery-swiper .swiper-button-next.card-gallery-next {
    display: none;
  }

  .card-tab-btn {
    font-size: 15px;
    text-align: left;
  }

  .card-description p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .card-section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .card-section-title::after {
    right: -30px;
    font-size: 28px;
  }

  .card-gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .card-gallery-item {
    height: 200px;
  }

  .card-specs-content {
    font-size: 14px;
  }

  .card-specs-content table td,
  .card-specs-content table th {
    padding: 12px 14px;
    display: block;
  }

  .card-specs-content table td:first-child,
  .card-specs-content table th {
    width: 100%;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .card-description p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .card-docs-list {
    gap: 12px;
  }

  .card-docs-list a {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* ===== 404 Error Section ===== */
.error-404-section {
  padding: 200px 0 100px;
  background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 30%, var(--primary-hover) 70%, var(--primary) 100%);
  margin-top: calc(-1 * var(--header-height));
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 153px);
  display: flex;
  align-items: center;
}

.error-404-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.error-404-section .container {
  position: relative;
  z-index: 2;
}

.error-404-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.error-404-text {
  color: var(--bg-tertiary);
  text-align: center;
}

.error-404-title {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: var(--bg-tertiary);
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.error-404-subtitle {
  font-size: 36px;
  font-weight: 600;
  color: var(--bg-tertiary);
  margin: 0 0 24px 0;
}

.error-404-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
  max-width: 500px;
}

.error-404-button.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #e91e63;
}

.error-404-button.btn-primary:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.error-404-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 404 Section Tablet */
@media (max-width: 1024px) {
  .error-404-section {
    padding: 200px 0 80px;
    min-height: calc(100vh - 153px);
  }

  .error-404-image {
    order: 1;
  }

  .error-404-text {
    order: 2;
  }

  .error-404-title {
    font-size: 100px;
  }

  .error-404-subtitle {
    font-size: 32px;
  }

  .error-404-description {
    font-size: 16px;
    margin: 0 auto 40px;
  }

  .error-404-image img {
    max-width: 400px;
  }
}

/* 404 Section Mobile */
@media (max-width: 768px) {
  .error-404-section {
    padding: 100px 0 40px;
    margin-top: -54px;
    min-height: calc(100vh - 54px);
  }

  .error-404-title {
    font-size: 72px;
    margin-bottom: 16px;
  }

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

  .error-404-description {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .error-404-image img {
    max-width: 100%;
  }

  .error-404-button {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ===== Industries Section ===== */
.industries-section {
  padding: 60px 0;
  background: var(--bg-tertiary);
  position: relative;
  z-index: 5;
  overflow: visible;
}

.industries-section::after {
  content: url("../images/decor1-light.svg");
  position: absolute;
  bottom: -60%;
  left: -10%;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

.industries-top {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--spacing-lg);
  align-items: start;
  margin-bottom: 80px;
}

.industries-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.industries-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.industries-text-box {
  display: flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--bg-secondary);
  box-shadow: 0 20px 50px 0 rgba(18, 56, 68, 0.05);
  max-width: 500px;
}

.industries-text-slogan {
  font-weight: 600;
}

.industries-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.industries-image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 500px;
}

.industries-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.industries-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 50%, var(--bg-tertiary) 100%);
  padding: 40px;
}

.industry-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: transparent;
  border: none;
  padding: 0;
  transition: none;
}

.industry-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.industry-number-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
}

.industry-card-active .industry-number-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-tertiary);
}

.industry-card-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  padding-top: 4px;
}

/* Industries Section Tablet */
@media (max-width: 1024px) {
	
	
  .industries-section {
    padding: 40px 0;
  }

  .industries-section::after {
    content: url("../images/decor1-t.svg");
  }

  .industries-top {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
  }

  .industries-title {
    font-size: 40px;
  }

  .industries-text p {
    font-size: 15px;
  }

  .industries-image {
    order: -1;
  }

  .industries-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 24px;
  }

  .industry-card {
    gap: var(--spacing-md);
  }

  .industry-number-circle {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .industry-card-text {
    font-size: 14px;
  } 
}

/* Industries Section Mobile */
@media (max-width: 768px) {
  .industries-section {
    padding: 40px 0;
  }

  .industries-section::after {
    content: url("../images/decor1-m.svg");
  }

  .industries-top {
    gap: 40px;
    margin-bottom: 50px;
  }

  .industries-title {
    font-size: 32px;
  }

  .industries-text {
    gap: var(--spacing-md);
  }

  .industries-text p {
    font-size: 14px;
  }

  .industries-cards {
    gap: var(--spacing-md);
    padding: 24px 20px;
  }

  .industry-card {
    gap: 14px;
  }

  .industry-number-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .industry-card-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* ===== Steps Flywheel ===== */
.steps-flywheel-section {
  padding: 60px 0;
  position: relative;
  z-index: 5;
}

.steps-flywheel-wrapper {
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 80px;
}

.steps-flywheel-diagram {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 580px;
  margin: 0 auto;
  background: linear-gradient(135deg, #e3f2fd 0%, var(--bg-tertiary) 100%);
  border-radius: 50%;
}

.flywheel-circle {
  position: relative;
  width: 100%;
  height: 585px;
  margin: 0 auto;
}

.flywheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  z-index: 10;
}

.whiteboard-container {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd 0%, #b3d9ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--shadow-elevation);
  position: relative;
  overflow: visible;
}

.purple-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.whiteboard {
  width: 170px;
  height: 170px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.whiteboard svg {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.chart {
  width: 100%;
  height: 100%;
}

.flywheel-circle-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.flywheel-circle-line circle {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.flywheel-step {
  position: absolute;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.step-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--primary);
  transform: translate(-50%, -50%);
  z-index: 3;
  box-sizing: border-box;
}

.step-dot-active {
  width: 48px;
  height: 48px;
  background: #b3d9ff;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.step-label {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  text-align: center;
  width: 110px;
  line-height: 1.4;
  z-index: 1;
}

/* Позиционирование этапов по кругу */
/* Круг: радиус 250px в viewBox 600x600 = 41.67% от размера контейнера */
/* Центр круга: 50% 50% */
/* Позиции на окружности (от центра): */
/* step-1: вверху (0°) */
/* step-2: справа (90°) */
/* step-3: внизу справа (135°) */
/* step-4: внизу слева (225°) */
/* step-5: слева (270°) */

.step-1 {
  top: calc(50% - 41.67%);
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-1 .step-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-1 .step-label {
  top: calc(50% + 30px);
  left: 50%;
  transform: translateX(-50%);
}

.step-2 {
  top: 50%;
  right: calc(50% - 41.67%);
  transform: translate(50%, -50%);
}

.step-2 .step-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-2 .step-label {
  top: 50%;
  right: 50%;
  transform: translateY(-150%);
  text-align: left;
}

.step-3 {
  top: calc(50% + 29.5%);
  right: calc(50% - 29.5%);
  transform: translate(50%, -50%);
}

.step-3 .step-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-3 .step-label {
  top: calc(50% - 20px);
  left: 50%;
  transform: translate(-100%, -100%);
  text-align: left;
}

.step-4 {
  top: calc(50% + 29.5%);
  left: calc(50% - 29.5%);
  transform: translate(-50%, -50%);
}

.step-4 .step-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-4 .step-label {
  top: calc(50% - 20px);
  left: 50%;
  transform: translate(0%, -100%);
  text-align: right;
}

.step-5 {
  top: 50%;
  left: calc(50% - 41.67%);
  transform: translate(-50%, -50%);
}

.step-5 .step-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-5 .step-label {
  top: 50%;
  left: calc(50% - 10px);
  transform: translateY(-150%);
  text-align: right;
}

.steps-flywheel-content {
  background: var(--text-heading);

  padding: 40px;
  color: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cycle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.cycle-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-tertiary);
  margin: 0;
}

.cycle-nav {
  display: flex;
  gap: 8px;
}

.cycle-box {
  overflow: auto;
  max-height: 500px;
  scrollbar-width: thin;
  scrollbar-color: #888888 rgba(255, 255, 255, 0.1);
}

.cycle-box::-webkit-scrollbar {
  width: 6px;
}

.cycle-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.cycle-box::-webkit-scrollbar-thumb {
  background: #888888;
}

.cycle-box::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.cycle-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cycle-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.cycle-item {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.cycle-item.cycle-item-active {
  display: flex;
}

.cycle-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cycle-stage-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.cycle-stage-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #b3d9ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}

.cycle-stage-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-tertiary);
  margin: 0;
  line-height: 1.3;
}

.cycle-stage-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cycle-includes {
  margin-top: 8px;
}

.cycle-includes-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px 0;
}

.cycle-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cycle-includes-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--bg-tertiary);
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
}

.cycle-includes-item .check-icon circle {
  fill: #e91e63;
}

/* Tablet */
@media (max-width: 1024px) {
  .steps-flywheel-section {
    padding: 40px 0;
  }

  .steps-flywheel-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .steps-flywheel-diagram {
    max-width: 500px;
    height: 500px;
    order: 1;
  }

  .flywheel-circle {
    height: 500px;
  }

  .flywheel-center {
    width: 160px;
    height: 160px;
  }

  .whiteboard {
    width: 110px;
    height: 110px;
  }

  .step-label {
    font-size: 12px;
    max-width: 120px;
  }

  .step-dot-active {
    width: 40px;
    height: 40px;
  }

  .step-number {
    font-size: 18px;
  }

  .steps-flywheel-content {
    padding: 32px;
  }

  .cycle-stage-title {
    font-size: 22px;
  }

  .cycle-stage-description {
    font-size: 14px;
  }

  .cycle-includes-item {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .steps-flywheel-section {
    padding: 40px 0;
  }

  .steps-flywheel-wrapper {
    gap: 40px;
  }

  .steps-flywheel-diagram {
    display: none;
  }

  .flywheel-circle {
    height: 100%;
  }

  .flywheel-center {
    width: 140px;
    height: 140px;
  }

  .whiteboard {
    width: 90px;
    height: 90px;
  }

  .step-label {
    font-size: 11px;
    max-width: 100px;
  }

  .step-dot {
    width: 12px;
    height: 12px;
  }

  .step-dot-active {
    width: 36px;
    height: 36px;
  }

  .step-number {
    font-size: 16px;
  }

  .steps-flywheel-content {
    padding: 24px;
    gap: var(--spacing-lg);
  }

  .cycle-header {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  .cycle-title {
    font-size: 16px;
  }

  .cycle-stage-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .cycle-stage-title {
    font-size: 20px;
  }

  .cycle-stage-description {
    font-size: 14px;
  }

  .cycle-includes-title {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .cycle-includes-item {
    font-size: 13px;
    gap: 10px;
  }

  .check-icon {
    width: 18px;
    height: 18px;
  }
}

/* ===== Cases Section ===== */
.cases-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 5;

  overflow: visible;
}

.cases-section .container {
  position: relative;
  z-index: 6;
}

.cases-section::after {
  content: url("../images/decor2-m.svg");
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
  z-index: 4;
}

.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.cases-badge {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.slogan-line {
  display: block;
}

.cases-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.8;
  max-width: 800px;
}

.cases-header-right {
  display: flex;
  align-items: center;
}

.cases-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cases-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cases-nav-btn:hover {
  background: var(--primary);
  color: var(--bg-tertiary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.cases-nav-btn:active {
  transform: scale(0.95);
}

.cases-nav-btn svg {
  width: 20px;
  height: 20px;
}

.cases-slider-wrapper {
  position: relative;
}

.cases-swiper {
  overflow: visible;
}

.case-slide {
  display: grid;
  grid-template-columns: 500px 1fr;
  align-items: stretch;
  min-height: 520px;
  position: relative;
  z-index: 1;
}

.case-image {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.case-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--bg-tertiary);
  padding: 40px;
}

.case-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0;
}

.case-metrics {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.metrics-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #e91e63;
  margin-top: 4px;
}

.metrics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.case-works {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.works-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.works-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.works-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.works-column li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.works-column li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* Cases Section Tablet */
@media (max-width: 1024px) {
  .cases-section {
    padding: 40px 0;
  }

  .cases-header {
    margin-bottom: 50px;
  }

  .cases-subtitle {
    font-size: 16px;
  }

  .case-slide {
    grid-template-columns: 1fr;
  }

  .case-image {
    min-height: 360px;
    height: 360px;
    order: 1;
  }

  .case-info {
    order: 2;
    padding: 32px;
  }

  .case-title {
    font-size: 24px;
  }

  .metric-card {
    padding: 20px 16px;
  }

  .metrics-icon {
    display: none;
  }

  .metric-label {
    font-size: 12px;
  }

  .metric-value {
    font-size: 16px;
  }

  .works-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .cases-nav-btn {
    width: 44px;
    height: 44px;
  }

  .cases-nav-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Cases Section Mobile */
@media (max-width: 768px) {
  .cases-section .container,
  .reviews-section .container {
    padding: 0;
  }

  .cases-section::after {
    bottom: -130px;
}

  .cases-nav {
    display: none;
  }

  .cases-header {
    padding: 0 15px;
  }

  .reviews-section-title {
    padding: 0 15px;
  }

  .cases-slide:first-child,
  .reviews-slide:first-child {
    padding-left: 15px;
  }

  .cases-slide:last-child,
  .reviews-slide:last-child {
    padding-right: 15px;
  }

  .cases-section {
    padding: 30px 0;
  }

  .cases-header-right {
    align-self: flex-end;
  }

  .cases-subtitle {
    font-size: 15px;
  }

  .case-image {
    display: none;
  }

  .case-info {
    order: 2;
    padding: 24px;
    gap: var(--spacing-lg);
  }

  .case-title {
    font-size: 20px;
  }

  .metric-card {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
  }

  .case-metrics {
    display: none;
  }

  .metric-label {
    font-size: 12px;
  }

  .metric-value {
    font-size: 16px;
  }

  .works-title {
    font-size: 16px;
  }

  .works-column li {
    font-size: 13px;
  }

  .cases-nav-btn {
    width: 40px;
    height: 40px;
  }

  .cases-nav-btn svg {
    width: 16px;
    height: 16px;
  }
}

.steps {
  max-width: 600px;
  margin: auto;
}

/* ===== CTA Form Section ===== */
.cta-form-section {
  padding: 60px 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.cta-form-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 30%, var(--primary-hover) 70%, var(--primary) 100%);
  z-index: 1;
}

.cta-form-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 2;
}

.cta-form-section .container {
  position: relative;
  z-index: 3;
}

.cta-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  background: var(--text-heading);
  padding: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-form-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.cta-form-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bg-tertiary);
  opacity: 0.9;
  margin: 0;
}

.cta-form-graphic {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
}

.cta-form-graphic svg {
  width: 100%;
  height: 100%;
}

.cta-form-right {
  display: flex;
  flex-direction: column;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-form-right p {
  color: var(--bg-tertiary);
}

.cta-form-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--bg-tertiary);
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-tertiary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  color: var(--bg-tertiary);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(5, 88, 255, 0.2);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bg-tertiary);
  font-size: 15px;
  white-space: nowrap;
}

.phone-flag {
  font-size: 20px;
}

.phone-code {
  font-weight: 600;
}

.phone-input {
  flex: 1;
}

.form-group {
  position: relative;
}

.required-mark {
  position: absolute;
  right: 16px;
  top: calc(50% + 12px);
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 700;
  pointer-events: none;
  font-size: 18px;
}

.promo-input-wrapper {
  display: flex;
  gap: 12px;
}

.promo-input {
  flex: 1;
}

.promo-btn {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.promo-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.radio-group {
  display: flex;
  gap: var(--spacing-lg);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 700;
}

.radio-text {
  font-size: 15px;
  color: var(--bg-tertiary);
}

.form-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-tertiary);
  align-self: flex-start;
}

.form-submit-btn {
  width: 100%;
  padding: 18px 32px;
  background: #e91e63;
  color: var(--bg-tertiary);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.form-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.form-disclaimer a {
  color: var(--bg-tertiary);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.form-disclaimer a:hover {
  opacity: 0.8;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-text {
  font-size: 14px;
  color: var(--bg-tertiary);
}

/* CTA Form Section Tablet */
@media (max-width: 1024px) {
  .cta-form-section {
    padding: 40px 0;
  }

  .cta-form-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 50px 40px;
  }

  .cta-form-title {
    font-size: 26px;
  }

  .cta-form-graphic {
    position: relative;
    width: 150px;
    height: 150px;
    margin-top: auto;
  }
}

/* CTA Form Section Mobile */
@media (max-width: 768px) {
  .cta-form-section {
    padding: 30px 0;
  }

  .cta-form-wrapper {
    padding: 40px 24px;
  }

  .cta-form-left {
    gap: var(--spacing-lg);
  }

  .cta-form-title {
    font-size: 20px;
  }

  .cta-form-description {
    font-size: 15px;
  }

  .cta-form-graphic {
      display: none;
  }

  .cta-form {
    gap: 20px;
  }

  .form-input {
    padding: 14px;
    font-size: 14px;
  }

  .phone-prefix {
    padding: 14px;
    font-size: 14px;
  }

  .radio-group {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .form-submit-btn {
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* ================= BUTTONS ================= */
.btn {
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-all);
  font-size: 16px;
  font-family: "Inter", sans-serif;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.js-open-modal-request {
	font-weight: 400;
	font-size: 15px;
	padding: 8px;
}

/* Primary Button */
.btn-primary {
  background: var(--primary);
  color: var(--bg-tertiary);
  box-shadow: 0 1px 3px var(--shadow-elevation);
}

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

.btn-primary:active {
  background: var(--primary-active);
  transform: scale(0.98);
}

.btn-primary:focus {
  outline: 2px solid var(--bg-tertiary);
  outline-offset: 2px;
}

.btn-primary:disabled {
  background: var(--btn-secondary-bg);
  color: var(--text-disabled);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Small Button */
.btn-sm {
  padding: 16px;
  font-size: 16px;
  max-width: 300px;
}

/* Secondary Button */
.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--primary);
  border: 1px solid var(--border-default);
}

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

.btn-secondary:active {
  background: var(--btn-secondary-active);
  border-color: var(--border-active);
  transform: scale(0.98);
}

.btn-secondary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-secondary:disabled {
  background: var(--btn-secondary-bg);
  color: var(--text-disabled);
  border-color: var(--border-default);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Small Button */
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Success Button */
.btn-success {
  background: var(--success);
  color: var(--bg-tertiary);
}

.btn-success:hover {
  background: #00b894;
}

/* Warning Button */
.btn-warning {
  background: var(--warning);
  color: var(--bg-tertiary);
}

.btn-warning:hover {
  background: #e68600;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

/* Mobile */
.nav-close,
.nav-contacts {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--bg-tertiary);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
  position: absolute;
  left: 0;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  bottom: 0;
}

/* Burger stays as burger when active — no X transform */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FOOTER ================= */
.footer {
  background: #2c2b2e;
  color: var(--bg-tertiary);
  position: relative;
  overflow: visible;
  z-index: -1;
}

.footer::after {
  content: url("../images/decor3.svg");
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.footer .container {
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

/* Footer Main */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 48px;
  padding: 48px 0;
}

.footer-main-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer Logo & About */
.footer-about {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-tertiary);
  font-family: "Inter", sans-serif;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Footer Contact Block */
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-phone {
  color: var(--bg-tertiary);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-color);
}

.footer-phone:hover {
  color: var(--primary);
}

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

.footer-email {
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition-color);
}

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

/* Footer Contacts */
.footer-contacts {
  display: flex;
  flex-direction: column;
}

/* Footer Navigation */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-nav-column:last-child {
  border-bottom: none;
}

.footer-nav-column h4 {
  color: var(--bg-tertiary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.footer-nav-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-column li {
  margin: 0;
}

.footer-nav-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition-color);
  line-height: 1.5;
}

.footer-nav-column a:hover {
  color: var(--bg-tertiary);
}

/* Footer CTA Button */
.footer-cta-btn {
  background: var(--primary);
  color: var(--bg-tertiary);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-all);
  margin-top: 8px;
  align-self: flex-start;
}

.footer-cta-btn:hover {
  background: var(--primary-hover);
}

.footer-cta-btn:active {
  background: var(--primary-active);
  transform: scale(0.98);
}

/* Footer Social Icons */
.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-link {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-all);
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-tertiary);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
}

.footer-legal-links-list {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition-color);
}

.footer-legal-links a:hover {
  color: var(--bg-tertiary);
}

/* Legacy socials class support */
.socials {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.socials a {
  background: var(--btn-secondary-bg);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.socials a:hover {
  background: var(--btn-secondary-hover);
}

.socials svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

/* ================= RESPONSIVE ================= */

/* Desktop - убедимся что footer-nav открыт */
@media (min-width: 769px) {
  .footer-nav-column ul {
    max-height: none !important;
    overflow: visible !important;
  }

  .footer-nav-column h4 {
    cursor: default;
  }

  .footer-nav-column h4::after {
    display: none;
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  /* Section Heading Tablet */
  .section-heading {
    font-size: 40px;
  }

  .section-heading::after {
    right: -35px;
  }

  /* Header adjustments for tablet */
  .header-top .container {
    padding: 12px 24px;
  }

  .header-nav .container {
    padding: 16px 24px;
  }

  .header-top-left {
    gap: 12px;
  }

  .header-slogan {
    font-size: 12px;
  }

  .header-top-right {
    gap: var(--spacing-md);
  }

  .nav-list {
    gap: var(--spacing-lg);
  }

  .nav-list > li > a {
    font-size: 15px;
  }

  .header-nav .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .about-image {
    display: none;
  }

  .about-content {
    flex: 1 1 auto;
    padding: 60px 40px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-description {
    font-size: 15px;
  }

  .about-industries {
    grid-template-columns: repeat(1, 1fr);
  }

  .industry-item:nth-last-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .industry-item:not(:nth-child(2n)) {
    padding-right: 0;
  }

  .industry-item:nth-child(2n) {
    padding-left: 0;
  }

  .industry-item {
    padding: var(--spacing-sm) 0;
  }

  /* Footer adjustments for tablet */
  .footer .container {
    padding: 0 24px;
  }

  .footer-main {
    padding: 40px 0;
    gap: 32px;
  }

  .footer-nav {
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .header-top {
    gap: 12px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Section Heading Mobile */
  .section-heading {
    font-size: 28px;
  }

  .section-heading::after {
    right: -25px;
  }

  /* Show burger menu */
  .burger {
    display: flex;
  }

  /* Header mobile */
  .header {
    position: relative;
    height: 80px;
  }

  .header.scrolled {
    position: fixed !important;
  }

  .header-top {
    border-bottom: none;
  }

  .header-top .container {
    padding: 12px 16px;
    position: relative;
  }

  .header-top-left {
    gap: 8px;
  }

  .header-slogan {
    display: none;
  }

  .header-top-right {
    gap: 24px;
  }

  .header-email {
    display: none;
  }

  .header-phone {
    font-size: 14px;
  }

  .header-telegram svg {
    width: 24px;
    height: 24px;
  }

  /* Hide phone & telegram from header-top on mobile */
  .header-phone,
  .header-telegram {
    display: none;
  }

  /* Phone & telegram inside nav-top */
  .nav-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  .nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
  }

  .nav-phone:hover {
    color: var(--primary);
  }

  .nav-phone svg {
    width: 20px;
    height: 20px;
  }

  .nav-telegram {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
  }

  .nav-telegram:hover {
    opacity: 0.7;
  }

  /* Header nav mobile — drawer from the left */
  .header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-tertiary);
    padding: 0;
    gap: 0;
    z-index: 1100;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .header-nav.active {
    transform: translateX(0);
  }

  /* Drawer top row: close button aligned right */
  .nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    flex-shrink: 0;
    width: 100%;
  }

  /* Nav stretches full width */
  .header-nav .nav {
    width: 100%;
  }

  /* Nav content area */
  .header-nav .nav {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }

  /* Overlay — covers main content, stays below header (z-index: 100) */
  .header-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99;
  }

  .header-nav-overlay.active {
    display: block;
  }

  .header-nav .nav-list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .header-nav .nav-list li {
    width: 100%;
  }

  .header-nav .nav-list a {
    color: var(--text-primary);
    padding: 0;
    font-weight: 500;
    border-bottom: 1px solid var(--light-bg);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    padding-bottom: 10px;
  }

  .header-nav .nav-list a:hover {
    color: var(--primary);
    padding-left: 8px;
  }

  /* Скрыть кнопку "Получить расчет" на мобильном */
  .header-nav .btn-primary.js-open-modal-request {
    display: none;
  }

  /* Показать кнопку mobile-cta на мобильном */
  .header-nav .mobile-cta {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background: var(--text-heading);
  }

  /* Close button inside nav-top */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-primary);
    transition: opacity 0.2s;
    flex-shrink: 0;
  }

  .nav-close:hover {
    opacity: 0.6;
  }

  .nav-close svg {
    width: 40px;
    height: 40px;
  }

  /* Block page scroll when mobile menu is active */
  body:has(.header-nav.active),
  html:has(.header-nav.active) {
    overflow: hidden;
    height: 100%;
  }

  /* Dropdown на мобильном */
  .header-nav .dropdown-menu,
  .header-nav .dropdown:hover > .dropdown-menu {
    position: absolute;
    transform: translateY(-500%);
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .header-nav .dropdown.dropdown-no-mobile > .dropdown-menu,
  .header-nav .dropdown.dropdown-no-mobile.active > .dropdown-menu {
    display: none !important;
  }

  .header-nav .dropdown > a::after {
    display: none;
  }

  .header-nav .dropdown-menu a {
    padding: 8px 0;
    color: var(--text-primary);
    background: transparent;
    border-bottom: 1px solid var(--light-bg);
    white-space: normal;
  }

  .header-nav .dropdown-menu a:hover {
    padding-left: 8px;
    background: transparent;
  }

  /* Вложенное подменю на мобильном */
  .header-nav .dropdown-submenu > .dropdown-menu,
  .header-nav .dropdown-submenu:hover > .dropdown-menu {
    position: static;
    display: none !important;
    padding-left: 16px;
    margin-top: 0;
    box-shadow: none;
  }

  .header-nav .dropdown-submenu.active > .dropdown-menu {
    display: block !important;
  }

  .header-nav .dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
  }

  .header-nav .dropdown-submenu.active > a .submenu-arrow {
    transform: rotate(90deg);
  }

  .about-content {
    padding: 40px 24px;
  }

  .about-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .about-description p{
    font-size: 14px;
  }
}

/* Advantages Section */
.advantages-section {
  background: var(--bg-primary);
  padding: 60px 0;
  color: var(--text-primary);
  position: relative;
}

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

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.advantage-card {
  background: var(--bg-tertiary);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.advantage-card-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  color: var(--primary-active);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-card-icon svg,
.advantage-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantage-card-icon svg * {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.advantage-card-icon img {
  /* Recolor monochrome raster/external-svg icons to var(--primary-active) */
  filter: brightness(0) saturate(100%) invert(18%) sepia(56%) saturate(1047%) hue-rotate(173deg) brightness(93%) contrast(95%);
}

.advantage-card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: auto 50px 0 0;
  font-weight: 400;
}

.advantages-unlock {
  padding: 0 0 30px 0;
}

.advantages-unlock-container {
  background: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px;
}

.advantages-unlock-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.advantages-unlock-icon {
  width: 48px;
  height: 48px;
  color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.advantages-unlock-icon svg {
  width: 100%;
  height: 100%;
}

.advantages-unlock-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-tertiary);
  white-space: nowrap;
}

.advantages-unlock-methods {
  display: flex;
  align-items: center;
  gap: 12px 36px;
  flex-wrap: wrap;
  background-color: var(--text-accent);
  padding: 16px;
}

.unlock-method {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bg-tertiary);
  font-size: 16px;
  font-weight: 500;
}

.unlock-method svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #e91e63;
  stroke: #e91e63;
}

@media (max-width: 1024px) {
  .advantages-section {
    padding: 40px 0;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-card {
    min-height: 160px;
    padding: 24px 20px;
  }

  .advantages-unlock-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: 24px 32px;
  }

  .advantages-unlock-methods {
    gap: var(--spacing-lg);
  }

  /* Blog Section Tablet */
  .blog-section {
    padding: 40px 0;
  }

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

  .blog-card-image {
    height: 200px;
  }

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

  .blog-card-title {
    font-size: 18px;
  }

  /* Reviews Section Tablet */
  .reviews-section {
    padding: 40px 0;
  }

  .reviews-header {
    margin-bottom: 50px;
  }

  .reviews-swiper {
    padding: 0 60px;
  }

  .review-card {
    padding: 24px;
  }

  .review-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
  }

  .review-name {
    font-size: 20px;
  }

  .review-text {
    font-size: 14px;
    -webkit-line-clamp: 7;
    line-clamp: 7;
  }

  .reviews-nav-btn {
    width: 44px;
    height: 44px;
  }

  .reviews-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .reviews-header {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
.nav-telegram {
    display: none;
  }
	
  .advantages-section {
    padding: 30px 0;
  }

  .advantages-container {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 0;
  }

  .advantage-item {
    padding: 40px 24px;
  }

  .advantage-item:not(:last-child)::after {
    display: none;
  }

  .advantage-item:not(:last-child) {
    border-bottom: 1px solid var(--border-default);
  }

  .advantage-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
  }

  .advantage-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .advantage-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .advantage-card-icon {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .advantage-card-text {
    font-size: 15px;
  }

  .advantages-unlock-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }

  .advantages-unlock-left {
    gap: 12px;
  }

  .advantages-unlock-text {
    font-size: 16px;
    white-space: normal;
  }

  .advantages-unlock-methods {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
  }

  .unlock-method {
    font-size: 15px;
  }

  /* Blog Section Mobile */
  .blog-section {
    padding: 30px 0;
  }

  .blog-section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .blog-card-image {
    height: 180px;
  }

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

  .blog-card-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .blog-card-excerpt {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Reviews Section Mobile */
  .reviews-section {
    padding: 30px 0;
  }

  .reviews-swiper {
    padding: 0 50px;
  }

  .review-header {
    gap: 12px;
  }

  .review-card {
    padding: 16px;
  }

  .review-avatar {
    max-width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .review-name {
    font-size: 18px;
  }

  .review-category {
    margin-bottom: 6px;
  }

  .review-date svg {
    width: 13px;
    height: 13px;
  }

  .review-category span {
    font-size: 13px;
  }

  .review-text {
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }

  .reviews-nav-btn {
    width: 40px;
    height: 40px;
  }

  .reviews-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: 40px;
  }

  .reviews-nav {
    display: none;
  }

  /* Footer mobile */
  .footer .container {
    padding: 0 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-nav-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-nav-column h4 {
    font-size: 15px;
    margin: 0;
    padding: 16px 0;
    cursor: pointer;
    position: relative;
    user-select: none;
  }

  .footer-nav-column h4::after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 12px;
    font-weight: 400;
    transition: transform 0.3s ease;
  }

  .footer-nav-column.active h4::after {
    transform: rotate(-180deg);
  }

  .footer-nav-column ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .footer-nav-column.active ul {
    max-height: 500px;
    padding-bottom: 16px;
    gap: 8px;
  }

  .footer-nav-column a {
    font-size: 13px;
  }

  .footer-phone {
    font-size: 18px;
  }

  .footer-bottom {
    padding: 16px 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    gap: var(--spacing-md);
    justify-content: center;
  }

  /* General responsive */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 568px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
/* ===== FAQ Hero Section ===== */
.faq-hero-section {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 30%, var(--primary-hover) 70%, var(--primary) 100%);
  margin-top: calc(-1 * var(--header-height));
}

.faq-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.faq-hero-section .container {
  position: relative;
  z-index: 2;
}

.faq-hero-section h1 {
  color: var(--bg-tertiary);
  margin-bottom: 20px;
}

.faq-hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
}

/* ===== Blog / Tag Hero Section ===== */

/* Лейбл «Тег» над заголовком */
.tag-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
}

.blog-hero-section {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 30%, var(--primary-hover) 70%, var(--primary) 100%);
  margin-top: calc(-1 * var(--header-height));
}

.blog-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.blog-hero-section .container {
  position: relative;
  z-index: 2;
}

.blog-hero-section h1 {
  color: var(--bg-tertiary);
  margin-bottom: 20px;
}

.blog-hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
}

/* ===== FAQ Accordion Section ===== */
.faq-accordion-section {
  background: var(--bg-tertiary);
  padding: 60px 0;
}

.faq {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.faq-item {
  background: var(--bg-primary);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: #f0f0f0;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question::after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px 24px;
}

.faq-answer p {
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== FAQ CTA Section ===== */
.cta-section {
  padding: 60px 0;
  background: var(--text-heading);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
}

.cta-graphic {
  flex-shrink: 0;
}

.cta-graphic img {
  width: 100%;
  height: auto;
  max-width: 200px;
}

.cta-content {
  flex: 1;
  max-width: 600px;
}

.cta-title {
  font-size: 30px;
  color: var(--bg-tertiary);
  margin-bottom: 6px;
}

.cta-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bg-tertiary);
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-btn {
  padding: 18px 32px;
  background: #e91e63;
  color: var(--bg-tertiary);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.cta-btn:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.faq-cta-section .container {
  max-width: 800px;
}

.faq-cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.faq-cta-section p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.faq-cta-section .btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
}

/* ===== Blog ===== */
/* Blog grid styles are defined in Blog Section above */

.blog-card,
.product-card {
  background: var(--bg-tertiary);
  overflow: hidden;
  transition: var(--transition-transform);
  cursor: pointer;
}

.blog-card:hover,
.product-card:hover {
  transform: translateY(-5px);
}

.blog-card a,
.product-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blog-image {
  height: 180px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.product-image {
  height: 180px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.blog-content,
.product-content {
  padding: 15px;
}

.blog-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.blog-content h3 {
  margin: 10px 0;
  font-size: 18px;
}

.contact-list,
.company-details {
  list-style: none;
  padding: 0;
}

.contact-list li,
.company-details li {
  margin-bottom: 8px;
  font-size: 14px;
}

.map-container {
  border: 1px solid rgba(0, 38, 217, 0.1);
  overflow: hidden;
  height: 500px;
  width: 100%;
}

.map-container p {
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Map Container Tablet */
@media (max-width: 1024px) {
  .map-container {
    height: 400px;
  }
}

/* Map Container Mobile */
@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

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

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Карточки с изображениями */
.card img {
  margin-bottom: 15px;
}

/* Адаптив */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 100%;
  }
}
.card img,
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Чтобы карточки не "прыгали" */
.card img {
  margin-bottom: 15px;
}

/* ===== Product specs ===== */
.product-specs {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.product-specs li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.pdf-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.pdf-link:hover {
  text-decoration: underline;
}

/* ===== Product gallery ===== */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  background: var(--light-bg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* ===== Specs table ===== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.specs-table tr {
  border-bottom: 1px solid rgba(5, 88, 255, 0.1);
}

.specs-table td {
  padding: 12px;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-secondary);
}

/* ===== Docs list ===== */
.docs-list {
  list-style: none;
  padding: 0;
}

.docs-list li {
  margin-bottom: 10px;
}

.docs-list a {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
}

.docs-list a:hover {
  text-decoration: underline;
}

/* ===== Product form ===== */
.product-form {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-form input,
.product-form textarea {
  padding: 12px;
  border: 1px solid rgba(0, 38, 217, 0.1);
  font-size: 14px;
}

.product-form input:focus,
.product-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 88, 255, 0.1);
  outline: none;
}

.product-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* ===== Box для контактов ===== */
.box {
  flex: 1;
  min-width: 280px;
}

/* ===== Utility classes для цветов ===== */
.text-primary {
  color: var(--text-primary);
}

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

.bg-light {
  background: var(--light-bg);
}

.bg-dark {
  background: var(--dark-bg);
  color: var(--bg-tertiary);
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-primary:hover {
  color: var(--primary-hover);
}

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

.icon-success {
  color: var(--success);
}

.icon-warning {
  color: var(--warning);
}

/* ===== About Page Styles ===== */
/* Page Hero */
.page-hero {
  position: relative;
  z-index: 5;
  max-height: 610px;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  background-image: url("https://lite2.ffox.site/wp-content/uploads/2026/06/697b3b200785871.67248e776d216.png");
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

background: linear-gradient(135deg, #0A1E4A 0%, var(--primary) 20%, var(--primary-hover) 70%, var(--primary) 100%);
  opacity: 0.7;
  z-index: 1;
}

.page-hero-container {
  position: relative;
  z-index: 4;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 0 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--bg-tertiary);
}

.page-hero-top {
  margin-bottom: 8px;
}

.page-hero-app-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.page-hero-title {
  display: flex;
  flex-direction: column;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bg-tertiary);
  margin: 0;
}

.page-main-title {
  display: flex;
  flex-direction: column;
  font-size: 90px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bg-tertiary);
  margin: 0;
}

.page-main-title-line {
  display: block;
}

.page-hero-cta {
  align-self: flex-start;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  background: #e91e63;
  border: none;
  color: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.page-hero-cta:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.page-hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: 8px;
}

.page-hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
}

.page-hero-feature svg {
  width: 20px;
  height: 20px;
  color: #e91e63;
  flex-shrink: 0;
}

.page-hero-image {

  position: relative;
  z-index: 5;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
  max-height: 480px;
  height: 480px;
}

.page-hero-image:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-hero-badges {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.page-hero-badge {
  background: rgba(135, 206, 235, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bg-tertiary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: float 3s ease-in-out infinite;
}

.page-hero-badge:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.page-hero-badge svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* About Intro Section */
.about-intro-section {
  padding: 60px 0;
}

.about-intro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-intro-image {
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-intro-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-intro-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Mission Section ===== */
.mission-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 3;
  overflow: visible;
}

.mission-section .container {
  position: relative;
  z-index: 5;
}

/* Section Title & Description */
.section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "\\\\";
  position: absolute;
  right: -40px;
  color: var(--border-active);
  font-size: 48px;
}

.section-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 0 60px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 5px;
}

.value-card {
  background: var(--bg-tertiary);
  padding: 40px 32px;
  text-align: center;
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-secondary);

  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-active);
}

.value-icon svg * {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.value-icon img {
  /* Recolor monochrome raster/external-svg icons to var(--primary-active) */
  filter: brightness(0) saturate(100%) invert(18%) sepia(56%) saturate(1047%) hue-rotate(173deg) brightness(93%) contrast(95%);
}

.value-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.value-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Competencies Section ===== */
.competencies-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

/* Competencies Grid */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.competency-card {
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.competency-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-elevation);
}

.competency-image {
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.competency-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.competency-card:hover .competency-image img {
  transform: scale(1.05);
}

.competency-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  color: var(--bg-tertiary);
  font-size: 18px;
  font-weight: 600;
  padding: 24px 20px 20px;
  text-align: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.competency-description {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  color: var(--bg-tertiary);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  padding: 24px 24px 80px;
  text-align: center;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.competency-card:hover .competency-description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Capabilities Section ===== */
.capabilities-section {
  padding: 60px 0;
  background: var(--bg-tertiary);
  position: relative;
  z-index: 2;
}

/* Capabilities Wrapper */
.capabilities-wrapper {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: var(--spacing-lg);
}

/* Capabilities Text */
.capabilities-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.capabilities-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Capabilities List */
.capabilities-list {
  display: flex;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 50%, var(--bg-tertiary) 100%);
  padding: 40px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: transparent;
  border: none;
  padding: 0;
  transition: none;
}

.capability-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.capability-number-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  transition: all 0.3s ease;
}

.capability-number-circle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.capability-item-active .capability-number-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-tertiary);
}

.capability-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  padding-top: 4px;
}

/* ===== Certificates Section ===== */
.certificates-section {
  padding: 60px 0;
  position: relative;
  z-index: 3;
}

.certificates-section::after {
  content: url(../images/decor1-light.svg);
  position: absolute;
  bottom: -60%;
  left: -10%;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
  transform: rotate(180deg);
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.certificate-card {
  background: var(--bg-tertiary);

  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.certificate-card.js-certificate-card {
  cursor: pointer;
}

.certificate-card.js-certificate-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.certificate-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.certificate-card-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.certificate-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px 0;
}

.certificate-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Partners Section ===== */
.partners-section {
  padding: 60px 0;
  position: relative;
  z-index: 3;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.partner-card {
  background: var(--bg-tertiary);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 38, 217, 0.1);
  border-color: var(--primary);
}

.partner-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA Simple */
.cta-simple {
  background: var(--text-heading);
  padding: 80px 60px;
  text-align: center;
  color: var(--bg-tertiary);
}

.cta-simple-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg-tertiary);
  margin: 0 0 20px 0;
}

.cta-simple-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

@media (max-width: 1280px) {
 .certificates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .page-main-title {
    font-size: 60px;
  }
}

@media (max-width: 1024px) {
  .page-hero {
    min-height: 600px;
  }

  .page-hero-title {
    font-size: 48px;
  }

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

  .page-hero-image {
    display: none;
  }
}

@media (max-width: 1014px) {
  .page-hero-badges {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 24px;
  }

  .about-intro-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-intro-image {
    order: -1;
  }

  .faq-hero-section {
    padding: 200px 0 80px;
  }

  .faq-hero-section h1 {
    font-size: 40px;
  }

  .faq-hero-section p {
    font-size: 16px;
  }

  .blog-hero-section {
    padding: 200px 0 80px;
  }

  .blog-hero-section h1 {
    font-size: 40px;
  }

  .blog-hero-section p {
    font-size: 16px;
  }

  .faq-accordion-section {
    padding: 40px 0;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .mission-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .section-title::after {
    right: -35px;
    font-size: 36px;
  }

  .section-description {
    font-size: 17px;
    margin-bottom: 50px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .competencies-section {
    padding: 40px 0;
  }

  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .competency-label {
    font-size: 16px;
    padding: 20px 16px 16px;
  }

  .competency-description {
    font-size: 14px;
    padding: 20px 20px 70px;
  }

  .capabilities-section {
    padding: 40px 0;
  }

  .capabilities-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .capabilities-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 24px;
  }

  .capability-item {
    gap: var(--spacing-md);
  }

  .capability-number-circle {
    width: 44px;
    height: 44px;
  }

  .capability-number-circle svg {
    width: 22px;
    height: 22px;
  }

  .capability-text {
    font-size: 14px;
  }

  .partners-section {
    padding: 40px 0;
  }

  .certificates-section {
    padding: 40px 0;
  }

  .certificates-section::after {
    content: url("../images/decor1-t.svg");
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .partner-card {
    padding: 32px 24px;
    min-height: 120px;
  }

  .partner-logo {
    font-size: 20px;
  }

  .certificate-card-content {
    padding: 20px 16px;
  }

  .certificate-title {
    font-size: 18px;
  }

  .certificate-description {
    font-size: 13px;
  }

  .certificate-card-content {
    padding: 20px 16px;
  }

  .certificate-title {
    font-size: 18px;
  }

  .certificate-description {
    font-size: 13px;
  }

  .cta-simple {
    padding: 60px 40px;
  }

  .cta-simple-title {
    font-size: 36px;
  }

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

  .cta-inner {
    gap: 60px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .cta-btn {
    padding: 16px 28px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: auto;
  }

  .page-hero-container {
    gap: 32px;
  }

  .page-hero-content {
    gap: var(--spacing-lg);
  }

  .page-main-title {
    font-size: 48px;
  }

  .page-hero-title {
    font-size: 32px;
  }

  .page-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .page-hero-features {
    gap: 12px;
  }

  .page-hero-feature {
    font-size: 14px;
  }

  .page-hero-badges {
    flex-direction: column;
    gap: 12px;
  }

  .page-hero-badge {
    font-size: 13px;
    padding: 10px 16px;
  }

  .faq-hero-section {
    padding: 100px 0 20px;
    margin-top: -82px;
  }

  .faq-hero-section h1 {
    font-size: 32px;
  }

  .faq-hero-section p {
    font-size: 15px;
  }

  .blog-hero-section {
    padding: 100px 0 20px;
    margin-top: -82px;
  }

  .blog-hero-section h1 {
    font-size: 32px;
  }

  .blog-hero-section p {
    font-size: 15px;
  }

  .faq-accordion-section {
    padding: 30px 0;
  }

  .faq {
    gap: 12px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }

  .faq-question::after {
    width: 18px;
    height: 18px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 16px 18px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.5;
  }

  .about-intro-section {
    padding: 30px 0;
  }

  .about-intro-title {
    font-size: 28px;
  }

  .about-intro-text {
    font-size: 15px;
  }

  .mission-section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 32px;
  }

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

  .section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 12px 6px;
  }

  .value-card {
    padding: 32px 24px;
  }

  .competencies-section {
    padding: 30px 0;
  }

  .competencies-grid {
    gap: 24px 6px;
  }

  .competency-card {
    aspect-ratio: 3 / 4;
  }

  .competency-label {
    font-size: 15px;
    padding: 16px 12px 12px;
  }

  .competency-description {
    font-size: 13px;
    padding: 16px 16px 60px;
    line-height: 1.5;
  }

  .competency-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .competency-title {
    font-size: 20px;
  }

  .competency-description {
    font-size: 14px;
  }

  .capabilities-section {
    padding: 30px 0;
  }

  .capabilities-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .capabilities-list {
    gap: var(--spacing-md);
    padding: 24px 20px;
  }

  .capability-item {
    gap: 14px;
  }

  .capability-number-circle {
    width: 40px;
    height: 40px;
  }

  .capability-number-circle svg {
    width: 20px;
    height: 20px;
  }

  .capability-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .partners-section {
    padding: 30px 0;
  }

  .certificates-section {
    padding: 30px 0;
  }

  .certificates-section::after {
    content: url("../images/decor1-m.svg");
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .certificates-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px 6px;
  }

  .partner-card {
    padding: 24px 20px;
    min-height: 100px;
  }

  .partner-logo {
    font-size: 18px;
  }

  .certificate-image {
    height: 100%;
  }

  .certificate-card-content {
    padding: 16px 14px;
  }

  .certificate-title {
    font-size: 17px;
  }

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

  .partner-card {
    aspect-ratio: 3 / 4;
  }

  .partner-card {
    padding: 32px 24px;
  }

  .cta-simple {
    padding: 50px 24px;
  }

  .cta-simple-title {
    font-size: 28px;
  }

  .cta-simple-description {
    font-size: 16px;
    margin-bottom: 32px;
  }

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

  .cta-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .cta-graphic {
    max-width: 120px;
    margin: 0 auto;
  }

  .cta-graphic img {
    width: 100%;
    height: auto;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .cta-description {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .cta-btn {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal p a {
  font-size: 16px;
  line-height: 1.7;
  color: var(--primary);
  transition: color 0.3s ease;
}

.modal p a:hover {
  color: var(--primary-hover);
}

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

.modal-content {
  position: relative;
  background: var(--bg-tertiary);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: modalSlideIn 0.3s ease-out;
}

/* Certificate lightbox — картинка внутри .modal-content */
.modal--certificate .modal-content--certificate {
  max-width: min(96vw, 1100px);
  width: auto;
  padding: 30px 20px 20px 20px;
  align-items: center;
  justify-content: center;
}

.modal-certificate-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(85vh, 900px);
  object-fit: contain;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content--certificate .modal-close {
  position: absolute;
  top: -5px;
  right: -7px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  z-index: 10002;
  padding: 0;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.modal-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.modal-form-link {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-form-link:hover {
  color: var(--primary-hover);
}

.modal-form-link-cta {
  color: var(--text-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-form-link-cta:hover {
  color: var(--text-secondary);
}

/* CF7 wrapper inside modal — растягивается, передаёт flex-контекст форме */
.modal .wpcf7 {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* CF7: span-обёртка вокруг каждого поля — должна быть блочной */
.modal .wpcf7-form-control-wrap {
  display: inline !important;
  width: 100%;
}

/* CF7: сообщение об ошибке под полем */
.modal .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #e53e3e;
}

.modal .wpcf7-list-item {
  margin: 0 !important;
}

.modal-form,
.modal .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.modal-form::-webkit-scrollbar,
.modal .wpcf7-form::-webkit-scrollbar {
  width: 4px;
}

.modal-form::-webkit-scrollbar-track,
.modal .wpcf7-form::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.modal-form::-webkit-scrollbar-thumb,
.modal .wpcf7-form::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

.modal-form::-webkit-scrollbar-thumb:hover,
.modal .wpcf7-form::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.cta-form-right .wpcf7-form .wpcf7-form-control-wrap {
  display: inline !important;
  width: auto !important;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-form-input,
.modal-form-textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.modal-form-input:focus,
.modal-form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-form-input::placeholder,
.modal-form-textarea::placeholder {
  color: var(--text-disabled);
}

.modal-form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* [acceptance] рендерится как .wpcf7-form-control-wrap прямо в .modal-form */
.modal-form .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  border-top: 1px solid var(--border-default);
  padding-top: 12px;
  margin-top: 4px;
}

/* Размер и цвет текста согласия внутри модала */
.modal-form .wpcf7-acceptance label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Чекбокс согласия — чуть меньше, чем у основных полей */
.modal-form .wpcf7-acceptance input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-width: 1.5px;
  background-size: 9px 7px;
}

.modal-form-submit {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-tertiary);
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-start;
  margin-top: 8px;
}

.modal-form-consent p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0;
}

.modal-form-consent p a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.modal-form-submit:hover {
  background: var(--primary-hover);
}

.modal-form-submit:active {
  background: var(--primary-active);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 32px 24px;
    max-width: 100%;
  }

  .modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .modal-title {
    font-size: 24px;
    padding-right: 40px;
  }

  .modal-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .modal-form {
    gap: 20px;
  }

  .modal-form-submit {
    width: 100%;
    align-self: stretch;
  }
}

/* Modal Fullscreen on small screens */
@media (max-width: 450px) {
  .modal {
    padding: 0;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .modal-title {
    font-size: 20px;
    padding-right: 36px;
    margin-bottom: 8px;
  }

  .modal-description {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .modal-form {
    flex: 1;
    gap: var(--spacing-sm);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }

  .modal-form-group {
    gap: 6px;
  }

  .modal-form-label {
    font-size: 13px;
  }

  .modal-form-input,
  .modal-form-textarea {
    font-size: 14px;
  }

  .modal-form-textarea {
    min-height: 100px;
  }

  .modal-form .wpcf7-acceptance label {
    font-size: 11px;
  }

  .modal-form-checkbox-label {
    gap: 10px;
  }

  .modal-form-checkbox-custom {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }

  .modal-form-checkbox-text {
    font-size: 12px;
    line-height: 1.4;
  }

  .modal-form-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    margin-top: 4px;
  }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-active);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 38, 217, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

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

.scroll-to-top:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(0, 38, 217, 0.4);
  transform: translateY(-2px) scale(1.05);
}

.scroll-to-top:active {
  background: var(--primary-active);
  transform: translateY(0) scale(0.95);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  color: var(--bg-tertiary);
  stroke: currentColor;
  fill: none;
}

/* Scroll to Top Button Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    display: none !important;
  }
}

/* =============================================
   SINGLE POST PAGE
   ============================================= */

/* Hero meta (дата + категория) */
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.post-hero-cat a {
  color: var(--accent, #e91e63);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-hero-cat a:hover {
  text-decoration: underline;
}

/* Основная секция */
.post-single-section {
  padding: 60px 0 80px;
}

/* Двухколоночный лэйаут: контент + сайдбар */
.post-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Миниатюра */
.post-single-thumbnail {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 48px;
}

.post-single-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Контент */
.post-single-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary, #1a1a2e);
}

.post-single-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-heading, #0a0a23);
}

.post-single-body h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-heading, #0a0a23);
}

.post-single-body p {
  margin-bottom: 20px;
}

.post-single-body ul,
.post-single-body ol {
  margin: 0 0 20px 24px;
}

.post-single-body li {
  margin-bottom: 8px;
}

.post-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.post-single-body blockquote {
  border-left: 4px solid var(--primary, #0026d9);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--bg-secondary, #f4f6fb);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--text-secondary, #555);
}

/* Теги */
.post-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border, #e5e7f0);
}

.post-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg-secondary, #f4f6fb);
  border: 1px solid var(--border, #e5e7f0);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary, #555);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.post-tag:hover {
  background: var(--primary, #0026d9);
  color: var(--bg-tertiary);
  border-color: var(--primary, #0026d9);
}

/* ===== Пагинация ===== */
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border, #e5e7f0);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary, #1a1a2e);
  background: var(--bg-tertiary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-links .page-numbers:hover {
  background: var(--primary, #0052cc);
  border-color: var(--primary, #0052cc);
  color: var(--bg-tertiary);
}

.nav-links .page-numbers.current {
  background: var(--primary, #0052cc);
  border-color: var(--primary, #0052cc);
  color: var(--bg-tertiary);
  pointer-events: none;
}

.nav-links .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
  color: var(--text-secondary, #6b7280);
}

.nav-links .prev.page-numbers,
.nav-links .next.page-numbers {
  padding: 0 18px;
  gap: 6px;
}

/* ===== Навигация между постами ===== */
.post-single-nav {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border, #e5e7f0);
}

.post-single-nav .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post-single-nav .nav-previous,
.post-single-nav .nav-next {
  display: block;
}

.post-single-nav .nav-next {
  text-align: right;
}

.post-single-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text-primary, #1a1a2e);
  padding: 16px;
  border: 1px solid var(--border, #e5e7f0);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.post-single-nav a:hover {
  border-color: var(--primary, #0026d9);
  background: var(--bg-secondary, #f4f6fb);
}

.post-nav-label {
  font-size: 12px;
  color: var(--text-tertiary, #888);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-nav-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== Sidebar ===== */
.post-single-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: var(--bg-secondary, #f4f6fb);
  padding: 24px;
}

.sidebar-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a23;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary, #0026d9);
}

/* Последние посты */
.sidebar-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.sidebar-post-link:hover .sidebar-post-title {
  color: var(--primary, #0026d9);
}

.sidebar-post-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}

/* Рубрики */
.sidebar-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-primary, #1a1a2e);
  transition: background 0.2s, color 0.2s;
}

.sidebar-cat-link:hover {
  background: var(--primary, #0026d9);
  color: var(--bg-tertiary);
}

.sidebar-cat-count {
  font-size: 12px;
  background: var(--border, #e5e7f0);
  color: var(--text-secondary, #555);
  border-radius: 10px;
  padding: 2px 8px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-cat-link:hover .sidebar-cat-count {
  background: rgba(255,255,255,0.25);
  color: var(--bg-tertiary);
}

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  .post-single-section {
    padding: 48px 0 64px;
  }

  .post-single-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

  .post-single-body {
    font-size: 16px;
  }

  .post-single-body h2 {
    font-size: 22px;
    margin: 32px 0 12px;
  }

  .post-single-body h3 {
    font-size: 18px;
    margin: 24px 0 10px;
  }

  .sidebar-widget {
    padding: 20px;
  }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .post-single-section {
    padding: 32px 0 48px;
  }

  /* Разбиваем сетку — сайдбар уходит под контент */
  .post-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-single-sidebar {
    position: static;
  }

  /* Hero */
  .post-hero-meta {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  /* Миниатюра */
  .post-single-thumbnail {
    height: 280px;
    margin-bottom: 32px;
  }

  /* Типографика контента */
  .post-single-body {
    font-size: 15px;
    line-height: 1.75;
  }

  .post-single-body h2 {
    font-size: 20px;
    margin: 28px 0 10px;
  }

  .post-single-body h3 {
    font-size: 17px;
    margin: 20px 0 8px;
  }

  .post-single-body blockquote {
    font-size: 16px;
    padding: 12px 16px;
    margin: 20px 0;
  }

  /* Теги */
  .post-single-tags {
    margin-top: 28px;
    padding-top: 24px;
    gap: 6px;
  }

  /* Пагинация */
  .nav-links .page-numbers {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* Навигация — стопка */
  .post-single-nav {
    margin-top: 28px;
    padding-top: 24px;
  }

  .post-single-nav .nav-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-single-nav .nav-next {
    text-align: left;
  }

  /* Сайдбар — горизонтальная сетка 2 виджета */
  .post-single-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ===== Responsive: 450px ===== */
@media (max-width: 450px) {
  .post-single-section {
    padding: 24px 0 40px;
  }

  .post-single-thumbnail {
    height: 200px;
    margin-bottom: 24px;
  }

  /* Сайдбар снова в одну колонку */
  .post-single-sidebar {
    grid-template-columns: 1fr;
  }

  .post-single-body {
    font-size: 15px;
  }

  .post-single-body h2 {
    font-size: 18px;
  }

  .post-single-body h3 {
    font-size: 16px;
  }

  .post-single-nav a {
    padding: 12px;
  }

  .post-nav-title {
    font-size: 13px;
  }

  .sidebar-widget {
    padding: 16px;
  }

  .sidebar-post-thumb {
    width: 52px;
    height: 52px;
  }

  .sidebar-post-title {
    font-size: 13px;
  }

  .post-tag {
    font-size: 12px;
    padding: 4px 10px;
  }

}

/* ==========================================================================
   Шаблон по умолчанию (page.php)
   ========================================================================== */

/* ── Контент (entry-content нужен для корректного рендера блоков Gutenberg) ── */
.entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.entry-content > * + * {
  margin-top: var(--spacing-md);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.entry-content h2 { font-size: clamp(22px, 3vw, 28px); }
.entry-content h3 { font-size: clamp(18px, 2.5vw, 22px); }
.entry-content h4 { font-size: 18px; }

.entry-content p {
  margin: 0 0 var(--spacing-md);
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: var(--primary-hover);
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin: 0 0 var(--spacing-md);
}

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

.entry-content blockquote {
  border-left: 3px solid var(--primary);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: 0 4px 4px 0;
  color: var(--text-primary);
  font-style: italic;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.entry-content figure {
  margin: var(--spacing-lg) 0;
}

.entry-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: 14px;
}

.entry-content table th,
.entry-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  text-align: left;
}

.entry-content table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive entry-content tables */
@media (max-width: 768px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }

  .entry-content table th,
  .entry-content table td {
    padding: 8px 10px;
  }
}

.entry-content pre,
.entry-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.entry-content code {
  padding: 2px 6px;
}

.entry-content pre {
  padding: var(--spacing-md);
  overflow-x: auto;
  margin: var(--spacing-md) 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: var(--spacing-xl) 0;
}

/* ── Пагинация страниц ── */
.page-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--text-secondary);
}

.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-links a:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Ссылка «Редактировать» ── */
.entry-footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-default);
}

.edit-link a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.edit-link a:hover {
  color: var(--primary);
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  .entry-content {
    font-size: 15px;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}