/* =========================
   GLOBAL RESET & VARIABLES
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --success-color-dark: #059669;

  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;

  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  --container-max: 1200px;
  --radius-s: 10px;
  --radius-m: 15px;
  --radius-l: 20px;
  --transition: 0.3s ease;
  --focus-ring: rgba(37, 99, 235, 0.4);

  --header-h: 64px;
  --crumbs-h: 44px;
  --header-gap: 16px;
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --crumbs-h: 40px;
    --header-gap: 12px;
  }
}

html {
  font-size: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

/* Плавная загрузка + базовые стили */
body {
  background: #fff;
  color: var(--text-dark);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  
  /* Плавная загрузка страницы */
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  body {
    transition: none; /* Отключаем анимацию для людей с настройкой "reduce motion" */
  }
}

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

/* Focus-visible for a11y */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* =========================
   КНОПКА "НАВЕРХ"
   ========================= */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  z-index: 1000;

  /* Стартовое состояние (невидима и некликабельна) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);

  /* Точечные анимации для производительности */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  will-change: opacity, transform;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.scroll-to-top:hover {
  background: rgba(37, 99, 235, 1);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* Доступность: видимый фокус при навигации с клавиатуры */
.scroll-to-top:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Container system */
:root{
  --container-pad: 16px;
  --container-wide-max: 1440px;
  --container-ultra-max: 1600px;
}

/* Базовый контейнер */
.container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Плавно расширяющийся контейнер */
.container--fluid {
  width: min(
    clamp(960px, 92vw, var(--container-max)),
    100%
  );
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 28px);
}

/* Широкий контейнер для визуально «воздушных» секций */
.container--wide {
  width: min(
    clamp(1100px, 94vw, var(--container-wide-max)),
    100%
  );
  margin-inline: auto;
  padding-inline: clamp(12px, 2.4vw, 24px);
}

/* Очень широкий, если прям надо растянуть (по желанию) */
.container--ultra {
  width: min(
    clamp(1200px, 96vw, var(--container-ultra-max)),
    100%
  );
  margin-inline: auto;
  padding-inline: clamp(10px, 2vw, 20px);
}

/* Секции без лишнего воздуха на больших экранах */
@media (min-width: 1280px) {
  .section.section--wide,
  .how-it-works.section--wide,
  .reviews.section--wide {
    padding-inline: 0; /* сбрасываем внешние «лишние» паддинги секции */
  }
}

/* =========================
   HEADER & NAVIGATION
========================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  color: var(--white);
  min-height: var(--header-h);

  /* Сплошной цвет из hero (тёмно-синий с оранжевым оттенком) */
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 0.7rem 0; /* ✅ Тоньше */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: padding, background, box-shadow;
}

header.scrolled {
  padding: 0.5rem 0; /* ✅ Ещё тоньше при скролле */
  background: rgba(30, 58, 138, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* ========================================
   ЛОГОТИП
======================================== */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo:hover { 
  transform: scale(1.05); 
}

.logo i {
  font-size: 1.7rem;
  color: var(--accent-color);
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
  animation: icon-glow 3s ease-in-out infinite;
}

@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4)); }
  50% { filter: drop-shadow(0 2px 12px rgba(245, 158, 11, 0.7)); }
}

/* Короткое название — скрыто по умолчанию */
.brand-short { 
  display: none; 
}

/* ========================================
   НАВИГАЦИЯ
======================================== */

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.25s ease, left 0.25s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.nav-links a:hover::after { 
  width: 100%; 
  left: 0; 
}

.nav-links a:hover { 
  color: var(--accent-color); 
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3); 
}

.nav-links a:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ========================================
   КНОПКА ТЕЛЕФОНА (ВСЕ АНИМАЦИИ ВЕРНУЛ!)
======================================== */

nav .phone-btn,
header .phone-btn,
.phone-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 15px rgba(245, 158, 11, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
  animation: phone-pulse 2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: phone-shine 3s ease-in-out infinite;
  pointer-events: none;
}

.phone-btn::after {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
  animation: phone-ring 2s ease-in-out infinite;
}

.phone-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(245, 158, 11, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ea580c 0%, var(--accent-color) 100%);
}

.phone-btn:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.4);
  outline-offset: 3px;
  border-radius: 999px;
}

@keyframes phone-shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

@keyframes phone-pulse {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(245, 158, 11, 0.4),
      0 0 0 0 rgba(245, 158, 11, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 4px 15px rgba(245, 158, 11, 0.4),
      0 0 0 10px rgba(245, 158, 11, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* ========================================
   HAMBURGER MENU
======================================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,0.15);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   АДАПТИВ ПОД ВСЕ ЭКРАНЫ
======================================== */

/* 4K и очень большие экраны (2560px+) */
@media (min-width: 2560px) {
  nav {
    padding: 0 4rem;
  }
  
  .nav-links {
    gap: 3rem;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo i {
    font-size: 2rem;
  }
  
  .phone-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.05rem;
  }
}

/* Большие десктопы (1920-2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  nav {
    padding: 0 3rem;
  }
  
  .nav-links {
    gap: 2.5rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }
}

/* Стандартные десктопы Full HD (1600-1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
  nav {
    padding: 0 2.5rem;
  }
  
  .nav-links {
    gap: 2rem;
  }
  
  .nav-links a {
    font-size: 0.98rem;
  }
}

/* Средние десктопы (1400-1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
  nav {
    padding: 0 2rem;
  }
  
  .nav-links {
    gap: 1.8rem;
  }
  
  .nav-links a {
    font-size: 0.95rem;
  }
  
  .phone-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Маленькие десктопы (1200-1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .logo i {
    font-size: 1.6rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .phone-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
  }
}

/* Ноутбуки (992-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  nav {
    padding: 0 1.5rem;
  }
  
  .logo {
    font-size: 1.15rem;
  }
  
  .logo i {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 1.2rem;
  }
  
  .nav-links a {
    font-size: 0.88rem;
  }
  
  .phone-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Планшеты (768-991px) - ПЕРЕКЛЮЧАЕМСЯ НА HAMBURGER */
@media (max-width: 991px) {
  header {
    padding: 0.6rem 0;
  }
  
  header.scrolled {
    padding: 0.45rem 0;
  }
  
  nav {
    padding: 0 1.5rem;
    gap: 1rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo i {
    font-size: 1.5rem;
  }
  
  /* Показываем hamburger */
  .hamburger {
    display: flex;
  }
  
  /* Мобильное меню */
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .nav-links a:hover {
    background: rgba(255,255,255,0.15);
  }
  
  .phone-btn {
    padding: 0.58rem 1rem;
    font-size: 0.85rem;
  }
}

/* Мобилки (480-767px) */
@media (max-width: 767px) {
  header {
    padding: 0.55rem 0;
  }
  
  header.scrolled {
    padding: 0.4rem 0;
  }
  
  nav {
    padding: 0 1rem;
    gap: 0.8rem;
  }
  
  .logo {
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .logo i {
    font-size: 1.4rem;
  }
  
  /* Короткое название */
  .brand-long {
    display: none;
  }
  
  .brand-short {
    display: inline;
  }
  
  .hamburger span {
    width: 22px;
    height: 2.5px;
  }
  
  .nav-links {
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 0.9rem;
  }
  
  .phone-btn {
    padding: 0.52rem 0.9rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .phone-btn::after {
    font-size: 0.75rem;
  }
}

/* Маленькие мобилки (375-479px) */
@media (max-width: 479px) {
  nav {
    padding: 0 0.8rem;
    gap: 0.6rem;
  }
  
  .logo {
    font-size: 0.95rem;
    gap: 0.45rem;
  }
  
  .logo i {
    font-size: 1.3rem;
  }
  
  .hamburger span {
    width: 20px;
    height: 2.5px;
  }
  
  .phone-btn {
    padding: 0.48rem 0.8rem;
    font-size: 0.75rem;
    gap: 0.45rem;
  }
  
  .phone-btn::after {
    font-size: 0.7rem;
  }
}

/* Очень маленькие экраны (320-374px) */
@media (max-width: 374px) {
  nav {
    padding: 0 0.6rem;
  }
  
  .logo {
    font-size: 0.88rem;
    gap: 0.4rem;
  }
  
  .logo i {
    font-size: 1.2rem;
  }
  
  .hamburger span {
    width: 18px;
  }
  
  .phone-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }
  
  .phone-btn::after {
    font-size: 0.65rem;
  }
}

/* Горизонтальная ориентация на планшетах */
@media (max-width: 991px) and (orientation: landscape) {
  header {
    padding: 0.5rem 0;
  }
  
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1.2rem 1.5rem;
    gap: 0.8rem;
    max-height: 60vh;
  }
  
  .nav-links li {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
  
  .nav-links a {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Очень широкие экраны (3440px ultrawide и т.д.) */
@media (min-width: 3440px) {
  nav {
    padding: 0 6rem;
  }
  
  .nav-links {
    gap: 4rem;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .logo {
    font-size: 1.7rem;
  }
  
  .logo i {
    font-size: 2.3rem;
  }
  
  .phone-btn {
    padding: 0.9rem 1.8rem;
    font-size: 1.1rem;
  }
}


/* =========================
   HERO SECTION - ANIMATED MESH GRADIENT + 3D TILT CARDS
========================= */

.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 120px 2rem 80px; /* ✅ Увеличил под header */
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  
  /* Базовый градиент */
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #1e40af 100%);
}

/* ========================================
   ANIMATED MESH GRADIENT (4 цветных капли)
======================================== */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(249,115,22,0.4), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.35), transparent 45%),
    radial-gradient(circle at 60% 20%, rgba(168,85,247,0.3), transparent 38%),
    radial-gradient(circle at 30% 80%, rgba(34,211,238,0.25), transparent 42%);
  filter: blur(60px);
  animation: mesh-move 20s ease-in-out infinite;
}

@keyframes mesh-move {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% { 
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.9;
  }
  50% { 
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 1;
  }
  75% { 
    transform: translate(40px, 20px) scale(1.05);
    opacity: 0.85;
  }
}

/* Дополнительные блики */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(ellipse at 10% 50%, rgba(249,115,22,0.15), transparent 35%),
    radial-gradient(ellipse at 90% 60%, rgba(59,130,246,0.12), transparent 40%);
  animation: gentle-pulse 10s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Контент поверх */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   STICKY BADGE (не прячется за header)
======================================== */

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: var(--white);
  font-weight: 700;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 
    0 4px 16px rgba(249,115,22,0.5),
    0 0 30px rgba(249,115,22,0.3);
  animation: badge-glow 3s ease-in-out infinite;
  position: relative;
}

@keyframes badge-glow {
  0%, 100% { 
    transform: translateY(0);
    box-shadow: 
      0 4px 16px rgba(249,115,22,0.5),
      0 0 30px rgba(249,115,22,0.3);
  }
  50% { 
    transform: translateY(-3px);
    box-shadow: 
      0 8px 24px rgba(249,115,22,0.6),
      0 0 40px rgba(249,115,22,0.4);
  }
}

/* ========================================
   ЗАГОЛОВКИ
======================================== */

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 
    0 2px 12px rgba(0,0,0,0.4),
    0 0 40px rgba(249,115,22,0.2);
  animation: fadeInUp 0.8s ease both;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.15s both;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.95);
}

