/*
 * STYLE.CSS for КЕРЕМЕТЬ-ИТ | БУДУЩЕЕ МЕДИЦИНЫ. СЕГОДНЯ.
 * VERSION: 2025 Trend Edition
 * AUTHOR: Gemini AI
 */
/* 1. MODERN CSS RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
* {
 box-sizing: border-box;
}
/* ---------------------------------- */
/* 1. ROOT VARIABLES & GLOBAL STYLES  */
/* ---------------------------------- */

:root {
    /* Color Palette */
    --background-dark: #0D1117; /* Глубокий тёмно-синий/графитовый */
    --background-panel: rgba(25, 29, 35, 0.5); /* Фон для стеклянных панелей */
    --text-primary: #E6EDF3;               /* Head: Основной текст (100% непрозрачность) */
    --text-secondary: rgba(230, 237, 243, 0.75); /* Sub: Второстепенный текст (75% непрозрачность) */
    --text-tertiary: rgba(230, 237, 243, 0.60);  /* Sub-head: Третичный текст (60% непрозрачность) */

    /* Accent Colors */
    --accent-turquoise: #33E1ED; /* Электрический бирюзовый */
    --accent-fuchsia: #E4007C;   /* Яркая фуксия */
 --accent-turquoise-glow: rgba(51, 225, 237, 0.5);
 --accent-fuchsia-glow: rgba(228, 0, 124, 0.5);

    /* Fonts */
 --font-primary: 'Montserrat';
    /* Новая типографическая шкала */
    --text-4xl: 3.5rem;     /* Главные заголовки */
    --text-3xl: 2.8rem;     /* Заголовки секций */
    --text-2xl: 2.2rem;     /* Крупные подзаголовки */
    --text-xl: 1.8rem;      /* Заголовки карточек */
    --text-lg: 1.4rem;      /* Важный текст */
    --text-base: 1.1rem;    /* Основной текст */
    --text-sm: 0.95rem;     /* Второстепенный */
    --text-xs: 0.85rem;     /* Мелкий текст */

    /* Spacing */
 --container-width: 1200px;
 --section-padding: 6rem 0;

    /* Новые переменные для светлых секций */
 --section-light-bg: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
 --section-light-border: rgba(255, 255, 255, 0.08);
}

.section-light {
 background: var(--section-light-bg);
 position: relative;
 border-top: 1px solid var(--section-light-border);
 border-bottom: 1px solid var(--section-light-border);
}
/* Добавляем легкий градиентный оверлей */
.section-light::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: radial-gradient(circle at 30% 20%, rgba(51, 225, 237, 0.03) 0%, transparent 50%);
 pointer-events: none;
 z-index: -1;
}

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

html {
 scroll-behavior: smooth;
}

body {
 background-color: var(--background-dark);
 color: var(--text-primary);
 font-family: var(--font-primary), Arial, sans-serif;
 overflow-x: hidden;
    /* Улучшаем рендеринг шрифтов на всех устройствах */
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

h1, h2, h3, h4 {
 font-weight: 600;
    line-height: 1.2; /* Добавляем базовую высоту строки для всех заголовков */
}

/* Явно задаем базовые размеры, чтобы переопределить устаревшие стили браузера */
h1 { font-size: 2em; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
 color: var(--text-secondary);
 line-height: 1.6;
}

a {
 color: var(--accent-turquoise);
 text-decoration: none;
 transition: color 0.3s ease;
}

a:hover {
 color: var(--text-primary);
}

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

.section-title {
 font-size: var(--text-3xl);
 font-weight: 900;
 text-align: center;
 margin-bottom: 1.5rem;
 line-height: 1.1;
 letter-spacing: -0.02em;
}

.section-subtitle {
 font-size: var(--text-base);
 text-align: center;
 max-width: 700px;
 margin: 0 auto 4rem auto;
 line-height: 1.7;
}

/* ---------------------------------- */
/* 2. CORE COMPONENTS & EFFECTS     */
/* ---------------------------------- */

#three-canvas {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: -1;
 pointer-events: none;
}

.glass-panel {
    position: relative; /* Необходимо для позиционирования псевдо-элемента */
    z-index: 1; /* Панель должна быть выше псевдо-элемента */
 background: var(--background-panel);
 backdrop-filter: blur(15px);
 -webkit-backdrop-filter: blur(15px);
 border-radius: 20px;
 box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    /* Убираем старые свойства рамки */
}

/* Создаем градиентную рамку через псевдо-элемент, который уважает border-radius */
.glass-panel::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
    z-index: -1; /* Располагаем псевдо-элемент под основной панелью */
    border-radius: inherit; /* Наследуем скругление от родителя */
    padding: 1px; /* Это будет толщина нашей рамки */
 background: linear-gradient(120deg, rgba(51, 225, 237, 0.25), rgba(228, 0, 124, 0.25));
 -webkit-mask:
 linear-gradient(#fff 0 0) content-box,
 linear-gradient(#fff 0 0);
 -webkit-mask-composite: xor;
 mask-composite: exclude;
}

.cta-button {
 display: inline-block;
 padding: 1rem 1.5rem;
 border-radius: 50px;
 font-weight: 500;
 font-size: 1rem;
 text-align: center;
 cursor: pointer;
 transition: all 0.3s ease;
 border: 2px solid transparent;
 white-space: nowrap;
}

.cta-button.primary {
 background-color: var(--accent-turquoise);
 color: var(--background-dark);
 box-shadow: 0 0 20px var(--accent-turquoise-glow);
}

.cta-button.primary:hover {
 background-color: var(--text-primary);
 transform: translateY(-3px);
 box-shadow: 0 0 30px var(--accent-turquoise-glow);
}

.cta-button.secondary {
 background-color: transparent;
 color: var(--accent-turquoise);
 border-color: var(--accent-turquoise);
}

.cta-button.secondary:hover {
 background-color: var(--accent-turquoise);
 color: var(--background-dark);
 box-shadow: 0 0 20px var(--accent-turquoise-glow);
}

.cta-button.large {
 padding: 1.2rem 3.5rem;
 font-size: 1.2rem;
}

/* montserrat-300 - cyrillic_latin */
@font-face {
 font-display: swap;
 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 300;
  src: url('./fonts/montserrat-v31-cyrillic_latin-300.woff2') format('woff2'), /* Имя файла обновлено */
 url('./fonts/montserrat-v31-cyrillic_latin-300.woff') format('woff');
}
/* montserrat-regular - cyrillic_latin */
@font-face {
 font-display: swap;
 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 400;
  src: url('./fonts/montserrat-v31-cyrillic_latin-regular.woff2') format('woff2'), /* Имя файла обновлено */
 url('./fonts/montserrat-v31-cyrillic_latin-regular.woff') format('woff');
}
/* montserrat-500 - cyrillic_latin */
@font-face {
 font-display: swap;
 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 500;
  src: url('./fonts/montserrat-v31-cyrillic_latin-500.woff2') format('woff2'), /* Имя файла обновлено */
 url('./fonts/montserrat-v31-cyrillic_latin-500.woff') format('woff');
}
/* montserrat-700 - cyrillic_latin */
@font-face {
 font-display: swap;
 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 700;
  src: url('./fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2'), /* Имя файла обновлено */
 url('./fonts/montserrat-v31-cyrillic_latin-700.woff') format('woff');
}
/* montserrat-900 - cyrillic_latin */
@font-face {
 font-display: swap;
 font-family: 'Montserrat';
 font-style: normal;
 font-weight: 900;
  src: url('./fonts/montserrat-v31-cyrillic_latin-900.woff2') format('woff2'), /* Имя файла обновлено */
 url('./fonts/montserrat-v31-cyrillic_latin-900.woff') format('woff');
}

/* ---------------------------------- */
/* 3. HEADER & NAVIGATION           */
/* ---------------------------------- */

.main-header {
 position: fixed;
 top: 20px;
    left: 20px;  /* Устанавливаем отступ слева */
    right: 20px; /* Устанавливаем отступ справа */

    /* Свойства ниже были изменены или удалены для исправления */
    width: auto; /* Ширина теперь рассчитывается автоматически */
    max-width: calc(var(--container-width) + 40px); /* Ограничиваем макс. ширину */
    margin: 0 auto; /* Это центрирует блок, когда он достигнет max-width */

    /* Эти свойства остались без изменений */
 z-index: 1000;
 padding: 1rem 2rem;
 border-radius: 15px;

    /* Эти свойства были удалены */
    /* left: 50%; */
    /* transform: translateX(-50%); */
}

.header-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.logo {
 font-size: 1.5rem;
 font-weight: 900;
 color: var(--text-primary);
 transform: translateY(-4px);
}

.main-nav {
    display: none; /* Hidden on mobile by default */
}

.main-nav ul {
 list-style: none;
 display: flex;
 gap: 2rem;
}

.nav-link {
 color: var(--text-secondary);
 font-weight: 500;
 position: relative;
}

.nav-link::after {
 content: '';
 position: absolute;
 bottom: -5px;
 left: 0;
 width: 100%;
 height: 2px;
 background-color: var(--accent-turquoise);
 transform: scaleX(0);
 transform-origin: right;
 transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
 color: var(--text-primary);
}
.nav-link:hover::after {
 transform: scaleX(1);
 transform-origin: left;
}

.header-controls {
 display: flex;
 align-items: center;
 gap: 1.5rem;
}

/* Burger Menu */
.burger-menu {
 width: 35px;
 height: 35px;
 display: flex;
 flex-direction: column;
 justify-content: center;
 gap: 6px;
 cursor: pointer;
 z-index: 1001;
}

.burger-menu span {
 display: block;
 width: 100%;
 height: 2px;
 background-color: var(--text-primary);
 border-radius: 2px;
 transition: all 0.3s ease-in-out;
}

.burger-menu.active span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
 opacity: 0;
}
.burger-menu.active span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
}
.main-header.glass-panel::before {
 content: none;
}
/* Mobile Nav Panel */
.mobile-nav-panel {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100vh;
 z-index: 999;
 display: flex;
 justify-content: center;
 align-items: center;

    /* --- ИСПРАВЛЕНИЕ --- */
 opacity: 0;
    visibility: hidden; /* Добавлено для надежного скрытия */
 pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease; /* Добавлена плавность для visibility */
    /* --- КОНЕЦ ИСПРАВЛЕНИЯ --- */

 border-radius: 0;
}

.mobile-nav-panel.active {
 opacity: 1;
    visibility: visible; /* Добавлено для показа при активации */
 pointer-events: all;
}

.mobile-nav-panel nav ul {
 list-style: none;
 text-align: center;
}

.mobile-nav-panel nav li {
 margin: 2.5rem 0;
}

.mobile-nav-panel .nav-link {
 font-size: 2rem;
 font-weight: 700;
 color: var(--text-primary);
}

/* ---------------------------------- */
/* 4. SECTION STYLING               */
/* ---------------------------------- */

/* Hero Section */
.hero-section {
    position: relative; /* Необходимо для работы фоллбэка */
 min-height: 100vh;
 min-height: 100dvh;
 display: -webkit-flex;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 0 2rem;
}
@supports not (aspect-ratio: 16 / 8) {
 .hero-section::before {
 content: "";
 display: block;
    padding-top: 50%; /* 8 / 16 = 0.5, то есть 50% */
 }
}
.main-title {
 font-size: var(--text-4xl);
 line-height: 1.1;
 font-weight: 900;
 margin-bottom: 1.5rem;
 letter-spacing: -0.02em;
}

.main-title .accent-fuchsia {
 color: var(--accent-fuchsia);
 text-shadow: 0 0 20px var(--accent-fuchsia-glow);
}

.hero-section .subtitle {
 font-size: var(--text-lg);
 max-width: 750px;
 margin: 1.5rem auto 2.5rem auto;
 color: var(--text-secondary);
 font-weight: 400;
 line-height: 1.6;
}

/* Problem Section */
.problem-section {
 padding: var(--section-padding);
}

.problem-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
}

.problem-card {
 padding: 2.5rem;
 text-align: center;
 display: flex; /* <-- ДОБАВЛЕНО */
 flex-direction: column; /* <-- ДОБАВЛЕНО */
 height: 100%; /* <-- ДОБАВЛЕНО (для одинаковой высоты в ряду) */
}
.problem-loss-styled {
    margin-top: auto; /* <-- Это прижмет блок к низу */
}
.problem-card .icon {
 font-size: 2.5rem;
 color: var(--accent-turquoise);
 margin-bottom: 1.5rem;
}
.problem-card h3 {
 font-size: 1.3rem;
 margin-bottom: 1rem;
 color: var(--text-primary);
}
.problem-card p {
 font-size: 0.95rem;
}

/* Solutions Section */
.solutions-section {
 padding: var(--section-padding);
}

.solutions-grid {
 display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* <-- Изменено */
 gap: 2rem;
}

.solution-card {
 padding: 2.5rem;
 display: flex;
 gap: 1.5rem;
 align-items: flex-start;
}
.solution-icon {
 font-size: 2.5rem;
 color: var(--accent-turquoise);
}
.solution-card h3 {
 margin-bottom: 0.5rem;
 color: var(--text-primary);
}

/* Roles Section */
.roles-section {
 padding: var(--section-padding);
}
.role-tabs {
 display: flex;
 justify-content: center;
 gap: 1rem;
 margin-bottom: 3rem;
 flex-wrap: wrap;
}
.role-tab-btn {
 padding: 0.8rem 2rem;
 border: 1px solid var(--text-secondary);
 border-radius: 30px;
 background: transparent;
 color: var(--text-secondary);
 cursor: pointer;
 font-weight: 500;
 transition: all 0.3s ease;
}
.role-tab-btn:hover {
 color: var(--text-primary);
 border-color: var(--text-primary);
}
.role-tab-btn.active {
 color: var(--background-dark);
 background-color: var(--accent-turquoise);
 border-color: var(--accent-turquoise);
 box-shadow: 0 0 20px var(--accent-turquoise-glow);
}
.role-content {
 display: none;
 grid-template-columns: repeat(3, 1fr);
 gap: 2rem;
}
.role-content.active {
 display: grid;
}
.role-card {
 padding: 2rem;
}
.role-card h4 {
 color: var(--text-primary);
 margin-bottom: 0.5rem;
}

