﻿/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    /* Primary Colors */
    --p700: #007FFF;
    --p600: #3399FF;
    --p500: #6682FF;
    --p400: #99CCFF;
    --p300: #B2D9FF;
    --p200: #CCE5FF;
    --p100: #E5F2FF;
    /* Text Colors */
    --b700: #1F1F1F;
    --b600: #484848;
    --b500: #999999;
    --b400: #C2C2C2;
    --b300: #EDEEF0;
    --b200: #F6F7F8;
    --b100: #FFFFFF;
    --error: #D92D20;
    --success: #039855;
    --bg-light: var(--p100);
    --text-main: var(--b700);
    --text-body: var(--b600);
    --text-muted: var(--b500);
    --container-width: 1240px;
    --header-height: 80px;
    --radius-btn: 8px;
    --font-main: 'Inter', sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Сброс стилей (ИСПРАВЛЕНО: убрали overflow-x: hidden, ломающий position: sticky) */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ИСПРАВЛЕНО: box-sizing теперь применяется и к псевдоэлементам */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #fff;
    color: var(--b700);
    /* ИСПРАВЛЕНО: 1.75 вместо 28px (28/16 = 1.75) */
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    position: relative;
}

.page-offset {
    padding-top: calc(var(--header-height) + 40px);
}
body, h1, h2, h3, h4, h5, h6, p, span, a {
    /* Если Inter не знает армянского, включится Arial/sans-serif */
    font-family: 'Inter', 'Noto Sans Armenian', Arial, sans-serif !important;
}
/* Typography (ИСПРАВЛЕНО: line-height переведены в множители) */
h1, .h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.35;
}

h2, .h2 {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.375;
}

h3, .h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
}

h4, .h4 {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.6;
}

h5, .h5 {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.75;
}

p, .body-text {
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

@media (min-width: 992px) {
    h1, .h1 {
        font-size: 48px;
        line-height: 1.25;
    }

    h2, .h2 {
        font-size: 40px;
        line-height: 1.35;
    }

    h3, .h3 {
        font-size: 32px;
        line-height: 1.375;
    }

    h4, .h4 {
        font-size: 24px;
        line-height: 1.5;
    }

    h5, .h5 {
        font-size: 20px;
        line-height: 1.6;
    }
}

/* Buttons (ИСПРАВЛЕНО: Объединили общие стили для чистоты кода) */
.btn-primary, .btn-dark, .btn-blue-large {
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--b700);
    color: var(--b100);
    padding: 10px 18px;
}

    .btn-primary:hover {
        background-color: var(--b600);
    }

.btn-dark {
    background-color: var(--b700);
    color: var(--b100);
    padding: 10px 24px;
}

    .btn-dark:hover {
        background-color: var(--b600);
    }

.btn-blue-large {
    background-color: var(--p700);
    color: var(--b100);
    padding: 10px 24px;
}

    .btn-blue-large:hover {
        background-color: var(--p600);
    }

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--b700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    color: var(--b700);
    background-color: #fff;
    border: 1px solid var(--b300);
    border-radius: var(--radius-btn);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

    .form-control::placeholder {
        color: var(--b500);
    }

    .form-control:focus {
        border-color: var(--p300);
        box-shadow: 0 0 0 4px var(--p100);
    }

    .form-control.error {
        border-color: var(--error);
    }

.error-text {
    color: var(--error);
    font-size: 14px;
    margin-top: 4px;
}

/* --- 2. HEADER --- */
.header {
    height: var(--header-height);
    border-bottom: 1px solid var(--p200);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -1px;
    color: var(--b700);
    position: relative;
    z-index: 1001;
}

    .logo img {
        height: 48px;
        width: 134.64px;
    }

.nav-menu {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-item-dropdown {
    position: relative;
}

.nav-link {
    font-weight: 400;
    font-size: 16px;
    color: var(--b700);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    line-height: 1.75;
}

    .nav-link:hover, .nav-link.active {
        color: var(--p700);
    }

.chevron-down {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s;
}

.nav-item-dropdown.active .chevron-down, .lang-dropdown-wrapper.active .chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--b200);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1100;
    padding: 8px 0;
}

.nav-item-dropdown.active .dropdown-menu, .lang-dropdown-wrapper.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--b700);
    font-weight: 500;
}

    .dropdown-item:hover {
        background-color: var(--p100);
        color: var(--p700);
    }