/* ========================================
   3D TILT CARDS (Жидкое стекло + 3D эффект)
======================================== */

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  animation: fadeInUp 0.8s ease 0.3s both;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1000px; /* ✅ 3D перспектива */
}

.hero-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* Улучшенное жидкое стекло */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.1) 100%
  );
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    0 10px 40px rgba(0,0,0,0.15),
    0 0 0 1px rgba(249,115,22,0.1);

  padding: 2rem 1.5rem;
  min-height: 150px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d; /* ✅ 3D трансформация */
  overflow: hidden;
}

/* Внутреннее свечение */
.hero-feature::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 50%, 
    rgba(249,115,22,0.3), 
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* Блик света (движется при hover) */
.hero-feature::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,0.2) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

/* ✅ 3D TILT HOVER */
.hero-feature:hover {
  transform: 
    translateY(-10px) 
    rotateX(5deg) 
    rotateY(5deg) 
    scale(1.02);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.15) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.5),
    0 20px 60px rgba(0,0,0,0.25),
    0 0 0 2px rgba(249,115,22,0.3),
    0 0 80px rgba(249,115,22,0.2);
  border-color: rgba(255,255,255,0.5);
}

.hero-feature:hover::before {
  opacity: 1;
}

.hero-feature:hover::after {
  transform: translateX(100%);
}

/* Контент карточки */
.hero-feature h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-shadow: 
    0 2px 8px rgba(0,0,0,0.3),
    0 0 20px rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.hero-feature p {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Иконки с свечением */
.hero-stat-feature i {
  font-size: 1.6rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(249,115,22,0.6));
}

/* Медленное вращение */
.fa-spin-slow { 
  animation: spin-slow 4s linear infinite; 
}

@keyframes spin-slow { 
  to { transform: rotate(360deg); } 
}

/* Центрирование счётчиков */
.hero-features .hero-stat-feature:nth-child(4) { grid-column: 1 / 2; }
.hero-features .hero-stat-feature:nth-child(5) { grid-column: 2 / 3; }
.hero-features .hero-stat-feature:nth-child(6) { grid-column: 3 / 4; }

.hero-features:has(.hero-stat-feature:nth-child(5):last-child) .hero-stat-feature:nth-child(4) {
  grid-column: 1 / 2;
}
.hero-features:has(.hero-stat-feature:nth-child(5):last-child) .hero-stat-feature:nth-child(5) {
  grid-column: 2 / 4;
}

/* Кнопки */
.cta-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* ========================================
   АДАПТИВ
======================================== */

@media (max-width: 992px) {
  .hero {
    padding: 100px 2rem 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

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

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    perspective: 800px;
  }

  .hero-feature {
    min-height: 140px;
    padding: 1.8rem 1.2rem;
  }

  .hero-feature h3 {
    font-size: 1.6rem;
  }

  .hero-feature p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 1.5rem 50px; /* ✅ Больше отступ под header */
    min-height: auto;
  }

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

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .discount-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
  }

  .hero-features {
    grid-template-columns: 1fr; /* ✅ Все карточки вертикально */
    gap: 1rem;
    max-width: 100%; /* ✅ На всю ширину */
    perspective: none;
  }
  
  /* ✅ Отменяем центрирование на мобилках */
  .hero-features .hero-stat-feature:nth-child(4),
  .hero-features .hero-stat-feature:nth-child(5),
  .hero-features .hero-stat-feature:nth-child(6) {
    grid-column: auto !important;
  }
  
  .hero-features:has(.hero-stat-feature:nth-child(5):last-child) .hero-stat-feature:nth-child(4),
  .hero-features:has(.hero-stat-feature:nth-child(5):last-child) .hero-stat-feature:nth-child(5) {
    grid-column: auto !important;
  }

  .hero-feature {
    min-height: 130px;
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
  }

  /* Простой hover на мобилках (без 3D tilt) */
  .hero-feature:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .hero-feature h3 {
    font-size: 1.4rem;
  }

  .hero-feature p {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .cta-buttons {
    margin-top: 1.5rem;
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 1rem 40px; /* ✅ Ещё больше под header */
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .discount-badge {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
  }

  .hero-features {
    gap: 0.8rem;
  }

  .hero-feature {
    min-height: 120px;
    padding: 1.3rem 1rem;
    border-radius: 18px;
  }

  .hero-feature h3 {
    font-size: 1.3rem;
  }

  .hero-feature p {
    font-size: 0.8rem;
  }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
  .hero {
    padding: 95px 0.8rem 35px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
  }
  
  .discount-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-features {
    gap: 0.7rem;
  }
  
  .hero-feature {
    min-height: 110px;
    padding: 1.2rem 0.9rem;
  }
  
  .hero-feature h3 {
    font-size: 1.2rem;
  }
  
  .hero-feature p {
    font-size: 0.75rem;
  }
}

/* Отключаем анимации для слабых устройств */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .discount-badge,
  .hero-stat-feature i {
    animation: none !important;
  }
  
  .hero-feature:hover {
    transform: translateY(-5px);
  }
}

/* =========================
   BUTTONS (Unified System)
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;

  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);

  will-change: transform, box-shadow, background-color, color;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
}

/* Фокус для клавиатуры */
.btn:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 3px;
}

/* Состояние нажатия — тактильность */
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Primary (Orange) ---------- */
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow:
    0 8px 20px rgba(234, 88, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 30px rgba(234, 88, 12, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #ea580c 0%, var(--accent-color) 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(234, 88, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ---------- Secondary (White) ---------- */
.btn-secondary {
  color: var(--primary-color);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08); /* тонкая рамка */
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: #f9fafb; /* лёгкая притемнёнка */
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.btn-secondary:active {
  transform: translateY(-1px);
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.15);
}

/* ---------- Размеры (опционально) ---------- */
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.95rem; }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1.12rem; }

/* ---------- Иконки в кнопках ---------- */
.btn i { font-size: 1.1em; line-height: 1; }

/* =========================
   GENERIC SECTION WRAPPER
   ========================= */
.section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 2rem;
}

.section-title {
  position: relative;
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

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

.bg-light {
  background: var(--bg-light);
}

/* =========================
   SERVICES (cards grid)
========================= */

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch; /* тянем карточки по высоте */
}

.service-card {
  display: flex;               /* единая колонка */
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid rgba(37,99,235,0.0); /* тонкая невидимая рамка для стабильности */
  box-shadow: var(--shadow);
  min-height: 320px;           /* общий каркас для ровности */
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37,99,235,0.35);      /* мягкое подсвечивание рамки */
  box-shadow: 0 15px 40px rgba(37,99,235,0.20);
  background-color: #ffffff;               /* избегаем сдвига из-за подложек */
}

/* Иконка */
.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

/* Заголовок */
.service-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
  color: var(--text-dark);
  display: -webkit-box;        /* ограничим строки, чтобы не прыгало */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Список преимуществ */
.service-card ul {
  list-style: none;
  margin: 0.6rem 0 0;          /* аккуратный отступ сверху */
  padding: 0;
}

.service-card li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  line-height: 1.5;
  color: var(--text-light);
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  top: 0.55rem;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Цена — всегда у нижней кромки карточки */
.price {
  margin-top: auto;            /* прижать вниз */
  padding-top: 1rem;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.7rem;
}

/* Ровность высоты текста (опционально ограничим пункты по строкам) */
.service-card li {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* не даём пунктам растягивать карточку */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Адаптив */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .service-card {
    padding: 1.5rem;
    min-height: 300px;
  }
  .service-icon { font-size: 2.4rem; }
  .price { font-size: 1.5rem; }
}

/* =========================
   HONESTY SECTION
========================= */

@media (max-width: 1024px) { .honesty-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .honesty-section { padding: 50px 1rem; }
  .honesty-cards { grid-template-columns: 1fr; gap: 1rem; }
  .warning-box { padding: 1.2rem; }
}

.honesty-section {
  background: #fef3c7; /* amber-100 */
  width: 100%;
  padding: 80px 2rem;
}

.honesty-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.honesty-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch; /* карточки одинаковой высоты */
}

.honesty-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06); /* тонкая рамка */
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.7); /* легкий блик */
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
}

.honesty-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.honesty-icon {
  font-size: 2.6rem; /* чуть компактнее, аккуратнее */
  margin-bottom: 0.8rem;
  line-height: 1;
  color: var(--primary-color);
}

.honesty-card h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.honesty-card p {
  color: #4b5563; /* немного темнее для контраста */
  line-height: 1.65;
  margin: 0;
}

/* Важный совет/предупреждение */
.warning-box {
  margin-top: 2rem;
  background: linear-gradient(180deg, #ffffff, #fffef8);
  border-left: 6px solid var(--success-color);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.warning-box h3 {
  color: #1f2937;
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

.warning-list {
  list-style: none;
  color: #6b7280;
  line-height: 1.8;
  padding-left: 0;
  margin: 0;
}

.warning-list li { margin-bottom: 0.35rem; }

.honesty-conclusion {
  margin-top: 0.8rem;
  color: var(--success-color);
  font-weight: 600;
  font-size: 1.04rem;
}

/* Адаптив */
@media (max-width: 1024px) {
  .honesty-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .honesty-section { padding: 50px 1rem; }
  .honesty-cards { grid-template-columns: 1fr; gap: 1rem; }
  .warning-box { padding: 1.2rem 1.4rem; }
}

/* =========================
   HOW IT WORKS (steps)
========================= */

/* Контейнер шагов c линией-таймлайном */
.steps {
  position: relative;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
  align-items: stretch;
  padding: 0.4rem 0;
}

/* Вертикальная/горизонтальная «нить» процесса (на широких — горизонтальная имитация) */
.steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(37,99,235,0.0), rgba(37,99,235,0.25), rgba(37,99,235,0.0));
  transform: translateY(-50%);
  pointer-events: none;
}

.step {
  position: relative;
  text-align: left;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.3rem 1.2rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 160px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, box-shadow;
  isolation: isolate;
}

/* Тонкая точка на линии под номером (горизонтальный режим) */
.step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(37,99,235,0.0) 70%);
  opacity: 0.55;
  pointer-events: none;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

