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

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --dark: #0f1419;
    --dark-2: #141a21;
    --dark-3: #1a1f2e;
    --dark-4: #232a3d;
    --accent: #e8833a;
    --accent-hover: #d6762e;
    --light: #f5f3ef;
    --text: #2b2b2b;
    --text-muted: #6b7280;
    --white: #ffffff;
}

/* ============================================================
   BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--dark);
    line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

section { padding: 80px 0; }

h1, h2, h3 { line-height: 1.25; }

.section-title { font-size: 36px; margin-bottom: 16px; color: var(--dark); }
.section-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 48px; max-width: 640px; }

/* Buttons */
.btn {
    display: inline-block; background: var(--accent); color: var(--white);
    padding: 12px 28px; border-radius: 6px; text-decoration: none;
    font-weight: 600; font-size: 15px; transition: 0.2s; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-primary {
    background: var(--accent); color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
    background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   ORNAMENT
   ============================================================ */
.ornament {
    height: 24px;
    background-color: var(--light);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='%23cc2200'%3E%3Cpath d='M24 2 L28 6 L24 10 L20 6Z'/%3E%3Cpath d='M24 14 L28 18 L24 22 L20 18Z'/%3E%3C/g%3E%3Cg fill='%23e8833a'%3E%3Cpath d='M8 6 L12 10 L8 14 L4 10Z'/%3E%3Cpath d='M44 6 L48 10 L44 14 L40 10Z'/%3E%3Cpath d='M16 10 L20 14 L16 18 L12 14Z'/%3E%3Cpath d='M32 10 L36 14 L32 18 L28 14Z'/%3E%3C/g%3E%3Cg fill='rgba(0,0,0,0.1)'%3E%3Crect x='23' y='5' width='2' height='2'/%3E%3Crect x='23' y='17' width='2' height='2'/%3E%3Crect x='7' y='9' width='2' height='2'/%3E%3Crect x='43' y='9' width='2' height='2'/%3E%3Crect x='15' y='13' width='2' height='2'/%3E%3Crect x='31' y='13' width='2' height='2'/%3E%3C/g%3E%3Cpath d='M0 11 L3 12 L0 13Z' fill='%23cc2200'/%3E%3Cpath d='M48 11 L51 12 L48 13Z' fill='%23cc2200'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}

.ornament--on-dark {
    height: 24px;
    background-color: var(--dark);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='rgba(255,255,255,0.2)'%3E%3Cpath d='M24 2 L28 6 L24 10 L20 6Z'/%3E%3Cpath d='M24 14 L28 18 L24 22 L20 18Z'/%3E%3C/g%3E%3Cg fill='rgba(232,131,58,0.3)'%3E%3Cpath d='M8 6 L12 10 L8 14 L4 10Z'/%3E%3Cpath d='M44 6 L48 10 L44 14 L40 10Z'/%3E%3Cpath d='M16 10 L20 14 L16 18 L12 14Z'/%3E%3Cpath d='M32 10 L36 14 L32 18 L28 14Z'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.08)'%3E%3Crect x='23' y='5' width='2' height='2'/%3E%3Crect x='23' y='17' width='2' height='2'/%3E%3Crect x='7' y='9' width='2' height='2'/%3E%3Crect x='43' y='9' width='2' height='2'/%3E%3Crect x='15' y='13' width='2' height='2'/%3E%3Crect x='31' y='13' width='2' height='2'/%3E%3C/g%3E%3Cpath d='M0 11 L3 12 L0 13Z' fill='rgba(255,255,255,0.2)'/%3E%3Cpath d='M48 11 L51 12 L48 13Z' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 32px; }

.header .logo {
    display: flex; align-items: center; text-decoration: none;
    font-size: 20px; font-weight: 800; letter-spacing: 2px; color: var(--white);
}
.logo-text { color: var(--white); }
.logo-accent { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-tg {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%; transition: all 0.2s;
}
.header-tg:hover { color: var(--accent); border-color: var(--accent); }

.burger {
    display: none; background: none; border: none; width: 32px; height: 32px;
    flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; padding: 100px 0 100px;
    background: var(--dark);
    color: var(--white); overflow: hidden;
    background-image:
        linear-gradient(rgba(232, 131, 58, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 131, 58, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 70%);
    pointer-events: none;
}
.hero::after {
    content: 'Ў'; position: absolute; right: -30px; bottom: -90px;
    font-size: 460px; color: rgba(232, 131, 58, 0.07);
    font-family: Georgia, serif; line-height: 1;
}

.hero-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 4px; margin-bottom: 20px; text-transform: uppercase; }

.hero-title { font-size: 52px; line-height: 1.1; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; }

.hero-sub { font-size: 18px; line-height: 1.5; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 540px; }

.hero-cta { display: flex; gap: 16px; margin-bottom: 40px; }

.trust-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px;
    align-items: start; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1); max-width: 540px;
}
.trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.8); }
.trust-icon { color: var(--accent); font-size: 16px; flex-shrink: 0; line-height: 22px; width: 16px; text-align: center; }

