/* ===== Фирменные токены — холодная палитра (индиго/сталь/лёд) ===== */
:root {
    --brand: #4f5bd5;
    --brand-2: #6d7cff;
    --accent: #38bdf8;
    --bg: #0c0e16;
    --surface: #141824;
    --surface-2: #1b2030;
    --text: #eef1ف7;
    --text: #eef1f7;
    --muted: #99a1b3;
    --border: rgba(255,255,255,0.08);
    --grad: linear-gradient(135deg, #4f5bd5 0%, #6d7cff 45%, #38bdf8 100%);
    --radius-1: 14px;
    --radius-2: 22px;
    --radius-3: 28px;
    --font-display: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-sans: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out, cubic-bezier(.16,1,.3,1)), transform .7s var(--ease-out, cubic-bezier(.16,1,.3,1)); }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* мягкие mesh-пятна на фоне */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px circle at 10% 5%, rgba(79,91,213,0.18), transparent 55%),
        radial-gradient(700px circle at 90% 30%, rgba(56,189,248,0.12), transparent 55%),
        radial-gradient(500px circle at 50% 100%, rgba(109,124,255,0.1), transparent 60%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s var(--ease-out, ease), box-shadow .2s ease;
    box-shadow: 0 12px 30px -8px rgba(79,91,213,0.6);
    font-family: inherit;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(79,91,213,0.75); }
.btn:active { transform: translateY(-1px); }
.btn-full { width: 100%; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12,14,22,0.7);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav { display: flex; gap: 36px; }
.nav a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s ease;
    position: relative;
}
.nav a:hover { color: var(--text); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--grad);
    transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 26px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(12,14,22,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    transform: translateY(-120%);
    transition: transform .35s var(--ease-out, ease);
    padding: 24px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
    padding: 14px 12px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background .2s ease;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(12,14,22,0.9) 0%, rgba(12,14,22,0.6) 45%, rgba(12,14,22,0.3) 100%),
        linear-gradient(0deg, rgba(12,14,22,0.85) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    padding: 9px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    backdrop-filter: blur(10px);
    margin-bottom: 26px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #c7cfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(238,241,247,0.85);
    max-width: 520px;
    margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats { padding: 60px 0; border-bottom: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    transition: transform .25s ease, border-color .25s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(109,124,255,0.4); }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    margin-top: 10px;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
}

/* ===== Секции ===== */
.section { padding: clamp(72px, 12vw, 120px) 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(109,124,255,0.12);
    border: 1px solid rgba(109,124,255,0.3);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-2);
    margin-bottom: 18px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
}

/* ===== Bento Portfolio ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 20px;
}
.bento-item {
    position: relative;
    border-radius: var(--radius-3);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
}
.bento-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out, ease);
}
.bento-item:hover img { transform: scale(1.08); }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    background: linear-gradient(0deg, rgba(12,14,22,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
}
.bento-item:hover .bento-overlay { opacity: 1; }
.bento-tag {
    display: inline-block;
    width: fit-content;
    padding: 5px 14px;
    background: var(--grad);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.bento-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: var(--radius-3);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 70px -25px rgba(0,0,0,0.8);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(12,14,22,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
}
.about-content .section-title { text-align: left; margin-bottom: 24px; }
.about-text {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 18px;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}
.feature-item { display: flex; gap: 16px; align-items: center; }
.feature-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    background: rgba(109,124,255,0.12);
    border: 1px solid rgba(109,124,255,0.3);
    border-radius: var(--radius-1);
    color: var(--brand-2);
}
.feature-title { font-weight: 700; font-size: 1.05rem; }
.feature-desc { color: var(--muted); font-size: .92rem; }

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    padding: 36px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(109,124,255,0.4);
    box-shadow: 0 30px 60px -25px rgba(79,91,213,0.5);
}
.service-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
}
.service-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-desc {
    color: var(--muted);
    font-size: .98rem;
    margin-bottom: 22px;
}
.service-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ===== Brands ===== */
.brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.brand-name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--muted);
    padding: 12px 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all .25s ease;
    cursor: default;
}
.brand-name:hover {
    color: var(--text);
    border-color: rgba(109,124,255,0.5);
    transform: translateY(-4px);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info .section-title { text-align: left; margin-bottom: 22px; }
.contact-text {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 40px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.contact-icon {
    flex-shrink: 0;
    width: 50px; height: 50px;
    display: grid;
    place-items: center;
    background: var(--grad);
    border-radius: var(--radius-1);
    color: #fff;
}
.contact-label { color: var(--muted); font-size: .85rem; }
.contact-value { font-weight: 600; font-size: 1.05rem; }

.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-3);
    padding: 40px;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; font-size: .92rem; }
.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-1);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(109,124,255,0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; }

.success-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--accent);
}
.success-message svg { margin-bottom: 20px; }
.success-message h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 10px;
}
.success-message p { color: var(--muted); }

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.footer-tagline { color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    transition: all .25s ease;
}
.footer-social a:hover {
    color: #fff;
    background: var(--grad);
    transform: translateY(-4px);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .9rem;
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .nav { display: none; }
    .burger { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 1; }
    .bento-wide { grid-column: span 2; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .bento-large, .bento-wide { grid-column: span 1; }
    .services-grid { grid-template-columns: 1fr; }
    .hero { min-height: 85vh; }
    .contact-form-wrap { padding: 26px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn, .hero-cta .btn-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}