﻿/* ===========================
   Slavin.pro - Design System v3 (Premium Dark)
   цель: дорогой, контрастный, enterprise-стиль
   FIX: gradients scoped to HERO only
   FIX: header/nav safe for WebForms (wucHeaderNav)
   FIX: mobile layout
   =========================== */

/* ---- TOKENS ---- */
:root {
    /* Layout */
    --container-width: 1200px;
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 56px;
    --space-10: 72px;
    --space-11: 96px;
    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    /* Typography */
    --font-main: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --text-3xl: 36px;
    --text-4xl: 46px;
    --text-5xl: 50px;
    /* Premium Dark palette */
    --bg-page: #070A12;
    --bg-section: #070A12;
    --bg-section-muted: #0B1020;
    --surface-1: #0F1630;
    --surface-2: #111B3A;
    --border: rgba(255,255,255,0.10);
    --text-primary: rgba(255,255,255,0.92);
    --text-secondary: rgba(255,255,255,0.70);
    --text-muted: rgba(255,255,255,0.56);
    /* Single accent */
    --accent: #4F8CFF;
    --accent-strong: #2E6BFF;
    /* Shadows */
    --shadow-lg: 0 18px 44px rgba(0,0,0,0.55);
    --shadow-xl: 0 28px 70px rgba(0,0,0,0.65);
    /* Focus */
    --focus: 0 0 0 4px rgba(79,140,255,0.22);
}

/* ---- BASE RESET ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page); /* IMPORTANT: no global gradients */
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* ---- CONTAINER / SECTIONS ---- */
.ds-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.ds-section {
    padding: var(--space-11) 0;
    background: var(--bg-section);
}

.ds-section--muted {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
    border-top: 1px solid rgba(255,255,255,0.06);
    /*border-bottom: 1px solid rgba(255,255,255,0.06);*/
}

/* ---- HERO (LOCAL GRADIENT ONLY) ---- */
/* ставь class="ds-section ds-hero" на hero section */
.ds-hero {
    position: relative;
    overflow: hidden;
}

    .ds-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 600px at 20% -10%, rgba(79,140,255,0.18), transparent 55%), radial-gradient(900px 500px at 90% 0%, rgba(79,140,255,0.10), transparent 55%);
        pointer-events: none;
    }

    .ds-hero > .ds-container {
        position: relative; /* чтобы контент был над ::before */
        z-index: 1;
    }

/* ---- TYPOGRAPHY ---- */
.ds-h1 {
    font-size: var(--text-5xl);
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
}

.ds-h2 {
    font-size: var(--text-3xl);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-6) 0;
    color: var(--text-primary);
}

.ds-h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0 0 var(--space-4) 0;
    color: var(--text-primary);
}

.ds-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin: 0;
}

.ds-text-muted {
    color: var(--text-muted);
}

/* ---- UTILITIES ---- */
.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.text-center {
    text-align: center;
}

/* ---- BUTTONS ---- */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    user-select: none;
    white-space: nowrap;
}

    .ds-btn:hover {
        text-decoration:none;
    }

    .ds-btn:focus {
        outline: none;
        box-shadow: var(--focus);
    }

.ds-btn-primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    color: #071021;
    border-color: rgba(255,255,255,0.10);
    box-shadow: 0 14px 30px rgba(79,140,255,0.22);
}

    .ds-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 38px rgba(79,140,255,0.28);
    }

.ds-btn-outline {
    background: rgba(255,255,255,0.02);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.16);
}

    .ds-btn-outline:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.28);
    }

/* ---- CARDS / GRIDS ---- */
.ds-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
}

.ds-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .ds-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
        border-color: rgba(255,255,255,0.18);
        background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
        text-decoration: none;
    }

.ds-card-title {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.ds-card-text {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

/* ---- META CHIPS ---- */
.ds-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

    .ds-meta span {
        font-size: var(--text-sm);
        color: var(--text-secondary);
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.10);
    }

/* ---- LISTS ---- */
.ds-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .ds-list li {
        position: relative;
        padding-left: 26px;
        margin-bottom: 14px;
        color: var(--text-secondary);
        font-size: var(--text-lg);
    }

        .ds-list li::before {
            content: "●";
            position: absolute;
            left: 0;
            top: -1px;
            color: var(--accent);
            font-size: 18px;
        }

/* ===========================
   HEADER (MasterPage)
   =========================== */
.ds-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7,10,18,0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ds-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    min-height: 76px;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

/* Brand */
.ds-brand-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    font-weight: 850;
    /*    letter-spacing: 0.06em;
          text-transform: uppercase;
    */
}

    .ds-brand-link:hover
    {
        text-decoration:none;
    }

    .ds-brand-name {
        color: var(--text-primary);
    }

