/* =============================================================================
   style.css — основные стили
   Палитра: глубокий индиго (текст/тёмные секции) + яркий cyan (акцент).
   Файл со стилями рабочего стола; адаптив вынесен в responsive.css.
   ========================================================================== */

/* --- Дизайн-токены (переменные цвета, шрифтов, отступов) --- */
:root {
    --ink:        #0e1330;   /* основной тёмный цвет текста */
    --ink-soft:   #565d82;   /* приглушённый текст */
    --indigo:     #3538cd;   /* основной брендовый (кнопки, ссылки) */
    --indigo-dk:  #262a9e;   /* индиго при наведении */
    --cyan:       #06c7e0;   /* яркий акцент */
    --cyan-dk:    #05a6bb;
    --bg:         #ffffff;   /* основной фон */
    --tint:       #f3f5fc;   /* светлый холодный фон секций */
    --line:       #e5e8f4;   /* цвет тонких границ */
    --dark:       #0e1330;   /* фон тёмной секции */

    --radius:     14px;      /* базовое скругление */
    --maxw:       1140px;    /* максимальная ширина контента */
    --gap:        clamp(48px, 7vw, 96px); /* вертикальные отступы секций */

    /* Единый шрифтовой стек из системных шрифтов (без внешних CDN) */
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Базовый сброс --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Видимый фокус для доступности (навигация с клавиатуры) */
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Контейнер --- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* --- Типографика заголовков --- */
.section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 18px;
}
.section-title--light { color: #fff; }

.section-sub {
    color: var(--ink-soft);
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 40px;
}

/* =============================================================================
   Кнопки
   ========================================================================== */
.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 12px 24px;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dk); }

.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--indigo); }

.btn--lg { padding: 15px 32px; font-size: 17px; }
.btn--block { display: block; width: 100%; }

/* =============================================================================
   Шапка сайта
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Логотип (текстовый) */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-mark {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    box-shadow: 0 4px 14px rgba(53, 56, 205, 0.35);
}

/* Навигация */
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--indigo); text-decoration: none; }
.nav .nav-cta {
    background: var(--indigo);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--indigo-dk); }

/* Кнопка-бургер (по умолчанию скрыта, показывается на мобильных) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(6, 199, 224, 0.12), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(53, 56, 205, 0.10), transparent 60%),
        var(--bg);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: clamp(56px, 8vw, 110px) 24px;
}

.hero-eyebrow {
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-lead {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { color: var(--ink-soft); font-size: 15px; }

/* Декоративная «орбита узлов» справа в hero (чистый CSS) */
.hero-visual { display: flex; justify-content: center; }
.orbit {
    position: relative;
    width: 320px; height: 320px;
}
.orbit .node {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    box-shadow: 0 8px 24px rgba(53, 56, 205, 0.35);
}
.node--center { width: 84px; height: 84px; top: 118px; left: 118px; }
.node--1 { width: 30px; height: 30px; top: 10px;  left: 150px; animation: float 5s ease-in-out infinite; }
.node--2 { width: 22px; height: 22px; top: 140px; left: 285px; animation: float 6s ease-in-out infinite .5s; }
.node--3 { width: 26px; height: 26px; top: 275px; left: 130px; animation: float 5.5s ease-in-out infinite 1s; }
.node--4 { width: 18px; height: 18px; top: 150px; left: 5px;   animation: float 6.5s ease-in-out infinite .3s; }
.orbit .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--line);
}
.ring--1 { width: 200px; height: 200px; top: 60px;  left: 60px;  animation: spin 40s linear infinite; }
.ring--2 { width: 300px; height: 300px; top: 10px;  left: 10px;  animation: spin 60s linear infinite reverse; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin  { to { transform: rotate(360deg); } }

/* =============================================================================
   Полоса ценностей
   ========================================================================== */
.valuebar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.valuebar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 24px;
}
.valuebar-item { display: flex; flex-direction: column; }
.valuebar-item strong { color: var(--indigo); font-size: 18px; }
.valuebar-item span { color: var(--ink-soft); font-size: 15px; }

/* =============================================================================
   Общие секции
   ========================================================================== */
.section { padding: var(--gap) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .section-sub { color: #b9c0e6; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.about-lead { font-size: 20px; color: var(--ink-soft); }
.about-points { display: grid; gap: 22px; }
.about-point h3 { font-size: 19px; margin-bottom: 6px; }
.about-point p { color: var(--ink-soft); }

/* --- Categories --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cat-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(14, 19, 48, 0.10);
}
.cat-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.cat-card h3 { font-size: 19px; margin-bottom: 8px; }
.cat-card p { color: var(--ink-soft); font-size: 15px; }

/* --- Steps (how we work) --- */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    counter-reset: step;
}
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
}
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--ink-soft); }

/* --- Why us (dark section) --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.why-item {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}
.why-item h3 { font-size: 19px; margin-bottom: 8px; color: #fff; }
.why-item p { color: #b9c0e6; }

/* --- FAQ (аккордеон на <details>) --- */
.faq { display: grid; gap: 12px; }
.faq-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 20px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    padding: 16px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Значок «+», который превращается в «−» при раскрытии */
.faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--indigo);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 18px; }

/* =============================================================================
   Contact + форма
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

/* Карточка с формой */
.contact-form-wrap {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 20px 50px rgba(14, 19, 48, 0.06);
}
.form-row { margin-bottom: 18px; display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 15px; }
.form-row input,
.form-row textarea {
    font: inherit;
    color: var(--ink);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcff;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(53, 56, 205, 0.15);
}
.form-row textarea { resize: vertical; }

.form-consent { font-size: 13px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* Honeypot-поле полностью скрыто от людей */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Плашки результата отправки формы */
.form-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}
.form-alert--ok  { background: #e7fbf1; color: #0a7d47; border: 1px solid #b7ecd0; }
.form-alert--err { background: #fdecec; color: #b42525; border: 1px solid #f5c6c6; }

/* =============================================================================
   Подвал
   ========================================================================== */
.site-footer { background: var(--dark); color: #cdd3f0; padding-top: 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 32px;
    padding-bottom: 40px;
}
.logo--footer { color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 15px; color: #aab2dd; max-width: 240px; }
.footer-reg { font-size: 13px; color: #7f88b8; margin-top: 10px; }
.footer-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 700;
}
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #cdd3f0; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { font-size: 15px; line-height: 1.5; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a {
    display: inline-grid; place-items: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #cdd3f0;
    font-size: 14px;
}
.footer-social a:hover { color: #fff; border-color: var(--cyan); text-decoration: none; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #9aa2ce;
}
.footer-bottom a { color: #cdd3f0; }
.to-top:hover { color: #fff; }

/* =============================================================================
   Cookie-баннер
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 20px; right: 20px; bottom: 20px;
    max-width: 760px;
    margin: 0 auto;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 100;
}
/* Важно: без этого правила display:flex перебивает атрибут hidden,
   и баннер не скрывается при нажатии Accept/Decline. */
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; }
.cookie-banner a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-banner .btn { padding: 9px 18px; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* =============================================================================
   Юридические страницы (Privacy / Terms / Cookies)
   ========================================================================== */
.legal { padding: var(--gap) 0; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal .legal-updated { color: var(--ink-soft); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }

/* =============================================================================
   Уважаем системную настройку «уменьшить движение»:
   отключаем анимации орбиты и переходы для таких пользователей.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
