/* ==========================================================
   БРИОЛЕТ — Industrial Bold Design System
   Color palette: Navy (#0d1b2e), Steel (#1e3a5f), Orange (#ff6b00)
   ========================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0d1b2e;
    --navy-light: #132d4f;
    --steel: #1e3a5f;
    --steel-light: #2a4d6e;
    --orange: #ff6b00;
    --orange-hover: #e65f00;
    --orange-glow: rgba(255, 107, 0, 0.25);
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #ced4da;
    --gray-400: #adb5bd;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
    --shadow-glow: 0 0 30px var(--orange-glow);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Top Bar --- */
.top-bar {
    background: var(--navy);
    color: var(--gray-400);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    transition: color var(--transition);
}
.top-link:hover { color: var(--orange); }
.top-link svg { flex-shrink: 0; }

/* --- Header --- */
.header {
    background: var(--navy-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
    background: rgba(13, 27, 46, .97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -1px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    color: var(--white);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1.1;
}
.logo-sub {
    color: var(--gray-400);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    color: var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, .06);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

/* Header phone */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    padding: 10px 20px;
    border: 1.5px solid var(--orange);
    border-radius: 50px;
    transition: all var(--transition);
}
.header-phone:hover {
    background: var(--orange);
    box-shadow: var(--shadow-glow);
}
.header-phone svg { stroke: var(--orange); transition: stroke var(--transition); }
.header-phone:hover svg { stroke: var(--white); }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,46,.92) 0%, rgba(13,27,46,.7) 50%, rgba(13,27,46,.4) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 80px 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 107, 0, .15);
    border: 1px solid rgba(255, 107, 0, .3);
    border-radius: 50px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 28px;
    animation: fadeInUp .8s ease both;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp .8s .15s ease both;
}
.hero-sub {
    font-size: 17px;
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    animation: fadeInUp .8s .3s ease both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp .8s .45s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 0, .35);
}
.btn-primary:hover {
    background: var(--orange-hover);
    box-shadow: 0 6px 30px rgba(255, 107, 0, .5);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--white);
}
.btn-full { width: 100%; }

/* --- Categories --- */
.categories {
    padding: 100px 0;
    background: var(--gray-50);
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 520px;
    margin: 0 auto;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cat-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
}
.cat-card.revealed {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 100ms);
}
.cat-card:nth-child(1) { --i: 0; }
.cat-card:nth-child(2) { --i: 1; }
.cat-card:nth-child(3) { --i: 2; }
.cat-card:nth-child(4) { --i: 3; }

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.cat-img {
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}
.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.cat-card:hover .cat-img img { transform: scale(1.08); }
.cat-info {
    padding: 24px;
}
.cat-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.cat-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 16px;
}
.cat-link {
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cat-card:hover .cat-link { gap: 8px; }

/* --- Advantages --- */
.advantages {
    padding: 80px 0;
    background: var(--white);
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.adv-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.adv-card.revealed { opacity: 1; transform: none; }
.adv-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
}
.adv-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 0, .08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--orange);
    transition: all var(--transition);
}
.adv-card:hover .adv-icon {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1);
}
.adv-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.adv-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* --- Stats --- */
.stats {
    padding: 80px 0;
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-item {
    opacity: 0;
    transform: translateY(20px);
}
.stat-item.revealed { opacity: 1; transform: none; }
.stat-number {
    font-size: 52px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.stat-desc {
    font-size: 13px;
    color: var(--gray-400);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%);
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cta-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta-text p {
    font-size: 16px;
    color: var(--gray-200);
}
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition);
    outline: none;
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus {
    border-color: var(--orange);
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-textarea { resize: vertical; min-height: 100px; }
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
select.form-input option { background: var(--navy); color: var(--white); }

/* --- Trust --- */
.trust {
    padding: 80px 0;
    background: var(--gray-50);
}
.trust-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
}
.trust-item.revealed { opacity: 1; transform: none; }
.trust-item span {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
}
.trust-item:hover svg {
    stroke: var(--orange);
    transform: scale(1.1);
}
.trust-item svg { transition: all var(--transition); }

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-info h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}
.contact-info > p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 40px;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-item svg { flex-shrink: 0; margin-top: 4px; }
.contact-item strong {
    color: var(--navy);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-item div {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}
.contact-form {
    background: var(--navy);
    padding: 40px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: var(--gray-400);
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
    margin-bottom: 20px;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a {
    display: block;
    color: var(--gray-400);
    font-size: 14px;
    padding: 5px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--orange); }
.footer-col p {
    font-size: 14px;
    padding: 3px 0;
}
.footer-socials {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}
.social-link {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
}
.footer-bottom a {
    color: var(--gray-400);
    transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--orange); }

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 99;
    box-shadow: 0 4px 16px rgba(255, 107, 0, .4);
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--orange-hover); transform: translateY(-4px); }

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .cta-inner { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .header-inner { height: 64px; }
    .header-phone { display: none; }
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 32px 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }
    .nav.open { transform: none; }
    .nav-link {
        font-size: 18px;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .hero { min-height: 70vh; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .section-header h2 { font-size: 28px; }
    .categories-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .stat-number { font-size: 40px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content { padding: 48px 0; }
    .hero h1 { font-size: 28px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .categories, .advantages, .trust, .contact { padding: 64px 0; }
    .stats { padding: 56px 0; }
    .contact-form { padding: 28px; }
    .trust-grid { gap: 32px; }
}