/* Нумерация шага — «жидкое стекло» бейдж */
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;

  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 10px 24px rgba(37,99,235,0.22),
    inset 0 1px 0 rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Заголовок шага */
.step h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* не даём «расползаться» */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Текст шага (если есть) */
.step p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Адаптив: на мобильных превращаемся в вертикальный таймлайн слева */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 1.6rem;  /* место для вертикальной линии */
  }

  .steps::before {
    left: 0.75rem;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: none;
    background: linear-gradient(180deg, rgba(37,99,235,0.0), rgba(37,99,235,0.25), rgba(37,99,235,0.0));
  }

  .step {
    text-align: left;
    padding: 1rem 1rem 1rem 1.2rem;
    min-height: 120px;
  }

  /* Точка привязывается к вертикальной линии */
  .step::after {
    left: 0.75rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(37,99,235,0.0) 70%);
  }

  /* Номер рядом со «шиной» таймлайна */
  .step-number {
    margin-bottom: 0.4rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
}

/* Пульсирующая подсветка шагов по кругу */
.step {
  position: relative;
  overflow: hidden; /* чтобы блик не вылезал за скругления */
}

/* Блик-подсветка внутри карточки */
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;

  /* мягкая заливка с бледным градиентом */
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(120% 80% at 80% 90%, rgba(109,40,217,0.08), transparent 60%);
  opacity: 0;
  transform: scale(1);
  animation: step-glow 6s ease-in-out infinite;
}

/* Поочередная задержка для 1→4 */
.step:nth-child(1)::before { animation-delay: 0s; }
.step:nth-child(2)::before { animation-delay: 1.2s; }
.step:nth-child(3)::before { animation-delay: 2.4s; }
.step:nth-child(4)::before { animation-delay: 3.6s; }

/* Ключевые кадры подсветки */
@keyframes step-glow {
  0%   { opacity: 0; transform: scale(1); }
  8%   { opacity: 1; transform: scale(1.01); }  /* быстро проявляемся */
  20%  { opacity: 0.8; }
  35%  { opacity: 0; transform: scale(1); }     /* мягко уходим */
  100% { opacity: 0; transform: scale(1); }
}

/* Усиление при hover — локально */
.step:hover::before {
  opacity: 1;
  transform: scale(1.01);
  animation-duration: 3s; /* чуть быстрее на hover */
}

/* Уважение к системным настройкам: отключаем авто-анимацию */
@media (prefers-reduced-motion: reduce) {
  .step::before {
    animation: none;
    opacity: 0;
  }
}

/* =========================
   CALCULATOR (refined + unified)
========================= */

.calculator {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
}

.calculator::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================
   ПЕРЕКЛЮЧАТЕЛЬ РЕЖИМОВ
======================================== */

.calc-mode-toggle {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.calc-mode-btn {
  padding: 0.9rem 1.8rem;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex: 1;
  max-width: 220px;
  text-align: center;
  white-space: nowrap;
}

.calc-mode-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}

.calc-mode-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37,99,235,0.35);
  transform: translateY(-2px);
}

.calc-mode-btn i {
  font-size: 1.1rem;
}

/* ========================================
   РЕЖИМЫ КАЛЬКУЛЯТОРА
======================================== */

.calc-mode {
  display: none;
}

.calc-mode.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

/* ========================================
   ФОРМЫ
======================================== */

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
  line-height: 1.5;
}

.form-group select:hover {
  border-color: var(--primary-color);
}

.form-group select:focus,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ========================================
   РЕЗУЛЬТАТ
======================================== */

.calculator-result {
  display: none;
  margin-top: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

.calculator-result::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: result-glow 3s ease-in-out infinite;
}

@keyframes result-glow {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(10%, 10%); }
}

@media (prefers-reduced-motion: reduce) {
  .calculator-result::before { animation: none; }
}

.calculator-result.active {
  display: block;
  animation: result-appear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes result-appear {
  0%   { opacity: 0; transform: scale(0.98) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.calculator-result p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  line-height: 1.5;
}

.calculator-result .price {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: 0.5rem 0;
  animation: price-pulse 2s ease-in-out infinite;
  line-height: 1.2;
}

@keyframes price-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.calculator-result small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.8rem;
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ========================================
   АДАПТИВ
======================================== */

@media (max-width: 768px) {
  .calculator {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    max-width: 100%;
  }

  .calc-mode-toggle {
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .calc-mode-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    gap: 0.5rem;
    max-width: none;
    flex: 1;
  }

  .calc-mode-btn i {
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .form-group select {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    padding-right: 2.8rem;
    background-position: right 0.8rem center;
  }

  .calculator-result {
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
  }

  .calculator-result p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .calculator-result .price {
    font-size: 2.5rem;
    margin: 0.4rem 0;
  }

  .calculator-result small {
    font-size: 0.9rem;
    margin-top: 0.7rem;
  }

  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .calculator {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .calc-mode-toggle {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .calc-mode-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    gap: 0.4rem;
    max-width: none;
    width: 100%;
  }

  .calc-mode-btn i {
    font-size: 0.95rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .form-group select {
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
    padding-right: 2.5rem;
    background-position: right 0.7rem center;
    border-radius: 10px;
  }

  .calculator-result {
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
    margin-top: 1.2rem;
  }

  .calculator-result p {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
  }

  .calculator-result .price {
    font-size: 2.2rem;
    margin: 0.3rem 0;
  }

  .calculator-result small {
    font-size: 0.85rem;
    margin-top: 0.6rem;
    line-height: 1.3;
  }

  .submit-btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* Экстра маленькие экраны (iPhone SE и подобные) */
@media (max-width: 375px) {
  .calculator {
    padding: 1.2rem 0.8rem;
    border-radius: 16px;
  }

  .calc-mode-toggle {
    margin-bottom: 1.2rem;
  }

  .calc-mode-btn {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group select {
    padding: 0.8rem;
    font-size: 0.85rem;
    padding-right: 2.2rem;
  }

  .calculator-result {
    padding: 1.2rem 1rem;
  }

  .calculator-result p {
    font-size: 0.9rem;
  }

  .calculator-result .price {
    font-size: 2rem;
  }

  .calculator-result small {
    font-size: 0.8rem;
  }

  .submit-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

/* Горизонтальная ориентация на мобилках */
@media (max-width: 768px) and (orientation: landscape) {
  .calculator {
    padding: 1.5rem;
  }

  .calc-mode-toggle {
    flex-direction: row;
    margin-bottom: 1.5rem;
  }

  .calc-mode-btn {
    padding: 0.7rem 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .calculator-result {
    padding: 1.5rem;
  }

  .calculator-result .price {
    font-size: 2.2rem;
  }
}

/* ==================== БЫСТРЫЙ РАСЧЁТ (ГОРИЗОНТАЛЬНЫЙ) ==================== */

.quick-services-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0.5rem;
  margin-bottom: 2rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,0.3) transparent;
}

.quick-services-grid::-webkit-scrollbar {
  height: 8px;
}

.quick-services-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.quick-services-grid::-webkit-scrollbar-thumb {
  background: rgba(37,99,235,0.3);
  border-radius: 10px;
}

.quick-services-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(37,99,235,0.5);
}

.quick-service-card {
  flex: 0 0 220px; /* Фиксированная ширина */
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.quick-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(37,99,235,0.15);
}

.quick-service-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(109,40,217,0.08));
  box-shadow: 0 6px 18px rgba(37,99,235,0.2);
}

.quick-service-card.selected::before {
  content: "✓";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.quick-service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quick-service-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  min-height: 2.4rem; /* Фиксированная высота для выравнивания */
}

.quick-service-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  flex: 1; /* Занимает доступное место */
}

.quick-service-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}

.quick-service-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.quick-service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Подсказка о скролле */
.quick-services-grid::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 8px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.quick-services-grid.scrolled::after {
  opacity: 0;
}

/* Результат */
.calc-result-box {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(109,40,217,0.1));
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.calc-result-box p {
  color: #6b7280;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
}

.calc-total-amount {
  color: var(--primary-color);
  font-size: 1.8rem;
}

/* Адаптив */
@media (max-width: 768px) {
  .quick-service-card {
    flex: 0 0 180px; /* Меньше на мобиле */
  }

  .quick-service-icon {
    font-size: 1.8rem;
  }

  .quick-service-card h4 {
    font-size: 0.9rem;
  }

  .quick-service-price {
    font-size: 1rem;
  }
}


/* =========================
   REVIEWS SECTION
   ========================= */

/* =========================
   REVIEWS - ФИНАЛЬНАЯ ВЕРСИЯ
========================= */

/* Общий блок */
.reviews-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  align-items: start;
}

/* ========================================
   SUMMARY BLOCK (С АНИМИРОВАННЫМ ФОНОМ)
======================================== */

.reviews-summary {
  padding: 1.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(59,130,246,0.15) 100%);
  border-radius: 18px;
  border: 2px solid rgba(16,185,129,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px; /* ✅ Выравнивание по высоте карточки */
  overflow: hidden;
}

.summary-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.summary-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.summary-shape.shape-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #10b981, #059669);
  top: -40px;
  left: -40px;
  animation-delay: 0s;
}

.summary-shape.shape-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  bottom: -30px;
  right: -30px;
  animation-delay: 2s;
}

.summary-shape.shape-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.summary-content {
  position: relative;
  z-index: 1;
}

.reviews-summary__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
}

/* Звезда с рейтингом в боксе */
.reviews-summary__rating-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.15));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin: 0 auto 1rem;
  width: fit-content;
  box-shadow: 
    0 4px 16px rgba(251,191,36,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5);
  border: 2px solid rgba(251,191,36,0.4);
}

.reviews-summary__rating-box i {
  font-size: 2rem;
  color: #fbbf24;
  text-shadow: 
    0 0 12px rgba(251,191,36,0.8),
    0 2px 4px rgba(0,0,0,0.2);
  filter: drop-shadow(0 0 4px #fbbf24);
  animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px #fbbf24);
  }
  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px #fbbf24);
  }
}

