/* --- Переменные дизайна (Design Tokens) --- */
:root {
    --color-bg: #F4F7FC;
    --color-blue: #0B2B4A;
    --color-orange: #F26B2A;
    --color-text-dark: #1A1A1A;
    --color-text-body: #4A4A4A;
    --color-white: #ffffff;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius-md: 12px;

    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Сброс стилей --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Добавляем отступ сверху, чтобы контент не скрывался под фиксированной шапкой */
    scroll-padding-top: 80px; 
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Типографика --- */
h1, h2, h3, h4 {
    color: var(--color-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw + 1rem, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw + 1rem, 1.6rem); }

p { margin-bottom: 1em; color: var(--color-text-body); }
a { color: var(--color-orange); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #d9571a; }

/* --- Утилиты --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title { text-align: center; margin-bottom: 0.5em; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* --- Кнопка --- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(242, 107, 42, 0.4);
    transition: all 0.3s var(--transition-bounce);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.btn-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(242, 107, 42, 0.6);
    background-color: #ff7b3d;
    color: var(--color-white);
}

.btn-action:active { transform: translateY(0) scale(0.98); }

/* --- 1. Шапка (Header) --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-blue);
    font-weight: 700;
    font-size: 1.25rem;
    height: 100%;
    max-width: 70%;
}

.logo img {
    height: 48px; /* Фиксированная высота, чтобы не ломать шапку */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Скрываем текст логотипа на очень маленьких экранах, если нужно */
@media (max-width: 480px) {
    .logo-text { display: none; }
}

/* Навигация */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--color-blue);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background-color: var(--color-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after { transform: scaleX(1); }

/* Мобильное меню (бургер) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001; /* Выше меню */
    padding: 5px;
}

.menu-toggle span {
    width: 24px; height: 2px; background-color: var(--color-blue);
    transition: 0.3s ease;
    display: block;
}

/* Анимация бургера в крестик */
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 2. Первый экран (Hero) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(11, 43, 74, 0.08), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(242, 107, 42, 0.1), transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0,0,0,0.02) 40px, rgba(0,0,0,0.02) 80px);
    z-index: -1; /* Чтобы текст был поверх */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 { color: var(--color-blue); margin-bottom: 24px; }

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-body);
    margin-bottom: 40px;
}

/* --- 3. Услуги (Services) --- */
.section-services {
    padding: 100px 0;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background-color: var(--color-bg);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(11, 43, 74, 0.05);
    transition: all 0.4s var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--color-blue);
}

/* Иконка SVG в карточке */
.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    object-fit: contain;
    /* Если иконки цветные SVG, используем filter для окраски в оранжевый, 
       но так как у вас на входе черно-белые иконки (как я понял), 
       лучше оставить их как есть или использовать filter: invert(48%) sepia(89%) saturate(1724%) hue-rotate(345deg) brightness(97%) contrast(93%); */
}

.service-link {
    margin-top: auto;
    font-weight: 500;
    font-size: 0.95rem;
    padding-top: 16px;
}

/* --- 4. О компании (About) --- */
.section-about {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .about-grid { 
        grid-template-columns: 1fr 1fr; 
        align-items: center; 
    }
}

.benefits-list {
    display: grid;
    gap: 24px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--color-orange);
    min-width: 32px;
    margin-top: 4px;
    text-align: center;
}

/* Визуальный блок в About */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-placeholder {
    background: var(--color-blue);
    color: white;
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    background-image: linear-gradient(135deg, var(--color-blue) 0%, #1e4b75 100%);
}

.visual-placeholder span {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-orange);
}

.visual-placeholder p {
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
    font-size: 1.2rem;
}

/* --- 5. Подвал (Footer) --- */
.footer {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer h4 { color: var(--color-orange); font-size: 1.2rem; margin-bottom: 24px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.footer-links a { 
    color: var(--color-white); 
    opacity: 0.9; 
    font-weight: 500; 
    line-height: 2;
}
.footer-links a:hover { opacity: 1; color: var(--color-orange); }

.footer-contact p { margin-bottom: 16px; color: rgba(255, 255, 255, 0.8); }
.footer-contact a { color: var(--color-white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); }
.footer-contact a:hover { text-decoration-color: var(--color-orange); color: var(--color-orange); }

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Медиа-запросы (Адаптивность) --- */

/* Планшеты и мобильные */
@media (max-width: 768px) {
    /* Отключаем скролл при открытом меню */
    body.no-scroll { overflow: hidden; }

    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 80px; /* Высота шапки */
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%); /* Скрыто по умолчанию */
        transition: transform 0.4s ease;
        z-index: 999;
        border-bottom: 1px solid #eee;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    /* Секции */
    .section-services, .section-about {
        padding: 60px 0;
    }

    .hero {
        min-height: 90vh;
    }
    
    .hero h1 {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .btn-action {
        width: 100%; /* Кнопка на всю ширину на маленьких экранах */
    }
    
    .footer-grid {
        gap: 30px;
    }
}