/* ==========================================================================
   Базовые стили (stekspb-стиль)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.55;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.7em;
    color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

p { margin: 0 0 1.2em; color: var(--text-muted); line-height: 1.6; }
a { color: var(--accent-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
strong { color: var(--text); }

ul, ol { padding-left: 1.3em; color: var(--text-muted); }
li { margin-bottom: 0.4em; }

img { max-width: 100%; height: auto; }
::selection { background: rgba(var(--accent-rgb), 0.2); }

/* Контейнер — широкий, как в stekspb (1500px) */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* Секции */
.site-main > section { padding: 90px 0; position: relative; }

/* Заголовок секции */
.section-heading { margin-bottom: 52px; }
.section-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.section-heading h2 { margin-bottom: 0.3em; }
.section-sub { max-width: 720px; margin: 0.4rem 0 0; }

/* Вертикальная метка секции (как text-transform у stekspb) */
.section-label {
    position: absolute;
    left: 12px;
    top: 120px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}
.section-label--blue { color: var(--accent-2); }
.section-label--green { color: var(--accent-3); }

/* Кнопки — красные, как у stekspb (border-radius 3px, при hover — капсула) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-radius 0.3s ease, background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn i { font-size: 1.05em; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:hover {
    color: #fff;
    border-radius: var(--radius-pill);
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hover);
}
.btn-ghost:hover { border-radius: var(--radius-pill); border-color: var(--accent); color: var(--accent); }

.btn-white {
    background: #fff;
    color: var(--accent);
}
.btn-white:hover { color: var(--accent); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); }

.btn-lg { padding: 17px 40px; font-size: 1.15rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Иконки-кнопки (тема) */
.icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.15rem;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn .icon-sun { display: none; }
body.dark-mode .icon-btn .icon-moon { display: none; }
body.dark-mode .icon-btn .icon-sun { display: block; }

/* Поля форм */
.form-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.15);
}
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.reveal-up { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* Мобильная адаптация контейнера */
@media (max-width: 991.98px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .section-label { display: none; }
}