.reviews-summary__rating-box span {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1f2937;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reviews-summary__count {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 0.8rem;
}

.reviews-summary__badge {
  display: block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 1rem;
  text-align: center;
  width: fit-content;
}

.reviews-summary__progress {
  margin-top: 1.2rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(209,213,219,0.4);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
  transition: width 3s cubic-bezier(0.4, 0, 0.2, 1); /* ✅ Медленнее (3s вместо 2s) */
}

.progress-text {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
  display: block;
}

/* ========================================
   REVIEW CARD
======================================== */

.review-card-container {
  perspective: 1000px;
  height: 380px;
}

.review-card {
  background: 
    linear-gradient(135deg, #667eea 0%, #764ba2 100%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15), transparent 50%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 20px 50px rgba(102,126,234,0.35);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.review-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.review-card.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Header */
.review-card__header {
  display: flex;
  align-items: flex-start; /* ✅ Выравнивание по верху */
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.review-card__avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(251,191,36,0.5);
}

.review-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-card__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
}

/* Звёзды */
.review-card__stars {
  display: flex;
  gap: 0.25rem;
}

.review-card__stars i {
  font-size: 1.3rem;
  color: #fbbf24;
  opacity: 0;
  transform: scale(0);
  animation: starPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  text-shadow: 
    0 0 10px rgba(251,191,36,0.8),
    0 2px 4px rgba(0,0,0,0.3);
  filter: drop-shadow(0 0 3px #fbbf24);
}

.review-card__stars i:nth-child(1) { animation-delay: 0.1s; }
.review-card__stars i:nth-child(2) { animation-delay: 0.2s; }
.review-card__stars i:nth-child(3) { animation-delay: 0.3s; }
.review-card__stars i:nth-child(4) { animation-delay: 0.4s; }
.review-card__stars i:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Дата */
.review-card__date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  width: fit-content;
}

/* Content (текст + эмодзи) */
.review-card__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  flex: 1;
  overflow: hidden;
}

.review-card__text-box {
  background: rgba(255,255,255,0.98);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Текст с отступами */
.review-card__text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #374151;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(102,126,234,0.3) transparent;
}

.review-card__text::-webkit-scrollbar {
  width: 4px;
}

.review-card__text::-webkit-scrollbar-track {
  background: transparent;
}

.review-card__text::-webkit-scrollbar-thumb {
  background: rgba(102,126,234,0.3);
  border-radius: 10px;
}

.review-card__text::-webkit-scrollbar-thumb:hover {
  background: rgba(102,126,234,0.5);
}

/* Автоскролл */
.review-card__text.auto-scroll {
  animation: autoScrollDown 10s linear;
}

@keyframes autoScrollDown {
  from {
    scroll-behavior: smooth;
  }
  to {
    scroll-behavior: smooth;
  }
}

.review-card__emoji {
  font-size: 4.5rem; /* ✅ Чуть меньше, чтобы занимало меньше места */
  opacity: 1;
  animation: emojiPulse 2s ease-in-out infinite alternate;
  flex-shrink: 0;
  align-self: center;
}

@keyframes emojiPulse {
  0% {
    transform: scale(1) rotate(-5deg);
  }
  100% {
    transform: scale(1.08) rotate(5deg);
  }
}

/* ========================================
   ФОРМА ДОБАВЛЕНИЯ ОТЗЫВА - GLASS STYLE
   ======================================== */

.add-review-form {
  max-width: 740px;
  margin: 2rem auto 0;
  position: relative;
  
  /* Белый glass-эффект с тенями */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.95) 100%
  );
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  box-shadow:
    /* Внутренний блик сверху */
    inset 0 1px 1px rgba(255,255,255,0.9),
    /* Основная тень */
    0 20px 50px rgba(0,0,0,0.12),
    /* Дополнительная мягкая тень */
    0 8px 20px rgba(0,0,0,0.08),
    /* Лёгкое цветное свечение */
    0 0 0 1px rgba(59,130,246,0.05);
  
  padding: 2.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Лёгкое свечение внутри формы */
.add-review-form::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 20%;
  right: 20%;
  height: 100%;
  background: radial-gradient(
    ellipse at center, 
    rgba(59,130,246,0.04), 
    transparent 60%
  );
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}

.add-review-form:hover {
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,1),
    0 25px 60px rgba(0,0,0,0.15),
    0 10px 25px rgba(0,0,0,0.1),
    0 0 0 2px rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.12);
}

/* Контент формы поверх свечения */
.add-review-form > * {
  position: relative;
  z-index: 1;
}

.add-review-form .form-group { 
  margin-bottom: 1.3rem; 
}

.add-review-form label { 
  display: block; 
  margin-bottom: 0.6rem; 
  font-weight: 600; 
  font-size: 0.95rem; 
  color: #1f2937; 
  letter-spacing: 0.2px;
}

/* ========================================
   ПОЛЯ ВВОДА (улучшенные)
   ======================================== */

.add-review-form input, 
.add-review-form textarea {
  width: 100%; 
  padding: 0.95rem 1.1rem; 
  border: 2px solid #e5e7eb; 
  border-radius: 12px; 
  font-size: 1rem;
  background: #ffffff;
  color: #1f2937;
  transition: 
    border-color 0.3s ease, 
    box-shadow 0.3s ease,
    transform 0.2s ease,
    background 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.add-review-form input::placeholder,
.add-review-form textarea::placeholder { 
  color: #9ca3af; 
}

.add-review-form input:hover,
.add-review-form textarea:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.add-review-form input:focus, 
.add-review-form textarea:focus {
  outline: none; 
  border-color: var(--primary-color); 
  box-shadow: 
    0 0 0 4px rgba(37,99,235,0.12),
    0 4px 12px rgba(37,99,235,0.15);
  transform: translateY(-1px);
  background: #ffffff;
}

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

/* ========================================
   ЗВЁЗДЫ В ФОРМЕ (НЕ ТРОГАЕМ!)
   ======================================== */

.rating-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rating-group .stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.3rem;
  cursor: pointer;
  user-select: none;
}

.rating-group .stars i {
  color: #d1d5db;
  font-size: 1.6rem;
  transition: all 0.15s ease;
}

.rating-group .stars i:hover,
.rating-group .stars i:hover ~ i {
  color: var(--accent-color);
  transform: scale(1.08);
}

.rating-group .stars i.active,
.rating-group .stars i.active ~ i {
  color: var(--accent-color);
}

/* ========================================
   КАПЧА (улучшенная)
   ======================================== */

.add-review-form .captcha-block {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(250,250,250,0.95) 0%,
    rgba(255,255,255,0.9) 100%
  );
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 1.3rem;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.add-review-form .captcha-block:hover {
  border-color: #d1d5db;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,1),
    0 6px 16px rgba(0,0,0,0.08);
}

.add-review-form .h-captcha {
  max-width: 100%;
  transform-origin: center center;
}

/* ========================================
   АДАПТИВ
   ======================================== */

