html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Обновленная цветовая палитра */
:root {
    --color-50: #F1F7FD;
    --color-100: #DFEDFA;
    --color-150: #E8F0FB;
    --color-200: #C6DFF7;
    --color-300: #9ECCF2;
    --color-400: #70B0EA;
    --color-500: #4F91E2;
    --color-600: #3A76D6;
    --color-700: #3366CC;
    --color-800: #2E509F;
    --color-900: #2A467E;
    --color-950: #1E2C4D;

    /* Утилитарные значения */
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --shadow-sm: 0 4px 6px -1px rgba(51, 102, 204, 0.3);
    --shadow-md: 0 4px 15px -1px rgba(51, 102, 204, 0.1), 0 2px 10px -1px rgba(51, 102, 204, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(51, 102, 204, 0.1), 0 10px 10px -5px rgba(51, 102, 204, 0.05);
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Утилитарные классы для уменьшения дублирования */
.glass-bg {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.hover-lift {
    transition: var(--transition-smooth);
}

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

.hover-lift-sm:hover {
    transform: translateY(-5px);
}

.hover-lift-lg:hover {
    transform: translateY(-10px);
}

.flex-col-full {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.border-light {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Улучшенная адаптивная сетка контейнеров */
.container-adaptive {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-adaptive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-adaptive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-adaptive {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .container-adaptive {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Фоны для секций */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-100) 0%, var(--color-150) 60%);
    position: relative;
    overflow: hidden;
}

.features-bg {
    background: linear-gradient(to bottom, var(--color-150) 0%, var(--color-200) 100%);
    position: relative;
}

.demo-bg {
    background: linear-gradient(to bottom, var(--color-200) 0%, var(--color-150) 100%);
    position: relative;
}

.solutions-bg {
    background: linear-gradient(to bottom, var(--color-150) 0%, var(--color-100) 100%);
    position: relative;
}


.business-bg {
    background: linear-gradient(to bottom, var(--color-100) 0%, var(--color-200) 100%);
    position: relative;
}

.faq-bg {
    background: linear-gradient(to bottom, var(--color-200) 0%, var(--color-150) 100%);
    position: relative;
}

.support-bg {
    background: linear-gradient(to bottom, var(--color-150) 0%, var(--color-150) 100%);
    position: relative;
}

/* Текстовые стили */
.text-on-gradient {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-on-dark {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #111827;
    font-weight: 800;
}

.text-contrast {
    color: #111827;
    font-weight: 700;
}

.bg-text-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.gradient-text {
    color: var(--color-800);
    font-weight: 800;
}

/* Карточки */
.feature-card,
.card-hover,
.solution-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover,
.card-hover:hover,
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(112, 176, 234, 0.3);
}

.solution-card {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.solution-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    transition: var(--transition-base);
    color: var(--color-700);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Сетки */
.responsive-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

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

/* Аккордеон */
.accordion-item {
    transition: var(--transition-base);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.25rem;
    background-color: white;
    border-radius: var(--border-radius);
}

.accordion-item.active .accordion-header {
    background-color: #f9fafb;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition-base);
    background-color: white;
    padding: 0 1.25rem;
}

.accordion-icon {
    padding: 8px;
    transition: var(--transition-base);
}

/* Процесс */
.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.process-step::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 30px;
    height: calc(100% - 15px);
    width: 2px;
    background: linear-gradient(to bottom, var(--color-700) 0%, rgba(112, 176, 234, 0.2) 100%);
}

.process-step:last-child::before {
    display: none;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    background: var(--color-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

/* Табы */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Поля ввода */
.input-focus {
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.input-focus:focus {
    border-color: var(--color-500);
    box-shadow: 0 0 0 3px rgba(112, 176, 234, 0.2);
    outline: none;
}

/* Кнопки */
.btn-gradient {
    background: var(--color-700);
    color: white;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(51, 102, 204, 0.3);
    background: var(--color-800);
}

/* Карточки тарифов */
.pricing-card {
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card-features {
    flex-grow: 1;
}

.pricing-card.popular {
    z-index: 2;
    background: var(--color-700);
}

.pricing-card.popular .pricing-header {
    color: white;
}

.pricing-card.popular .pricing-header h3,
.pricing-card.popular .pricing-header p,
.pricing-card.popular .pricing-header .price {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular .pricing-header .opacity-90 {
    color: rgba(255, 255, 255, 0.9);
}

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

/* Навигация и футер */
.footer-icon,
.nav-link {
    transition: var(--transition-base);
}

.footer-icon:hover {
    transform: translateY(-3px);
    color: var(--color-400);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-700);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Секции */
.section-divider {
    height: 4px;
    width: 60px;
    background: var(--color-700);
    margin: 0 auto 2rem;
    border-radius: var(--border-radius);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Анимации */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: var(--color-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 90;
    box-shadow: 0 4px 10px rgba(51, 102, 204, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(51, 102, 204, 0.4);
}

/* Бизнес-карточки */
.business-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.business-card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(51, 102, 204, 0.1) 0%, rgba(51, 102, 204, 0.8) 100%);
}

.business-card-content {
    position: relative;
    z-index: 2;
}

/* Логотип */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 47.7px;
    height: 40px;
    margin-right: 10px;
}

/* Документы в футере */
.footer-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-docs a {
    position: relative;
    padding-right: 1rem;
}

.footer-docs a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* FAQ ссылки */
.faq-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(51, 102, 204, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.faq-link:hover {
    background-color: rgba(51, 102, 204, 0.1);
    transform: translateX(5px);
}

.faq-link i {
    margin-right: 0.75rem;
    color: var(--color-700);
}

/* Иллюстрация для героя */
.hero-illustration {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

/* ============ МОДАЛЬНОЕ ОКНО ============== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 44, 77, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-container {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 600px;
    margin: 1rem;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay[aria-hidden="false"] .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--color-100);
    color: var(--color-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.modal-close-btn:hover {
    background-color: var(--color-200);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

/* Формы */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    display: block;
}

.input-focus.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.input-focus.is-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============ DEMO СЕКЦИЯ - АДАПТИВНЫЕ КОНТЕЙНЕРЫ ============== */

.demo-decoration-1,
.demo-decoration-2 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 176, 234, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.demo-decoration-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
}

.demo-decoration-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -100px;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .demo-container {
        gap: 3rem;
    }
}

/* Адаптивные карточки демо */
.demo-control-card,
.demo-result-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    /* Фиксированная минимальная высота */
    height: 100%;
    /* Растягивание на всю высоту контейнера */
}

.demo-control-card:hover,
.demo-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.demo-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.demo-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.demo-card-header,
.demo-result-header {
    text-align: center;
    margin-bottom: 1rem;
}

.demo-card-title,
.result-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.demo-card-subtitle {
    color: #64748b;
    font-size: 0.9375rem;
}

/* Адаптивные области контента с учетом разных состояний */
.demo-control-area,
.demo-result-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 400px;
    overflow: hidden;
}

/* Дополнительная высота для состояния записи */
.demo-control-area:has(.demo-recording-content.active) {
    min-height: 500px;
}

.demo-state,
.result-state {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.demo-state.active,
.result-state.active {
    opacity: 1;
    visibility: visible;
}

/* Состояние: готов к записи */
.demo-ready-content {
    text-align: center;
    width: 100%;
}

.microphone-button-container {
    margin-bottom: 2rem;
}

.microphone-button {
    position: relative;
    width: 120px;
    height: 120px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.microphone-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.microphone-button:active {
    transform: scale(0.98);
}

.microphone-icon {
    font-size: 2.5rem;
    color: white;
}

.microphone-pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

.microphone-pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.demo-instruction {
    font-size: 1.125rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.demo-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.demo-feature i {
    color: #3b82f6;
}

/* Состояние: запись */
.demo-recording-content {
    text-align: center;
    width: 100%;
    min-height: 0;
}

.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(to top, #2563eb, #3b82f6, #60a5fa);
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
    transform-origin: bottom;
}

.wave-bar:nth-child(1) {
    animation-delay: 0s;
    height: 30px;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 45px;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 70px;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 55px;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 80px;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.3s;
    height: 55px;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.2s;
    height: 70px;
}

.wave-bar:nth-child(8) {
    animation-delay: 0.1s;
    height: 45px;
}

@keyframes wave {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(0.4);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.recording-text {
    color: #ef4444;
    font-weight: 600;
    font-size: 1.125rem;
}

.recording-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 6;
}

.timer-circle-progress {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.1s ease;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-display {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.timer-max {
    font-size: 0.625rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.stop-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.stop-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Состояние: обработка */
.demo-processing-content {
    text-align: center;
    width: 100%;
}

.processing-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

.processing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.processing-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 3px;
    animation: progress 2s ease-in-out;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 90%;
    }
}

/* Состояние: ошибка */
.demo-error-content {
    text-align: center;
    width: 100%;
}

.error-icon {
    color: #ef4444;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.error-message {
    color: #64748b;
    margin-bottom: 2rem;
}

.retry-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-button:hover {
    background: #2563eb;
}

/* Результат - пустое состояние */
.result-empty {
    text-align: center;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    display: block;
}

.empty-subtitle {
    color: #64748b;
    font-size: 1rem;
    max-width: 280px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Результат - с контентом */
.result-content {
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.result-textarea-container {
    width: 100%;
    flex: 1;
    margin-bottom: 1.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--color-100) 0%, var(--color-150) 100%);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    /* Увеличен с 0.25rem */
    border: 1px solid var(--color-200);
    /* Добавлена граница */
    box-shadow: 0 2px 8px rgba(51, 102, 204, 0.08);
    /* Добавлена тень */
}

.result-textarea {
    width: 100%;
    min-height: 100%;
    padding: 2rem;
    /* Увеличен с 1.5rem */
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
    background: white;
    resize: none;
    transition: box-shadow 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /* Усилена тень */
}

.result-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    /* Легкий подъем при фокусе */
}

/* Альтернативный вариант - если хотите еще более контрастный */
.result-textarea-container.high-contrast {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    width: 100%;
}

.result-textarea-container.high-contrast .result-textarea {
    padding: 2.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Кастомная полоса прокрутки */
.result-textarea::-webkit-scrollbar {
    width: 10px;
    /* Увеличена ширина */
}

.result-textarea::-webkit-scrollbar-track {
    background: var(--color-100);
    border-radius: 5px;
}

.result-textarea::-webkit-scrollbar-thumb {
    background: var(--color-300);
    border-radius: 5px;
    border: 2px solid var(--color-100);
    /* Добавлена граница */
}

.result-textarea::-webkit-scrollbar-thumb:hover {
    background: var(--color-400);
}

/* Подвал результата */
.result-footer {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--border-radius-lg);
    margin: 0 -1rem -1rem;
}

.result-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: #e2e8f0;
}

.stat-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.stat-item strong {
    color: #1e293b;
    font-weight: 600;
}

.result-actions {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    justify-content: space-between;
}

.action-button {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.08);
    transition: width 0.3s ease;
}

.action-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

.action-button:hover::before {
    width: 100%;
}

.action-button i,
.action-button span {
    position: relative;
    z-index: 1;
}

/* Подвал демо */
.demo-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.demo-info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-icon {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.info-text strong {
    color: #1e293b;
    font-weight: 600;
}

.info-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ============ АДАПТИВНАЯ ТИПОГРАФИКА И ОТСТУПЫ ============== */

.responsive-text-xl {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.responsive-text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.responsive-text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.responsive-text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

@media (min-width: 640px) {
    .responsive-text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .responsive-text-2xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .responsive-text-3xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .responsive-text-4xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 768px) {
    .responsive-text-xl {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    .responsive-text-2xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .responsive-text-3xl {
        font-size: 3rem;
        line-height: 1;
    }

    .responsive-text-4xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .demo-control-area,
    .demo-result-body {
        min-height: 450px;
    }

    .sound-wave {
        height: 100px;
        margin-bottom: 2rem;
    }

    .recording-status {
        margin-bottom: 2rem;
    }

    .recording-timer {
        margin-bottom: 2rem;
    }

    .timer-circle {
        width: 120px;
        height: 120px;
    }

    .stop-button {
        padding: 1rem 2rem;
        margin-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .responsive-text-xl {
        font-size: 1.575rem;
        line-height: 2.25rem;
    }

    .responsive-text-2xl {
        font-size: 2.5rem;
        line-height: 1;
    }

    .responsive-text-3xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .responsive-text-4xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .demo-control-area,
    .demo-result-body {
        min-height: 500px;
    }

    .demo-control-area:has(.demo-recording-content.active),
    .demo-control-card.recording .demo-control-area {
        min-height: 600px;
    }
}

.responsive-py {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .responsive-py {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .responsive-py {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .responsive-py {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 640px) {
    .section-padding {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.btn-responsive {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

@media (min-width: 360px) {
    .btn-responsive {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
}

@media (min-width: 480px) {
    .btn-responsive {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 600px) {
    .btn-responsive {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
}

@media (min-width: 767px) {
    .btn-responsive {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 801px) {
    .btn-responsive {
        padding: 0.75rem 1.3rem;
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .btn-responsive {
        padding: 0.9375rem 2.25rem;
        font-size: 1.1875rem;
    }
}

.card-responsive {
    padding: 1rem;
}

@media (min-width: 640px) {
    .card-responsive {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .card-responsive {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .card-responsive {
        padding: 2rem;
    }
}

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

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

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

.business-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.instructions-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

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

.support-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

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

/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ ============== */

@media (max-width: 768px) {

    .demo-control-card,
    .demo-result-card {
        padding: 1.5rem;
    }

    .demo-control-area,
    .demo-result-body {
        min-height: 320px;
    }

    .demo-control-area:has(.demo-recording-content.active),
    .demo-control-card.recording .demo-control-area {
        min-height: 420px;
    }

    .microphone-button {
        width: 100px;
        height: 100px;
    }

    .microphone-icon {
        font-size: 2rem;
    }

    .sound-wave {
        height: 60px;
        margin-bottom: 1rem;
    }

    .recording-status {
        margin-bottom: 1rem;
    }

    .recording-timer {
        margin-bottom: 1rem;
    }

    .timer-circle {
        width: 120px;
        height: 120px;
    }

    .stop-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .demo-features {
        gap: 1rem;
    }

    .result-textarea-container {
        padding: 0.375rem;
        margin-bottom: 1rem;
    }

    .result-textarea {
        padding: 1.5rem;
        min-height: 100%;
        font-size: 0.9375rem;
    }

    .result-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .result-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .demo-info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 639px) {
    .footer-docs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-docs a:not(:last-child)::after {
        display: none;
    }

    .process-step {
        padding-left: 50px;
    }

    .process-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .accordion-header {
        padding: 1rem;
    }

    .accordion-content {
        padding: 0 1rem;
    }

    .accordion-item.active .accordion-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {

    .demo-control-area,
    .demo-result-body {
        min-height: 280px;
    }

    .demo-control-area:has(.demo-recording-content.active),
    .demo-control-card.recording .demo-control-area {
        min-height: 380px;
    }

    .demo-card-title,
    .result-title {
        font-size: 1.25rem;
    }

    .demo-instruction {
        font-size: 1rem;
    }

    .result-textarea {
        padding: 1.25rem;
        min-height: 100%;
    }

    .result-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-button {
        flex: 1;
        justify-content: center;
    }
}

.nav-responsive {
    display: none;
}

@media (min-width: 768px) {
    .nav-responsive {
        display: flex;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .nav-responsive {
        gap: 2rem;
    }
}

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

@media (min-width: 768px) {
    .flex-responsive {
        flex-direction: row;
        gap: 2rem;
    }
}