/* =========================
   DESIGN TOKENS
========================= */
:root {
    --bg: #0f1113;
    --bg-soft: #16181b;
    --bg-soft-2: #1b1e22;

    --text: #e6e6e6;
    --text-muted: #a1a1a1;

    --accent: #a58452;
    --accent-hover: #b99661;

    --border: #2a2d31;

    --radius: 10px;

    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;

    --shadow-soft: 0 18px 42px rgba(0,0,0,0.35);

    /* Typography system */
    --fs-base: 17px;
    --fs-sm: 15px;
    --fs-btn: 15px;

    --lh-base: 1.65;
    --lh-tight: 1.25;

    --fw-regular: 450;
    --fw-medium: 600;
    --fw-bold: 750;

    /* system-first stack, автономно */
    --font: system-ui, -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-weight: var(--fw-regular);

    background: var(--bg);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   SECTIONS (ОБЪЁМ)
========================= */
.section {
    padding: 120px 0;
    position: relative;

    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section--soft {
    background: linear-gradient(
        to bottom,
        var(--bg-soft),
        var(--bg-soft-2)
    );
}

.section > .container > h2 {
    margin-bottom: 56px;
}

.section p {
    max-width: 720px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
    font-weight: var(--fw-bold);
}

h2 {
    font-size: 32px;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    margin: 0;
    font-weight: var(--fw-bold);
}

h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: var(--fw-medium);
}

p {
    color: var(--text-muted);
    margin: 0 0 16px;
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(22,24,27,0.96);
    border-bottom: 1px solid var(--border);
}

@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .site-header {
        background: rgba(22,24,27,0.82);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav {
    display: flex;
    gap: 14px;
}

.nav a {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.01em;

    padding: 8px 16px;
    border-radius: var(--radius);
    transition:
        background-color var(--transition),
        transform var(--transition-fast);
}

.nav a:hover {
    background: rgba(255,255,255,0.06);
}

/* =========================
   LOGO
========================= */
.logo {
    display: inline-flex;
    align-items: center;

    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text);
    padding: 0;

    transition: color var(--transition), text-shadow var(--transition);
}

.logo:hover {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(165,132,82,0.35);
}

/* =========================
   BUTTONS
========================= */
button,
.btn {
    font-family: inherit;
    font-size: var(--fs-btn);
    font-weight: var(--fw-medium);
    letter-spacing: 0.01em;

    padding: 15px 30px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition-fast);
}

.btn--primary {
    background: var(--accent);
    color: #111;
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 22px rgba(165,132,82,0.25);
}

.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(165,132,82,0.08);
}

.btn--full {
    width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
    padding: 180px 0 150px;
}

/* =========================
   PRODUCTS
========================= */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.product-card {
    background: var(--bg-soft);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}

/* =========================
   PROCESS
========================= */
.process__steps li {
    margin-bottom: 14px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    padding: 60px 0;
    background: var(--bg-soft);
    text-align: center;
    color: var(--text-muted);
}

/* =========================
   FORMS
========================= */
.form__input,
.form__textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 16px;

    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);

    font-size: var(--fs-base);
    font-weight: var(--fw-regular);

    transition: border-color var(--transition);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form__textarea {
    resize: vertical;
}

/* =========================
   MODAL
========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity var(--transition);
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.modal__window {
    position: relative;
    background: var(--bg-soft);
    max-width: 480px;
    width: calc(100% - 40px);
    padding: 36px;

    border-radius: var(--radius);
    border: 1px solid var(--border);

    transform: translateY(24px) scale(0.97);
    opacity: 0;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.modal.is-open .modal__window {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal__close {
    position: absolute;
    right: 16px;
    top: 16px;

    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal__close:hover {
    color: var(--text);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    button,
    .btn {
        font-size: 15px;
        padding: 14px 22px;
    }
}
