/* ============================================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ============================================================ */
:root {
    --primary-color: #075e54;
    --primary-hover: #05473f;
    --accent-orange: #FF6B35;
    --accent-orange-hover: #1A1D2B;
    --bg-gradient: radial-gradient(circle at 80% 20%, #eef5f3 0%, #e3edf2 100%);
    --bg-gradient-2: radial-gradient(circle at 80% 20%, #FFFFFF 0%, #FFF9F5 35%, #FFF3EB 65%, #FFF0E6 100%);
    --text-dark: #1e293b;
    --text-muted: #0b1a30;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-gradient-2);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   ШАПКА САЙТА (HEADER)
   ============================================================ */
.header {
    background: #ffffff;
    width: 100%;
    padding: 14px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
}

.logo-bold {
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 0.87rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.search-link::before {
    content: '🔍';
    margin-right: 4px;
    font-size: 11px;
}

.btn-header-action {
    background-color: var(--accent-orange);
    color: #fff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-header-action:hover {
    background-color: var(--accent-orange-hover);
}

/* ============================================================
   ГЛАВНЫЙ ЭКРАН (HERO SECTION - НА В СЮ ВЫСОТУ ДЛЯ ПК)
   ============================================================ */
.hero-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    /* На десктопе вычитаем высоту хедера (64px), чтобы избежать общего скролла */
    height: calc(100vh - 66px); 
}

.hero-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Сетка "Текст | Девайсы" */
    gap: 40px;
    align-items: center;
}

/* Левый контент */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
}

.breadcrumbs {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a::after {
    content: '/';
    margin-left: 6px;
}

.badge-specialty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fde8dd;
    color: var(--accent-orange);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: #0b1a30;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* Кнопки внизу */
.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-hero-primary {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-hero-primary:hover {
    background-color: var(--accent-orange-hover);
}

.btn-hero-secondary {
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-hero-secondary:hover {
    background-color: var(--accent-orange-hover);
	border: 2px solid var(--accent-orange-hover);
    color: white;
}

/* Правая визуальная часть (Девайсы) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1 / 0.8;
}

/* Имитация картинки девайсов через стили (замените на свой собственный инлайн-рисунок или макет устройства) */
.devices-fallback-bg {
    width: 100%;
    height: 100%;
    background: url('/imgs/devices-mockup-2.webp') no-repeat center center;
    background-size: contain;
    /* Резервная заглушка, если картинки нет */
    /*background-color: rgba(255,255,255,0.2);*/ 
    border-radius: 20px;
}

/* ============================================================
   АДАПТИВНАЯ МОБИЛЬНАЯ ВЕРСИЯ (MEDIA QUERIES)
   ============================================================ */

/* Планшеты и ноутбуки поменьше */
@media (max-width: 1024px) {
    .hero-section {
        height: auto; /* Убираем фиксированную высоту */
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        order: -1; /* Выталкиваем картинку наверх */
    }
    .header-container {
        padding: 0 20px;
    }
    .nav {
        display: none; /* Прячем меню десктопа (под бургер) */
    }
}

/* Смартфоны */
@media (max-width: 576px) {
    .header-container {
        padding: 0 16px;
    }
    .btn-header-action {
        padding: 8px 14px;
        font-size: 13px;
    }
    .hero-container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 28px;
    }    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 375px) {
	.btn-header-action {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* ============================================================
   БЛОК ЦИФРОВЫХ УСЛУГ (SERVICES GRID)
   ============================================================ */
.services-list-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
}

.service-link-card {
    background: #ffffff;
    border: 1px solid rgba(7, 94, 84, 0.1); /* Легкий зеленый контур */
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(11, 26, 48, 0.02);
}

.service-card-icon {
    font-size: 24px;
    background-color: #f5e6d2; /* Пастельный оранжевый подложки */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.service-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.service-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.service-card-arrow {
    font-size: 18px;
    color: var(--accent-orange);
    font-weight: bold;
    transition: transform 0.25s ease;
}

/* Эффекты при наведении (Ховер) */
.service-link-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 8px 20px rgba(255, 130, 67, 0.08);
    transform: translateY(-2px);
}

.service-link-card:hover .service-card-title {
    color: var(--accent-orange);
}

.service-link-card:hover .service-card-arrow {
    transform: translateX(5px);
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ ДАННОГО БЛОКА
   ============================================================ */
@media (max-width: 576px) {
    .services-list-grid {
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .service-link-card {
        padding: 14px 16px;
    }

    .service-card-title {
        font-size: 14px;
    }
}