﻿/* ==================== CSS РЕСЕТ И БАЗОВЫЕ СТИЛИ ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f97316;
    --light: #f8fafc;
    --gray: #475569;
    --dark-gray: #1e293b;
    --white: #ffffff;
    --black: #0f172a;
    --success: #10b981;
    --error: #dc2626;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

.clearfix {
    clear: both;
}

/* ==================== ТИПОГРАФИЯ ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--secondary);
}

h2 {
    font-size: 2rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

/* ==================== КНОПКИ ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

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

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

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

.btn-gray {
    background-color: var(--gray);
    color: var(--white);
}

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

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

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

.btn-fit {
    width: auto !important;
    min-width: 140px;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

@media (min-width: 769px) {
    .btn-fit { min-width: 160px; }
}

@media (max-width: 768px) {
    .btn-fit {
        width: 100% !important;
        max-width: 300px;
    }
}

.btn:disabled,
.btn-primary:disabled,
.btn-accent:disabled,
.btn-gray:disabled,
.btn-dark:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover,
.btn-primary:disabled:hover,
.btn-accent:disabled:hover,
.btn-gray:disabled:hover,
.btn-dark:disabled:hover {
    background-color: inherit !important;
    color: inherit !important;
    border-color: transparent !important;
}

/* Кнопка-заглушка «Скоро на сайте» */
.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
    background-color: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
    pointer-events: none;
    border: 2px solid transparent;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 80px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: #f97316;
    font-size: 1.5rem;
    white-space: nowrap;
}

/* Кнопка телефона — белая по умолчанию, рыжий ободок */
.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    margin: 0 15px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--accent);
}

.phone:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #f97316;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #60a5fa;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #60a5fa;
    border-radius: 2px;
}

header .mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f97316;
    flex-shrink: 0;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    line-height: 1;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    padding: 120px 0;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 2;
    animation: heroOverlayPulse 7s ease-in-out infinite;
}

@keyframes heroOverlayPulse {
    0%, 100% { background: rgba(15, 23, 42, 0.85); }
    50%      { background: rgba(15, 23, 42, 0.25); }
}

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

.hero-heading {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #f1f5f9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-description p {
    color: #f1f5f9;
    margin-bottom: 0;
}

.hero-description strong {
    color: #fbbf24;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-cta .btn-accent i {
    font-size: 2rem;
}

/* ==================== SERVICES / CATALOG ==================== */
.services {
    padding: 100px 0;
    background-color: white;
}

.catalog-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f1f5f9;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

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

.service-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.price {
    display: block;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 15px 0;
}

/* ==================== FEATURES ==================== */
.features {
    padding: 100px 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(249, 115, 22, 0.05) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
}

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