/* Techcard */
.techcard {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(232, 131, 58, 0.3);
    border-radius: 4px; padding: 16px 20px; position: relative;
}
.techcard::before,
.techcard::after {
    content: ''; position: absolute; width: 16px; height: 16px; border: 1px solid var(--accent);
}
.techcard::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.techcard::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.techcard-header { padding-bottom: 12px; border-bottom: 1px solid rgba(232, 131, 58, 0.2); margin-bottom: 14px; }
.techcard-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }

.techcard-slot { aspect-ratio: 4 / 3; background: rgba(0,0,0,0.3); border: 1px dashed rgba(232, 131, 58, 0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; }
.techcard-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity 0.4s ease; }
.techcard-type { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); text-align: center; margin: 12px 0 4px; min-height: 12px; }
.techcard-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 14px; text-align: center; min-height: 18px; }
.techcard-placeholder { text-align: center; color: rgba(255,255,255,0.4); }
.techcard-logo { display: block; font-size: 56px; font-weight: 800; color: rgba(232, 131, 58, 0.3); line-height: 1; margin-bottom: 8px; }
.techcard-hint { font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: 1px; }

.techcard-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(232, 131, 58, 0.2); border-bottom: 1px solid rgba(232, 131, 58, 0.2); }
.spec-label { display: block; font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.spec-value { font-size: 13px; color: var(--white); font-weight: 600; }

.techcard-footer { padding-top: 12px; text-align: right; font-size: 11px; color: rgba(232, 131, 58, 0.6); letter-spacing: 2px; text-transform: uppercase; }

/* ============================================================
   ENGINEERING / SERVICES
   ============================================================ */
#engineering { background: var(--light); padding: 80px 0; }
#engineering .section-title, .cases .section-title { color: var(--dark); }
#engineering .section-subtitle, .cases .section-subtitle { color: var(--text-muted); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-top: 4px solid var(--accent); display: flex; flex-direction: column; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--dark-3); }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.service-for {
    display: block;
    font-size: 13px;
    color: var(--accent);
    border-top: 1px dashed rgba(232, 131, 58, 0.4);
    padding-top: 12px;
    margin-top: auto;
}

.park { margin-top: 48px; background: var(--white); border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.park div b { display: block; font-size: 16px; color: var(--dark-3); margin-bottom: 4px; }
.park div span { color: var(--text-muted); font-size: 14px; }

/* ============================================================
   MINSK / 3D-печать
   ============================================================ */
.minsk { background: var(--dark-2); color: var(--white); padding: 80px 0; }
.minsk .section-title { color: var(--white); }
.minsk .section-sub { color: rgba(255,255,255,0.7); }

.minsk-calc {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; padding: 28px 32px; position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(232,131,58,0.3); border-radius: 4px;
}
.minsk-calc::before, .minsk-calc::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    border: 1px solid var(--accent);
}
.minsk-calc::before { top: -1px; left: -1px;
    border-right: none; border-bottom: none; }
.minsk-calc::after { bottom: -1px; right: -1px;
    border-left: none; border-top: none; }

.minsk-calc-text h3 { font-size: 20px; color: var(--white); margin-bottom: 8px; }
.minsk-calc-text p { font-size: 14px; color: rgba(255,255,255,0.7); max-width: 560px; }

@media (max-width: 768px) {
    .minsk-calc { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================================
   CASES
   ============================================================ */
.cases { background: var(--white); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--light); border-radius: 12px; overflow: hidden; transition: transform 0.2s; }
.case-card:hover { transform: translateY(-6px); }

/* Case badges */
.case-badges { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.case-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent);
    padding: 2px 6px; border: 1px solid rgba(232, 131, 58, 0.4); border-radius: 2px;
}
.case-badge--accent { background: var(--accent); color: var(--dark-2); border-color: var(--accent); }

/* Hidden cards */
.case-card--hidden {
    display: none;
}
.case-card--hidden.show {
    display: block;
    animation: casesReveal 0.7s ease both;
}

