/* ==================== БАЗОВЫЕ ПЕРЕМЕННЫЕ ==================== */
/* Меняйте значения здесь, чтобы быстро обновить весь дизайн */
:root {
    --color-primary: #1a3c6e;
    /* Тёмно-синий — основной цвет */
    --color-accent: #e8a817;
    /* Золотой — акцентный */
    --color-accent-hover: #c98f14;
    /* Золотой при наведении */
    --color-text: #2d3436;
    /* Основной цвет текста */
    --color-text-light: #636e72;
    /* Второстепенный текст */
    --color-bg: #ffffff;
    /* Белый фон */
    --color-bg-light: #f8f9fa;
    /* Светло-серый фон */
    --color-border: #e0e4e8;
    /* Цвет границ */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1100px;
    --radius: 12px;
    /* Скругление углов */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    /* Лёгкая тень */
}

/* ==================== СБРОС И БАЗОВЫЕ СТИЛИ ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Плавная прокрутка по якорям */;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* ==================== КОНТЕЙНЕР ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== КНОПКИ ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease, transform 0.15s ease;
    text-align: center;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background-color: var(--color-accent);
    color: #1a1a1a;
}

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

.btn--full {
    width: 100%;
}

/* ==================== ШАПКА ==================== */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.92);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
}

.logo__icon {
    font-size: 26px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.25s ease;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
    width: 100%;
}

/* ==================== ГЛАВНЫЙ ЭКРАН ==================== */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero__title--accent {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ==================== СЕКЦИИ ==================== */
.section {
    padding: 80px 0;
}

.section--light {
    background-color: var(--color-bg-light);
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-align: center;
}

.section__subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    text-align: center;
    max-width: 550px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* ==================== СЕТКА УСЛУГ ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

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

.service-card__icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.service-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.service-card__desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ==================== БЛОК «О КОМПАНИИ» ==================== */
.about-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 400px;
}

.about-text .section__title {
    text-align: left;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.highlight {
    text-align: center;
}

.highlight__number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.highlight__label {
    font-size: 13px;
    color: var(--color-text-light);
}

.about-image {
    flex: 1 1 300px;
}

.about-image__placeholder {
    background-color: #eef2f7;
    border-radius: var(--radius);
    padding: 60px 30px;
    text-align: center;
    font-size: 64px;
}

.about-image__placeholder p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* ==================== КОНТАКТЫ ==================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info .section__title,
.contact-info .section__subtitle {
    text-align: left;
    margin-left: 0;
}

.contact-details {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-item__icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ==================== ФОРМА ==================== */
.contact-form {
    flex: 1 1 350px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafbfc;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 168, 23, 0.12);
}

.form-input--textarea {
    resize: vertical;
    min-height: 80px;
}

.form-note {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 12px;
    text-align: center;
}

/* ==================== ПОДВАЛ ==================== */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 28px 0;
    font-size: 14px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__policy {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__policy:hover {
    color: #ffffff;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 28px;
    }

    .nav {
        gap: 16px;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 32px;
    }

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

    .about-highlights {
        justify-content: center;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 32px;
    }

    .contact-info .section__title,
    .contact-info .section__subtitle {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header__inner {
        flex-direction: column;
        height: auto;
        padding: 14px 0;
        gap: 10px;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero__title {
        font-size: 26px;
    }

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

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