/* Proof Section (Cases & Testimonials) */
.proof-section {
 padding: var(--section-padding);
}
.featured-testimonial {
 padding: 3rem;
 max-width: 800px;
 margin: 0 auto 4rem auto;
 text-align: center;
}
.featured-testimonial blockquote {
 font-size: 1.4rem;
 font-weight: 500;
 line-height: 1.5;
 margin-bottom: 2rem;
 color: var(--text-primary);
}
.featured-testimonial cite {
 font-style: normal;
}
.author-name {
 display: block;
 font-weight: 700;
 color: var(--accent-turquoise);
 margin-bottom: 0.5rem;
}
.author-title {
 color: var(--text-secondary);
}
.cases-container {
 position: relative;
 max-width: 100%;
 overflow: hidden;
}
.cases-carousel {
 display: flex;
 gap: 1.5rem;
}
.case-item {
 flex: 0 0 350px;
 padding: 2rem;
}
.case-content h3 {
 color: var(--text-primary);
 margin-bottom: 0.5rem;
}
.case-content p strong {
 color: var(--accent-turquoise);
 font-weight: 700;
}
.case-tag {
 display: inline-block;
 margin-top: 0;
 margin-bottom: 1rem;
 padding: 0.4rem 1rem;
 border: 1px solid var(--text-primary);
 color: var(--text-primary); 
 border-radius: 20px;
 font-size: 0.8rem;
 font-weight: 500;
}
.carousel-nav {
    /* --- ИСПРАВЛЕНИЕ --- */
    position: absolute; /* Позиционируем поверх карусели */
 top: 50%;
 left: 0;
 right: 0;
 transform: translateY(-50%);
 display: flex;
    justify-content: space-between; /* Распределяем стрелки по краям */
    padding: 0 1rem; /* Небольшой отступ от краев */
 z-index: 10;
    pointer-events: none; /* Делаем контейнер стрелок "прозрачным" для кликов мыши */
}

.carousel-nav button {
 width: 50px;
 height: 50px;
 border-radius: 50%;
 border: 1px solid var(--text-secondary);
 background: var(--background-panel);
    backdrop-filter: blur(5px); /* Добавляем эффект стекла и стрелкам */
 color: var(--text-secondary);
 cursor: pointer;
 transition: all 0.3s ease;
    pointer-events: all; /* Возвращаем кликабельность самим кнопкам */
}

.carousel-nav button:hover {
 background: var(--accent-turquoise);
 border-color: var(--accent-turquoise);
 color: var(--background-dark);
 transform: scale(1.1);
}

/* Packages Section */
.packages-section {
 padding: var(--section-padding);
}
.packages-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 2rem;
}
.package-card {
 padding: 2.5rem;
 text-align: center;
 position: relative;
 overflow: hidden;
}
.package-card::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 5px;
}
#hippo::before { background: var(--accent-turquoise); }
#para::before { background: var(--accent-fuchsia); }
#gallen::before { background: linear-gradient(90deg, var(--accent-turquoise), var(--accent-fuchsia)); }
.package-card h3 {
 font-size: 1.8rem;
 color: var(--text-primary);
 margin: 1.5rem 0 0.5rem 0;
}
.package-card .slogan {
 color: var(--accent-turquoise);
 font-style: italic;
 margin-bottom: 1.5rem;
}

/* Final CTA Section */
.cta-final-section {
 padding: var(--section-padding);
 text-align: center;
}
.cta-final-section .section-title {
 color: var(--accent-turquoise);
}

/* Footer */
/* --- НОВЫЕ СТИЛИ ДЛЯ ФУТЕРА --- */

.main-footer {
    padding: 4rem 0 2rem 0;
    background: #010409;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-left {
    flex: 1;
    min-width: 280px;
}

.footer-info p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-contacts-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent-turquoise);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: var(--accent-turquoise);
    color: var(--background-dark);
    border-color: var(--accent-turquoise);
    transform: translateY(-3px);
}

/* Стили для всплывающего уведомления */
.feedback-bubble {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-turquoise);
    color: var(--background-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feedback-bubble.show {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

.footer-right {
    flex: 2;
    min-width: 300px;
}

.footer-right h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-nav-columns {
    column-count: 2;
    column-gap: 2rem;
}

.footer-nav-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
    break-inside: avoid; /* Предотвращает разрыв списка между колонками */
}

.footer-nav-columns li {
    margin-bottom: 0.75rem;
}

.footer-nav-columns a {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-nav-columns a:hover {
    color: var(--accent-turquoise);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contacts-icons {
        justify-content: center;
    }

    .footer-right {
        width: 100%;
        text-align: center;
    }
    
    .footer-nav-columns {
        column-count: 1; /* В одну колонку на мобильных */
    }

    .footer-nav-columns ul {
        margin-bottom: 1rem;
    }
}

/* ---------------------------------- */
/* 5. MODAL STYLING                 */
/* ---------------------------------- */

.modal-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(13, 17, 23, 0.6);
 backdrop-filter: blur(10px);
 z-index: 2000;
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.3s ease;
}
.modal-overlay.active {
 display: flex;
 opacity: 1;
 pointer-events: all;
}
.modal-container {
 width: 90%;
 max-width: 500px;
 padding: 2.5rem;
 position: relative;
 transform: scale(0.95);
 transition: transform 0.3s ease;
}
.modal-overlay.active .modal-container {
 transform: scale(1);
}
.modal-close {
 position: absolute;
 top: 15px;
 right: 15px;
 background: none;
 border: none;
 color: var(--text-secondary);
 font-size: 1.5rem;
 cursor: pointer;
 transition: color 0.3s ease;
}
.modal-close:hover {
 color: var(--text-primary);
}
.modal-header h3 {
 font-size: 1.8rem;
 margin-bottom: 0.5rem;
 color: var(--text-primary);
}
.modal-header p {
 margin-bottom: 2rem;
}
.form-group {
 margin-bottom: 1.5rem;
}
.modal-form input,
.modal-form textarea {
 width: 100%;
 padding: 1rem;
 background: rgba(13, 17, 23, 0.8);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 8px;
 color: var(--text-primary);
 font-family: var(--font-primary);
 font-size: 1rem;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.modal-form input:focus,
.modal-form textarea:focus {
 outline: none;
 border-color: var(--accent-turquoise);
 box-shadow: 0 0 10px var(--accent-turquoise-glow);
}
.modal-form textarea {
 resize: vertical;
 min-height: 100px;
}
.modal-form .cta-button {
 width: 100%;
}

/* ---------------------------------- */
/* 6. RESPONSIVE DESIGN             */
/* ---------------------------------- */

/*
 * 7. INFINITE CAROUSEL ANIMATION
 */

@keyframes scroll {
 from {
 transform: translateX(0);
 }
 to {
        transform: translateX(-50%); /* Прокручиваем ровно на половину (длина оригинальных слайдов) */
 }
}

.cases-container {
    /* overflow: hidden; уже должен быть */
 -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
 mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
 padding-top: 1.5rem;
 padding-bottom: 1.5rem;
}

.cases-carousel {
    /* display: flex; и gap: 1.5rem; уже должны быть */
    width: fit-content; /* Ширина подстраивается под контент */
    animation: scroll 60s linear infinite; /* Длительность анимации (60s) можно настроить */
}

.cases-container:hover .cases-carousel {
    animation-play-state: paused; /* Ставим на паузу при наведении */
}

/* Удаляем старые стили для навигации, если они остались */
.carousel-nav {
 display: none;
}
/*
 * 8. ADVANCED HOVER ANIMATIONS & PACKAGE STYLING (ИСПРАВЛЕННАЯ ВЕРСИЯ)
 */

/* --- 1. Общая красивая анимация для всех карточек и плиток --- */

.glass-panel {
 transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
 box-shadow 0.4s ease,
 border-color 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-10px) scale(1.02); /* Эффект "всплытия" */
 box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Добавляем бирюзовое свечение при наведении на большинство карточек */
.problem-card:hover,
.solution-card:hover,
.role-card:hover,
.case-item:hover {
 border-color: var(--accent-turquoise);
 box-shadow: 0 0 30px -5px var(--accent-turquoise-glow), 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* --- 2. Уникальные фоны и анимации для пакетов (Исправлено) --- */

@keyframes gradient-animation {
 0% { background-position: 0% 50%; }
 50% { background-position: 100% 50%; }
 100% { background-position: 0% 50%; }
}

.package-card {
 border: 1px solid transparent;
}

/* Общий стиль для псевдо-элемента, который будет анимироваться */
.package-card::before {
 content: '';
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
 border-radius: 20px;
 z-index: -1;
    background: none; /* ВАЖНО: по умолчанию убираем фон, чтобы он не перекрывал текст */
 transition: opacity 0.4s ease;
 opacity: 0;
}

/* Пакет "Гиппократов Старт" */
.package-card#hippo:hover {
 border-color: var(--accent-turquoise);
 box-shadow: 0 0 35px -5px var(--accent-turquoise-glow), 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Пакет "Парацельсов Успех" */
.package-card#para {
    /* Фон теперь чистый, как у всех glass-panel */
}

.package-card#para::before {
    /* Используем псевдо-элемент для градиента, чтобы он не влиял на основной фон */
 background: radial-gradient(circle at 100% 100%, var(--accent-fuchsia), transparent 50%);
    opacity: 0.15; /* Делаем его очень subtle в обычном состоянии */
}

.package-card#para:hover::before {
    opacity: 0.3; /* Усиливаем свечение при наведении */
}

.package-card#para:hover {
 border-color: var(--accent-fuchsia);
 box-shadow: 0 0 35px -5px var(--accent-fuchsia-glow), 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Пакет "Галленов Триумф" */
.package-card#gallen::before {
 background: linear-gradient(
 120deg,
 var(--accent-fuchsia),
 var(--accent-turquoise),
 var(--accent-fuchsia)
 );
 background-size: 300% 300%;
 animation: gradient-animation 8s ease infinite;
    opacity: 0.2; /* Делаем анимацию приглушенной в обычном состоянии */
}

.package-card#gallen:hover::before {
    opacity: 0.4; /* Делаем анимацию ярче при наведении */
 animation-duration: 6s;
}

.package-card#gallen:hover {
 border-color: var(--text-primary);
 box-shadow: 0 0 40px -5px var(--accent-turquoise-glow), 0 0 40px -5px var(--accent-fuchsia-glow), 0 15px 40px rgba(0, 0, 0, 0.6);
}

/*
 * 9. PACKAGE TABS STYLES
 */

.packages-section .role-tabs {
    margin-bottom: 3rem; /* Используем тот же класс для вкладок */
}

.package-content {
    display: none; /* Скрываем все панели с пакетами по умолчанию */
}

.package-content.active {
    display: grid; /* Показываем только активную */
}

/*
 * 10. СТИЛИ ДЛЯ ОБНОВЛЕННОЙ ВЕРСИИ (2025.1)
 */

/* --- 1. Коррекция главного экрана --- */

.main-title {
    font-size: 4.5rem; /* Слегка уменьшаем, т.к. текста стало больше */
}

.main-title .accent-turquoise {
 color: var(--accent-turquoise);
 text-shadow: 0 0 20px var(--accent-turquoise-glow);
}

.hero-section .subtitle {
    font-size: 1.25rem; /* Делаем подзаголовок чуть крупнее и важнее */
    max-width: 750px;   /* Расширяем, чтобы он лучше читался */
 color: var(--text-secondary);
}

/* --- 2. Стили для нового блока "Офер" --- */

.offer-section {
 padding: var(--section-padding);
    background: rgba(1, 4, 9, 0.3); /* Легкий фон, чтобы отделить от соседей */
}

.offer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
 margin-top: 4rem;
}

.offer-card {
 padding: 2.5rem;
 text-align: center;
    border-top: 4px solid transparent; /* Готовим место для акцента */
 transition: transform 0.3s ease, border-color 0.3s ease;
}

.offer-card:hover {
    border-top-color: var(--accent-turquoise); /* Красивый акцент при наведении */
 transform: translateY(-10px);
}

.offer-card .icon {
 font-size: 3rem;
 color: var(--accent-turquoise);
 margin-bottom: 1.5rem;
}

.offer-card h3 {
 font-size: 1.4rem;
 color: var(--text-primary);
 margin-bottom: 1rem;
}

/* --- 3. Адаптивность для главного экрана --- */

/*
 * 11. СТИЛИ ДЛЯ БЛОКА С ВИДЕООТЗЫВОМ
 */

.video-testimonial-section {
 padding: var(--section-padding);
}

.testimonial-content-wrapper {
 display: grid;
    grid-template-columns: 1fr; /* На мобильных стек */
 align-items: center;
 gap: 2rem;
 padding: 2rem;
 overflow: hidden;
}

.testimonial-video-container {
 position: relative;
 cursor: pointer;
 border-radius: 15px;
 overflow: hidden;
 aspect-ratio: 16 / 9;
}

.video-poster {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s ease;
}

.testimonial-video-container:hover .video-poster {
 transform: scale(1.05);
}

.play-button-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(13, 17, 23, 0.4);
 display: flex;
 justify-content: center;
 align-items: center;
 font-size: 3rem;
 color: #fff;
 transition: background-color 0.3s ease;
}

.testimonial-video-container:hover .play-button-overlay {
 background: rgba(13, 17, 23, 0.6);
}

.testimonial-quote-container blockquote {
 font-size: 1.3rem;
 font-weight: 500;
 line-height: 1.6;
 margin-bottom: 1.5rem;
 color: var(--text-primary);
 border-left: 3px solid var(--accent-turquoise);
 padding-left: 1.5rem;
}

.testimonial-quote-container cite {
 font-style: normal;
}

.author-name {
 display: block;
 font-size: 1.2rem;
 font-weight: 700;
 color: var(--accent-turquoise);
}
.author-title {
 color: var(--text-secondary);
}

/* Стили для модального окна с видео */
.video-modal-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(13, 17, 23, 0.8);
 backdrop-filter: blur(10px);
 z-index: 3000;
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.3s ease;
}
.video-modal-overlay.active {
 opacity: 1;
 pointer-events: all;
}
.video-modal-container {
 position: relative;
 width: 90%;
 max-width: 960px;
}
.video-iframe-wrapper {
 aspect-ratio: 16 / 9;
 background: #000;
}
.video-iframe-wrapper iframe {
 width: 100%;
 height: 100%;
 border: none;
}
#video-modal-close-btn {
 position: absolute;
 top: -40px;
 right: 0;
 color: #fff;
 font-size: 2rem;
 background: none;
 border: none;
 cursor: pointer;
}

/* Адаптивность для блока */

/*
 * 12. СТИЛИ ДЛЯ SVG-ЛОГОТИПА
 */

.logo {
    /* Убираем стили для текста, которые могут помешать */
 font-size: inherit;
 font-weight: normal;
 color: inherit;
}

.logo img {
        height: 40px;   /* Основная высота для логотипа в шапке */
    width: auto;    /* Ширина подстроится автоматически */
    aspect-ratio: 170 / 40; /* <-- ИСПРАВЛЕНИЕ: Жестко задаем соотношение сторон */
}

/* Делаем логотип в подвале чуть крупнее для солидности */
.main-footer .logo img {
 height: 45px;
}

/*
 * 13. КОМПЛЕКСНОЕ ИСПРАВЛЕНИЕ МОБИЛЬНОЙ ВЕРСИИ
 */

/*
 * 14. СТИЛИ ДЛЯ БЛОКА "ЧТО ЗНАЧИТ БОЛЬШЕ ПАЦИЕНТОВ" (УЛУЧШЕННАЯ ВЕРСИЯ)
 */

.explanation-section {
 padding: 4rem 0;
 text-align: center;
}

.explanation-grid {
 display: grid;
    /* По умолчанию (для мобильных) - одна колонка */
 grid-template-columns: 1fr;
    gap: 1.5rem; /* Слегка уменьшим отступ на мобильных */
 max-width: 900px;
 margin: 0 auto;
 text-align: left;
}

/* Для экранов шире 768px (планшеты и десктопы) */