.feature-card {
    text-align: center;
    padding: 35px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(15, 23, 42, 0.05);
    border-bottom: 3px solid transparent;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border-bottom-color: var(--accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #334155;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

/* ==================== ABOUT ==================== */
.about {
    padding: 100px 0;
    background:
        radial-gradient(circle at 85% 85%, rgba(249, 115, 22, 0.05) 0%, transparent 55%),
        linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    background: #ffffff;
    padding: 50px 55px;
    border-radius: 16px;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06);
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Маркированный список в секции About */
.about-list {
    margin: 20px 0 20px 20px;
    color: var(--gray);
}

.about-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

.about-list li::before {
    content: '\2022';
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

.about-list strong {
    color: var(--secondary);
}

/* ==================== БЛОК ВИДЕО О КОМПАНИИ ==================== */
.company-video-wrapper {
    width: 300px;
    max-width: 100%;
    height: auto;
    float: left;
    margin: 5px 25px 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 3 / 2;
    background: #e2e8f0;
}

.company-video-wrapper .company-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ==================== CALCULATOR (главная) ==================== */
.calculator {
    padding: 100px 0;
    background-color: white;
    background-image: url('../images/calculator-bg-desktop.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.calc-intro {
    margin-bottom: 25px;
    text-align: center;
    color: var(--gray);
}

.calc-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.calc-group {
    margin-bottom: 25px;
}

.calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.calc-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #ffffff;
    color: var(--secondary);
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-input::placeholder {
    color: #94a3b8;
}

.calc-hint {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.85rem;
}

.calc-submit {
    width: 100%;
    margin-top: 10px;
}

.calc-result {
    margin-top: 30px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: none;
}

.calc-result.is-visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.calc-result-title {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.calc-result-params {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.calc-param {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.calc-param strong {
    color: var(--secondary);
    font-weight: 600;
}

.calc-result-finance {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.calc-row {
    margin-bottom: 15px;
}

.calc-row-total {
    border-top: 2px solid var(--primary);
    padding-top: 15px;
}

.calc-rental {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
}

.calc-deposit {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.calc-total {
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
}

.result-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
}

.result-note i {
    margin-right: 8px;
}

.calc-error {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 4px solid var(--error);
    border-radius: var(--border-radius);
    color: var(--error);
    font-weight: 600;
}

.calc-error.is-visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ==================== СЕКЦИЯ СТАТЕЙ (главная) ==================== */
.articles-section {
    padding: 100px 0;
    background-color: #f8fafc;
    margin-bottom: 0;
}

.articles-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    border-left-color: var(--primary);
}

.article-icon {
    width: 60px;
    height: 60px;
    background-color: #334155;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.35;
}

.article-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.article-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.article-card:hover .article-link {
    padding-left: 5px;
}

.articles-cta {
    text-align: center;
}

/* ==================== СТРАНИЦА STATI.HTML ==================== */
.articles-list {
    padding-top: 140px;
    padding-bottom: 100px;
}

.articles-list .section-subtitle,
.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
}

.article-time {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    margin: 15px 0;
}

/* Информационный блок «В разработке» */
.special-offer {
    background: rgba(249, 115, 22, 0.08);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
    margin-top: 30px;
    text-align: center;
}

.special-offer p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

.special-offer strong { color: var(--accent); }

.special-offer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.special-offer a:hover { text-decoration: none; }

/* ==================== CONTACT ==================== */
.contact-section {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 2;
}

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

.contact-heading {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.contact-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #f1f5f9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-description p {
    color: #f1f5f9;
    margin-bottom: 0;
}

.contact-description strong {
    color: #fbbf24;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .btn-primary {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    flex: 1;
}

.form-field.full-width {
    flex: 0 0 100%;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    background: rgba(15, 23, 42, 0.7);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.9);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    margin-bottom: 25px;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-info {
    margin-top: auto;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-info i {
    width: 16px;
    color: #f97316;
}

.footer-info-line {
    margin-top: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info-line i {
    color: var(--accent);
}

.footer-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #f97316;
    padding-left: 5px;
}

.footer-links i {
    width: 16px;
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a i {
    color: white;
}

.footer-social a:hover {
    background-color: white;
    transform: translateY(-3px);
}

.footer-social a:hover i {
    color: #64748b;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.footer-developer {
    margin-top: 10px;
}

.footer-developer a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-developer a:hover {
    color: #f97316;
}

/* ==================== ТЕХНИЧЕСКИЕ ТАБЛИЦЫ ==================== */
.tech-table {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

.tech-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: white;
}

.tech-table thead {
    background: #334155;
    color: white;
}

.tech-table th {
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-table th:last-child {
    border-right: none;
}

.tech-table tbody tr {
    transition: all 0.3s ease;
}

.tech-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.tech-table tbody tr:hover {
    background-color: #f1f5f9;
}

.tech-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    color: var(--dark-gray);
}

.tech-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
    width: 25%;
}

.tech-table tr:last-child td {
    border-bottom: none;
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.notification-success { background: #10b981; }
.notification-error   { background: #ef4444; }
.notification-info    { background: #3b82f6; }

.notification i {
    font-size: 1.2rem;
}

.notification span {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    font-size: 1rem;
}

.notification-close:hover {
    opacity: 0.8;
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonPulse {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ==================== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ==================== */

.hero-legal {
    padding: 140px 0 60px;
}

.hero-legal .hero-heading {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.legal-page {
    padding: 60px 0 100px;
    background-color: var(--white);
}

.legal-toc {
    margin-bottom: 50px;
    padding: 30px;
    background: #f8fafc;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

.legal-toc-title {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-toc-title i { color: var(--accent); }

.legal-toc-intro {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.legal-toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-toc-links .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
}

.legal-section {
    margin-bottom: 40px;
    padding: 30px 35px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    scroll-margin-top: 100px;
}

.legal-section-title {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    text-align: left;
}

.legal-subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.legal-list {
    margin: 15px 0 25px 20px;
    color: var(--dark-gray);
}

.legal-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.legal-list li::before {
    content: '\2022';
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.legal-list a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-list a:hover { color: var(--accent); }

.legal-callout {
    margin: 30px 0;
    padding: 25px 30px;
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    border-radius: var(--border-radius);
}

.legal-callout-title {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-callout-title i { color: var(--accent); }

.legal-callout p {
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}

.legal-contacts {
    margin-top: 20px;
    padding: 25px 30px;
    background: #f8fafc;
    border-radius: var(--border-radius);
}

.legal-contacts-title {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-contacts-title i { color: var(--accent); }

.legal-contacts p {
    margin-bottom: 10px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-contacts p:last-child { margin-bottom: 0; }

.legal-contacts i {
    color: var(--primary);
    width: 16px;
}

.legal-contacts a {
    color: var(--primary);
    font-weight: 600;
}

.legal-contacts a:hover { color: var(--accent); }

.legal-update {
    margin-top: 30px;
    padding: 15px 20px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
}

.legal-update p {
    margin: 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-update i { color: var(--primary); }

.legal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.legal-section .tech-table table {
    min-width: 100%;
}

.legal-section .tech-table td {
    padding: 15px 20px;
}

.legal-section .tech-table td:first-child {
    width: 30%;
    white-space: nowrap;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 992px) {
    .header-container {
        padding: 12px 15px;
        min-height: 70px;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .phone {
        font-size: 0.95rem;
        padding: 8px 15px;
        margin: 0 10px;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links { gap: 1.5rem; }

    .hero-section { padding: 100px 0; }

    .hero-heading { font-size: 2.3rem; }

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

@media (max-width: 768px) {
    header .mobile-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
}

    .logo-text { display: none; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1e293b;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        gap: 0;
    }

    .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        color: white;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        overflow: hidden;
    }

    .logo {
        grid-column: 1;
        justify-self: start;
        min-width: 0;
        max-width: 40px;
    }

    .phone {
        grid-column: 2;
        justify-self: center;
        margin: 0;
        padding: 8px 10px;
        font-size: 0.9rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-section { padding: 80px 0; }

    .hero-heading {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        padding-top: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

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

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

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-col { text-align: left; }

    .footer-info p,
    .footer-info-line,
    .footer-links a {
        justify-content: flex-start;
    }

    .footer-col:first-child {
        text-align: center;
    }

    .footer-col:first-child .footer-info p,
    .footer-col:first-child .footer-info-line,
    .footer-col:first-child .footer-links a {
        justify-content: center;
    }

    .footer-col:last-child .footer-social {
        justify-content: center;
        text-align: center;
    }

    .footer-col:last-child .footer-social a {
        justify-content: center;
    }

    .btn {
        width: auto;
        min-width: 160px;
        padding: 12px 25px;
    }

    .contact-form .btn,
    .calc-actions .btn,
    .hero-cta .btn,
    .calc-submit {
        width: 100%;
        max-width: 300px;
    }

    .btn:hover {
        transform: translateY(-2px) !important;
    }

    .legal-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .legal-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 10px !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .company-video-wrapper {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .hero-bg::before {
        background-image: url('../images/hero-bg-mobile.jpg');
    }

    .contact-bg::before {
        background-image: url('../images/contact-bg-mobile.jpg');
    }

    .calc-container { padding: 20px; }
    .calc-result    { padding: 20px; }
    .calc-input     { padding: 12px 14px; }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    /* Секция статей на главной */
    .articles-section {
        padding: 60px 0 90px;
        border-bottom: 1px solid #e2e8f0;
    }

    .articles-intro {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 40px;
    }

    .article-card {
        padding: 22px 20px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid #cbd5e1;
        border-left: 5px solid var(--accent);
    }

    .article-card h3 { font-size: 1.1rem; }
    .article-card p  { font-size: 0.92rem; }

    /* Страница stati.html */
    .articles-list {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin: 0 auto 30px;
        padding: 0 10px;
    }

    .special-offer { padding: 18px 20px; }

    .btn-disabled {
        width: 100%;
        max-width: 300px;
    }

    /* Юридические страницы */
    .hero-legal {
        padding: 100px 0 40px;
    }

    .hero-legal .hero-heading {
        font-size: 1.8rem;
    }

    .legal-page {
        padding: 40px 0 70px;
    }

    .legal-toc {
        padding: 20px;
        margin-bottom: 30px;
    }

    .legal-toc-links {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .legal-toc-links .btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 14px 18px;
        white-space: normal;
        text-align: left;
    }

    .legal-section {
        padding: 22px 20px;
        margin-bottom: 25px;
        scroll-margin-top: 80px;
    }

    .legal-section-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .legal-subtitle { font-size: 1.1rem; }

    .legal-callout,
    .legal-contacts { padding: 20px; }

    .legal-buttons {
        flex-direction: column;
        align-items: center;
    }

    .legal-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .legal-section .tech-table td:first-child {
        width: auto;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
        min-height: 60px;
        gap: 10px;
    }

    .logo-img { height: 32px; }

    .phone {
        font-size: 1rem;
        padding: 8px 12px;
    }

    header .mobile-toggle { font-size: 1.3rem; }

    .nav-links { top: 60px; }

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

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

    .contact-form { padding: 25px 20px; }
}

@media (max-width: 400px) {
    .phone {
        font-size: 0.8rem;
        padding: 6px 8px;
        gap: 4px;
    }

    .header-container {
        padding: 8px 10px;
        gap: 6px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .company-video-wrapper {
        width: 350px;
        margin: 5px 20px 15px 0;
    }
}
/* ==================== ВИДИМЫЙ ФОКУС (доступность) ==================== */
/* Показывается только при навигации с клавиатуры — Tab, Shift+Tab */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Для тёмной шапки — белый контур, чтобы был виден на градиенте */
header a:focus-visible,
header button:focus-visible,
.nav-links a:focus-visible,
.logo:focus-visible,
.phone:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}

/* Убираем стандартную обводку у ссылок меню, когда она не нужна */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
/* ==================== КНОПКИ МЕССЕНДЖЕРОВ В ФОРМЕ ==================== */
.form-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn-messenger {
    flex: 1;
    min-width: 200px;
    padding: 14px 26px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    color: #fff;
    white-space: nowrap;
}

.btn-messenger--wa {
    background: #25D366;
}
.btn-messenger--wa:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-messenger--max {
    background: #6E3AFF;
}
.btn-messenger--max:hover {
    background: #5a2be0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110, 58, 255, 0.3);
}

.btn-messenger i {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .form-messengers {
        flex-direction: column;
    }
    .btn-messenger {
        min-width: 100%;
        width: 100%;
    }
}
/* ==================== УВЕДОМЛЕНИЕ О КОПИРОВАНИИ ==================== */
.messenger-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #0f172a;
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
    line-height: 1.5;
}

.messenger-toast--hide {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

@media (max-width: 480px) {
    .messenger-toast {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
/* ==================== ПОДСКАЗКА ПОД КНОПКАМИ МЕССЕНДЖЕРОВ ==================== */
.form-messengers-note {
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 0 10px;
}

.form-messengers-note i {
    color: #fbbf24;
    margin-right: 5px;
}
/* ==================== ЧЕКБОКС СОГЛАСИЯ ==================== */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 12px 0;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #f97316;
    cursor: pointer;
}

.checkbox-label a {
    color: #fbbf24;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #fff;
}
/* ==================== 1. ЗОЛОТАЯ НИТЬ ПОД ШАПКОЙ ==================== */
header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 50%, #f97316 100%);
    z-index: 10;
    pointer-events: none;
}

/* ==================== 3. КАРТОЧКИ КАТАЛОГА — 3D-ЭФФЕКТ ==================== */
.service-card {
    position: relative;
}
/* Тёмная полоса — всегда сверху, по умолчанию */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 2;
}
/* Рыжая полоса выезжает поверх тёмной при hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* ==================== 4. FEATURES — РЫЖИЕ ИКОНКИ ==================== */
.feature-card {
    border-bottom: 3px solid transparent;
    transition: all 0.4s ease;
}
.feature-card:hover {
    border-bottom-color: var(--accent);
}
.feature-icon {
    transition: all 0.4s ease;
    position: relative;
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
    transform: translateY(-5px) rotate(-6deg);
}

/* ==================== 5. РАЗДЕЛИТЕЛИ МЕЖДУ СЕКЦИЯМИ ==================== */
.services + .features,
.features + .about,
.about + .calculator,
.calculator + .articles-section {
    position: relative;
}
.services + .features::before,
.features + .about::before,
.about + .calculator::before,
.calculator + .articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 70%);
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #f97316 50%, transparent 100%);
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}
@media (max-width: 768px) {
    .about-content {
        padding: 28px 22px;
    }
}
/* ==================== HERO — УВЕЛИЧЕННАЯ ВЫСОТА (для страниц с коротким контентом) ==================== */
.hero-section--tall {
    min-height: 600px;
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-section--tall {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .hero-section--tall {
        min-height: 460px;
    }
}

@media (max-width: 480px) {
    .hero-section--tall {
        min-height: 420px;
    }
}
/* ==================== БЛОК ЦЕН В КАРТОЧКАХ ЛЕСОВ ==================== */
.price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 15px 0;
}
/* ==================== АККОРДЕОН FAQ ==================== */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    margin-bottom: 15px;
    overflow: hidden;
    border-left: 4px solid var(--accent);
    transition: box-shadow 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-header:hover {
    background-color: #f8fafc;
}

.faq-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.faq-header i {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-card.active .faq-content {
    max-height: 800px;
    padding: 0 25px 22px;
}

.faq-content p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .faq-header {
        padding: 18px 20px;
        gap: 12px;
    }

    .faq-header h3 {
        font-size: 1rem;
    }

    .faq-content {
        padding: 0 20px;
    }

    .faq-card.active .faq-content {
        padding: 0 20px 18px;
    }
}
/* ==================== КНОПКА "ОТПРАВИТЬ МЕНЕДЖЕРУ" — НА ВСЮ ШИРИНУ ==================== */
.calc-actions-order {
    display: block;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.calc-actions-order .btn,
.calc-actions-order .btn-accent {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: center;
}

@media (max-width: 768px) {
    .calc-actions-order .btn,
    .calc-actions-order .btn-accent {
        width: 100%;
        max-width: none;
    }
}
/* ==================== COOKIE-БАННЕР ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 16px 20px;
    z-index: 9999;
    display: none;
    border-top: 2px solid var(--accent);
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
    flex: 1;
    min-width: 250px;
}

.cookie-banner__content a {
    color: #fbbf24;
    text-decoration: underline;
}

.cookie-banner__btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cookie-banner__btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner__btn {
        width: 100%;
        text-align: center;
    }
}