@media (max-width: 768px) {
  .add-review-form {
    padding: 2rem;
    border-radius: 20px;
    margin: 1.5rem auto 0;
  }

  .add-review-form .form-group {
    margin-bottom: 1.1rem;
  }

  .add-review-form label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .add-review-form input,
  .add-review-form textarea {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .rating-group .stars i {
    font-size: 1.5rem;
  }

  .add-review-form .captcha-block {
    padding: 0.8rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .add-review-form {
    padding: 1.5rem;
    border-radius: 18px;
    margin: 1.2rem auto 0;
  }

  .add-review-form .form-group {
    margin-bottom: 1rem;
  }

  .add-review-form label {
    font-size: 0.85rem;
  }

  .add-review-form input,
  .add-review-form textarea {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }

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

  .rating-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .rating-group .stars i {
    font-size: 1.4rem;
    gap: 0.25rem;
  }

  .add-review-form .captcha-block {
    padding: 0.7rem;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 375px) {
  .add-review-form {
    padding: 1.3rem;
    margin: 1rem 0.5rem 0;
  }

  .add-review-form input,
  .add-review-form textarea {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .rating-group .stars i {
    font-size: 1.3rem;
  }
}

/* ========================================
   8. КНОПКА ОТПРАВКИ
   ======================================== */

.add-review-form .btn,
.add-review-form button[type="submit"] {
  width: 100%;
  margin-top: 0.6rem;
}

/* ========================================
   АДАПТИВ
   ======================================== */

@media (max-width: 992px) {
  .reviews-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reviews-summary {
    position: static;
    max-width: none; /* ✅ Убираем ограничение ширины */
    margin: 0;
  }

  .review-card-container {
    height: 420px;
  }

  .review-card {
    padding: 1.8rem;
  }

  .review-card__header {
    gap: 1rem;
  }

  .review-card__content {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .reviews-block {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .reviews-summary {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }

  .reviews-summary__title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .reviews-summary__rating-box {
    padding: 0.8rem 1.2rem;
    gap: 0.5rem;
  }

  .reviews-summary__rating-box i {
    font-size: 1.8rem;
  }

  .reviews-summary__rating-box span {
    font-size: 2rem;
  }

  .reviews-summary__count {
    font-size: 0.95rem;
  }

  .reviews-summary__badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .progress-bar {
    height: 8px;
  }

  .progress-text {
    font-size: 0.8rem;
  }

  /* Карточка отзыва */
  .review-card-container {
    height: 480px; /* ✅ Увеличиваем высоту для планшетов */
  }

  .review-card {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .review-card__header {
    flex-direction: row; /* ✅ Оставляем горизонтальное расположение */
    text-align: left;
    gap: 1rem;
    align-items: flex-start;
  }

  .review-card__avatar {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .review-card__info {
    align-items: flex-start;
  }

  .review-card__name {
    font-size: 1.2rem;
  }

  .review-card__stars i {
    font-size: 1.1rem;
  }

  .review-card__date {
    font-size: 0.8rem;
  }

  .review-card__content {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .review-card__text-box {
    padding: 1.2rem;
    border-radius: 12px;
    min-height: 180px; /* ✅ Минимум для 3-4 строк */
  }

  .review-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .review-card__emoji {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .reviews-block {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .reviews-summary {
    padding: 1.2rem 1rem;
    border-radius: 14px;
  }

  .reviews-summary__title {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }

  .reviews-summary__rating-box {
    padding: 0.7rem 1rem;
    gap: 0.4rem;
    border-radius: 14px;
  }

  .reviews-summary__rating-box i {
    font-size: 1.6rem;
  }

  .reviews-summary__rating-box span {
    font-size: 1.8rem;
  }

  .reviews-summary__count {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .reviews-summary__badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    margin-bottom: 0.8rem;
  }

  .progress-bar {
    height: 7px;
  }

  .progress-text {
    font-size: 0.75rem;
  }

  /* Карточка отзыва - мобильная версия */
  .review-card-container {
    height: auto; /* ✅ Авто высота на мобилках */
    min-height: 500px;
  }

  .review-card {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .review-card__header {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.2rem;
  }

  .review-card__avatar {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  .review-card__info {
    align-items: center;
    gap: 0.4rem;
  }

  .review-card__name {
    font-size: 1.1rem;
  }

  .review-card__stars {
    justify-content: center;
    gap: 0.2rem;
  }

  .review-card__stars i {
    font-size: 1rem;
  }

  .review-card__date {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  /* Контент - вертикальное расположение */
  .review-card__content {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
  }

  .review-card__text-box {
    padding: 1rem;
    border-radius: 12px;
    min-height: 160px; /* ✅ Минимум 3-4 строки текста на мобилках */
    max-height: 240px; /* ✅ Ограничение сверху для скролла */
  }

  .review-card__text {
    font-size: 0.9rem;
    line-height: 1.55;
    padding-right: 0.3rem;
    max-height: 180px; /* ✅ Ограничение для текста */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
  }

  .review-card__text::-webkit-scrollbar {
    width: 3px;
  }

  .review-card__emoji {
    font-size: 3rem;
    text-align: center;
    align-self: center;
    order: -1; /* ✅ Эмодзи перед текстом на мобилках */
  }
}

/* Экстра маленькие экраны (iPhone SE и подобные) */
@media (max-width: 375px) {
  .reviews-summary {
    padding: 1rem 0.8rem;
  }

  .reviews-summary__title {
    font-size: 1rem;
  }

  .reviews-summary__rating-box {
    padding: 0.6rem 0.8rem;
  }

  .reviews-summary__rating-box i {
    font-size: 1.4rem;
  }

  .reviews-summary__rating-box span {
    font-size: 1.6rem;
  }

  .review-card-container {
    min-height: 480px;
  }

  .review-card {
    padding: 1rem;
  }

  .review-card__avatar {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .review-card__name {
    font-size: 1rem;
  }

  .review-card__text-box {
    min-height: 140px;
    max-height: 220px;
    padding: 0.9rem;
  }

  .review-card__text {
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 160px;
  }

  .review-card__emoji {
    font-size: 2.5rem;
  }
}

/* Горизонтальная ориентация на мобилках */
@media (max-width: 768px) and (orientation: landscape) {
  .reviews-block {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
  }

  .reviews-summary {
    position: sticky;
    top: 80px;
  }

  .review-card-container {
    height: 380px;
  }

  .review-card__header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .review-card__info {
    align-items: flex-start;
  }

  .review-card__stars {
    justify-content: flex-start;
  }

  .review-card__content {
    grid-template-columns: 1fr auto;
  }

  .review-card__text-box {
    min-height: 140px;
    max-height: 200px;
  }

  .review-card__emoji {
    font-size: 3rem;
    order: 0;
  }
}

/* Планшеты в вертикальной ориентации */
@media (min-width: 769px) and (max-width: 992px) {
  .review-card__text-box {
    min-height: 200px; /* ✅ Больше места на планшетах */
  }

  .review-card__text {
    font-size: 1rem;
    line-height: 1.65;
  }
  
  .add-review-form .h-captcha {
    transform: scale(0.85);
  }
}

/* Экраны ≤360px */
@media (max-width: 360px) {
  .add-review-form .h-captcha {
    transform: scale(0.75);
  }
}

/* =========================
   БЛОГ/НОВОСТИ (цельный блок)
========================= */

.blog-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

/* Опциональный модификатор — мягко выделить раздел как важный */
.blog-section.blog-section--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 10% 10%, rgba(37,99,235,0.06), transparent 60%),
    radial-gradient(80% 50% at 90% 90%, rgba(109,40,217,0.05), transparent 60%);
  opacity: 0.9;
}
.blog-section .container,
.blog-section .section-header,
.blog-section .posts-grid,
.blog-section .blog-footer {
  position: relative;
  z-index: 1;
}

/* Заголовок секции в общем стиле */
.blog-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-section .section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  position: relative;
  padding-bottom: 1rem;
}

.blog-section .section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient);
  opacity: 0.95;
}

.blog-section .section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* Сетка карточек */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: stretch; /* выравниваем высоту */
}

/* Карточка поста — общий стиль сайта */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.4rem;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  min-height: 260px;
}

/* деликатная верхняя линия при hover */
.post-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.85;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

.post-card:hover::before {
  transform: scaleX(1);
}

/* Опционально: превью изображение (если есть в разметке) */
.post-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background: #f3f4f6;
}

/* Контент */
.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--primary-color);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* ровные ряды */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Футер прижат вниз */
.post-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.post-date {
  font-size: 0.85rem;
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Лайки — логику/стили сохраняем */
.post-likes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #f8f9fa;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  user-select: none;
}
.post-likes:hover { background: #ffebee; transform: scale(1.05); }
.post-likes.liked { background: linear-gradient(135deg, #ff6b6b, #ff5252); color: #fff; }
.post-likes.liked .like-icon { animation: heartBeat 0.6s ease; }
.like-icon { font-size: 1.25rem; transition: transform 0.3s ease; }
.post-likes:hover .like-icon { transform: scale(1.2); }
.like-count { font-weight: 700; font-size: 0.95rem; }

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
}

/* Футер раздела */
.blog-footer { text-align: center; margin-top: 2rem; }

/* Лоадер */
.post-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #999;
  font-size: 1.1rem;
}

/* Адаптив */
@media (max-width: 768px) {
  .blog-section .section-header h2 { font-size: 2rem; padding-bottom: 0.9rem; }
  .blog-section .section-header h2::after { height: 3px; width: 90px; }

  .posts-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-card { padding: 1.2rem; }
  .post-title { font-size: 1.15rem; }
}

/* =========================
   POPUP ПOСТА (основной блок)
   ========================= */

.post-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  animation: pm-fade-in 0.25s ease;
}
.post-modal.active,
.post-modal.open {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

@keyframes pm-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

.post-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.75);
  padding: 2.4rem 2.6rem;
  animation: pm-slide-up 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}
.post-modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 12% 10%, rgba(37,99,235,0.06), transparent 60%),
    radial-gradient(80% 50% at 88% 90%, rgba(109,40,217,0.05), transparent 60%);
  opacity: 0.9;
}

@keyframes pm-slide-up {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.post-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #666;
  display: grid; place-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.post-modal-close:hover { background: #ef4444; color: #fff; transform: rotate(90deg); }
.post-modal-close:focus-visible { outline: 3px solid rgba(37,99,235,0.35); outline-offset: 3px; }

.post-modal-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #eee;
}
.post-modal-title {
  font-size: 2.1rem;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.post-modal-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.95rem;
}
.post-modal-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

.post-modal-body {
  position: relative;
  z-index: 1;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 1.8rem;
}
.post-modal-body p { margin-bottom: 1.1rem; }
.post-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.4rem 0;
  display: block;
}

.post-modal-footer {
  position: relative;
  z-index: 1;
  padding-top: 1.4rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Лайки — как есть, без изменений логики */
.post-modal-like {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: #f8f9fa;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid #e5e7eb;
}
.post-modal-like:hover {
  background: #ffebee;
  border-color: #ff6b6b;
  transform: scale(1.05);
}
.post-modal-like.liked {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: #fff;
  border-color: #ff5252;
}
.post-modal-like .like-icon { font-size: 1.6rem; }
.post-modal-like .like-count { font-weight: 700; font-size: 1.05rem; }

/* Кнопка «Назад» / «Все статьи» (если есть в футере попапа) */
.post-modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Адаптивы */
@media (max-width: 768px) {
  .post-modal { padding: 1rem; }
  .post-modal-content { padding: 1.5rem; margin: 1rem; max-height: 90vh; overflow-y: auto; }
  .post-modal-title { font-size: 1.6rem; line-height: 1.3; }
  .post-modal-meta { gap: 0.8rem; }
  .post-modal-footer { flex-direction: column; align-items: stretch; }
  .post-modal-like { justify-content: center; }
}

/* States */
.post-modal { opacity: 0; pointer-events: none; }
.post-modal.open,
.post-modal.active {
  opacity: 1; pointer-events: auto;
}

.post-modal {
  transition: opacity 180ms ease;
}

.post-modal-content {
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 180ms ease;
}

/* Opening */
.post-modal.open .post-modal-content,
.post-modal.active .post-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Closing helper class (добавляется перед снятием .open/.active) */
.post-modal.closing { opacity: 0; }
.post-modal.closing .post-modal-content {
  transform: translateY(16px) scale(0.985);
  opacity: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .post-modal,
  .post-modal-content {
    transition: none !important;
    animation: none !important;
  }
}

/* когда попап открыт — убираем прокрутку без фиксирования позы */
html.modal-open,
body.modal-open {
  overflow: hidden;
}

body.modal-scrollbar-comp {
  padding-right: var(--scrollbar-comp, 0px);
}

/* =========================
   SERVICE AREAS - INTERACTIVE WITH EMBLEMS
========================= */

.metro-selector-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
  min-height: 500px;
}

/* ==================== ЛЕВАЯ ЧАСТЬ: СПИСОК ЛИНИЙ С ЭМБЛЕМАМИ ==================== */

.metro-lines-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
}

.metro-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.metro-lines-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,0.3) transparent;
}

.metro-lines-list::-webkit-scrollbar {
  width: 6px;
}

.metro-lines-list::-webkit-scrollbar-track {
  background: transparent;
}

.metro-lines-list::-webkit-scrollbar-thumb {
  background: rgba(37,99,235,0.3);
  border-radius: 10px;
}

.metro-line-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: #f9fafb;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 255px;
}

.metro-line-btn:hover {
  background: rgba(37,99,235,0.05);
  border-color: rgba(37,99,235,0.2);
  transform: translateX(5px);
}

.metro-line-btn.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(109,40,217,0.1));
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}

/* Эмблема линии (SVG) */
.metro-line-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metro-line-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.metro-line-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

.metro-line-btn.active .metro-line-name {
  color: var(--primary-color);
}

/* ==================== ПРАВАЯ ЧАСТЬ: СТАНЦИИ ==================== */

.metro-stations-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  min-height: 500px;
}

.metro-stations-panel {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.metro-stations-panel.active {
  display: block;
}

.metro-stations-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.metro-stations-title img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.metro-stations-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.metro-stations-grid li {
  font-size: 0.9rem;
}

.metro-stations-grid a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 1.5rem;
}