@keyframes casesReveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cases toggle */
.cases-toggle-wrap { text-align: center; margin-top: 40px; }
.cases-toggle {
    margin: 0; padding: 14px 48px;
    font-size: 16px; font-weight: 700;
    min-width: 260px;
}
.cases-toggle .arrow { display: inline-block; transition: transform 0.3s; margin-left: 6px; }
.cases-toggle.opened .arrow { transform: rotate(180deg); }

/* Card img with photo support */
.case-img {
    height: 180px;
    background: linear-gradient(135deg, var(--dark-4), var(--dark-3));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: rgba(255,255,255,0.4); font-size: 13px; text-align: center;
    overflow: hidden;
}
.case-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.case-img svg { opacity: 0.5; }
.case-body { padding: 24px; }
.case-body h3 { font-size: 18px; margin-bottom: 10px; color: var(--dark-3); }
.case-body p { font-size: 14px; color: var(--text-muted); }
.case-result { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 14px; font-weight: 600; color: var(--accent); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: 80px 0; background: var(--dark-2); color: var(--white); }
.process .section-title { color: var(--white); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding-top: 8px; }
.step-num { width: 40px; height: 40px; border: 1px solid var(--accent); color: var(--accent); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; border-radius: 4px; margin-bottom: 16px; }
.process-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-step p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.7); }

/* ============================================================
   MATERIALS
   ============================================================ */
.materials { padding: 80px 0; background: var(--light); color: var(--text); }
.materials .section-title { color: var(--dark); }
.materials .section-sub { color: var(--text-muted); }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.material-card { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: 4px; padding: 24px; }
.material-card h3 { color: var(--accent); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.material-card p { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.material-note { border-style: dashed; }
.material-note h3 { color: var(--text-muted); }
.materials-park { font-size: 15px; color: var(--text); border-top: 1px solid rgba(232,131,58,0.3); padding-top: 24px; }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy { padding: 100px 0; background: var(--dark); color: var(--white); text-align: center; background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(232,131,58,0.05) 10px 11px); background-size: 20px 20px; background-position: top; background-repeat: repeat-x; }
.philosophy .eyebrow { text-align: center; }
.philosophy .triad { display: flex; justify-content: center; gap: 24px; margin: 24px 0 32px; flex-wrap: wrap; }

.triad-word { font-size: 56px; font-weight: 900; letter-spacing: 2px; color: var(--white); }
.triad-accent { color: var(--accent); }
.philosophy-text { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.75); }

.philosophy-intro {
    max-width: 760px;
    margin: 0 auto 56px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
}

.triad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
}

.triad-item {
    padding-top: 24px;
    border-top: 3px solid var(--accent);
}

.triad-item .word {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 4px;
}

.triad-item .sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.triad-item p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts { padding: 80px 0; background: var(--dark-2); color: var(--white); }
.contacts .section-title { color: var(--white); }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }

.contact-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 28px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; display: block; }
.contact-card:hover { border-color: rgba(232,131,58,0.5); transform: translateY(-2px); }
.contact-card h3 { font-size: 18px; margin: 0 0 8px; color: var(--white); }
.contact-card p { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0 0 16px; }

.contact-icon { font-size: 28px; margin-bottom: 16px; color: var(--accent); }
.contact-tg .contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(232,131,58,0.15); border-radius: 50%; color: var(--accent); }
.contact-link { color: var(--accent); font-weight: 600; font-size: 14px; }

.contacts-requisites { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06); border-radius: 4px; padding: 28px; }
.contacts-requisites h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; }
.contacts-requisites p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0 0 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 40px 0 24px; background: #0a0d10; color: rgba(255,255,255,0.5); font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 32px; align-items: start; }

.footer .logo { display: flex; align-items: center; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: 2px; color: var(--white); }
.footer-tagline { margin-top: 8px; color: rgba(232,131,58,0.7); font-size: 13px; letter-spacing: 1px; }

.footer-contacts, .footer-reqs, .footer-docs { display: flex; flex-direction: column; gap: 6px; }
.footer-contacts a, .footer-reqs p, .footer-docs a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; margin: 0; }
.footer-contacts a:hover, .footer-docs a:hover { color: var(--accent); }