.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.lang-dropdown-wrapper {
    position: relative;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--b200);
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 14px;
    color: var(--b700);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

    .lang-selector:hover {
        background-color: var(--p200);
    }

.lang-icon {
    width: 20px;
    height: 20px;
}

.lang-text {
    display: block;
}

.lang-dropdown-wrapper .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 140px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--b700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-wrapper {
    display: none;
}

/* --- 3. CTA SECTION --- */
.cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #fff;
}

.cta-banner {
    background-color: var(--b700);
    border-radius: 16px;
    padding: 48px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0;
}

/* --- 4. FOOTER --- */
.footer {
    width: 100%;
    background-color: var(--b700);
    color: #fff;
}

    /* ИСПРАВЛЕНО: Ширина футера теперь совпадает с шириной сайта */
    .footer .container {
        max-width: var(--container-width);
        margin: 0 auto;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 48px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 24px;
}

    .footer-logo img, .footer-logo svg {
        width: 80px;
        height: 28px;
    }

.footer-desc {
    font-size: 14px;
    color: var(--b400);
    line-height: 1.5;
    max-width: 300px;
}

.footer-col-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-links a {
        font-size: 14px;
        color: var(--b400);
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #fff;
        }

    .footer-links.contact-info a {
        color: var(--b400);
        pointer-events: none;
    }

        .footer-links.contact-info a[href^="mailto:"], .footer-links.contact-info a[href^="tel:"] {
            pointer-events: auto;
        }

.footer-bottom {
    width: 100%;
    border-top: 1px solid #484848;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
    font-size: 10px;
    color: var(--b500);
    background-color: var(--b600);
}

.header-actions .btn-primary {
    height: 48px;
    padding: 0 24px;
}

.footer-social-links {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social-icon svg {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-social-icon:hover svg {
    color: var(--p700);
}

/* --- 5. RESPONSIVE GLOBAL --- */
@media (max-width: 992px) {
    .logo img {
        height: 28px;
        width: 78px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-actions .lang-dropdown-wrapper, .header-actions .btn-primary {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }

    .mobile-nav-wrapper {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* ИСПРАВЛЕНО: Добавлен 100dvh для правильного отображения на iOS/Android */
        height: 100dvh;
        background-color: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 900;
        padding-top: var(--header-height);
        overflow-y: auto;
    }

        .mobile-nav-wrapper.active {
            transform: translateX(0);
        }

    .mobile-nav-list {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        font-size: 18px;
        font-weight: 700;
        color: var(--b700);
    }

    .mobile-dropdown-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .mobile-sub-menu {
        display: none;
        margin-top: 16px;
        padding-left: 0;
        font-size: 16px;
        font-weight: 400;
    }

    .mobile-has-children.open .mobile-sub-menu {
        display: block;
    }

    .mobile-has-children.open .chevron-down {
        transform: rotate(180deg);
    }

    .mobile-sub-menu li {
        margin-bottom: 16px;
    }

    .mobile-menu-actions {
        padding: 0 24px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

        .mobile-menu-actions .btn-primary {
            width: 100%;
            text-align: center;
            padding: 12px;
        }

        .mobile-menu-actions .lang-selector {
            width: 100%;
            justify-content: space-between;
            background-color: transparent;
            padding: 12px 0;
        }

        .mobile-menu-actions .dropdown-menu {
            width: 100%;
            position: static;
            box-shadow: none;
            border: 1px solid var(--b200);
            margin-top: 8px;
            opacity: 1;
            visibility: visible;
            transform: none;
            display: none;
        }

        .mobile-menu-actions .lang-dropdown-wrapper.active .dropdown-menu {
            display: block;
        }

    .footer {
        padding: 48px 0 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
        padding: 0px;
    }

    .cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .cta-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 20px;
        gap: 20px;
    }

    .cta-text h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .cta-banner .btn-blue-large {
        width: 100%;
    }
}
/* --- BREADCRUMBS --- */
.breadcrumbs {
    margin-bottom: 24px;
}

.crumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 14px;
}

.crumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--b500);
}

.crumb-link {
    color: var(--b500);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .crumb-link:hover {
        color: var(--p700);
    }

.crumb-current {
    color: var(--b700);
    font-weight: 600;
}
.footer-contact-address {
    font-style: normal;
}