.ds-brand-domain {
    color: var(--accent);
}

/* Nav area */
.ds-nav {
    flex: 1;
    min-width: 0;
}

    /* Make wucHeaderNav safe (ul/li/a) */
    .ds-nav ul {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 18px;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }

    .ds-nav li {
        margin: 0;
        padding: 0;
    }

    .ds-nav a {
        text-decoration: none;
        color: var(--text-secondary);
        font-weight: 650;
        font-size: 14px;
        padding: 10px 10px;
        border-radius: 999px;
        transition: background .15s ease, color .15s ease;
    }

        .ds-nav a:hover {
            color: var(--text-primary);
            background: rgba(255,255,255,0.04);
        }

/* Right side */
.ds-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.ds-lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ds-lang-switch a {
        font-size: 12px;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--text-muted);
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.10);
        background: rgba(255,255,255,0.02);
    }

        .ds-lang-switch a:hover {
            color: var(--text-primary);
            border-color: rgba(255,255,255,0.20);
        }

/* ===========================
   HERO GRID
   =========================== */
.ds-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: var(--space-9);
    align-items: center;
    min-height: 68vh;
}

.ds-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ds-avatar {
    /*width: 320px;
    height: 320px;*/
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 26px 80px rgba(0,0,0,0.62);
}

/* ===========================
   MAIN / FOOTER
   =========================== */
.ds-main {
    min-height: 70vh;
}

.ds-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.01);
    padding: var(--space-9) 0;
}

.ds-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.ds-footer-title {
    font-weight: 850;
    letter-spacing: 0.06em;
    /*text-transform: uppercase;*/
    color: var(--text-primary);
}

.ds-footer-sub {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.ds-footer-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .ds-cards-3 {
        grid-template-columns: 1fr;
    }

    .ds-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ds-avatar {
        /*width: 280px;
        height: 280px;*/
        width: 250px;
        height: 350px;
    }

    .ds-h1 {
        font-size: 46px;
    }
}

@media (max-width: 640px) {
    .ds-container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .ds-header-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ds-nav {
        flex-basis: 100%;
        order: 3;
    }

        .ds-nav ul {
            gap: 10px;
        }

    .ds-header-actions {
        width: 100%;
        justify-content: space-between;
        order: 2;
    }

    .ds-h1 {
        font-size: 40px;
    }

    .ds-text {
        font-size: 17px;
    }

    /* ВАЖНО: иначе кнопки будут "рвать" строку */
    .ds-btn {
        width: 100%;
    }

    /* Если у тебя две кнопки рядом - убираем "ml-4" из разметки или перекрываем так: */
    .ml-4 {
        margin-left: 0 !important;
        margin-top: 12px;
    }
}


/* ===========================
   MOBILE HEADER FIX
   =========================== */
@media (max-width: 640px) {

    .ds-header-inner {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px;
    }

    /* Навигация */
    .ds-nav ul {
        justify-content: center;
        gap: 6px;
    }

    .ds-nav a {
        font-size: 13px;
        padding: 6px 8px; /* КЛЮЧЕВО */
    }

    /* Кнопка */
    .ds-header-actions .ds-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Языки */
    .ds-lang-switch a {
        padding: 6px 8px;
        font-size: 11px;
    }
}


/* ===========================
   HERO MOBILE ORDER
   =========================== */
@media (max-width: 640px) {

    .ds-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

        .ds-hero-grid > div:first-child {
            order: 1; /* ТЕКСТ */
        }

    .ds-hero-visual {
        order: 2; /* АВАТАР */
    }

    .ds-avatar {
        /*width: 220px;
        height: 220px;*/
        width: 250px;
        height: 350px;
        margin: 0 auto;
    }

    .ds-h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .ds-text {
        font-size: 17px;
    }
}


@media (max-width: 640px) {
    .ds-section {
        padding: 64px 0;
    }
}

/* ===========================
   CARDS - MOBILE POLISH
   =========================== */
@media (max-width: 640px) {

    .ds-card {
        padding: 20px;
        border-radius: 18px;
        box-shadow: 0 16px 36px rgba(0,0,0,0.45);
    }

    .ds-card-title {
        font-size: 17px;
    }

    .ds-card-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 640px) {
    .ds-hero .ds-text {
        max-width: 100%;
    }
}

@media (max-width: 640px) {

    .ds-section + .ds-section {
        padding-top: 56px;
    }

    .ds-list li {
        font-size: 16px;
        line-height: 1.55;
    }
}