/* Стили для иконок, по аналогии с другими блоками */
.explanation-card .icon {
 font-size: 2.5rem;
 color: var(--accent-turquoise);
 margin-bottom: 1.5rem;
    display: inline-block; /* Чтобы отступ работал */
 transition: color 0.3s ease, transform 0.3s ease;
}

.explanation-card {
 padding: 2.5rem 2rem;
    position: relative; /* Необходимо для псевдо-элемента с рамкой */
    background: linear-gradient(145deg, rgba(25, 29, 35, 0.5), rgba(25, 29, 35, 0.2)); /* Добавляем градиент */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Стандартная рамка glass-panel */
    border-radius: 20px; /* Стандартное скругление */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Стандартная тень */
 transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden; /* Скрываем все, что выходит за пределы скругленных углов */
}

/* Создаем подложку для градиентной рамки, которая появится при наведении */
.explanation-card::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 border-radius: 20px;
 border: 2px solid transparent;
 background: linear-gradient(120deg, var(--accent-fuchsia), var(--accent-turquoise)) border-box;
 -webkit-mask:
 linear-gradient(#fff 0 0) padding-box,
 linear-gradient(#fff 0 0);
 -webkit-mask-composite: destination-out;
 mask-composite: exclude;
 opacity: 0;
 transition: opacity 0.4s ease;
}

.explanation-card:hover {
    transform: translateY(-10px); /* Эффект "всплытия" */
    box-shadow: 0 0 40px -10px var(--accent-fuchsia-glow); /* Меняем тень на акцентную */
}

/* Показываем градиентную рамку при наведении */
.explanation-card:hover::before {
 opacity: 1;
}

/* Улучшаем анимацию иконки при наведении на карточку */
.explanation-card:hover .icon {
    color: var(--accent-fuchsia); /* Иконка меняет цвет */
    transform: scale(1.1) rotate(-5deg); /* Иконка увеличивается и слегка поворачивается */
}

/* Базовые стили для заголовка и иконки остаются прежними */
.explanation-card .icon {
    font-size: 2.8rem; /* Можно сделать иконку чуть крупнее */
 color: var(--accent-turquoise);
    float: left; /* <-- Главное изменение: заставляем текст обтекать иконку */
    margin-right: 1.5rem; /* Добавляем отступ справа, чтобы текст не прилипал */
    margin-bottom: 0.5rem; /* Уменьшаем нижний отступ */
 transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.explanation-card h3 {
 color: var(--text-primary);
 margin-bottom: 1rem;
 font-size: 1.3rem;
}

.card-visualization {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

/* Переопределяем стили карточек, чтобы они центрировали контент */
.explanation-card {
    text-align: center;
}
.expert-card {
 display: flex;
    flex-direction: column; /* Вертикальное направление для лучшего контроля */
    text-align: center; /* Выравниваем контент по центру для новой визуализации */
 gap: 1.5rem;
    padding: 2.5rem; /* Увеличим внутренние отступы для "воздуха" */
    border-radius: 20px; /* Слегка увеличим радиус для солидности */
    box-shadow: 0 0 35px -10px var(--accent-fuchsia-glow); /* Добавим тень при наведении */
}

/* Заменяем стили плавающей иконки на стили для центрированного блока визуализации */
.expert-card .solution-icon {
    display: none;
}

.expert-card .card-visualization {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

/* Оставляем общие стили для контента внутри карточки */
.expert-card h3 {
 margin-bottom: 0.75rem;
}
/*
 * 15. АНИМАЦИЯ КАРДИОГРАММЫ НА ГЛАВНОМ ЭКРАНЕ
 */

.cardiogram-container {
 position: absolute;
    bottom: 2rem; /* Располагаем внизу секции */
 left: 0;
 width: 100%;
    height: 100px; /* Высота области анимации */
    z-index: 0; /* Убедимся, что она под текстом */
    opacity: 0.5; /* Делаем ее полупрозрачной, чтобы не отвлекала */
    pointer-events: none; /* Чтобы не мешала кликать по кнопкам */
}

.cardiogram-svg {
 width: 100%;
 height: 100%;
}

.cardiogram-path {
    fill: none; /* Убираем заливку фигуры */
    stroke: var(--accent-turquoise); /* Используем ваш фирменный бирюзовый цвет */
    stroke-width: 3; /* Толщина линии */
    stroke-linecap: round; /* Скругляем концы линии */
    stroke-linejoin: round; /* Скругляем изгибы */

    /* Магия анимации */
    stroke-dasharray: 1200; /* Общая длина "штриха" - должна быть равна длине пути */
    stroke-dashoffset: 1200; /* Сдвиг "штриха" - изначально линия скрыта */
 -webkit-animation: draw-cardiogram 3s linear infinite;
    animation: draw-cardiogram 3s linear infinite; /* Запускаем анимацию */
}

/* Описание самой анимации */
@keyframes draw-cardiogram {
 to {
        stroke-dashoffset: 0; /* В конце анимации сдвиг равен нулю, линия полностью видна */
 }
}

/*
 * 16. СТИЛИ ДЛЯ БЛОКА "НАШ ОПЫТ В ЦИФРАХ"
 */

.stats-section {
 padding: var(--section-padding);
}

.stats-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 2rem;
 margin-top: 4rem;
}

.stat-card {
 padding: 2.5rem;
 text-align: center;
}

.stat-icon {
 font-size: 2.5rem;
 color: var(--accent-turquoise);
 margin-bottom: 1.5rem;
}

.stat-number {
 font-size: 4rem;
 font-weight: 900;
 color: var(--text-primary);
 line-height: 1.1;
 margin-bottom: 0.5rem;
}

.stat-description {
 color: var(--text-secondary);
 font-size: 1.1rem;
 line-height: 1.5;
}

/* Адаптивность для блока */

/*
 * 17. СТИЛИ ДЛЯ ГАЛОЧКИ СОГЛАСИЯ В ФОРМЕ
 */

.form-consent {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 margin-bottom: 1.5rem;
}

.form-consent input[type="checkbox"] {
 -webkit-appearance: none;
 appearance: none;
 background-color: transparent;
 margin: 0;
 width: 1.15em;
 height: 1.15em;
 border: 1px solid var(--text-secondary);
 border-radius: 4px;
 cursor: pointer;
 position: relative;
 transition: all 0.2s ease;
}

.form-consent input[type="checkbox"]:hover {
 border-color: var(--accent-turquoise);
}

.form-consent input[type="checkbox"]:checked {
 background-color: var(--accent-turquoise);
 border-color: var(--accent-turquoise);
}

.form-consent input[type="checkbox"]:checked::before {
 content: '✔';
 position: absolute;
 color: var(--background-dark);
 font-size: 0.8em;
 font-weight: bold;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
}

.form-consent label {
 font-size: 0.85rem;
 color: var(--text-secondary);
 cursor: pointer;
}

.form-consent label a {
 color: var(--accent-turquoise);
 text-decoration: underline;
 text-underline-offset: 3px;
}

.form-consent label a:hover {
 color: var(--text-primary);
}

/*
 * 18. СТИЛИ ДЛЯ БЛОКА ДЕТАЛЬНЫХ КЕЙСОВ
 */

.detailed-cases-section {
 padding: var(--section-padding);
}

.detailed-cases-grid {
 display: grid;
    /* --- ИСПРАВЛЕНО: Убраны некорректные grid-template-rows и лишние стили --- */
 grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
 gap: 2rem;
 margin-top: 4rem;
    align-items: stretch; /* Это заставляет все карточки в одном ряду быть одинаковой высоты */
}

.case-detailed-card {
 padding: 2.5rem;
 display: flex;
    flex-direction: column; /* Вертикальное расположение контента внутри карточки */
}

.case-detailed-header {
 display: flex;
 align-items: center;
 gap: 1rem;
 margin-bottom: 1.5rem;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 padding-bottom: 1.5rem;
}

.case-detailed-header .icon {
 font-size: 2.5rem;
 color: var(--accent-turquoise);
}

.case-detailed-header h3 {
 font-size: 1.4rem;
 color: var(--text-primary);
 line-height: 1.3;
}

.case-detailed-body {
    /* --- ИСПРАВЛЕНО: Заставляем этот блок расти и занимать всё свободное место --- */
 flex-grow: 1;
}

.case-detailed-body p {
 margin-bottom: 1rem;
}

.case-detailed-body p strong {
 color: var(--text-primary);
 font-weight: 500;
}

.case-detailed-stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 1.5rem;
    flex-wrap: wrap; 
    margin-bottom: 2rem; /* Добавляем отступ ПОСЛЕ статистики */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Делаем линию-разделитель ПОД статистикой */
}

.detailed-cases-section .result-item {
    display: flex;          /* Включаем flex-контейнер */
    flex-direction: column; /* Ставим дочерние элементы в колонку (значение НАД текстом) */
    align-items: center;    /* Центрируем их по горизонтали */
    flex-grow: 1;           /* Позволяем блоку занимать доступное место */
    flex-basis: 120px;      /* Задаем начальную ширину, чтобы избежать сжатия */
}

.detailed-cases-section .result-item .result-value {
 font-size: 2.5rem;
 font-weight: 700;
 color: var(--accent-turquoise);
 line-height: 1.1;
 white-space: nowrap;
}

.detailed-cases-section .result-item .result-label {
 font-size: 0.9rem;
 color: var(--text-secondary);
    margin-top: -1rem; /* --- ИЗМЕНЕНИЕ: Добавлен отступ между значением и текстом --- */
    max-width: 120px; /* Ограничиваем ширину для аккуратного переноса */
}

/* Адаптивность для футера карточек */


/* Адаптивность для всей сетки */

.result-item .result-value {
 display: block;
 font-size: 2.5rem;
 font-weight: 700;
 color: var(--accent-turquoise);
 line-height: 1.1;
}

.result-item .result-label {
 font-size: 0.9rem;
 color: var(--text-secondary);
 margin-top: 0.25rem;
}

/*
 * 19. СТИЛИ ДЛЯ БЛОКА СЕРТИФИКАТОВ И СООТВЕТСТВИЯ
 */

.compliance-section {
 padding-bottom: var(--section-padding);
    padding: var(--section-padding); /* Добавляем только нижний отступ, т.к. верхний уже есть от предыдущей секции */
}

.compliance-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
 margin-top: 4rem;
}

.compliance-item {
 padding: 2.5rem 2rem;
 text-align: center;
}

.compliance-item i {
 font-size: 3rem;
 color: var(--accent-turquoise);
 margin-bottom: 1.5rem;
}

.compliance-item h4 {
 font-size: 1.2rem;
 color: var(--text-primary);
 margin-bottom: 0.5rem;
}

/*
 * 20. СТИЛИ ДЛЯ ДЕТАЛИЗАЦИИ УСЛУГ
 */

.solution-card ul {
 list-style: none;
 padding-left: 0;
 margin: 1rem 0 1.5rem 0;
 color: var(--text-secondary);
 flex-grow: 1;
}

.solution-card ul li {
 margin-bottom: 0.5rem;
 padding-left: 1.5rem;
 position: relative;
}

.solution-card ul li::before {
 content: '✓';
 color: var(--accent-turquoise);
 position: absolute;
 left: 0;
 font-weight: bold;
}

.cta-button.small {
 padding: 0.6rem 1.5rem;
 font-size: 0.9rem;
}

/*
 * 21. СТИЛИ ДЛЯ БЛОКА ЭКСПЕРТНЫХ РЕШЕНИЙ
 */

.expert-solutions-section {
 padding: var(--section-padding);
    padding-top: 0; /* Убираем верхний отступ, чтобы секции не слипались визуально */
}

.expert-solutions-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
 gap: 2rem;
 margin-top: 4rem;
}
/*
 * 22. СТИЛИ ДЛЯ ПЛАВНОЙ АНИМАЦИИ ПОЯВЛЕНИЯ
 */
.reveal-on-scroll {
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
 opacity: 1;
 transform: translateY(0);
}

/* Стили для планшетов и мобильных телефонов (экраны меньше 768px) */

/* Стили для маленьких мобильных телефонов (экраны меньше 480px) */

/* 23. ИСПРАВЛЕНИЕ ПЕРЕНОСА В КАРТОЧКАХ КЕЙСОВ */
.result-item .result-value {
 white-space: nowrap;
}

/* 24. РЕДИЗАЙН КАРТОЧЕК РЕШЕНИЙ (ТРЕНД 2026: BENTO + AURORA) */

/* 1. Настраиваем саму сетку под Bento-макет */
.solutions-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 1.5rem;
}

/* 2. Стиль для обычной карточки */
.solution-card {
 grid-column: span 2;
 padding: 2.5rem;
 border-radius: 24px;
 border: 1px solid rgba(255, 255, 255, 0.1);
 background: transparent;
 position: relative;
 overflow: hidden;
 transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
 box-shadow 0.4s ease, border-color 0.4s ease;
 display: flex;
 flex-direction: column;
}

/* 3. Стиль для главной (featured) карточки */
.featured-solution {
 grid-column: span 2;
}

/* 4. Создаем эффект свечения "Аврора" (CSS-only версия) */
.solution-card::before {
 content: '';
 position: absolute;
    top: -100%; /* Начинаем сверху за пределами карточки */
 left: -100%;
 width: 300%;
 height: 300%;
 z-index: -1;
 opacity: 0;
 transition: opacity 0.5s ease;
 background: radial-gradient(
 circle,
        rgba(51, 225, 237, 0.15), /* Цвет свечения - бирюзовый */
 transparent 40%
 );
    transform: translate(-50%, -50%); /* Центрируем градиент */
}

/* 5. Показываем и анимируем свечение при наведении */
.solution-card:hover::before {
 opacity: 1;
    top: 50%; /* Перемещаем в центр при наведении */
 left: 50%;
}

/* 6. Добавляем фоновую подложку, чтобы текст был читаемым */
.solution-card::after {
 content: "";
 display: table;
 clear: both;
 position: absolute;
 top: 1px;
 left: 1px;
 width: calc(100% - 2px);
 height: calc(100% - 2px);
 z-index: -2;
 border-radius: 24px;
 background: rgba(18, 24, 33, 0.7);
 backdrop-filter: blur(15px);
 -webkit-backdrop-filter: blur(15px);
}

/* 7. Улучшаем ховер-эффект для самой карточки */
.solution-card:hover {
 transform: translateY(-5px) scale(1.02);
 box-shadow: 0 10px 40px rgba(0,0,0,0.4);
 border-color: rgba(255, 255, 255, 0.2);
}

/* 8. Адаптивность для мобильных устройств */

/* 25. СТИЛИ ДЛЯ КАРТОЧЕК ЭКСПЕРТНЫХ РЕШЕНИЙ */

.expert-solutions-grid {
 display: grid;
    /* Улучшенная версия для гибкости: создает столько колонок, сколько поместится, но не менее 380px */
 grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem; /* Стандартизируем отступ */
}

