:root {
    --primary: #006cb6;
    --primary-dark: #00528a;
    --accent: #21ad33;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Шапка */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Десктопная шапка */
.desktop-header {
    display: flex;
}


.mobile-header {
    display: none;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.work-hours__title {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.work-hours__note {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
}

.phone-note {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.messenger-links {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.messenger-icon {
    font-size: 28px;
    transition: transform 0.2s ease, opacity 0.2s;
    text-decoration: none;
}

.messenger-icon.tg { color: #0088cc; }
.messenger-icon.wa { color: #25D366; }

.messenger-icon:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('images/banner_background.jpg') center/cover no-repeat;
}

.hero-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero-subtitle strong {
    font-size: 1.8rem;
    color: var(--primary);
}

.hero-disclaimer {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.badge i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Формы */
.hero-form-wrapper, .contact-form-wrapper {
    flex: 0 0 400px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 108, 182, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.checkbox-group input {
    margin-top: 4px;
}

/* Общие секции */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Аршин */
.arshin-section {
    background: var(--bg-light);
}

.arshin-forms {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.arshin-block {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    max-width: 400px;
}

.arshin-block h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.arshin-block input {
    margin-bottom: 15px;
}

.arshin-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Документы */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.doc-card {
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.doc-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

/* Преимущества */
.advantages-section {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card img {
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Процесс */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    position: relative;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 108, 182, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Контакты */
.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}

/* Подвал */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer .copyright {
    color: var(--white);
    margin-bottom: 10px;
}

/* Модальное окно для картинок */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.zoomable-image:hover {
    transform: scale(1.03);
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    animation: zoom 0.3s;
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Cookie Баннер (внизу экрана) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-top: 3px solid var(--primary);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cookie-banner__text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.cookie-banner__text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner__text a:hover {
    text-decoration: none;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-container, .contact-container {
        flex-direction: column;
    }
    
    .hero-form-wrapper, .contact-form-wrapper {
        width: 100%;
        flex: none;
    }
    
    .arshin-forms {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* Переключение шапок */
    .desktop-header {
        display: none !important;
    }
    .mobile-header {
        display: flex !important;
        padding: 10px 0;
    }

    .mobile-header .header-container {
        flex-wrap: nowrap;
    }

    .mobile-header .logo img {
        max-height: 45px;
    }

    .mobile-header .mobile-header-contacts {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-header .messenger-links {
        margin-top: 0;
        gap: 15px;
    }

    .mobile-header .messenger-icon {
        font-size: 26px;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }

    /* Кнопка позвонить в Hero (только мобильная) */
    .hero-call-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        margin-top: 25px;
        padding: 14px 28px;
        font-size: 1.05rem;
        text-decoration: none;
        width: 100%;
        justify-content: center;
    }

    .cookie-banner {
        padding: 15px;
    }
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner__icon {
        font-size: 2rem;
    }
    .cookie-banner__text p {
        font-size: 0.9rem;
    }
    .cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (min-width: 769px) {
    /* Скрываем кнопку позвонить в Hero на десктопе */
    .hero-call-btn {
        display: none !important;
    }
}

/* Промежуток между логотипом и контактами в шапке */
.header-container {
    gap: 40px; /* Расстояние между логотипом и остальным */
}

/* Для мобильной шапки — меньший отступ */
@media (max-width: 768px) {
    .mobile-header .header-container {
        gap: 15px;
    }
}