.metro-stations-grid a::before {
  content: "📍";
  position: absolute;
  left: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.metro-stations-grid a:hover {
  background: rgba(37,99,235,0.08);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.metro-stations-grid a:hover::before {
  opacity: 1;
}

.service-area-note {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(109,40,217,0.1));
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
}

.service-area-note p {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-area-note i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.service-area-note strong {
  color: var(--primary-color);
}

/* Адаптив */
@media (max-width: 992px) {
  .metro-selector-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .metro-lines-sidebar {
    position: static;
    max-height: 200px; /* Ограничиваем высоту для скролла */
    overflow: hidden; /* Скрываем переполнение основного контейнера */
  }

  .metro-lines-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.8rem;
    padding-bottom: 0.5rem; /* Отступ для скроллбара */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
  }

  .metro-line-btn {
    flex-shrink: 0;
    min-width: 180px;
    white-space: nowrap;
  }

  /* Улучшаем видимость скроллбара на мобилках */
  .metro-lines-list::-webkit-scrollbar {
    height: 4px;
  }

  .metro-lines-list::-webkit-scrollbar-thumb {
    background: rgba(37,99,235,0.4);
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .metro-selector-wrapper {
    gap: 1rem;
  }

  .metro-lines-sidebar {
    padding: 1rem;
    max-height: 150px; /* Уменьшаем высоту для маленьких экранов */
  }

  .metro-sidebar-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .metro-line-btn {
    min-width: 160px;
    padding: 0.5rem 0.7rem;
    gap: 0.6rem;
  }

  .metro-line-badge {
    width: 28px;
    height: 28px;
  }

  .metro-line-name {
    font-size: 0.85rem;
  }

  /* Станции - скролл только внутри контейнера */
  .metro-stations-content {
    padding: 1.5rem;
    max-height: 600px; /* Ограничиваем высоту */
    overflow-y: auto; /* Включаем вертикальный скролл */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
  }

  .metro-stations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .metro-stations-grid a {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }

  .metro-stations-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
  }

  /* Кастомный скроллбар для станций на планшетах */
  .metro-stations-content::-webkit-scrollbar {
    width: 6px;
  }

  .metro-stations-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
  }

  .metro-stations-content::-webkit-scrollbar-thumb {
    background: rgba(37,99,235,0.4);
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .metro-selector-wrapper {
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .metro-lines-sidebar {
    padding: 0.8rem;
    max-height: 120px; /* Компактнее на маленьких экранах */
    border-radius: 12px;
  }

  .metro-sidebar-title {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .metro-lines-list {
    gap: 0.6rem;
  }

  .metro-line-btn {
    min-width: 140px;
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
    border-radius: 10px;
    width: auto; /* Убираем фиксированную ширину для мобилок */
  }

  .metro-line-badge {
    width: 24px;
    height: 24px;
  }

  .metro-line-name {
    font-size: 0.8rem;
  }

  /* Контент станций - компактная версия */
  .metro-stations-content {
    padding: 1rem;
    max-height: 500px; /* Уменьшаем для мобилок */
    border-radius: 12px;
  }

  .metro-stations-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    gap: 0.6rem;
  }

  .metro-stations-title img {
    width: 32px;
    height: 32px;
  }

  .metro-stations-grid {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .metro-stations-grid a {
    padding: 0.7rem 0.8rem; /* Увеличиваем для удобства тача */
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .metro-stations-grid a:hover {
    padding-left: 1.5rem;
  }

  /* Примечание - компактная версия */
  .service-area-note {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .service-area-note p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Тонкий скроллбар на мобилках */
  .metro-stations-content::-webkit-scrollbar {
    width: 4px;
  }

  .metro-stations-content::-webkit-scrollbar-thumb {
    background: rgba(37,99,235,0.5);
  }

  .metro-lines-list::-webkit-scrollbar {
    height: 3px;
  }
}

/* Экстра маленькие экраны (iPhone SE и подобные) */
@media (max-width: 375px) {
  .metro-lines-sidebar {
    max-height: 110px;
  }

  .metro-line-btn {
    min-width: 130px;
    padding: 0.45rem 0.5rem;
  }

  .metro-line-badge {
    width: 22px;
    height: 22px;
  }

  .metro-line-name {
    font-size: 0.75rem;
  }

  .metro-stations-content {
    max-height: 450px;
    padding: 0.8rem;
  }

  .metro-stations-grid a {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }
}

/* Горизонтальная ориентация на мобилках */
@media (max-width: 768px) and (orientation: landscape) {
  .metro-selector-wrapper {
    grid-template-columns: 280px 1fr;
    gap: 1rem;
  }

  .metro-lines-sidebar {
    max-height: 350px;
    overflow-y: auto;
  }

  .metro-lines-list {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .metro-line-btn {
    min-width: auto;
    width: 100%;
  }

  .metro-stations-content {
    max-height: 350px;
  }
}

/* ========================================
   ДОПОЛНЕНИЕ: ПОДДЕРЖКА РАЙОНОВ (РЕГИОНЫ)
   Использует существующие стили metro-*
   ======================================== */

/* Контейнер для районов (по умолчанию скрыт) */
#districts-container {
  display: none;
  animation: fadeInUp 0.5s ease;
}

/* Показываем районы когда активен режим districts */
#service-areas[data-location-type="districts"] #districts-container {
  display: block;
}

/* Скрываем метро когда активен режим districts */
#service-areas[data-location-type="districts"] .metro-selector-wrapper {
  display: none;
}

/* Сетка районов (используем ту же структуру что и метро) */
.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Карточка района (стилизована под metro-station) */
.district-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
  cursor: pointer;
}

.district-card:hover {
  border-color: var(--primary-color);
  background: rgba(37,99,235,0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}

.district-card:active {
  transform: translateY(0);
}

/* Иконка района */
.district-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 10px;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Название района */
.district-name {
  font-weight: 600;
  font-size: 1rem;
  color: #374151;
  line-height: 1.4;
}

.district-card:hover .district-name {
  color: var(--primary-color);
}

/* ==================== АДАПТИВ ДЛЯ РАЙОНОВ ==================== */

@media (max-width: 992px) {
  .districts-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.7rem;
  }
}

@media (max-width: 768px) {
  .districts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .district-card {
    padding: 0.8rem 1rem;
  }

  .district-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .district-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .districts-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .district-card {
    padding: 0.7rem 0.9rem;
  }

  .district-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .district-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 375px) {
  .district-card {
    padding: 0.6rem 0.8rem;
    gap: 0.8rem;
  }

  .district-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .district-name {
    font-size: 0.8rem;
  }
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   CONTACT FORM - ANIMATED MESH GRADIENT STYLE
========================= */

.contact-form {
  position: relative;
  color: var(--white);
  padding: 5rem 2rem;
  overflow: hidden;
  isolation: isolate;

  /* Базовый градиент как в hero */
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #1e40af 100%);
}

/* ========================================
   ANIMATED MESH GRADIENT (как в hero)
======================================== */

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(249,115,22,0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.3), transparent 45%),
    radial-gradient(circle at 60% 20%, rgba(168,85,247,0.25), transparent 38%),
    radial-gradient(circle at 30% 80%, rgba(34,211,238,0.22), transparent 42%);
  filter: blur(60px);
  animation: mesh-move 20s ease-in-out infinite;
}

@keyframes mesh-move {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  25% { 
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.9;
  }
  50% { 
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 1;
  }
  75% { 
    transform: translate(40px, 20px) scale(1.05);
    opacity: 0.85;
  }
}

/* Дополнительные блики */
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(ellipse at 10% 50%, rgba(249,115,22,0.15), transparent 35%),
    radial-gradient(ellipse at 90% 60%, rgba(59,130,246,0.12), transparent 40%);
  animation: gentle-pulse 10s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ========================================
   ЗАГОЛОВОК СЕКЦИИ
======================================== */

.contact-form .section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 1.6rem;
}

.contact-form .section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
  text-shadow: 
    0 2px 12px rgba(0,0,0,0.4),
    0 0 40px rgba(249,115,22,0.2);
}

/* Подчёркивание заголовка */
.contact-form .section-header h2::after {
  content: "";
  position: absolute;
  left: 50%; 
  bottom: 0;
  transform: translateX(-50%);
  width: 110px; 
  height: 4px; 
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), rgba(249,115,22,0.5));
  box-shadow: 0 2px 12px rgba(249,115,22,0.4);
}

/* Подзаголовок */
.contact-form .section-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ========================================
   КАРТОЧКА ФОРМЫ (улучшенный glass)
======================================== */

.form-container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  
  /* Улучшенное жидкое стекло как в hero */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.1) 100%
  );
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    0 20px 60px rgba(0,0,0,0.25),
    0 0 0 1px rgba(249,115,22,0.1);
    
  padding: 2rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Внутреннее свечение формы */
.form-container::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 0%, 
    rgba(249,115,22,0.15), 
    transparent 60%
  );
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.form-container:hover {
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.5),
    0 25px 70px rgba(0,0,0,0.3),
    0 0 0 2px rgba(249,115,22,0.2);
  border-color: rgba(255,255,255,0.4);
}

/* ========================================
   ПОЛЯ ФОРМЫ
======================================== */

.form-fields {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255,255,255,0.95);
  color: #1f2937;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.form-container input::placeholder,
.form-container textarea::placeholder { 
  color: #9ca3af; 
}

.form-container input:hover,
.form-container textarea:hover {
  border-color: rgba(249,115,22,0.4);
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 
    0 0 0 4px rgba(249,115,22,0.15),
    0 4px 12px rgba(249,115,22,0.2);
  transform: translateY(-1px);
}

.form-container textarea { 
  resize: vertical; 
  min-height: 120px; 
}

/* ========================================
   КАСТОМНЫЙ ЧЕКБОКС (улучшенный)
======================================== */

.privacy-consent {
  margin-top: 1rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.privacy-consent__label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 36px;
  line-height: 1.5;
  cursor: pointer;
  color: rgba(255,255,255,0.95);
  transition: color 0.2s ease;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.privacy-consent__label:hover {
  color: rgba(255,255,255,1);
}

/* Скрываем стандартный чекбокс */
.privacy-consent__label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Кастомный чекбокс (glass-эффект) */
.privacy-consent__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 2px 8px rgba(0,0,0,0.15);
}

/* Галочка (скрыта по умолчанию) */
.privacy-consent__label::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0) rotate(-45deg);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: 
    transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.2s ease;
}

/* Hover (не отмечен) */
.privacy-consent__label:hover::before {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 4px 12px rgba(0,0,0,0.2);
}

/* Чекбокс отмечен */
.privacy-consent__label:has(input[type="checkbox"]:checked)::before {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
  border-color: var(--accent-color);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 6px 20px rgba(249,115,22,0.4),
    0 0 30px rgba(249,115,22,0.2);
}

/* Галочка появляется */
.privacy-consent__label:has(input[type="checkbox"]:checked)::after {
  transform: translateY(-50%) scale(1) rotate(0deg);
  opacity: 1;
}

