/* css/style.css */
:root {
    --primary: #0056b3;
    --primary-hover: #004494;
    --bg: #f9f9f9;
    --text: #333;
    --border: #e0e0e0;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    font-family: Arial, Helvetica, sans-serif; 
    color: var(--text); 
    background: var(--bg); 
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* --- Header & Navigation --- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo, .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-logo:hover, .logo:hover { 
    color: var(--primary-hover); 
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a.active {
    color: var(--primary-hover);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.header-cta {
    white-space: nowrap;
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}
.header-cta:hover { 
    background: var(--primary-hover); 
}
.header-cta:active { transform: scale(0.98); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    padding: 8px;
}
.mobile-toggle:hover { color: var(--primary); }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 16px 0;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .header-cta {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* --- Buttons --- */
.btn, button { 
    display: inline-block; 
    padding: 8px 16px; 
    background: var(--primary); 
    color: var(--white); 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    text-align: center; 
}
.btn:hover, button:hover { background: var(--primary-hover); }
.btn-outline { 
    background: transparent; 
    border: 1px solid var(--primary); 
    color: var(--primary); 
}
.btn-outline:hover { background: rgba(0,86,179,0.05); }
.btn-sm { padding: 6px 12px; font-size: 0.875rem; }
.btn-large { padding: 14px 28px; font-size: 1.1rem; }

/* --- Sections --- */
.section { padding: 3rem 0; }
.hero { 
    background: var(--white); 
    padding: 4rem 0; 
    text-align: center; 
}
.hero-content h1 { margin: 0 0 1rem; }
.hero-actions { 
    margin-top: 1.5rem; 
    display: flex; 
    gap: 0.75rem; 
    justify-content: center; 
    flex-wrap: wrap; 
}

/* --- Grids --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem; 
}
.service-card { 
    background: var(--white); 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
}

/* --- Blog / Post --- */
.post-page .post-header { 
    margin-bottom: 2rem; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 1rem; 
}
.post-date { color: #777; font-size: 0.9rem; }
.post-title { margin: 0.5rem 0 0; }
.post-content p { margin-bottom: 1rem; }
.post-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content ul, .post-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.25rem; }

/* --- Portfolio cards --- */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}
.case-card { 
    background: var(--white); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
    display: flex; 
    flex-direction: column; 
}
.case-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}
.case-card .info { 
    padding: 1.25rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.case-card h3 { margin: 0 0 0.5rem; }
.case-card .result { color: #555; margin-top: auto; margin-bottom: 0.75rem; }
.case-card a.btn { margin-top: auto; align-self: flex-start; }

/* --- Form Errors --- */
input.error, textarea.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}
input.error:focus, textarea.error:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* --- Настройка иконок контактов (Общие правила) --- */
.footer-contacts {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 24px 0 !important;
}

.contact-icon-btn {
    background-image: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease !important;
}

/* Строгая конфигурация SVG линий (убирает размытие) */
.contact-icon-btn svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    box-sizing: border-box !important;
}

/* Фирменные фоновые цвета */
.contact-icon-btn.icon-phone { background-color: #ff9800 !important; }
.contact-icon-btn.icon-email { background-color: #4a5a9f !important; }
.contact-icon-btn.icon-wa    { background-color: #25d366 !important; }
.contact-icon-btn.icon-tg    { background-color: #0088cc !important; }

.contact-icon-btn:hover {
    transform: scale(1.1) !important;
    filter: brightness(1.15) !important;
}

/* --- Footer --- */
.site-footer {
    background: #2e2c2c;
    color: #e0e0e0;
    padding: 60px 0 30px;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo-center {
    text-align: center;
}

.footer-logo {
    color: #ffffff; /* Изменено с синего на контрастный белый */
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.2s;
}
.footer-logo:hover {
    color: #0088cc;
}

.footer-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-service-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-service-link:hover {
    color: #fff;
}

.footer-blog-section {
    border-top: 1px solid #444;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.blog-item {
    display: flex;
    flex-direction: column;
}

.blog-item h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}

.blog-item h4 a {
    color: inherit;
    text-decoration: none;
}

.blog-item p {
    margin: 0;
    color: #aaa;
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #444;
    padding-top: 25px;
    margin-top: 40px;
}

.legal-link {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.legal-link:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        justify-content: center;
    }
    .legal-link {
        display: block;
        margin-bottom: 10px;
    }
    .legal-link:last-child {
        margin-bottom: 0;
    }
    
    /* Сохраняем жесткие параметры SVG на мобильных версиях */
    .contact-icon-btn {
        width: 46px !important;
        height: 46px !important;
    }
    .contact-icon-btn svg {
        width: 20px !important;
        height: 20px !important;
        fill: none !important;
        stroke: #ffffff !important;
    }
}
/* --- Современная секция формы заявки --- */
.contact-section {
    background-color: #1a1919; /* Мягкий темный фон, идеально сочетающийся с подвалом */
    color: #ffffff;
    padding: 80px 0;
}

.contact-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.contact-header p {
    color: #aaa;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
}

/* Сетка полей */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Обертка для интерактивных полей */
.input-group {
    position: relative;
    width: 100%;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: background 0.3s, border-color 0.3s;
}

.modern-form textarea {
    resize: vertical;
}

/* Эффект красивого фокуса */
.modern-form input:focus,
.modern-form textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: #0056b3; /* Синий акцент */
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15);
}

/* Кнопка отправки */
.form-actions {
    margin-top: 8px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-submit:hover {
    background: #004494;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.3);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.btn-submit svg {
    transition: transform 0.2s ease;
}

.btn-submit:active {
    transform: scale(0.99);
}

/* Текст конфиденциальности */
.form-hint {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}

.form-hint a {
    color: #aaa;
    text-decoration: underline;
    transition: color 0.2s;
}

.form-hint a:hover {
    color: #ffffff;
}
/* --- Современное превью блога --- */
.blog-preview-section {
    background-color: var(--white);
    padding: 80px 0;
}

.blog-preview-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-preview-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.blog-preview-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Сетка карточек */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* Карточка блога */
.modern-blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.modern-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 86, 179, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.modern-blog-card h3 {
    margin: 0 0 14px 0;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
}

.modern-blog-card h3 a {
    color: var(--text);
    transition: color 0.2s;
}

.modern-blog-card:hover h3 a {
    color: var(--primary);
}

/* Красивое ограничение текста до 3 строк (без разрыва слов через PHP) */
.blog-card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ссылка "Читать далее" внутри карточки */
.blog-card-footer {
    margin-top: 24px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.blog-read-more svg {
    transition: transform 0.2s ease;
}

.modern-blog-card:hover .blog-read-more {
    color: var(--primary);
}

.modern-blog-card:hover .blog-read-more svg {
    transform: translateX(4px);
}

/* Кнопка "Все статьи" под сеткой */
.blog-all-link-wrapper {
    text-align: center;
    margin-top: 48px;
}

.btn-blog-all {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-blog-all:hover {
    border-color: var(--primary);
    background: rgba(0, 86, 179, 0.02);
    color: var(--primary);
}

.blog-empty-text {
    text-align: center;
    color: #777;
    padding: 40px 0;
}
/* --- Современная секция портфолио --- */
.portfolio-section {
    background-color: #fcfcfc; /* Тонкий контраст с соседними белыми блоками */
    padding: 80px 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 54px;
}

.portfolio-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.portfolio-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Трёхколоночная сетка */
.modern-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Адаптивность сетки под планшеты и смартфоны */
@media (max-width: 992px) {
    .modern-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .modern-portfolio-grid { grid-template-columns: 1fr; }
}

/* Карточка кейса */
.modern-case-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.modern-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 86, 179, 0.25);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

/* Область изображения и эффект Zoom */
.case-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eaeaea;
    position: relative;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-case-card:hover .case-card-image img {
    transform: scale(1.05);
}

.case-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* Контентная часть карточки */
.case-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card-body h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.case-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Плашка с результатом проекта */
.case-result-badge {
    background: rgba(0, 86, 179, 0.04);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 24px;
    margin-top: auto; /* Прижимает плашку к низу, выравнивая все карточки в ряд */
}

.case-result-badge strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.case-result-badge span {
    color: #444;
}

/* Кнопка ссылки на проект */
.case-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    align-self: flex-start;
    transition: color 0.2s;
}

.case-link-btn svg {
    transition: transform 0.2s ease;
}

.case-link-btn:hover {
    color: var(--primary-hover);
}

.case-link-btn:hover svg {
    transform: translate(2px, -2px);
}

.portfolio-empty-text {
    text-align: center;
    color: #777;
    padding: 50px 0;
}
/* --- Современная Bento-сетка услуг --- */
.services-section {
    background-color: var(--white);
    padding: 80px 0;
}

.services-header {
    text-align: center;
    margin-bottom: 54px;
}

.services-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.services-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Исправленная и стабильная Bento-сетка --- */
.modern-bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Делаем сетку из 6 колонок для точного деления */
    gap: 24px;
}

.bento-card {
    grid-column: span 2; /* Обычные карточки занимают 2 колонки из 6 (итого 3 в ряд) */
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Первые две карточки сделаем шире: они займут по 3 колонки из 6 (итого 2 в ряд) */
.bento-card.bento-wide {
    grid-column: span 3;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
}

.bento-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 86, 179, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.bento-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.bento-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.bento-card:hover {
    transform: translateY(-4px);
    background: var(--white);
    border-color: rgba(0, 86, 179, 0.3);
    box-shadow: 0 16px 40px rgba(0, 86, 179, 0.05);
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .modern-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card, .bento-card.bento-wide {
        grid-column: span 1;
    }
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 640px) {
    .modern-bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card {
        padding: 30px;
    }
}

.services-empty-text {
    text-align: center;
    color: #777;
    padding: 40px 0;
}
/* --- Современный Первый экран (Hero Section) --- */
.hero-section {
    background-color: #121214; /* Глубокий премиальный темный цвет */
    color: #ffffff;
    padding: 140px 0 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Декоративное цифровое свечение на фоне */
.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Маленькая плашка над заголовком */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 28px;
}

/* Монументальный заголовок */
.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0 0 24px 0;
}

/* Градиентное выделение ключевого слова */
.hero-section h1 span {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Описание оффера */
.hero-section p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 44px auto;
}

/* Группа кнопок */
.hero-actions-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Главная кнопка со стрелкой */
.btn-hero-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    background: #004494;
    box-shadow: 0 4px 25px rgba(0, 86, 179, 0.4);
}

.btn-hero-primary svg {
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-hero-primary:active {
    transform: scale(0.98);
}

/* Второстепенная контурная кнопка */
.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 70px 0;
    }
    .hero-section h1 {
        font-size: 2.4rem;
        letter-spacing: -0.5px;
    }
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    .hero-actions-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .btn-hero-primary, .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
}
/* --- Современная стеклянная шапка (Glassmorphism) --- */
.site-header {
    background: rgba(18, 18, 20, 0.75); /* Полупрозрачный фон */
    backdrop-filter: blur(12px); /* Эффект размытия стекла */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.modern-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.modern-logo:hover {
    opacity: 0.9;
}

/* Меню навигации */
.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #94a3b8; /* Приглушенный цвет */
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover {
    color: #ffffff;
}

/* Элегантное подчёркивание ссылок при наведении */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0056b3;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Кнопка в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta {
    background: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.header-cta:hover {
    background: #004494;
}
.header-cta:active {
    transform: scale(0.98);
}

/* Бургер-кнопка для мобильных */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #121214;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    /* Класс open будет добавляться через JS */
    .main-nav.open {
        max-height: 300px;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
    }
    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }
    .main-nav a::after { display: none; }
    .header-cta {
        display: none; /* Скрываем большую кнопку на мобильных для экономии места */
    }
}