.footer-legal { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; margin-top: 24px; grid-column: 1 / -1; text-align: center; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* Hero entrance */
.hero .hero-content { animation: fadeInUp 0.8s ease 0.2s both; }
.hero .hero-visual { animation: fadeInUp 0.8s ease 0.5s both; }
.hero .trust-bar { animation: fadeIn 1s ease 0.8s both; }

/* Triad word pulse on hover */
.triad-word { transition: transform 0.2s ease; }
.triad-word:hover { transform: scale(1.05); }

/* Service card hover glow */
.service-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* Case card hover */
.case-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* Process step hover */
.step-num { transition: background-color 0.2s ease, color 0.2s ease; }
.process-step:hover .step-num { background-color: var(--accent); color: var(--white); }

/* Material card hover */
.material-card { transition: transform 0.2s ease, border-color 0.2s ease; }
.material-card:hover { transform: translateY(-2px); border-color: rgba(232,131,58,0.3); }

/* Contact card hover */
.contact-card { transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease; }
.contact-card:hover { background-color: rgba(255,255,255,0.05); }

@media (prefers-reduced-motion: reduce) {
    .animate { opacity: 1; transform: none; }
    .animate, .animate-delay-1, .animate-delay-2, .animate-delay-3,
    .animate-delay-4, .animate-delay-5, .animate-delay-6 { transition: none; }
    .techcard { animation: none; }
    .hero .hero-content, .hero .hero-visual, .hero .trust-bar { animation: none; opacity: 1; }
}

/* ============================================================
   RESPONSIVE — 992px
   ============================================================ */
@media (max-width: 992px) {
    .cases-grid, .services-grid { grid-template-columns: 1fr; }
    .contacts .contacts-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .triad-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .hero { padding: 80px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 36px; }
    .hero-sub { font-size: 16px; }
    .hero-cta { flex-direction: column; }
    .btn { text-align: center; }
    .trust-bar { grid-template-columns: 1fr; }
    .techcard { max-width: 400px; margin: 0 auto; }

    .process-steps, .materials-grid { grid-template-columns: 1fr; }

    .triad-word { font-size: 40px; }
    .philosophy-text { font-size: 16px; }

    .footer-inner { grid-template-columns: 1fr; gap: 20px; }

    .cases-grid { grid-template-columns: 1fr; }

    /* Burger menu */
    .nav {
        position: fixed; top: 64px; left: 0; right: 0;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column; padding: 24px; gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-120%); transition: transform 0.3s ease; z-index: 99;
    }
    .nav.open { transform: translateY(0); }
    .nav a { font-size: 16px; display: block; padding: 8px 0; }
    .header-actions .btn-sm { display: none; }
    .burger { display: flex; }
    .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); }
}

/* Case card cursor + link hint */
.case-card { cursor: pointer; }
.case-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

/* ============================================================
   CASE MODAL
   ============================================================ */
.case-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 13, 16, 0.85);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.case-overlay[hidden] { display: none; }

.case-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.case-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none;
    font-size: 28px; cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.case-modal-close:hover { color: var(--dark); }

.case-modal-head { margin-bottom: 4px; }
.case-modal h3 { font-size: 24px; color: var(--dark-3); margin-top: 8px; }

.case-modal-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
}
.case-modal-specs .modal-spec {
    display: flex; flex-direction: column; gap: 4px;
}
.case-modal-specs .modal-spec-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); font-weight: 600;
}
.case-modal-specs .modal-spec-value {
    font-size: 14px; color: var(--dark-3); font-weight: 600;
}

.case-modal-story h4 {
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent);
    margin: 20px 0 8px;
}
.case-modal-story p {
    font-size: 15px; color: var(--text); line-height: 1.6;
}

.case-modal-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.case-modal-gallery img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
/* 1 фото — во всю ширину */
.case-modal-gallery img:first-child:nth-last-child(1) {
    grid-column: 1 / -1;
}
/* 3 фото — первое во всю ширину, два ниже */
.case-modal-gallery img:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
}

.case-modal-cta {
    display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;
}

body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
    .case-overlay { padding: 0; }
    .case-modal {
        max-width: none; max-height: none; height: 100%;
        border-radius: 0; padding: 24px 20px;
    }
    .case-modal-specs { grid-template-columns: 1fr 1fr; }
    .case-modal-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   HEIGHT RESPONSIVE — низкие экраны и ноутбуки с масштабированием
   ============================================================ */
@media (max-height: 900px) {
    .hero { padding: 48px 0; }
    .hero-title { font-size: 40px; }
    .hero-sub { font-size: 15px; margin-bottom: 20px; }
    .hero-cta { margin-bottom: 20px; }
    .techcard-slot { aspect-ratio: 16 / 10; }
    .techcard-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
    .trust-bar { padding-top: 16px; }
}

@media (max-height: 760px) {
    .hero { padding: 32px 0; }
    .hero-title { font-size: 34px; }
    .techcard-type { margin: 8px 0 2px; }
    .techcard-footer { display: none; }
}