.expert-card {
 display: flex;
    flex-direction: column; /* Вертикальное направление для лучшего контроля */
 gap: 1.5rem;
    padding: 2.5rem; /* Увеличим внутренние отступы для "воздуха" */
    border-radius: 20px; /* Слегка увеличим радиус для солидности */
 border: 1px solid rgba(255, 255, 255, 0.1);
 background: rgba(25, 29, 35, 0.4);
 height: 100%;
 transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.expert-card::after {
 content: "";
 display: table;
 clear: both;
}

.expert-card:hover {
 transform: translateY(-10px);
 background: var(--background-panel);
 border-color: var(--accent-fuchsia);
    box-shadow: 0 0 35px -10px var(--accent-fuchsia-glow); /* Добавим тень при наведении */
}

/* Оставляем общие стили для контента внутри карточки */
.expert-card .solution-icon {
 font-size: 2.8rem;
 color: var(--accent-fuchsia);
 float: left;
 margin-right: 1.5rem;
 margin-bottom: 0.5rem;
 margin-top: 0.2rem;
}

.expert-card h3 {
 margin-bottom: 0.75rem;
}

/* Добавляем стили для списка внутри экспертных карточек */
.expert-card ul {
 list-style: none;
 padding-left: 0;
 margin: 1rem 0 1.5rem 0;
 color: var(--text-secondary);
    flex-grow: 1; /* Заставляет список расти, отодвигая кнопку вниз */
}

.expert-card ul li {
 margin-bottom: 0.5rem;
 padding-left: 1.5rem;
 position: relative;
}

.expert-card ul li::before {
 content: '✓';
    color: var(--accent-fuchsia); /* Используем второй акцентный цвет */
 position: absolute;
 left: 0;
 font-weight: bold;
}

/* 26. АНИМАЦИЯ ПОЯВЛЕНИЯ ЭЛЕМЕНТОВ ПРИ СКРОЛЛЕ */
.reveal-on-scroll {
 opacity: 0;
 transform: translateY(25px);
 transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
 opacity: 1;
 transform: translateY(0);
}

/* Улучшение для заголовков секций */
.section-title {
    /* Добавляем легкую тень для отрыва от фона */
 text-shadow: 0 0 15px rgba(51, 225, 237, 0.15);
}

/* Увеличиваем "воздух" в подвале для лучшего завершения страницы */
.main-footer {
    padding: 5rem 0; /* Было 4rem 0 */
}

/* Делаем все иконки в карточках более интерактивными */
.explanation-card .icon, .problem-card .icon, .offer-card .icon, .solution-card .solution-icon, .expert-card .solution-icon {
 transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* Добавляем эффект свечения иконкам при наведении на любую часть карточки */
.glass-panel:hover .icon, .glass-panel:hover .solution-icon {
 transform: scale(1.1);
    color: var(--text-primary); /* Иконка становится белой */
    text-shadow: 0 0 10px var(--accent-turquoise-glow); /* и светится */
}

/* 27. СТИЛИ ДЛЯ ROI-КАЛЬКУЛЯТОРА (Компактная и аккуратная версия) */
.roi-section {
 padding: var(--section-padding);
}

.roi-calculator-wrapper {
 display: grid;
    /* Колонки сделаны более сбалансированными по контенту */
 grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
 grid-template-rows: auto auto;
    gap: 2rem 2.5rem; /* Уменьшены отступы для компактности */
    padding: 2.5rem;  /* Уменьшены внутренние отступы */
 margin-top: 4rem;
    align-items: stretch; /* Колонки теперь одинаковой высоты */
}

/* Настройки и результаты занимают свои колонки в первом ряду */
.roi-inputs {
 grid-column: 1;
 grid-row: 1;
}

.roi-results {
 grid-column: 2;
    grid-row: 1; /* Результаты занимают только первый ряд */
 border-left: 1px solid rgba(255, 255, 255, 0.1);
 padding-left: 2.5rem;
 display: flex;
 flex-direction: column;
}

/* Футер теперь охватывает обе колонки внизу */
.roi-footer {
    grid-column: 1 / -1; /* Растягиваем на всю ширину */
 padding-top: 2rem;
 margin-top: 1rem;
 border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* Внутреннее содержимое футера выстраиваем в сетку для порядка */
 display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); /* Пропорции как у родителя */
 gap: 1rem 2.5rem;
 align-items: center;
}

/* Итоговая сумма и заметка помещаются в правую колонку футера, под результатами */
.roi-footer .roi-summary-grid {
 grid-column: 2;
}

/* Кнопка и дисклеймер помещаются в левую колонку футера */
.roi-footer .cta-button {
 grid-column: 1;
    justify-self: center; /* Центрируем кнопку в её ячейке */
}

.roi-footer .roi-disclaimer {
    grid-column: 1 / -1; /* Дисклеймер под всем, на всю ширину */
 margin-top: 0;
}

.roi-title {
 font-size: 1.5rem;
 color: var(--text-primary);
 margin-bottom: 2.5rem;
}

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

.roi-inputs .form-group label {
 display: block;
 color: var(--text-secondary);
 margin-bottom: 1rem;
}

.slider-container {
 display: flex;
 align-items: center;
 gap: 1.5rem;
}

.slider-value {
 font-weight: 700;
 color: var(--text-primary);
 background: var(--background-dark);
 padding: 0.5rem 1rem;
 border-radius: 8px;
 border: 1px solid rgba(255, 255, 255, 0.1);
 min-width: 120px;
 text-align: center;
 white-space: nowrap;
}

/* Стилизация ползунка (input type="range") */
input[type="range"] {
 -webkit-appearance: none;
 appearance: none;
 width: 100%;
 height: 4px;
 background: rgba(255, 255, 255, 0.1);
 border-radius: 5px;
 outline: none;
 cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
 -webkit-appearance: none;
 appearance: none;
 width: 20px;
 height: 20px;
 background: var(--accent-turquoise);
 border-radius: 50%;
 border: 2px solid var(--background-dark);
 box-shadow: 0 0 10px var(--accent-turquoise-glow);
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
 transform: scale(1.1);
 box-shadow: 0 0 15px var(--accent-turquoise-glow);
}

input[type="range"]::-moz-range-thumb {
 width: 18px;
 height: 18px;
 background: var(--accent-turquoise);
 border-radius: 50%;
 border: 2px solid var(--background-dark);
 box-shadow: 0 0 10px var(--accent-turquoise-glow);
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 margin-bottom: 1.5rem;
}

.result-item .icon {
 font-size: 2.5rem;
 color: var(--accent-turquoise);
}

.result-value {
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--text-primary);
 line-height: 1;
}

.result-label {
 font-size: 0.9rem;
 color: var(--text-secondary);
 margin-top: 0.25rem;
}

.roi-total {
 text-align: center;
 margin-bottom: 1rem;
}

.roi-total p {
 color: var(--text-secondary);
 font-size: 1rem;
}

.roi-total h4 {
 font-size: 3rem;
 font-weight: 900;
 color: var(--accent-turquoise);
 text-shadow: 0 0 20px var(--accent-turquoise-glow);
 margin: 0.5rem 0;
}

.roi-total .roi-percentage {
 font-size: 1.1rem;
 color: var(--text-primary);
}

.roi-total .roi-percentage strong {
 color: var(--accent-fuchsia);
 font-weight: 700;
}

.roi-disclaimer {
 font-size: 0.8rem;
 color: var(--text-secondary);
 text-align: center;
 line-height: 1.5;
 font-style: italic;
}

    /* Адаптивность для калькулятора */


.roi-disclaimer {
 font-size: 0.8rem;
 color: var(--text-secondary);
 margin-top: 1.5rem;
 text-align: center;
 line-height: 1.5;
 font-style: italic;
}

.package-header .package-subtitle {
 color: var(--text-secondary);
 margin-bottom: 1rem;
 font-size: 1rem;
}

/*
 * 30. СТИЛИ ДЛЯ ОБНОВЛЕННЫХ ПАКЕТОВ С ROI
 */
.packages-section {
 padding: var(--section-padding);
}
.packages-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 2rem;
 align-items: stretch;
 margin-top: 4rem;
}
.package-card {
 display: flex;
 flex-direction: column;
 padding: 2.5rem;
 position: relative;
 overflow: hidden;
 border: 1px solid transparent;
}
.package-card.featured {
 transform: translateY(-15px);
 border-color: var(--accent-turquoise);
 box-shadow: 0 10px 40px -10px var(--accent-turquoise-glow);
}
.featured-badge {
 position: absolute;
 top: 28px;
 right: -40px;
 background: var(--accent-turquoise);
 color: var(--background-dark);
 padding: 0.5rem 0;
 transform: rotate(45deg);
 font-size: 0.9rem;
 font-weight: 700;
 width: 180px;
 text-align: center;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.package-header {
 text-align: center;
 margin-bottom: 1.5rem;
}
.package-header h3 {
 font-size: 1.6rem;
 color: var(--text-primary);
 margin-bottom: 0.75rem;
}
.package-price {
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--text-primary);
}
.package-timeline {
 color: var(--text-secondary);
 font-size: 0.95rem;
}
.package-body {
 flex-grow: 1;
}
.package-description {
 font-size: 0.95rem;
 min-height: 4.5em; /* Резервируем место под 3 строки */
 margin-bottom: 2rem;
}
.package-features {
 list-style: none;
 padding: 0;
 text-align: left;
}
.package-features li {
 margin-bottom: 0.75rem;
 display: flex;
 align-items: center;
}
.package-features i {
 color: var(--accent-turquoise);
 margin-right: 0.75rem;
}
.package-roi {
 margin-top: 2rem;
 padding-top: 1.5rem;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.package-roi label {
 font-size: 0.95rem;
 color: var(--text-secondary);
 display: block;
 margin-bottom: 1rem;
}
.roi-slider {
 -webkit-appearance: none;
 appearance: none;
 width: 100%;
 height: 4px;
 background: rgba(255, 255, 255, 0.1);
 border-radius: 5px;
 outline: none;
 cursor: pointer;
 margin-bottom: 1rem;
}
.roi-slider::-webkit-slider-thumb {
 -webkit-appearance: none;
 appearance: none;
 width: 20px;
 height: 20px;
 background: var(--accent-turquoise);
 border-radius: 50%;
}
.roi-result {
 text-align: center;
}
.roi-result p {
 margin: 0;
 font-size: 0.95rem;
}
.roi-result span {
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--accent-turquoise);
}
.package-footer {
 margin-top: 2rem;
}
.package-footer .cta-button {
 width: 100%;
}

/* 28. ROI CALCULATOR ENHANCEMENTS */
.roi-special-note {
 display: flex;
 align-items: center;
 gap: 15px;
    background-color: rgba(22, 97, 102, 0.4); /* Accent background */
 padding: 15px;
 border-radius: 8px;
 margin-top: 0px;
 margin-bottom: 1.5rem;
}