/* Анимация при клике */
.privacy-consent__label:active::before {
  transform: translateY(-50%) scale(0.95);
}

/* Фокус для клавиатуры */
.privacy-consent__label:has(input[type="checkbox"]:focus-visible)::before {
  outline: 3px solid rgba(249,158,11,0.4);
  outline-offset: 3px;
}

/* Ссылка "Политика конфиденциальности" */
.privacy-consent__label a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
  transition: 
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.privacy-consent__label a:hover {
  color: var(--accent-color);
  text-decoration-color: var(--accent-color);
}

/* ========================================
   АДАПТИВ
======================================== */

@media (max-width: 768px) {
  .contact-form {
    padding: 4rem 1.5rem;
  }

  .contact-form .section-header h2 {
    font-size: 2rem;
  }

  .contact-form .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .form-fields {
    gap: 0.9rem;
  }

  .form-container input,
  .form-container textarea {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .privacy-consent__label {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 3rem 1rem;
  }

  .contact-form .section-header h2 {
    font-size: 1.8rem;
  }

  .contact-form .section-subtitle {
    font-size: 0.9rem;
  }

  .form-container {
    padding: 1.3rem;
    border-radius: 18px;
  }

  .form-fields {
    gap: 0.8rem;
  }

  .form-container input,
  .form-container textarea {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .privacy-consent__label {
    font-size: 0.85rem;
    padding-left: 32px;
  }

  .privacy-consent__label::before {
    width: 22px;
    height: 22px;
  }

  .privacy-consent__label::after {
    font-size: 14px;
    left: 3px;
  }
}

/* Отключаем анимации для слабых устройств */
@media (prefers-reduced-motion: reduce) {
  .contact-form::before,
  .contact-form::after {
    animation: none !important;
  }
}

/* ========================================
   SELECT С ЛОКАЦИЯМИ
   ======================================== */

.location-select {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234B5563' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.location-select:hover {
  border-color: var(--primary-color);
  background-color: #f9fafb;
}

.location-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: #ffffff;
}

.location-select option {
  padding: 0.5rem;
  color: #1f2937;
}

.location-select optgroup {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.location-select option:first-child {
  color: #9ca3af;
}

.location-select.field-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

@media (max-width: 768px) {
  .location-select {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 480px) {
  .location-select {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }
}


/* =========================
   КНОПКА И ТОСТЫ
========================= */

/* Кнопка отправки */
.form-actions { 
  margin-top: 0.6rem; 
}

.form-actions .btn,
.submit-btn {
  width: 100%;
  border: 1px solid rgba(234,88,12,0.35);
  border-radius: 999px;
  padding: 1.05rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
  box-shadow:
    0 8px 20px rgba(234,88,12,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-actions .btn:hover,
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 30px rgba(234,88,12,0.45),
    inset 0 1px 0 rgba(255,255,255,0.28);
  background: linear-gradient(135deg, #ea580c 0%, var(--accent-color) 100%);
}

.form-actions .btn:focus-visible,
.submit-btn:focus-visible {
  outline: 3px solid rgba(245,158,11,0.35);
  outline-offset: 3px;
}

/* Overlay под тост */
.form-toast-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

/* Тост (уведомление) */
.form-success-toast {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(680px, calc(100% - 32px));
  max-width: 680px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  box-shadow:
    0 28px 80px rgba(234, 88, 12, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
  padding: 20px 18px;
  opacity: 0;
  transition:
    transform 220ms cubic-bezier(0.4,0,0.2,1),
    opacity 180ms ease;
}

.form-success-toast.show {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.form-success-toast .toast-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.22);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.form-success-toast .toast-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
}

.form-success-toast .toast-text {
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.98;
}

/* Тост ошибки (красный) */
.form-success-toast.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 28px 80px rgba(239, 68, 68, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.form-success-toast.error .toast-icon {
  background: rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Поле с ошибкой */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12) !important;
}

.field-hint {
  font-size: 0.9rem;
  color: #fecaca;
  margin-top: -4px;
  margin-bottom: 6px;
  display: none;
}

.field-hint.show { 
  display: block; 
}

/* =========================
   АДАПТИВ
========================= */

@media (max-width: 480px) {
  .form-success-toast { 
    width: calc(100% - 24px); 
    padding: 16px 14px; 
  }
  
  .form-success-toast .toast-icon { 
    width: 48px; 
    height: 48px; 
    font-size: 1.3rem; 
  }
  
  .form-success-toast .toast-title { 
    font-size: 1.15rem; 
  }
  
  .form-success-toast .toast-text { 
    font-size: 0.98rem; 
  }
}

@media (max-width: 360px) {
  .privacy-consent__label { 
    align-items: flex-start; 
    padding-top: 2px;
  }
}

/* =========================
   CONTACTS SECTION (cards)
========================= */

/* Опциональный модификатор для акцента секции */
.contacts-section {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}
.contacts-section--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 12% 10%, rgba(37,99,235,0.06), transparent 60%),
    radial-gradient(80% 50% at 88% 90%, rgba(109,40,217,0.05), transparent 60%);
  opacity: 0.9;
}
.contacts-section > * { position: relative; z-index: 1; }

/* Сетка карточек */
.contact-info {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.6rem;
  align-items: stretch;
}

/* Карточка — общий стиль */
.contact-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
  overflow: hidden;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.10);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.78);
}