@media (max-width: 640px) {

    .ds-section.text-center .ds-btn {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ===== Contact form inputs ===== */
.ds-input {
    width: 100%;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .ds-input:focus {
        border-color: rgba(79,140,255,0.45);
        box-shadow: var(--focus);
        background: rgba(255,255,255,0.04);
    }

.ds-textarea {
    resize: vertical;
    min-height: 140px;
}

.ds-link-strong {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

    .ds-link-strong:hover {
        color: var(--accent);
    }


/* ===== Select (DropDownList) fix ===== */
select.ds-input {
    background-color: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.16);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    /* options inside select */
    select.ds-input option {
        background-color: #0B1020; /* bg-section-muted */
        color: var(--text-primary);
    }

select.ds-input {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}


/* ===========================
   NEW CLASSES - Default.aspx v2
   =========================== */

/* ---- EYEBROW (над h1) ---- */
.ds-eyebrow {
    font-size: var(--text-sm);
    font-weight: 750;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

/* ---- AVATAR CAPTION (под фото) ---- */
.ds-avatar-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-5);
    text-align: center;
}

    .ds-avatar-caption strong {
        font-size: var(--text-lg);
        font-weight: 750;
        color: var(--text-primary);
    }

    .ds-avatar-caption span {
        font-size: var(--text-sm);
        color: var(--text-muted);
    }

/* ---- PROOF STRIP ---- */
.ds-section--dark {
    background: var(--surface-1);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ds-proof-strip {
    padding: var(--space-9) 0;
}

.ds-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-7);
    text-align: center;
}

.ds-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.ds-proof-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}

.ds-proof-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 160px;
}

/* ---- CARD CENTERED (для цифр внутри секции) ---- */
.ds-card--centered {
    text-align: center;
}

    .ds-card--centered .ds-proof-number {
        font-size: var(--text-3xl);
        display: block;
        margin-bottom: var(--space-3);
    }

    .ds-card--centered .ds-card-text {
        font-size: var(--text-sm);
        color: var(--text-muted);
    }

/* ---- FAQ ---- */
.ds-faq {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ds-faq-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

    .ds-faq-item[open] {
        border-color: rgba(79,140,255,0.25);
        background: linear-gradient(180deg, rgba(79,140,255,0.06), rgba(255,255,255,0.02));
    }

    .ds-faq-item:hover {
        border-color: rgba(255,255,255,0.18);
    }

.ds-faq-question {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    user-select: none;
}

    /* убираем стандартный треугольник в Safari/Chrome */
    .ds-faq-question::-webkit-details-marker {
        display: none;
    }

    .ds-faq-question::after {
        content: "+";
        font-size: var(--text-xl);
        font-weight: 300;
        color: var(--accent);
        flex-shrink: 0;
        transition: transform .2s ease;
    }

details[open] .ds-faq-question::after {
    transform: rotate(45deg);
}

.ds-faq-answer {
    margin-top: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-md);
    line-height: 1.7;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ---- CONTACT LINE (под CTA кнопкой) ---- */
.ds-contact-line {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

    .ds-contact-line a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color .15s ease;
    }

        .ds-contact-line a:hover {
            color: var(--accent);
        }

/* ---- mt-8 utility (используется в flagship секции) ---- */
.mt-8 {
    margin-top: var(--space-8);
}

/* ===========================
   RESPONSIVE - новые классы
   =========================== */
@media (max-width: 1024px) {
    .ds-proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .ds-proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    .ds-proof-number {
        font-size: var(--text-3xl);
    }

    .ds-faq-question {
        font-size: var(--text-md);
    }

    .ds-faq-item {
        padding: var(--space-5);
    }

    .ds-avatar-caption strong {
        font-size: var(--text-md);
    }
}


/* ===========================
   CONTACT PAGE
   =========================== */

.ds-contact-hero {
    padding: var(--space-8) 0;
}

.ds-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-7);
    align-items: start;
}

.ds-contact-form-card {
    position: sticky;
    top: 100px;
}

.ds-form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.ds-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ds-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.ds-form-footnotes {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,0.07);
}

    .ds-form-footnotes span {
        font-size: var(--text-xs);
        color: var(--text-muted);
    }

.ds-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.ds-contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-5);
}

.ds-contact-method {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-contact-method-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Карточка с акцентной рамкой */
.ds-card--accent-border {
    border-color: rgba(79,140,255,0.25);
    background: linear-gradient(180deg, rgba(79,140,255,0.06), rgba(255,255,255,0.02));
}

/* ===========================
   CONTACT RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .ds-contact-grid {
        grid-template-columns: 1fr;
    }

    .ds-contact-form-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .ds-contact-hero {
        padding: var(--space-5) 0;
    }
}