.roi-special-note .icon {
 font-size: 24px;
 color: var(--accent-turquoise);
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.roi-special-note .result-text {
 flex-grow: 1;
}

.roi-special-note .result-value {
    color: #ffffff; /* Override default accent color for emphasis */
 font-weight: bold;
 display: block;
 margin-bottom: 0;

}

.roi-special-note .result-label {
    line-height: 1.2; /* Improve readability */
}

/* =================================================================== */
/* 27. СТИЛИ ДЛЯ ROI-КАЛЬКУЛЯТОРА (ФИНАЛЬНАЯ ВЕРСИЯ ДЛЯ ПК И МОБИЛЬНЫХ) */
/* =================================================================== */

.roi-section {
 padding: var(--section-padding);
}
.roi-section .section-subtitle {
    margin-bottom: 2rem;
}
/* --- СТИЛИ ДЛЯ ПК И ШИРОКИХ ЭКРАНОВ --- */
.roi-calculator-wrapper {
 display: grid;
 grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
 grid-template-rows: auto auto;
 gap: 2rem 2.5rem;
 padding: 2.5rem;
 margin-top: 4rem;
 align-items: stretch;
}

.roi-inputs {
 grid-column: 1;
 grid-row: 1;
}

.roi-results {
 grid-column: 2;
 grid-row: 1;
 border-left: 1px solid rgba(255, 255, 255, 0.1);
 padding-left: 2.5rem;
 display: flex;
 flex-direction: column;
}

.roi-footer {
 grid-column: 1 / -1;
 padding-top: 1.5rem;
 margin-top: 1rem;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 display: grid;
 grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
 gap: 1rem 2.5rem;
 align-items: center;
}

.roi-footer .roi-summary-grid {
 grid-column: 2;
}

.roi-footer .cta-button {
 grid-column: 1;
 justify-self: center;
}

.roi-footer .roi-disclaimer {
 grid-column: 1 / -1;
 margin-top: 0;
}

/* (Общие стили, которые не меняются) */
.roi-title { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 2.5rem; }
.roi-inputs .form-group { margin-bottom: 1.5rem; }
.roi-inputs .form-group label { display: block; color: var(--text-secondary); margin-bottom: 1rem; }
.slider-container { display: flex; align-items: center; gap: 1.5rem; }
.slider-value { font-weight: 700; color: var(--text-primary); background: var(--background-dark); padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); min-width: 120px; text-align: center; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 5px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--accent-turquoise); border-radius: 50%; border: none; box-shadow: 0 0 10px var(--accent-turquoise-glow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-turquoise-glow); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--accent-turquoise); border-radius: 50%; border: none; box-shadow: 0 0 10px var(--accent-turquoise-glow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.result-item { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.result-item .icon { font-size: 2.5rem; color: var(--accent-turquoise); }
.result-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.result-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.25rem; }
.roi-summary-grid { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.roi-total { text-align: center; margin-bottom: 1.5rem; }
.roi-total p { color: var(--text-primary); font-size: 1rem; }
.roi-total h4 { font-size: 3rem; font-weight: 700; color: var(--accent-turquoise); text-shadow: 0 0 20px var(--accent-turquoise-glow); margin: 0.5rem 0; }
.roi-total .roi-percentage { font-size: 1rem; color: var(--text-primary); }
.roi-total .roi-percentage strong { color: var(--text-primary); font-weight: 700; }
.roi-disclaimer { font-size: 0.9rem; color: var(--text-secondary); text-align: center; line-height: 1.5; font-style: normal; }

/* --- СТИЛИ ТОЛЬКО ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (ЭКРАНЫ <= 992px) --- */

/* Дополнительные исправления для самых маленьких экранов */

/* 29. ROI CALCULATOR FOOTER ALIGNMENT */
.roi-footer {
    margin-top: auto; /* Самое главное правило: прижимает блок к низу */
    padding-top: 2rem; /* Создает отступ сверху от других элементов */
 display: flex;
 flex-direction: column;
    align-items: center; /* Центрирует все дочерние элементы */
}

.roi-summary-grid {
 display: flex;
 flex-direction: column;
 align-items: center;
}

/* Обновляем заголовки в карточках */
.problem-card h3,
.solution-card h3,
.expert-card h3,
.offer-card h3,
.explanation-card h3 {
 font-size: var(--text-xl);
 margin-bottom: 1rem;
 color: var(--text-primary);
 font-weight: 700;
 line-height: 1.3;
}

/* Обновляем основной текст */
.problem-card p,
.solution-card p,
.expert-card p,
.offer-card p,
.explanation-card p,
.role-card p {
 font-size: var(--text-base);
 line-height: 1.7;
 color: var(--text-secondary);
}

    /* === ЦВЕТОВЫЕ АКЦЕНТЫ ДЛЯ КАЖДОЙ СЕКЦИИ === */
.section-problem { /* Проблемы */
 --section-accent: var(--accent-fuchsia);
 --section-glow: var(--accent-fuchsia-glow);
}

.section-solutions { /* Решения */
 --section-accent: var(--accent-turquoise);
 --section-glow: var(--accent-turquoise-glow);
}

.section-roles { /* Роли */
 --section-accent: #9b59b6;
 --section-glow: rgba(155, 89, 182, 0.3);
}

.section-cases { /* Кейсы */
 --section-accent: #e67e22;
 --section-glow: rgba(230, 126, 34, 0.3);
}

.section-packages { /* Пакеты */
 --section-accent: #2ecc71;
 --section-glow: rgba(46, 204, 113, 0.3);
}

.section-roi { /* ROI */
 --section-accent: #f1c40f;
 --section-glow: rgba(241, 196, 15, 0.3);
}

/* === ИКОНКИ-РАЗДЕЛИТЕЛИ МЕЖДУ БЛОКАМИ === */
.section-divider {
 position: relative;
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 4rem 0;
}

.section-divider::before,
.section-divider::after {
 content: '';
 flex: 1;
 height: 1px;
 background: linear-gradient(90deg, transparent, var(--section-accent), transparent);
}

.section-divider-icon {
 width: 50px;
 height: 50px;
 background: var(--background-dark);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 2rem;
 border: 2px solid var(--section-accent);
 color: var(--section-accent);
 font-size: 1.2rem;
 position: relative;
 z-index: 2;
}

/* === ФОНОВЫЕ ПАТТЕРНЫ ДЛЯ СЕКЦИЙ === */
.section-pattern::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 opacity: 0.03;
 pointer-events: none;
 z-index: -1;
}

/* Геометрический паттерн для проблем */
.section-problem.section-pattern::before {
 background-image:
 radial-gradient(circle at 25% 25%, var(--accent-fuchsia) 2px, transparent 2px),
 radial-gradient(circle at 75% 75%, var(--accent-fuchsia) 2px, transparent 2px);
 background-size: 50px 50px;
}

/* Волны для решений */
.section-solutions.section-pattern::before {
 background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%2333e1ed' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Точки для ROI */
.section-roi.section-pattern::before {
 background-image:
 radial-gradient(circle at 10% 20%, var(--accent-turquoise) 1px, transparent 1px),
 radial-gradient(circle at 90% 80%, var(--accent-fuchsia) 1px, transparent 1px);
 background-size: 30px 30px;
}

/* === STICKY-НАВИГАЦИЯ С ИНДИКАТОРОМ === */
.section-indicator-nav {
 position: fixed;
 right: 2rem;
 top: 50%;
 transform: translateY(-50%);
 z-index: 1000;
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.section-indicator {
 width: 12px;
 height: 12px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.2);
 border: 2px solid transparent;
 cursor: pointer;
 transition: all 0.3s ease;
 position: relative;
}

.section-indicator::before {
 content: attr(data-section);
 position: absolute;
 right: 100%;
 top: 50%;
 transform: translateY(-50%);
 margin-right: 1rem;
 background: var(--background-panel);
 padding: 0.5rem 1rem;
 border-radius: 20px;
 font-size: 0.8rem;
 white-space: nowrap;
 opacity: 0;
 transition: opacity 0.3s ease;
 pointer-events: none;
}

.section-indicator:hover::before {
 opacity: 1;
}

.section-indicator.active {
 background: var(--accent-turquoise);
 transform: scale(1.3);
 box-shadow: 0 0 15px var(--accent-turquoise-glow);
}

/* === "ХЛЕБНЫЕ КРОШКИ" ПРОГРЕССА СКРОЛЛА === */
.scroll-progress-container {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 3px;
 background: rgba(255, 255, 255, 0.1);
 z-index: 1001;
}

.scroll-progress-bar {
 height: 100%;
 background: linear-gradient(90deg, var(--accent-turquoise), var(--accent-fuchsia));
 width: 0%;
 transition: width 0.1s ease;
}

/* === ПЛАВНАЯ АНИМАЦИЯ ЯКОРЕЙ === */
.section-scroll-target {
 scroll-margin-top: 100px;
}

html {
 scroll-behavior: smooth;
}

/* Индикатор текущей секции в навигации */
.main-nav .nav-link.active {
 color: var(--text-primary);
 position: relative;
}

.main-nav .nav-link.active::after {
 content: '';
 position: absolute;
 bottom: -5px;
 left: 0;
 width: 100%;
 height: 2px;
 background: var(--accent-turquoise);
 transform: scaleX(1);
}

/* === ЦВЕТОВЫЕ КОДЫ ДЛЯ ТЕМАТИЧЕСКИХ БЛОКОВ === */
.theme-security {
 --theme-color: var(--accent-fuchsia);
 --theme-glow: var(--accent-fuchsia-glow);
 border-left: 4px solid var(--accent-fuchsia);
}

.theme-marketing {
 --theme-color: #3498db;
 --theme-glow: rgba(52, 152, 219, 0.3);
 border-left: 4px solid #3498db;
}

.theme-analytics {
 --theme-color: #2ecc71;
 --theme-glow: rgba(46, 204, 113, 0.3);
 border-left: 4px solid #2ecc71;
}

.theme-infrastructure {
 --theme-color: #9b59b6;
 --theme-glow: rgba(155, 89, 182, 0.3);
 border-left: 4px solid #9b59b6;
}

/* Применяем темы к карточкам */
.theme-card {
 position: relative;
 transition: all 0.3s ease;
}

.theme-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 10px 30px var(--theme-glow);
}

/* === НОМЕРА ШАГОВ ДЛЯ ПРОЦЕССНЫХ СЕКЦИЙ === */
.step-item {
 position: relative;
 counter-increment: step-counter;
 padding-left: 4rem;
 margin-bottom: 3rem;
}

.step-item::before {
 content: counter(step-counter);
 position: absolute;
 left: 0;
 top: 0;
 width: 3rem;
 height: 3rem;
 background: var(--section-accent);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 900;
 font-size: 1.2rem;
 color: var(--background-dark);
 box-shadow: 0 0 20px var(--section-glow);
}

.step-connector {
 position: absolute;
 left: 1.5rem;
 top: 3rem;
 bottom: -3rem;
 width: 2px;
 background: linear-gradient(to bottom, var(--section-accent), transparent);
}

.step-item:last-child .step-connector {
 display: none;
}

/* === ИКОНКИ-МАРКЕРЫ ДЛЯ БЫСТРОГО СКАНИРОВАНИЯ === */
.content-marker {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 padding: 0.5rem 1rem;
 background: rgba(255, 255, 255, 0.05);
 border-radius: 25px;
 margin-bottom: 1rem;
 font-size: 0.9rem;
 font-weight: 600;
}

.marker-security { color: var(--accent-fuchsia); }
.marker-efficiency { color: var(--accent-turquoise); }
.marker-growth { color: #2ecc71; }
.marker-compliance { color: #f1c40f; }

/* STYLES FOR INLINE FORM WITH CONSENT CHECKBOX */
.inline-audit-form .form-main-row {
 display: flex;
 gap: 1rem;
 align-items: stretch;
}

.inline-audit-form .form-consent {
 align-items: center;
 margin-top: 1rem;
    padding: 0 0.5rem; /* Small padding to align text */
    justify-content: center; /* Horizontally centers items */
}

/* Reusing existing styles for the checkbox from the modal */
.form-consent input[type="checkbox"] {
 -webkit-appearance: none;
 appearance: none;
 background-color: transparent;
 margin: 0;
 width: 1.15em;
 height: 1.15em;
 border: 1px solid var(--text-secondary);
 border-radius: 4px;
 cursor: pointer;
 position: relative;
    top: 0.2em; /* Vertical alignment */
 transition: all 0.2s ease;
}

.form-consent input[type="checkbox"]:hover {
 border-color: var(--accent-turquoise);
}

.form-consent input[type="checkbox"]:checked {
 background-color: var(--accent-turquoise);
 border-color: var(--accent-turquoise);
}

.form-consent input[type="checkbox"]:checked::before {
 content: '✔';
 position: absolute;
 color: var(--background-dark);
 font-size: 0.8em;
 font-weight: bold;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
}

.form-consent label {
 font-size: 0.9rem;
 color: var(--text-secondary);
 cursor: pointer;
 margin-left: 0.5rem;
}

.form-consent label a {
 color: var(--accent-turquoise);
 text-decoration: underline;
 text-underline-offset: 3px;
}

/* STYLE FIX: Glass effect for inline form inputs */
.inline-audit-form input[type="tel"] {
 width: 100%;
 height: 100%;
 padding: 1rem 1.5rem;
    background: var(--background-panel); /* Using site-wide glass background */
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible border */
    border-radius: 50px; /* Matched to the button's border-radius */
 color: var(--text-primary);
 font-family: var(--font-primary);
 font-size: 1rem;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    /* === STYLES FOR INLINE AUDIT FORM (ALIGNMENT FIX) === */

    /* 1. Centers the entire form block in the hero section */
 .hero-content {
 display: flex;
 flex-direction: column;
 align-items: center;
        width: 100%; /* Ensures container takes full width for centering */
 }

 .hero-form-container {
 margin-top: 0;
 max-width: 550px;
 width: 100%;
        padding: 0 1rem; /* Adds padding for small screens */
 }

    /* 2. Aligns the input field and button on one line */
 .inline-audit-form .form-main-row {
 display: flex;
        align-items: center; /* Vertically centers items */
 gap: 1rem;
 }

 .inline-audit-form .form-group {
 flex-grow: 1;
 margin-bottom: 0;
 }

    /* 3. Aligns the checkbox and its text on another line */
 .inline-audit-form .form-consent {
 display: flex;
        align-items: center; /* Vertically centers items */
 margin-top: 1rem;
 padding: 0 0.5rem;
 }

    /* 4. General and responsive styles for the form */
 .inline-audit-form input[type="tel"] {
 width: 100%;
 height: 100%;
        min-height: 58px; /* Set a minimum height consistent with the button */
 padding: 1rem 1.5rem;
 background: var(--background-panel);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 border: 1px solid rgba(255, 255, 255, 0.15);
 border-radius: 50px;
 color: var(--text-primary);
 font-family: var(--font-primary);
 font-size: 1rem;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
 }

 .inline-audit-form input[type="tel"]:focus {
 outline: none;
 border-color: var(--accent-turquoise);
 box-shadow: 0 0 10px var(--accent-turquoise-glow);
 }

 .form-consent input[type="checkbox"] {
 -webkit-appearance: none;
 appearance: none;
 background-color: transparent;
 margin: 0;
 width: 1.15em;
 height: 1.15em;
 border: 1px solid var(--text-secondary);
 border-radius: 4px;
 cursor: pointer;
 position: relative;
    flex-shrink: 0; /* Prevents the checkbox from shrinking */
 transition: all 0.2s ease;
 transform: translateY(-2px);
}

/* Hover and checked states */
.form-consent input[type="checkbox"]:hover {
 border-color: var(--accent-turquoise);
}

.form-consent input[type="checkbox"]:checked {
 background-color: var(--accent-turquoise);
 border-color: var(--accent-turquoise);
}

/* This is the corrected, single rule for the checkmark */
.form-consent input[type="checkbox"]:checked::before {
 content: '✔';
 position: absolute;
 color: var(--background-dark);
 font-size: 0.8em;
 font-weight: bold;
 top: 50%;
 left: 50%;
    transform: translate(-50%, -50%); /* Correct centering */
}

/* Styles for the label text */
.form-consent label {
 font-size: 0.85rem;
 color: var(--text-secondary);
 cursor: pointer;
 line-height: 1.4;
}

.form-consent label a {
 color: var(--accent-turquoise);
 text-decoration: underline;
 text-underline-offset: 3px;
}

.form-consent label a:hover {
 color: var(--text-primary);
}

 .roi-footer .hero-form-container {
 grid-column: 1 / -1;
 justify-self: center;
 max-width: 650px;
 }



    /* ... existing code ... */

/* === STYLES FOR BREADCRUMBS AND POLICY PAGE === */

/* Breadcrumbs Container */
.breadcrumbs-container {
    padding-top: 100px; /* This pushes the content down below the fixed header */
 padding-bottom: 1rem;
 background: transparent;
 position: relative;
 z-index: 5;
 transform: translateY(15px);
}

.main-page-breadcrumbs {
    min-height: 44px; /* Reserve space on main page */
}

/* Breadcrumbs List */
.breadcrumbs {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 align-items: center;
 gap: 0.5rem;
 font-size: 0.9rem;
}

.breadcrumbs li {
 display: flex;
 align-items: center;
 color: var(--text-secondary);
}

.breadcrumbs li a {
 color: var(--text-secondary);
 text-decoration: none;
 transition: color 0.3s ease;
}

.breadcrumbs li a:hover {
 color: var(--accent-turquoise);
}

/* Arrow separator */
.breadcrumbs li:not(:last-child)::after {
 content: '›';
 margin-left: 0.5rem;
 color: var(--text-secondary);
}

.breadcrumbs li span {
 font-weight: 500;
 color: var(--text-primary);
}

/* Policy Page Specific Styles */
.policy-section {
 padding: 2rem 0 6rem 0;
}

.policy-content {
 padding: 3rem;
 max-width: 900px;
 margin: 0 auto;
}

.policy-content h1 {
 font-size: var(--text-3xl);
 margin-bottom: 2rem;
 color: var(--text-primary);
}

.policy-content h2 {
 font-size: var(--text-2xl);
 margin-top: 2.5rem;
 margin-bottom: 1.5rem;
 color: var(--text-primary);
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 padding-bottom: 0.5rem;
}

.policy-content p, .policy-content li {
 font-size: var(--text-base);
 line-height: 1.8;
 color: var(--text-secondary);
 margin-bottom: 1rem;
}

.policy-content ul {
 list-style-type: disc;
 padding-left: 2rem;
}

.policy-content a {
 text-decoration: underline;
 text-underline-offset: 4px;
}

/* Simple table-like structure for section 6 */
.policy-table {
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 8px;
 margin: 1.5rem 0;
}
.policy-table-item {
 padding: 1rem;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.policy-table-item:last-child {
 border-bottom: none;
}
.policy-table-item strong {
 color: var(--text-primary);
 display: block;
 margin-bottom: 0.5rem;
}
.policy-table-item p {
 margin-bottom: 0;
}

/* FIX: Ensure policy content is always visible and not affected by scroll animations */
.policy-section .policy-content.reveal-on-scroll {
 opacity: 1;
 transform: translateY(0);
}

/*
 * STYLES FOR ABOUT US PAGE
 */

.principles-section {
 padding: var(--section-padding);
}

.principles-grid {
 display: grid;
    /* На больших экранах будет 2 колонки, на мобильных - 1 */
 grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
 gap: 2rem;
 margin-top: 4rem;
}

.principle-card {
 padding: 2.5rem;
 text-align: center;
}

.principle-card .icon {
 font-size: 3rem;
 color: var(--accent-turquoise);
 margin-bottom: 1.5rem;
}

.principle-card h3 {
 font-size: var(--text-xl);
 color: var(--text-primary);
 margin-bottom: 1rem;
}

/* Адаптация сетки для мобильных устройств */

/*
 * STYLES FOR FAQ PAGE
 */

.faq-section {
 padding: 2rem 0 6rem 0;
}

.faq-container {
 max-width: 900px;
 margin: 4rem auto 0 auto;
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
}

.faq-item {
 padding: 1rem;
}

.faq-item.glass-panel::before {
    display: none;
}

.faq-question {
 width: 100%;
 display: flex;
 justify-content: space-between;
 align-items: center;
 background: none;
 border: none;
 color: var(--text-primary);
 text-align: left;
 font-size: var(--text-lg);
 font-weight: 500;
 cursor: pointer;
 padding: 1rem;
}

.faq-question i {
 color: var(--accent-turquoise);
 transition: transform 0.3s ease;
}

.faq-question.active i {
 transform: rotate(180deg);
}

.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
 padding: 0 1rem 1rem 1rem;
 font-size: var(--text-base);
 line-height: 1.7;
 color: var(--text-secondary);
}

/* Стили для навигации в футере */
.footer-nav {
 text-align: left;
}
.footer-nav h4 {
 font-size: 1.2rem;
 color: var(--text-primary);
 margin-bottom: 1rem;
}
.footer-nav ul {
 list-style: none;
 padding: 0;
 margin-top: 0;
}
.footer-nav li {
 margin-bottom: 0.5rem;
}
.footer-nav a {
 color: var(--text-secondary);
 line-height: 1.6;

}
.footer-nav a:hover {
 color: var(--accent-turquoise);
}

/*
 * СТИЛИ ДЛЯ БЛОГА
 */

/* Стили для страницы со списком статей (blog.html) */
/* Мы уже использовали .detailed-cases-grid, так что здесь почти ничего не нужно */
.case-detailed-card:hover h3 {
 color: var(--accent-turquoise);
}
.case-detailed-card p {
 color: var(--text-secondary);
}

/* Стили для страницы одной статьи (article.html) */
.article-content h1 {
 font-size: var(--text-3xl);
 margin-bottom: 1.5rem;
 line-height: 1.2;
}

#article-meta {
 font-size: 0.95rem;
 font-weight: 500;
}

#article-body {
 font-size: var(--text-base);
 line-height: 1.8;
 color: var(--text-secondary);
}

#article-body h2, #article-body h3 {
 color: var(--text-primary);
 margin-top: 2.5rem;
 margin-bottom: 1rem;
 font-weight: 700;
}

#article-body h2 { font-size: var(--text-2xl); }
#article-body h3 { font-size: var(--text-xl); }

#article-body p {
 margin-bottom: 1.5rem;
}