/* Иконка в мягком бейдже */
.contact-card i {
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 0.6rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 8px 18px rgba(37,99,235,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Заголовок/подпись внутри карточки (если есть) */
.contact-card h4 {
  margin: 0.2rem 0 0.2rem;
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 700;
}
.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Ссылки контактов */
.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  transition: color 0.2s ease, transform 0.2s ease, text-underline-offset 0.2s ease;
  text-underline-offset: 3px;
}
.contact-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Вариант CTA-карточки (телефон/мессенджер) */
.contact-card--cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    0 12px 30px rgba(37,99,235,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.contact-card--cta i {
  background: rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.contact-card--cta h4,
.contact-card--cta p { color: #fff; }
.contact-card--cta a {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.85);
}
.contact-card--cta a:hover { color: #fff; }

/* Мобилки */
@media (max-width: 768px) {
  .contacts-section { padding: 3.5rem 1.2rem; }
  .contact-card { padding: 1.2rem 1rem; }
}

/* =========================
   FOOTER
========================= */

footer {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #e5e7eb;
  padding: 3.2rem 2rem 1.2rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 12% 10%, rgba(37,99,235,0.05), transparent 60%),
    radial-gradient(80% 50% at 88% 90%, rgba(109,40,217,0.04), transparent 60%);
  opacity: 0.9;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: #fff;
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.footer-section ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-section ul li { padding: 0.28rem 0; }
.footer-section a {
  color: #9ca3af;
  text-decoration: underline;
  transition: color var(--transition);
}
@supports (text-underline-offset: 3px) {
  .footer-section a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
}
.footer-section a:hover { color: #ffffff; }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  color: #9ca3af;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}
.footer-bottom a {
  color: #9ca3af;
  text-decoration: underline;
  transition: color var(--transition);
}
@supports (text-underline-offset: 3px) {
  .footer-bottom a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
}
.footer-bottom a:hover { color: #ffffff; }

/* Адаптив */
@media (max-width: 768px) {
  footer { padding: 2.6rem 1.2rem 1rem; }
  .footer-content { gap: 1.6rem; }
}



/* =========================
   STICKY HELP BUTTON (DESKTOP ONLY)
========================= */

/* По умолчанию скрыта, показываем только на >=992px */
.sticky-help {
  display: none;
}

@media (min-width: 992px) {
  .sticky-help {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 18px 36px;
    border-radius: 60px;
    border: 3px solid #fff;

    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;

    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-color-dark) 100%);
    box-shadow: 0 8px 30px rgba(16,185,129,0.5);

    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    animation: shb-pulse 2s infinite;
  }
  .sticky-help:hover {
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 12px 40px rgba(16,185,129,0.75);
  }
  .sticky-help.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .sticky-help .icon-wrap {
    display: grid;
    place-items: center;
  }
  .sticky-help .icon {
    font-size: 28px;
    animation: shb-ring 1.5s ease-in-out infinite;
  }
  .sticky-help .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
  }
  .sticky-help .label {
    font-size: 13px;
    opacity: 0.9;
  }
  .sticky-help .number {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
}

/* Анимации */
@keyframes shb-ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-14deg); }
  20%, 40% { transform: rotate(14deg); }
}
@keyframes shb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 15px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* На мобилках спрятана всегда */
@media (max-width: 991.98px) {
  .sticky-help { display: none !important; }
}

/* =========================
   ANIMATIONS — COMMON
========================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   UTILITIES
========================= */

@media (max-width: 480px) {
  .service-card { padding: 1.3rem; }
  .calculator { padding: 1.3rem; }
  .testimonial { padding: 1.3rem; }
}

.section-title.is-white { color: var(--white); }

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Капча — адаптивный контейнер для hCaptcha */
.captcha-block {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  max-width: 100%;
  overflow: hidden;
}

/* hCaptcha виджет */
.h-captcha {
  max-width: 100%;
  transform-origin: center center;
}

/* Мобильные устройства */
@media (max-width: 480px) { 
  .captcha-block { 
    padding: 0.5rem;
  }
  
  /* Уменьшаем hCaptcha, чтобы влез */
  .h-captcha {
    transform: scale(0.95);
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .h-captcha {
    transform: scale(0.90);
  }
}

/* =========================
   БЛОГ: ОБЩИЕ СТИЛИ
   (/blog + /post)
========================= */

/* Серый фон для страниц блога */
.blog-page,
.post-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding-top: calc(var(--header-h) + var(--header-gap));
}

/* Дополнительный отступ для поста (учитываем крошки) */
.post-page {
  padding-top: calc(var(--header-h) + var(--crumbs-h) + var(--header-gap));
}

/* =========================
   ХЛЕБНЫЕ КРОШКИ (/post)
========================= */

header .breadcrumbs {
  position: fixed; 
  top: calc(var(--header-h) + 1.3rem); /* header min-height + padding (1rem*2) */
  left: 0; 
  right: 0;
  background: var(--white); 
  border-bottom: 1px solid #e5e7eb; 
  padding: 0.6rem 0;
  z-index: 999; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .breadcrumbs-container {
  max-width: var(--container-max); 
  margin: 0 auto; 
  padding: 0 2rem;
  display: flex; 
  align-items: center; 
  gap: .5rem; 
  font-size: .95rem; 
  color: var(--text-light);
}

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

header .breadcrumbs a:hover { 
  color: var(--secondary-color); 
  text-decoration: underline; 
}

header .breadcrumbs .separator { 
  color: #9ca3af; 
  user-select: none; 
}

header .breadcrumbs .current { 
  color: var(--text-light); 
  font-weight: 500; 
}

/* Адаптив для крошек */
@media (max-width: 768px) { 
  header .breadcrumbs { 
    top: calc(var(--header-h) + 3rem); /* На мобиле паддинг меньше */
    padding: 0.55rem 0; 
  } 
  
  header .breadcrumbs-container { 
    padding: 0 1rem; 
    font-size: .9rem; 
  }
}

/* =========================
   БЛОГ: ФОН И ОТСТУПЫ
========================= */

/* Серый фон для страниц блога и поста */
.blog-page,
.post-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Отступ контейнера на странице /blog */
.blog-page .container {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2rem;
}

/* Заголовок страницы блога */
.blog-page .page-title,
.blog-page .blog-title {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* Кнопка "Назад" на странице блога */
.blog-page .back-home {
  display: inline-flex;
  margin-top: 2rem;
}

/* =========================
   ОБЩИЕ ЭЛЕМЕНТЫ КАРТОЧЕК
========================= */

/* Обложка поста */
.post-thumb, 
.post-image { 
  width: 100%; 
  aspect-ratio: 16/9; 
  object-fit: cover; 
  display: block; 
}

.post-image-placeholder {
  display: none; 
  width: 100%; 
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #eef2ff, #e9d5ff); 
  color: #6b7280;
  align-items: center; 
  justify-content: center; 
  font-size: 2rem;
}

.post-image-placeholder.show { 
  display: flex; 
}

/* Заголовок поста */
.post-title, 
.post-title-card {
  font-size: 1.1rem; 
  font-weight: 800; 
  color: var(--text-dark);
  line-height: 1.35; 
  text-decoration: none; 
  display: -webkit-box; 
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden;
}

/* Краткое описание */
.post-excerpt {
  color: var(--text-light); 
  font-size: 0.98rem; 
  line-height: 1.6;
  display: -webkit-box; 
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
}

/* Метаинформация (дата, просмотры) */
.post-meta, 
.post-meta-card {
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  flex-wrap: wrap;
  color: var(--text-light); 
  font-size: 0.9rem; 
  margin-bottom: .25rem;
}

.post-meta i, 
.post-meta-card i { 
  color: var(--text-light); 
  font-size: 0.95rem; 
}

.post-meta .dot, 
.post-meta-card .dot { 
  width: 4px; 
  height: 4px; 
  border-radius: 50%; 
  background: #d1d5db; 
  display: inline-block; 
}

/* Кнопка "Читать" */
.post-read {
  display: inline-flex; 
  align-items: center; 
  gap: .5rem; 
  background: var(--gradient); 
  color: #fff;
  padding: .6rem .9rem; 
  border-radius: 999px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: .92rem;
  transition: transform .25s ease, box-shadow .25s ease; 
  box-shadow: 0 6px 16px rgba(102,126,234,0.25);
  white-space: nowrap; 
  flex: 0 0 auto;
}

.post-read:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 24px rgba(102,126,234,0.35); 
}

/* Лайки (общий стиль для /blog и /post) */
.post-likes, 
.post-likes-card {
  display: inline-flex; 
  align-items: center; 
  gap: 0.6rem; 
  cursor: pointer;
  padding: 0.6rem 1rem; 
  border-radius: 999px; 
  background: #f8f9fa;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  user-select: none; 
  font-size: 1rem; 
  line-height: 1; 
  vertical-align: middle;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); 
  white-space: nowrap;
}

.post-likes:hover, 
.post-likes-card:hover { 
  background: #ffebee; 
  transform: translateY(-1px) scale(1.04); 
  box-shadow: 0 6px 16px rgba(255,107,107,0.2); 
}

.post-likes.liked, 
.post-likes-card.liked { 
  background: linear-gradient(135deg, #ff6b6b, #ff5252); 
  color: #fff; 
  box-shadow: 0 6px 16px rgba(255,107,107,0.35); 
}

@keyframes heartBeat { 
  0%,100% { transform: scale(1); } 
  25% { transform: scale(1.28); } 
  50% { transform: scale(1.1); } 
  75% { transform: scale(1.22); } 
}

.post-likes.liked .like-icon, 
.post-likes-card.liked .like-icon { 
  animation: heartBeat 0.6s ease; 
}

.post-likes .like-icon, 
.post-likes-card .like-icon { 
  font-size: 1.25rem; 
  transition: transform 0.25s ease; 
}

.post-likes:hover .like-icon, 
.post-likes-card:hover .like-icon { 
  transform: scale(1.18); 
}

.post-likes .like-count, 
.post-likes-card .like-count { 
  font-weight: 700; 
  font-size: 0.95rem; 
  line-height: 1; 
}

/* Кнопка "Назад" */
.back-home, 
.back-button {
  display: inline-flex; 
  align-items: center; 
  gap: .6rem; 
  background: var(--gradient); 
  color: #fff !important;
  padding: .8rem 1.3rem; 
  border-radius: 999px; 
  text-decoration: none; 
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease; 
  box-shadow: 0 8px 22px rgba(102,126,234,0.3);
}

.back-home:hover, 
.back-button:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 28px rgba(102,126,234,0.42); 
}


/* =========================
   СТРАНИЦА /BLOG
========================= */

/* Сетка карточек */
.posts-grid { 
  display: grid; 
  grid-template-columns: repeat(12, 1fr); 
  gap: 1.25rem; 
}

/* Карточка поста */
.post-card {
  grid-column: span 4; 
  background: var(--white); 
  border-radius: var(--radius-l);
  box-shadow: var(--shadow); 
  overflow: hidden; 
  display: flex; 
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition); 
  min-height: 260px;
  border: 1px solid rgba(0,0,0,0.06);
}

.post-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 14px 40px rgba(0,0,0,0.12); 
}

/* Тело карточки */
.post-body { 
  padding: 1rem 1rem 0.9rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.6rem; 
}

/* Футер карточки */
.post-footer {
  margin-top: .6rem; 
  padding: .7rem 1rem 1rem; 
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: .75rem;
}

.post-stats { 
  display: inline-flex; 
  align-items: center; 
  gap: .65rem; 
  flex-wrap: wrap; 
}


/* =========================
   СТРАНИЦА /POST
========================= */

/* Контейнер поста */
.blog-container {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--header-h) + var(--crumbs-h) + var(--header-gap));
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

/* Шапка поста */
.blog-container .post-header {
  text-align: center; 
  margin-bottom: 1.2rem; 
  padding-bottom: .9rem; 
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.blog-container .post-title {
  font-size: 2.2rem; 
  font-weight: 800; 
  line-height: 1.2; 
  color: var(--text-dark); 
  margin: 0 0 .4rem;
}

.blog-container .post-meta {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: .65rem;
  color: var(--text-light); 
  font-size: .95rem; 
  flex-wrap: wrap;
}

.blog-container .post-meta i { 
  color: var(--text-light); 
  font-size: .95rem; 
}

.blog-container .post-meta .dot { 
  width: 4px; 
  height: 4px; 
  border-radius: 50%; 
  background: #d1d5db; 
  display: inline-block; 
}

/* Главное изображение поста */
.post-image-hero {
  width: 100%; 
  max-height: 420px; 
  object-fit: cover; 
  border-radius: var(--radius-m);
  margin: 1.2rem 0 1.6rem; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Контент поста */
.blog-container .post-content { 
  font-size: 1.05rem; 
  line-height: 1.8; 
  color: var(--text-dark); 
}

.blog-container .post-content h2 { 
  font-size: 1.6rem; 
  margin: 1.8rem 0 .9rem; 
  color: var(--text-dark); 
  border-left: 4px solid #667eea; 
  padding-left: 1rem; 
  font-weight: 700; 
}

.blog-container .post-content h3 { 
  font-size: 1.3rem; 
  margin: 1.2rem 0 .6rem; 
  color: #374151; 
  font-weight: 700; 
}

.blog-container .post-content img { 
  max-width: 100%; 
  height: auto; 
  border-radius: var(--radius-m); 
  display: block; 
  margin: 1rem 0; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.12); 
}

/* Футер поста */
.blog-container .post-footer { 
  display: flex; 
  align-items: center; 
  justify-content: flex-end; 
  gap: .75rem; 
  padding-top: .9rem; 
  border-top: 1px solid rgba(0,0,0,0.06); 
}


/* =========================
   АДАПТИВНЫЕ СТИЛИ
========================= */

/* Планшеты */
@media (max-width: 1200px) { 
  .post-card { 
    grid-column: span 6; 
  } 
}

/* Навигация на средних экранах */
@media (max-width: 992px) { 
  .nav-links { 
    gap: 1.2rem; 
  } 
}

/* Мобильные устройства */
.brand-short { 
  display: none; 
}

@media (max-width: 768px) {
  /* Навигация */
  nav {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 10px 15px; 
    padding: 0.75rem 1rem; 
    overflow: hidden;
  }
  
  .logo { 
    flex: 1 1 auto; 
    min-width: 120px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 700; 
    font-size: 1.1rem; 
  }
  
  .brand-long { 
    display: none; 
  }
  
  .brand-short { 
    display: inline; 
  }
  
  .nav-links { 
    order: 3; 
    flex: 1 1 100%; 
    justify-content: center; 
    gap: 1.2rem; 
    margin-top: 5px; 
  }
  
  .nav-links a { 
    font-size: 0.9rem; 
  }
  
  .phone-btn { 
    flex-shrink: 0; 
    font-size: 0.9rem; 
    padding: 0.4rem 0.8rem; 
  }
  
  /* Контейнер поста */
  .blog-container { 
    padding: 1.4rem 1rem; 
  }
  
  /* Крошки */
  header .breadcrumbs { 
    padding: 0.55rem 0; 
  } 
  
  header .breadcrumbs-container { 
    padding: 0 1rem; 
    font-size: .9rem;
  }
}

/* Маленькие мобильные */
@media (max-width: 640px) {
  .posts-grid { 
    grid-template-columns: repeat(6, 1fr); 
    gap: 1rem; 
  }
  
  .post-card { 
    grid-column: span 6; 
  }
  
  .post-title, 
  .post-title-card { 
    font-size: 1.02rem; 
  }
  
  .post-excerpt { 
    font-size: .95rem; 
  }
  
  .post-read { 
    padding: .5rem .75rem; 
    font-size: .88rem; 
    max-width: 60%; 
  }
}