#article-body a {
 text-decoration: underline;
 text-underline-offset: 4px;
 font-weight: 500;
}

#article-body ul, #article-body ol {
 padding-left: 2rem;
 margin-bottom: 1.5rem;
}

#article-body li {
 margin-bottom: 0.75rem;
}

#article-body blockquote {
 border-left: 4px solid var(--accent-turquoise);
 padding-left: 1.5rem;
 margin: 2rem 0;
 font-style: italic;
 font-size: 1.2rem;
 color: var(--text-primary);
}

#article-body img {
 max-width: 100%;
 height: auto;
 border-radius: 15px;
 margin: 2rem 0;
}

/* Убираем горизонтальный скролл на мобильных */
html, body {
 overflow-x: hidden;
 width: 100%;
}

/* Гарантируем, что все элементы вписываются в экран */
* {
 box-sizing: border-box;
}

/* --- Стили для улучшенной валидации и уведомлений форм --- */

/* Контейнер для сообщения об ошибке */
.validation-error {
    color: #ff8a8a; /* Нежный красный цвет для ошибки */
 font-size: 0.85rem;
 font-weight: 500;
 margin-top: 8px;
 text-align: left;
 width: 100%;
}

/* Стиль для поля с ошибкой */
.input-error {
    border-color: #ff8a8a !important; /* Важно, чтобы перебить другие стили */
 box-shadow: 0 0 8px rgba(255, 138, 138, 0.5);
}

/* Стиль для чекбокса с ошибкой */
input[type="checkbox"].input-error + label {
 color: #ff8a8a;
}

/* Контейнер для успешной отправки в открытых формах */
.form-success-inline {
 padding: 20px;
 text-align: center;
 border: 1px solid var(--accent-turquoise);
 border-radius: 12px;
 background: rgba(51, 225, 227, 0.1);
}

.form-success-inline h3 {
 color: var(--accent-turquoise);
 margin-top: 0;
 margin-bottom: 10px;
}

.form-success-inline p {
 margin-bottom: 0;
 color: var(--text-primary);
}

/* Styling for the new Values section on About page */
.values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1.5rem;
 margin-top: 1rem;
}

.value-card {
 text-align: center;
 padding: 1.5rem;
 background: rgba(255, 255, 255, 0.05);
 border-radius: 12px;
 border: 1px solid rgba(255, 255, 255, 0.1);
 transition: all 0.3s ease;
}

.value-card:hover {
 background: rgba(255, 255, 255, 0.1);
 border-color: rgba(255, 255, 255, 0.2);
 transform: translateY(-5px);
}

.value-card .icon {
 font-size: 2.5rem;
 margin-bottom: 1rem;
 color: var(--accent-turquoise);
}

.value-card h4 {
 margin-bottom: 0.5rem;
 color: var(--text-light);
 font-size: 1.1rem;
}

.value-card p {
 font-size: 0.9rem;
 color: var(--text-medium);
 line-height: 1.5;
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЬИ (РЕДИЗАЙН) === */

/* === СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЬИ (V4 - ИСПРАВЛЕНИЕ СЕЛЕКТОРА) === */

/* 1. Стили обложки */
#article-cover {
 display: block;
 max-height: 450px;
 width: 100%;
 object-fit: cover;
 border-radius: 20px;
 margin-bottom: 2.5rem;
}

/* 2. Базовые стили для заголовка статьи по его ID */
/* Это правило перекроет стили от .policy-content h1 */
#article-title {
    font-size: var(--text-3xl); /* Возвращаем базовый размер для ПК */
    overflow-wrap: break-word; /* Сохраняем перенос слов */
}

/* 3. Адаптивные стили для заголовка статьи (также по ID) */

/* Скрываем хлебные крошки только на главной странице */
.home-page .breadcrumbs-container {
 display: none;
}

/*
 * 29. СТИЛИ ДЛЯ ПОДСКАЗОК (TOOLTIPS V2 - JS VERSION)
 */

.tooltip-trigger {
 display: inline-block;
 position: relative;
 margin-left: 8px;
 width: 18px;
 height: 18px;
 border-radius: 50%;
 border: 1px solid var(--text-secondary);
 color: var(--text-secondary);
 font-size: 12px;
 font-weight: bold;
 text-align: center;
 line-height: 16px;
 cursor: help;
 transition: all 0.3s ease;
 transform: translateY(-2px);
}

.tooltip-trigger:hover {
 background: var(--accent-turquoise);
 color: var(--background-dark);
 border-color: var(--accent-turquoise);
}

.tooltip-container {
    display: none; /* Управляется через JS */
    position: absolute; /* Позиция задается через JS */
 z-index: 9999;
 width: 280px;
 padding: 1rem;
 background-color: var(--background-dark);
 color: var(--text-secondary);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 8px;
 box-shadow: 0 5px 25px rgba(0,0,0,0.5);
 font-size: 0.9rem;
 line-height: 1.5;
 text-align: left;
    pointer-events: none; /* Чтобы не мешал взаимодействию с другими элементами */
 opacity: 0;
 transform: translateY(10px);
 transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-container.active {
 opacity: 1;
 transform: translateY(0);
}
/*
 * 31. СТИЛИ ДЛЯ ЛИД-МАГНИТА (КВИЗ)
 */

/* Секция-триггер */
.quiz-cta-section {
 padding: 3rem 0;
}

.quiz-cta-content {
 display: grid;
 grid-template-columns: auto 1fr auto;
 align-items: center;
 gap: 2rem;
 padding: 2rem 2.5rem;
 border: 1px solid var(--accent-fuchsia);
 box-shadow: 0 0 30px -5px var(--accent-fuchsia-glow);
}

.quiz-cta-icon {
 font-size: 3rem;
 color: var(--accent-fuchsia);
}

.quiz-cta-text h3 {
 font-size: 1.5rem;
 color: var(--text-primary);
 margin-bottom: 0.5rem;
}

.quiz-cta-text p {
 margin-bottom: 0;
}

/* Модальное окно квиза */
.quiz-container {
 max-width: 700px;
}

#quiz-progress-container {
 width: 100%;
 height: 8px;
 background: rgba(255, 255, 255, 0.1);
 border-radius: 4px;
 margin-bottom: 2rem;
}

#quiz-progress-bar {
 width: 0%;
 height: 100%;
 background: var(--accent-turquoise);
 border-radius: 4px;
 transition: width 0.4s ease;
}

.quiz-step {
 display: none;
}
.quiz-step.active {
 display: block;
}

.quiz-question {
 font-size: 1.6rem;
 text-align: center;
 margin-bottom: 2.5rem;
 color: var(--text-primary);
 line-height: 1.4;
}

.quiz-answers {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.quiz-answer {
 width: 100%;
 padding: 1.2rem;
 background: transparent;
 border: 1px solid var(--text-secondary);
 border-radius: 12px;
 color: var(--text-secondary);
 font-size: 1rem;
 text-align: left;
 cursor: pointer;
 transition: all 0.3s ease;
}

.quiz-answer:hover {
 border-color: var(--accent-turquoise);
 color: var(--accent-turquoise);
 transform: translateX(5px);
}

/* Результаты квиза */
.quiz-result-title {
 font-size: 1.2rem;
 font-weight: 700;
 color: var(--text-primary);
 text-align: center;
 padding: 1rem;
 border-radius: 12px;
 margin-bottom: 1rem;
}
.quiz-result-title.high { background: rgba(51, 225, 227, 0.15); border: 1px solid var(--accent-turquoise); }
.quiz-result-title.medium { background: rgba(241, 196, 15, 0.15); border: 1px solid #f1c40f; }
.quiz-result-title.low { background: rgba(228, 0, 124, 0.15); border: 1px solid var(--accent-fuchsia); }

.quiz-result-description {
 text-align: center;
 margin-bottom: 2rem;
}
.quiz-form-subtitle {
 text-align: center;
 font-size: 0.9rem;
 margin-bottom: 1.5rem;
}

/* Адаптивность */

/*
 * 32. СТИЛИ ДЛЯ БЛОКА АВТОРА СТАТЬИ (V2 - С ОБТЕКАНИЕМ ТЕКСТА)
 */

.author-block {
 margin-top: 3rem;
 padding-top: 2.5rem;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Этот псевдо-элемент нужен, чтобы родительский блок "видел"
   обтекаемый элемент и не "схлопывался" по высоте. */
.author-block::after {
 content: "";
 display: table;
 clear: both;
}

.author-photo {
    /* Заставляем фото "плавать" слева, чтобы текст его обтекал */
 float: left;
    /* Создаем отступы вокруг фото */
 margin-right: 2rem;
 margin-bottom: 1rem;
}

.author-photo img {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid var(--accent-turquoise);
}

.author-info h4 {
 color: var(--text-secondary);
 font-size: 1rem;
 font-weight: 500;
 margin-bottom: 0.5rem;
}

.author-info .author-name-title {
 font-size: 1.3rem;
 line-height: 1.4;
 color: var(--text-primary);
 margin-bottom: 1rem;
}

.author-info .author-name-title strong {
 font-weight: 700;
}

.author-info .author-bio {
 font-size: 0.95rem;
 color: var(--text-secondary);
 line-height: 1.6;
 margin-bottom: 0;
}

/* Адаптивность: на мобильных отключаем обтекание и центрируем */

/*
 * 33. СТИЛИ ДЛЯ ОБНОВЛЕННОГО БЛОКА КВИЗА
 */

.quiz-cta-action {
 display: flex;
 flex-direction: column;
    gap: 1rem; /* Отступ между кнопками */
    min-width: 280px; /* Минимальная ширина для кнопок */
}

/*
 * 34. СТИЛИ ДЛЯ БЛОКА ПАРТНЕРОВ (БЕГУЩАЯ СТРОКА)
 */

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partners-section {
    padding-bottom: 4rem;  
    margin-top: 0;
}

.partners-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    margin-top: 4rem;
}

.partners-marquee {
    display: flex;
    width: max-content;
    animation: scroll 90s linear infinite; /* Можно настроить скорость (чем больше секунд, тем медленнее) */
}

.partners-container:hover .partners-marquee {
    animation-play-state: paused;
}

.partner-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap; /* Важно, чтобы имена не переносились */
    padding: 0 2.5rem; /* Отступы между именами */
    transition: color 0.3s ease;
}

.partner-name:hover {
    color: var(--text-primary);
}
/*
 * 35. СТИЛИ ДЛЯ БЛОКА ТЕКСТОВЫХ ОТЗЫВОВ
 */

.text-testimonials-section {
 padding: 6rem 0;
}

.testimonials-grid {
 display: grid;
    /* Создает 2 колонки на ПК и 1 на мобильных */
 grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
 gap: 2rem;
 margin-top: 4rem;
    align-items: stretch; /* Карточки в одном ряду будут одинаковой высоты */
}

.testimonial-card {
 display: flex;
    flex-direction: column; /* Выстраиваем контент в колонку (цитата, потом автор) */
 padding: 2.5rem;
}

.testimonial-card blockquote {
    flex-grow: 1; /* Заставляет цитату занять все доступное место, прижимая автора к низу */
 font-size: 1.1rem;
 font-style: italic;
 line-height: 1.7;
 color: var(--text-secondary);
 border-left: 3px solid var(--accent-turquoise);
 padding-left: 1.5rem;
 margin-bottom: 2rem;
}

.testimonial-card cite {
    margin-top: auto; /* Дополнительно прижимает автора к низу */
 padding-top: 1.5rem;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 text-align: right;
 font-style: normal;
}

.testimonial-card .author-name {
 display: block;
 font-size: 1.1rem;
 font-weight: 700;
 color: var(--text-primary);
}

.testimonial-card .author-title {
 font-size: 0.9rem;
 color: var(--accent-turquoise);
}

/* ================================================== */
/* RESPONSIVE MEDIA QUERIES (Consolidated)            */
/* ================================================== */

@media (max-width: 1024px) {
    .main-nav {
    display: none;
    }
    .header-controls .cta-button.secondary {
    display: none;
    }
    .packages-grid, .role-content, .page-websites .packages-grid {
    grid-template-columns: 1fr;
}
    .main-title {
    font-size: 4rem;
    }

    .package-card.featured {
    transform: translateY(0);
    }
    .package-description {
    min-height: auto;
    }
.page-websites .packages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
    font-size: 2.2rem;
    }
    .main-title {
    font-size: 3rem;
    }
    .solutions-grid {
    grid-template-columns: 1fr;
    }
    .solution-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    }
    .solution-card .cta-button {
    margin-top: auto;
   }
    .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    }
    .footer-contacts {
    text-align: left;
    }
    .case-item {
    flex-basis: 300px;
    }

    .hero-section {
    aspect-ratio: auto;
    padding: 0 1.5rem; /* Уменьшаем боковые отступы */
    }
    .main-title {
    font-size: 3.2rem;
    line-height: 1.2;
    }
    .hero-section .subtitle {
    font-size: 1.1rem;
    }
.step-number {
        display: none; /* Прячем большой номер, он ломает верстку */
    }

    .detailed-cases-grid {
    /* На самых маленьких экранах делаем одну колонку */
    grid-template-columns: 1fr;
    }

    .principles-grid {
    grid-template-columns: 1fr;
    }
    /* --- 1. Общая адаптивность для отступов секций --- */
    .problem-section,
    .solutions-section,
    .roles-section,
    .proof-section,
    .packages-section,
    .cta-final-section,
    .offer-section,
    .video-testimonial-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: none;
    }
    /* --- 2. Исправление огромного логотипа --- */
    .logo img {
    height: 32px; /* Уменьшаем лого в шапке */
    }
    .main-footer .logo img {
    height: 38px; /* И в подвале */
    }
    /* --- 3. Исправление блока "Офер" --- */
    .offer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    }
    .offer-card {
    padding: 2rem;
    /* ИЗМЕНЕНИЕ: Устанавливаем центральное выравнивание для карточки */
    text-align: center;
    display: flex;
    flex-direction: column;
    /* ИЗМЕНЕНИЕ: Выравниваем все элементы по центру */
    align-items: center;
    }
    .offer-card .icon {
    margin-bottom: 1.5rem; /* Немного увеличим отступ для лучшего вида */
    }
    /* --- 4. Исправление блока с видеоотзывом --- */
    .testimonial-content-wrapper {
    /* Сетка уже переключается на 1 колонку, уменьшаем отступы */
    padding: 1.5rem;
    gap: 1.5rem;
    }
    .testimonial-quote-container blockquote {
    font-size: 1.25rem; /* Уменьшаем огромный текст цитаты */
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    }
    .author-name {
    font-size: 1.1rem;
    }
    .footer-content {
    /* ИЗМЕНЕНИЕ: Выравниваем все дочерние блоки по центру */
    align-items: center;
    }
    .footer-info {
    /* ИЗМЕНЕНИЕ: Добавляем выравнивание по центру для блока с логотипом */
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    .stat-number {
    font-size: 3.5rem;
    }
    .stat-description {
    font-size: 1rem;
    }

    .main-title {
    font-size: 3.2rem; /* Уменьшаем основной заголовок */
    line-height: 1.2;  /* Слегка уменьшаем межстрочный интервал */
    }
    .hero-section .subtitle {
    font-size: 1.1rem; /* Уменьшаем подзаголовок */
    }
    .hero-section {
    padding: 0 1.5rem; /* Уменьшаем боковые отступы самого блока */
    }

    .hero-section::before {
    display: none;
    }

    .section-indicator-nav {
    display: none;
    }
    .section-divider {
    height: 60px;
    margin: 2rem 0;
    }
    .step-item {
    padding-left: 3rem;
    }
    .step-item::before {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    }
    .step-connector {
    left: 1.25rem;
    }

    .policy-content {
    padding: 2rem;
    }
    .policy-content h1 {
    font-size: 2.5rem;
    }
    .policy-content h2 {
    font-size: 1.8rem;
    }

    #article-title {
    font-size: var(--text-2xl); /* 2.2rem */
    line-height: 1.25;
    }

}

@media (min-width: 1025px) {
    .burger-menu {
    display: none;
    }
    .main-nav {
    display: flex;
    }

}

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


    .main-title {
    font-size: 2.5rem; /* Делаем заголовок еще меньше */
    }
    .hero-section {
    padding: 0 1rem; /* И еще немного уменьшаем боковые отступы */
    }

    .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    }
    .slider-value {
    min-width: 100px;
    }
    .roi-total h4 {
    font-size: 3rem;
    }

    .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    }
    .slider-value {
    min-width: 100px;
    }
    .roi-total h4 {
    font-size: 2.5rem;
    }

    .slider-container { flex-direction: column; align-items: stretch; gap: 1rem; }
    .slider-value { min-width: 100px; }
    .roi-total h4 { font-size: 2.5rem; }
    .result-value { font-size: 1.5rem; } /* Коррекция наложения текста */
    .result-item { gap: 1rem; }

    

    #article-title {
    font-size: var(--text-xl); /* 1.8rem */
    }

}

@media (min-width: 992px) {
    .testimonial-content-wrapper {
    grid-template-columns: 1fr 1fr; /* Видео чуть больше текста */
    gap: 2.5rem;
    padding: 3rem;
    align-items: center;
    }

}

@media (min-width: 768px) {
    .explanation-grid {
    /* Возвращаем адаптивную сетку с переносом */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Возвращаем стандартный отступ */
    }

}

@media (max-width: 992px) {
    .stats-grid {
    grid-template-columns: 1fr;
    }

    .solutions-grid {
    grid-template-columns: 1fr;
    }
    .solution-card, .featured-solution {
    grid-column: span 1;
    }

    .roi-calculator-wrapper, .roi-footer {
    grid-template-columns: 1fr; /* Одна колонка для мобильных устройств */
    gap: 2rem;
    }
    .roi-results, .roi-footer .roi-summary-grid, .roi-footer .cta-button {
    grid-column: 1; /* Все элементы занимают одну колонку */
    }
    .roi-results {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 1rem;
    }

    .roi-calculator-wrapper {
    /* Меняем сетку на одну колонку */
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
    }
    /* Сбрасываем расположение всех дочерних элементов в одну колонку */
    .roi-inputs,
    .roi-results,
    .roi-footer {
    grid-column: 1;
    grid-row: auto;
    }
    .roi-results {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 0;
    }
    /* Возвращаем футеру простой вертикальный вид */
    .roi-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    }

    .quiz-cta-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    }

}

@media (max-width: 576px) {
    .case-detailed-footer {
    justify-content: center; /* Центрируем элементы при переносе */
    gap: 1.5rem; /* Возвращаем адекватный отступ */
    padding-top: 1.5rem; /* Слегка уменьшаем верхний отступ */
    }
    .result-item {
    /* Убираем flex-basis, чтобы элементы могли сжиматься */
    flex-basis: auto;
    }
    .detailed-cases-section .result-item .result-value {
    font-size: 2.4rem !important;
    }
    .detailed-cases-section .result-item .result-value {
    font-size: 0.75rem; /* И уменьшаем текст под ними */
    line-height: 1.3; /* Улучшаем читаемость мелкого шрифта */
    }
    .result-text {
    display: flex;
    flex-direction: column;
    }

    .inline-audit-form .form-main-row {
    flex-direction: column;
    }

    .inline-audit-form .form-main-row {
    flex-direction: column;
    }

}

@media (max-width: 600px) {
    .author-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
    }
    .author-block {
    text-align: center;
    }

}

.urgency-trigger {
    text-align: center;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: rgba(51, 225, 227, 0.1);
    border-radius: 12px;
    max-width: 850px;
    box-shadow: 0 0 20px -5px var(--accent-turquoise-glow);
}

@media (max-width: 520px) {
    .urgency-trigger {
        font-size: 0.95rem;
    }
}

.urgency-trigger i {
    color: var(--accent-turquoise);
    margin-right: 0.5rem;
}

.urgency-trigger strong {
    color: var(--accent-turquoise);
    font-weight: 700;
}

.cta-final-section .section-subtitle {
    margin-bottom: 1.5rem;
}

.calculator-explanation {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.calculator-explanation details {
    background: rgba(25, 29, 35, 0.4);
    border: 1px solid var(--section-light-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.calculator-explanation details:hover {
    border-color: var(--accent-turquoise);
}

.calculator-explanation summary {
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 1rem 1.5rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculator-explanation summary::-webkit-details-marker {
    display: none;
}

.calculator-explanation summary::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-turquoise);
    transition: transform 0.3s ease;
}

.calculator-explanation details[open] summary::after {
    transform: rotate(180deg);
}

.calculator-explanation .explanation-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--section-light-border);
    margin: 0 1.5rem;
}

.calculator-explanation .explanation-content h4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.calculator-explanation .explanation-content ul {
    list-style-type: none;
    padding-left: 0;
}

.calculator-explanation .explanation-content li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.calculator-explanation .explanation-content li::before {
    content: '✓';
    color: var(--accent-turquoise);
    position: absolute;
    left: 0;
    top: 3px;
    font-weight: bold;
}

/* --- Уточнение иерархии текста --- */

/* Различные подписи и метки делаем менее акцентными */
.author-title,
.result-label,
.stat-description,
.package-timeline,
.form-consent label,
.roi-disclaimer {
    color: var(--text-tertiary);
}

/* Ссылки в футере также делаем более приглушенными */
.footer-nav-columns a {
    color: var(--text-tertiary);
}

/* Текст в иконках контактов */


/* --- ГАРМОНИЗАЦИЯ РАЗМЕРОВ ШРИФТОВ (ТИПОГРАФИЧЕСКАЯ СИСТЕМА) --- */

/* Шаг 1: Задаём базовые размеры для основных тегов */
h1 { font-size: var(--text-4xl); } /* 3.5rem - Только для самого главного заголовка на странице */
h2 { font-size: var(--text-3xl); } /* 2.8rem - Заголовки всех основных секций */
h3 { font-size: var(--text-xl); } /* 1.8rem - Подзаголовки и заголовки в карточках */
h4 { font-size: var(--text-lg); } /* 1.4rem - Менее важные заголовки */
p { font-size: var(--text-base); }  /* 1.1rem - Стандартный размер для всех параграфов */

/* Шаг 2: Стандартизируем главные заголовки сайта */
.main-title {
    font-size: var(--text-4xl); /* Применяем размер для главного H1 */
}
.section-title {
    font-size: var(--text-3xl); /* Применяем размер для заголовков секций H2 */
}
.section-subtitle {
    font-size: var(--text-lg);  /* Делаем подзаголовок крупнее основного текста */
}

/* Шаг 3: Унифицируем все карточки и блоки */

/* Заголовки внутри карточек */
.explanation-card h3,
.problem-card h3,
.solution-card h3,
.expert-card h3,
.offer-card h3,
.role-card h4, /* в этом блоке используется h4 */
.principle-card h3,
.package-header h3,
.quiz-cta-text h3,
.case-detailed-header h3 {
    font-size: var(--text-xl);
}

/* Основной текст внутри карточек */
.explanation-card p,
.problem-card p,
.solution-card p,
.expert-card p,
.offer-card p,
.role-card p,
.principle-card p,
.package-description,
.testimonial-card blockquote,
.case-detailed-body p {
    font-size: var(--text-base);
}

/* Шаг 4: Приводим к единому стилю весь мелкий и второстепенный текст */
.author-title,
.package-timeline,
.form-consent label,
.roi-disclaimer,
.result-label,
.breadcrumbs li,
.tooltip-container,
.footer-bottom p {
    font-size: var(--text-xs); /* 0.85rem - Самый маленький, для "мелкого шрифта" */
}

/* Шаг 5: Адаптация для мобильных устройств */
@media (max-width: 768px) {
    h1, .main-title { font-size: var(--text-3xl); } /* Уменьшаем главный заголовок */
    h2, .section-title { font-size: var(--text-2xl); } /* Уменьшаем заголовки секций */
    h3, .explanation-card h3, .problem-card h3, .solution-card h3, .expert-card h3, .offer-card h3, .role-card h4, .principle-card h3, .package-header h3, .quiz-cta-text h3, .case-detailed-header h3 {
        font-size: 1.5rem; /* Промежуточное значение для заголовков карточек на мобильных */
    }
    p, .section-subtitle {
        font-size: 1rem; /* Слегка уменьшаем базовый текст */
    }
}
/* --- ТОНКАЯ НАСТРОЙКА РАЗМЕРОВ ШРИФТОВ --- */

/* Шаг 1: Корректируем подзаголовки секций.
   Возвращаем им базовый размер, но делаем шрифт чуть жирнее, чтобы сохранить акцент. */
.section-subtitle {
    font-size: var(--text-base); /* Было var(--text-lg) */
    font-weight: 500;
}

/* Шаг 2: Уменьшаем заголовки во всех карточках.
   Назначаем им следующий по убыванию размер из шкалы. */
.explanation-card h3,
.problem-card h3,
.solution-card h3,
.expert-card h3,
.offer-card h3,
.role-card h4,
.principle-card h3,
.package-header h3,
.quiz-cta-text h3,
.case-detailed-header h3 {
    font-size: var(--text-lg); /* Было var(--text-xl) */
}

/* Шаг 3: Пропорционально уменьшаем заголовки карточек на мобильных устройствах. */
@media (max-width: 768px) {
    h3, .explanation-card h3, .problem-card h3, .solution-card h3, .expert-card h3, .offer-card h3, .role-card h4, .principle-card h3, .package-header h3, .quiz-cta-text h3, .case-detailed-header h3 {
        font-size: 1.3rem; /* Было 1.5rem */
    }
}

/* --- СТИЛИ ДЛЯ ДЕКОРАТИВНЫХ БОКОВЫХ СВЕЧЕНИЙ (УВЕЛИЧЕННАЯ ВЕРСИЯ) --- */

/* 1. Базовый стиль для секций, которые будут иметь свечение */
.has-glow {
    position: relative; 
}

/* 2. Обновленный общий вид для всех свечений */
.has-glow::before {
    content: '';
    position: absolute;
    z-index: 0; 
    width: 800px; /* ЗНАЧИТЕЛЬНО УВЕЛИЧИВАЕМ ШИРИНУ */
    height: 2600px; /* И ВЫСОТУ */
    background: radial-gradient(ellipse at center,    rgb(38, 223, 180) 0%, rgba(162, 0, 216, 0.169) 40%);
    filter: blur(100px); /* УСИЛИВАЕМ РАЗМЫТИЕ для большей мягкости */
    pointer-events: none;
}

/* 3. Расположение каждого свечения индивидуально */

/* 1-е: Справа, между "опытом в цифрах" и "цифровым фундаментом" */
.stats-section.has-glow::before {
    right: -400px; /* Смещаем дальше от контента, чтобы было видно только край */
    top: 0%;
    transform: translateY(-50%);
}

/* 2-е: Слева, между отзывом и "решаем IT-хаос" */
.video-testimonial-section.has-glow::before {
    left: -400px; /* Смещаем дальше от контента */
    bottom: 0;
    transform: translateY(50%);
}

/* 3-е: Справа, между "IT-стандартами" и "кейсами" */
.roles-section.has-glow::before {
    right: -400px; /* Смещаем дальше от контента */
    bottom: 0;
    transform: translateY(50%);
}

/* 4-е: Ваша идеальная версия для финального блока (остается без изменений) */
.cta-final-section.has-glow::before {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(65%);
    width: 1200px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgb(38, 223, 180) 0%, rgba(162, 0, 216, 0.235) 80%);
    filter: blur(80px);
    z-index: 0;
}

/* 5. Отключаем свечения на мобильных устройствах, чтобы не перегружать экран */
@media (max-width: 1024px) {
    .has-glow::before {
        display: none;
    }
}
.cta-final-section {
    overflow: hidden;
}

/* ================================================== */
/* 36. СТИЛИ ДЛЯ БЛОКА "ЦИФРОВОЙ ТРИУМФ" (V2)    */
/* ================================================== */

.dental-solution-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden; /* Важно, чтобы свечение не выходило за пределы секции */
}

/* Добавляем фоновый паттерн в секцию */
.dental-solution-section.section-pattern::before {
    background-image:
        radial-gradient(circle at 10% 20%, var(--accent-turquoise) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, var(--accent-fuchsia) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
}

.dental-card-v2 {
    position: relative;
    margin-top: 6rem;
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    background: rgba(18, 24, 33, 0.7); /* Более плотный фон для читаемости */
}

.dental-card-image {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

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

.dental-card-content {
    flex-grow: 1;
    margin-left: 380px; /* Создаем пространство для изображения */
    position: relative;
    z-index: 2;
}

.dental-title {
    font-size: var(--text-3xl);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dental-title strong {
    color: var(--accent-turquoise);
    font-weight: 900;
}

.dental-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2rem;
}

.dental-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.dental-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dental-feature-item:hover {
    background: rgba(51, 225, 237, 0.1);
    border-color: var(--accent-turquoise);
    color: var(--accent-turquoise);
    transform: translateY(-3px);
}

.dental-feature-item i {
    color: var(--accent-turquoise);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .dental-card-v2 {
        flex-direction: column;
        margin-top: 4rem;
        padding: 2rem;
    }
    .dental-card-image {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 250px;
        margin-bottom: 2rem;
    }
    .dental-card-content {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
    .dental-features {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dental-features {
        flex-direction: column;
        align-items: center;
    }
    .dental-title {
        font-size: var(--text-2xl);
    }
}
/* ================================================== */
/* 38. СТИЛИ ДЛЯ СТРАНИЦЫ "КАК МЫ РАБОТАЕМ"       */
/* ================================================== */

.workflow-section {
    padding: 2rem 0 6rem 0;
}

.roadmap-container {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

/* Вертикальная линия-таймлайн */
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 58px; /* (120px / 2) - (4px / 2) */
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-turquoise), var(--accent-fuchsia));
    opacity: 0.3;
    z-index: 0;
}

.step-card {
    position: relative;
    padding: 2.5rem;
    padding-left: 150px; /* Отступ слева для номера и иконки */
    background: var(--background-panel);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent-turquoise);
    transform: translateX(10px);
    box-shadow: 0 0 30px -5px var(--accent-turquoise-glow);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-number {
    position: absolute;
    left: -20px;
    top: -15px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.step-icon {
    position: absolute;
    left: 36px; /* (120px - 48px) / 2 */
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-dark);
    border: 2px solid var(--accent-turquoise);
    color: var(--accent-turquoise);
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--accent-turquoise);
    color: var(--background-dark);
    transform: translateY(-50%) scale(1.1);
}

.step-title {
    flex-grow: 1;
}

.step-title h3 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-timeline {
    font-size: var(--text-sm);
    color: var(--accent-turquoise);
    font-weight: 500;
    margin: 0;
}

.step-body ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.step-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-turquoise);
}

.step-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--text-secondary);
}

/* Адаптивность для страницы */
@media (max-width: 768px) {
    .roadmap-container {
        gap: 2rem;
    }
    .roadmap-container::before {
        left: 28px; /* (60px / 2) - 2px */
    }
    .step-card {
        padding: 2rem;
        padding-left: 80px;
    }
    .step-icon {
        left: 10px;
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    .step-number {
        font-size: 4rem;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 1.5rem;
        padding-top: 4rem; /* Делаем отступ сверху для заголовка */
    }
    .step-header {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        margin-bottom: 0;
    }
    .roadmap-container::before, .step-icon {
        display: none; /* Скрываем таймлайн на очень маленьких экранах */
    }
    .step-card {
        padding-left: 1.5rem;
    }
    .step-title h3 {
        font-size: 1.5rem;
    }
}

/* ================================================== */
/* 39. СТИЛИ СПЕЦИАЛЬНО ДЛЯ WEBSITES.HTML         */
/* ================================================== */

/* --- Общие хелперы --- */
.cta-button.full-width {
    width: 100%;
}

.cta-button.outline {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
.cta-button.outline:hover {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: var(--background-dark);
}

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

/* --- Стили для <select> (Калькулятор и формы) --- */
.form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2333E1ED'%3E%3Cpath d='M8 11.207L3.4 6.607a.5.5 0 0 1 .707-.707L8 9.793l3.893-3.893a.5.5 0 0 1 .707.707L8 11.207z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* место для стрелки */
    cursor: pointer;
}
.form-select:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 10px var(--accent-turquoise-glow);
}
.page-websites .roi-calculator-wrapper .form-select {
    background-color: var(--background-dark); /* Темный фон для калькулятора */
}




/* Стили для бейджей "152-ФЗ" и т.д. */
.page-websites .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.page-websites .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 500;
}

.page-websites .trust-badge i {
    color: var(--accent-turquoise);
}

.page-websites .modal-form label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.page-websites .cta-form-container .form-contact-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}
.page-websites .cta-form-container .form-contact-info p {
    margin-bottom: 0.5rem;
}
.page-websites .cta-form-container .form-contact-info .contact-link {
    color: var(--accent-turquoise);
    font-weight: 500;
}

/* --- 2. Стили для калькулятора --- */
.page-websites #calc-promotion-note {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.page-websites .roi-total #calc-result-price {
    font-size: 2.5rem; 
}

/* --- 3. Стили для карточек "Наши работы" --- */
.page-websites .case-detailed-card .case-detailed-header {
    align-items: flex-start;
    gap: 1.5rem;
}

/* --- Стили для иконок в карточках "Наши работы" --- */
.page-websites .case-icon-placeholder {
    font-size: 3.5rem; /* Размер иконки */
    color: var(--accent-turquoise); /* Цвет иконки */
    width: 100px; /* Фиксированная ширина, как у картинки */
    height: 100px; /* Фиксированная высота, как у картинки */
    display: flex; /* Делаем flex-контейнером */
    align-items: center; /* Выравниваем по центру по вертикали */
    justify-content: center; /* Выравниваем по центру по горизонтали */
    border-radius: 15px; /* Закругленные углы */
    flex-shrink: 0; /* Чтобы иконка не сжималась */
    background: rgba(255, 255, 255, 0.05); /* Фон иконки */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
}

.page-websites .case-detailed-card .case-title {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.page-websites .case-detailed-card .case-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--background-dark);
}

.page-websites .case-tag.premium-tag { background-color: var(--accent-turquoise); }
.page-websites .case-tag.business-tag { background-color: #f1c40f; }
.page-websites .case-tag.ultra-tag { background-color: var(--accent-fuchsia); }
.page-websites .case-tag.start-tag { background-color: #bdc3c7; }

.page-websites .case-detailed-card .case-detailed-stats {
    margin-top: auto; /* Прижимает статистику к низу */
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-websites .case-detailed-card .case-footer {
    text-align: center;
}

/* --- 4. Стили для аккордеона "Что вы получаете" --- */
.page-websites .faq-answer.details-content {
    /* Добавляем отступы внутрь */
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.page-websites .faq-answer.details-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.page-websites .faq-answer.details-content li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.page-websites .faq-answer.details-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-turquoise);
    font-weight: 700;
    font-size: 1.1rem;
}

.page-websites .faq-answer.details-content li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.page-websites .faq-answer.details-content .cta-button {
    margin-top: 1rem;
}

/* Исправляем отступы по умолчанию для ВСЕХ аккордеонов, чтобы они были внутри */
.faq-answer {
    padding: 0 !important;; /* Убираем отступ с контейнера */
}
.faq-answer p {
    /* Добавляем отступ к параграфу (для index.html) */
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.competitors-title {
    padding-top: var(--section-padding); /* Use standard section padding */
}

.comparison-section {
    padding: var(--section-padding); /* Use standard section padding */
}
/* --- 5. Стили для таблицы "Сравните пакеты" --- */
.comparison-section .table-container {
    padding: 1rem;
    overflow-x: auto; /* Включаем горизонтальный скролл на мобильных */
}

.comparison-table {
    width: 100%;
    min-width: 900px; /* Минимальная ширина, чтобы заставить скроллиться */
    border-collapse: collapse;
    text-align: center;
    font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table thead th {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom-width: 2px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    vertical-align: bottom;
}

.comparison-table tbody th {
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.comparison-table tbody td {
    color: var(--text-secondary);
    line-height: 1.5;
}

.comparison-table .fa-check {
    color: var(--accent-turquoise);
}

.comparison-table .fa-times {
    color: var(--accent-fuchsia);
}

/* Подсветка колонки "Премиум" */
.comparison-table .highlight {
    background: rgba(51, 225, 227, 0.05);
}

.comparison-table thead .highlight {
    color: var(--accent-turquoise);
    font-size: 1.1rem;
    border-left: 1px solid rgba(51, 225, 227, 0.2);
    border-right: 1px solid rgba(51, 225, 227, 0.2);
}

.comparison-table tbody .highlight {
    border-left: 1px solid rgba(51, 225, 227, 0.2);
    border-right: 1px solid rgba(51, 225, 227, 0.2);
}

.comparison-table .highlight strong {
    color: var(--text-primary);
    font-weight: 700;
}

.comparison-table .cta-button.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.comparison-card {
    display: flex; /* <-- ДОБАВЛЕНО */
    flex-direction: column; /* <-- ДОБАВЛЕНО */
    height: 100%; /* <-- ДОБАВЛЕНО (для одинаковой высоты) */
}

/* Это правило нацелено на блок "ИТОГО" в каждой карточке */
.comparison-card > div:last-child {
    margin-top: auto; /* <-- Это прижмет блок "ИТОГО" к низу */
}
/* --- 6. Мелкие исправления для websites.html --- */
.page-websites .case-detailed-header {
    /* На index.html иконка и заголовок */
    /* На websites.html картинка и (заголовок + тег) */
    display: flex;
    align-items: flex-start; /* Меняем с 'center' на 'flex-start' */
}

/* Фикс для страницы "Как мы работаем", чтобы отступы были корректными */
.page-websites .step-body p {
    margin-bottom: 1rem;
}
.page-websites .step-body p:last-child {
    margin-bottom: 0;
}

/* ================================================== */
/* 40. СТИЛИ ДЛЯ СЕТКИ ПАКЕТОВ (WEBSITES.HTML)     */
/* ================================================== */

/* * 1. Переключаем сетку на 2x2, чтобы карточки стали шире
 * и не выглядели "сплюснутыми". 
 * На экранах < 1024px они автоматически станут 1x4.
 */
@media (min-width: 1025px) {
    .page-websites .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. Уменьшаем размер текста внутри карточек */
.page-websites .package-card .package-subtitle,
.page-websites .package-card .package-timeline,
.page-websites .package-card .package-description,
.page-websites .package-card .package-features {
    font-size: var(--text-sm); /* 0.95rem */
    line-height: 1.6;
}

/* 3. Делаем список фич компактнее */
.page-websites .package-card .package-features li {
    margin-bottom: 0.6rem; /* Уменьшаем отступ */
}

/* 4. Выравнивание кнопок по низу (оставляем) */
.page-websites .package-footer {
    margin-top: auto; 
}

/* ================================================== */
/* 42. ВОССТАНОВЛЕНИЕ СТИЛЕЙ ДЛЯ ФИНАЛЬНОЙ ФОРМЫ    */
/* (После правок Hero-блока)                        */
/* ================================================== */

/* 1. Стили для контейнера "glass-panel" в Cta-Final */
.page-websites .cta-form-container {
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Стили для элементов формы внутри этого контейнера */
/* (Используем .cta-form-container, чтобы не задеть другие .modal-form) */
.page-websites .cta-form-container .modal-form .form-group {
    margin-bottom: 1rem; /* Компактный отступ между полями */
}

.page-websites .cta-form-container .modal-form label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.page-websites .cta-form-container .modal-form .form-consent {
    margin-top: 1rem;
    margin-bottom: 1.5rem; /* Отступ перед кнопкой */
}

/* 3. Стили для доп. информации под формой */
.page-websites .cta-form-container .form-contact-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}
.page-websites .cta-form-container .form-contact-info p {
    margin-bottom: 0.5rem;
}
.page-websites .cta-form-container .form-contact-info .contact-link {
    color: var(--accent-turquoise);
    font-weight: 500;
}

/* =======================================
   ПРЕДУПРЕЖДЕНИЕ О COOKIE
   ======================================= */
.cookie-consent-banner {
    /* display: none; */ /* УБРАЛИ display: none */
    visibility: hidden; /* ДОБАВИЛИ: Скрыто, но занимает место */
    opacity: 0;         /* ДОБАВИЛИ: Полностью прозрачно */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    background: rgba(10, 20, 35, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    /* ОБНОВИЛИ transition: добавили opacity и visibility */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0s linear 0.4s; 
    transform: translateY(100%); /* Начинаем снизу */
}

.cookie-consent-banner.active {
    /* display: block; */ /* УБРАЛИ display: block */
    visibility: visible; /* ДОБАВИЛИ: Делаем видимым */
    opacity: 1;          /* ДОБАВИЛИ: Делаем непрозрачным */
    transform: translateY(0); /* Поднимаем на место */
    /* ОБНОВИЛИ transition для обратной анимации */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0s linear 0s; 
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #eee;
    line-height: 1.5;
}

.cookie-content p a {
    color: var(--accent-turquoise);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-content .cta-button.small {
    flex-shrink: 0; /* Не сжимать кнопку */
    min-width: 130px;
    padding: 0.75rem 1.5rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem 0;
    }
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .cookie-content .cta-button.small {
        width: 100%;
    }
}

/* Fix for Technology Card Titles */
#tech-2026 .principle-card h3 {
    font-size: 1.2rem; /* Make titles slightly smaller */
    line-height: 1.3; /* Adjust line height accordingly */
}

/* Hide Advertising Spend slider in ROI calculator */
#ad-spend-group {
  display: none;
}

/* --- СТИЛИ ДЛЯ 3D-ФОНА UNICORN STUDIO --- */
.unicorn-background {
    position: fixed;
    
    /* 1. Делаем фон БОЛЬШЕ экрана (например, 120%) */
    width: 120vw;
    height: 120vh;
    
    /* 2. Центрируем увеличенный фон */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* 3. Остальные настройки */
    z-index: -1; 
    pointer-events: none; 
    opacity: 0.3; /* Ваша прозрачность 70% */
}

/* Этот код оставляем без изменений */
.page-content, 
.hero-content, 
.main-header, 
.main-footer,
.section-scroll-target {
    position: relative;
    z-index: 2; 
}

