@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@500;600;700&display=swap');

/* ── Themes ─────────────────────────────────────── */
:root {
    --primary:        #d4920f;
    --primary-dark:   #b07a0a;
    --primary-glow:   rgba(212, 146, 15, 0.18);

    --bg:          #1e2636;
    --surface:     #253040;
    --card:        #2c3a4e;
    --card-hover:  #334457;
    --border:      rgba(255,255,255,0.09);
    --text-h:      #f0f2f5;
    --text-b:      #9aa5b4;
    --text-mid:    #c8d0da;
    --navbar-bg:   rgba(30, 38, 54, 0.93);
    --footer-bg:   #171f2e;
    --input-bg:    rgba(255,255,255,0.04);
    --input-text:  #c8d0da;
    --input-ph:    rgba(140,151,168,0.5);
    --shadow:      rgba(0,0,0,0.3);
    --ghost-text:  rgba(255,255,255,0.025);
}

[data-theme="light"] {
    --bg:          #f0ede8;
    --surface:     #e8e3db;
    --card:        #ffffff;
    --card-hover:  #faf7f3;
    --border:      rgba(0,0,0,0.09);
    --text-h:      #1a1f28;
    --text-b:      #6b7585;
    --text-mid:    #3a4150;
    --navbar-bg:   rgba(240, 237, 232, 0.92);
    --footer-bg:   #1a1f28;
    --input-bg:    #f0ede8;
    --input-text:  #1a1f28;
    --input-ph:    rgba(107,117,133,0.6);
    --shadow:      rgba(0,0,0,0.08);
    --ghost-text:  rgba(0,0,0,0.03);
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg);
    color: var(--text-mid);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.3;
}

.container {
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 16px;
}
@media (min-width:640px)  { .container { padding: 0 24px; } }
@media (min-width:1024px) { .container { padding: 0 32px; } }

/* ── Navbar ──────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 200;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar-content {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0; gap: 12px;
    position: relative;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; cursor: pointer; }
.logo-icon { display: block; flex-shrink: 0; }
.logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1rem; font-weight: 700;
    letter-spacing: 0.03em; text-transform: uppercase;
    line-height: 1.2; color: var(--text-h); transition: color 0.3s;
}
.logo-text small {
    display: block; font-size: 0.6rem; font-weight: 500;
    color: var(--primary); letter-spacing: 0.18em;
}

.hamburger {
    display: flex; flex-direction: column;
    justify-content: center; gap: 5px;
    width: 36px; height: 36px;
    background: none; border: 1px solid var(--border);
    border-radius: 4px; cursor: pointer; padding: 7px; flex-shrink: 0;
}
.hamburger span {
    display: block; height: 1.5px;
    background: var(--text-mid); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width:768px) { .hamburger { display: none; } }

.nav-links {
    display: none; flex-direction: column; list-style: none;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 16px; gap: 0;
    position: absolute; top: 100%; left: -16px; right: -16px;
    z-index: 199; transition: background-color 0.3s;
}
.nav-links.open { display: flex; }
.nav-links li a {
    display: block; padding: 0.65rem 0;
    text-decoration: none; color: var(--text-b);
    font-weight: 500; font-size: 0.85rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
.nav-links li:last-child a { border-bottom: none; }
.nav-links li a:hover { color: var(--primary); }

@media (min-width:768px) {
    .nav-links {
        display: flex !important; flex-direction: row;
        position: static; background: none; border: none;
        padding: 0; gap: 2rem;
    }
    .nav-links li a {
        padding: 0; border: none; position: relative;
    }
    .nav-links li a::after {
        content: ''; position: absolute;
        bottom: -3px; left: 0; width: 0; height: 1px;
        background: var(--primary); transition: width 0.3s;
    }
    .nav-links li a:hover::after { width: 100%; }
    .nav-links li a:hover { color: var(--text-h); }
}

.nav-right {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.theme-btn {
    width: 36px; height: 36px; border-radius: 4px;
    border: 1px solid var(--border); background: none;
    color: var(--text-b); font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); }

.contact-btn {
    background-color: var(--primary); color: #0d0d0d;
    border: none; padding: 0.55rem 1.1rem; border-radius: 3px;
    font-family: 'Sora', sans-serif;
    font-weight: 700; font-size: 0.8rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.contact-btn:hover {
    background-color: #e8a820;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ── Hero ────────────────────────────────────── */
.hero {
    position: relative; background-color: var(--bg);
    overflow: hidden; padding: 5rem 0 5rem;
    min-height: 100svh; display: flex; align-items: flex-start;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--primary-glow) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-glow) 1px, transparent 1px);
    background-size: 56px 56px; opacity: 0.5;
    animation: gridMove 22s linear infinite;
}
.hero::after {
    content: ''; position: absolute; top: -10%; right: -15%;
    width: min(700px, 100vw); height: min(700px, 100vw);
    background: radial-gradient(circle, rgba(212,146,15,0.1) 0%, transparent 65%);
    border-radius: 50%; animation: orb-pulse 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes gridMove { from { transform:translateY(0); } to { transform:translateY(56px); } }
@keyframes orb-pulse { 0%,100%{transform:scale(1);opacity:0.6;} 50%{transform:scale(1.12);opacity:1;} }

/* ── Hero two-column grid ───────────────────────── */
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr;
    gap: 2.5rem; align-items: flex-start; width: 100%;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (min-width: 1100px) {
    .hero-grid { grid-template-columns: 56fr 44fr; }
}

/* ── Hero left ──────────────────────────────────── */
.hero-left { display: flex; flex-direction: column; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 1.1rem;
    opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--primary); }

.hero-left h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--text-h); margin-bottom: 0;
    opacity: 0; animation: fadeUp 0.6s ease 0.35s forwards;
}
.hero-left h1 span { color: var(--primary); }

.hero-services {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin: 1.4rem 0 1.6rem;
    opacity: 0; animation: fadeUp 0.6s ease 0.62s forwards;
}
.hero-tag {
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-b); border: 1px solid var(--border);
    border-radius: 2px; padding: 4px 10px;
    transition: border-color 0.2s, color 0.2s;
}
.hero-tag:hover { border-color: var(--primary); color: var(--primary); }

.hero-value {
    display: flex; align-items: center; gap: 1.5rem;
    margin: 1.4rem 0 1.5rem; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.6s ease 0.5s forwards;
}
.hero-val-item { display: flex; flex-direction: column; gap: 2px; }
.hero-val-num {
    font-family: 'Sora', sans-serif;
    font-size: 2rem; letter-spacing: -0.01em;
    color: var(--primary); line-height: 1;
}
.hero-val-label {
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-b);
}
.hero-val-divider { width: 1px; height: 40px; background: var(--border); }

.hero-btns {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    opacity: 0; animation: fadeUp 0.6s ease 0.75s forwards;
}

/* ── Hero right: about text ─────────────────────── */
.hero-right {
    display: flex; flex-direction: column;
    opacity: 0; animation: fadeUp 0.7s ease 0.45s forwards;
    padding-left: 0;
}
@media (min-width: 900px) {
    .hero-right {
        padding-left: 2rem;
        border-left: 1px solid var(--border);
        align-self: end;
    }
}

.hero-about-label {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: -0.01em;
    color: var(--text-h);
    margin-bottom: 1rem;
    line-height: 1;
}

/* ── Hero theses list ───────────────────────────── */
.hero-theses {
    display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: 4px;
    overflow: hidden; box-shadow: 0 4px 24px var(--shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.thesis {
    display: flex; align-items: flex-start;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    background-color: rgba(33, 44, 58, 0.45);
    position: relative; overflow: hidden;
    transition: background-color 0.25s;
}
[data-theme="light"] .thesis {
    background-color: rgba(255, 255, 255, 0.5);
}
.thesis:last-child { border-bottom: none; }
.thesis:hover { background-color: rgba(40, 52, 71, 0.65); }
[data-theme="light"] .thesis:hover {
    background-color: rgba(250, 247, 243, 0.75);
}
.thesis::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--primary);
    transform: scaleY(0); transition: transform 0.35s ease;
}
.thesis:hover::before { transform: scaleY(1); }

.thesis-body {
    display: flex; flex-direction: column; gap: 5px;
}

.thesis-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.02em; text-transform: uppercase;
    color: var(--text-h); line-height: 1.1;
    transition: color 0.25s;
}
.thesis:hover .thesis-title { color: var(--primary); }

.thesis-text {
    font-size: clamp(0.97rem, 1.6vw, 1.12rem);
    color: var(--text-b); line-height: 1.6;
}
.cta-btn {
    background-color: var(--primary); color: #0d0d0d;
    border: none; padding: 0.85rem 2rem; border-radius: 3px;
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover {
    background-color: #e8a820; transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.cta-secondary {
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-b); background: none; border: none;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
}
.cta-secondary:hover { color: var(--text-h); }

.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
    display: none; flex-direction: column; align-items: center;
    opacity: 0; animation: fadeIn 1s ease 1.6s forwards;
}
.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;} 50%{opacity:1;} }
@media (min-width:768px) { .hero-scroll { display: flex; } }

/* ── Section shared ──────────────────────────── */
.section-header { margin-bottom: 1.5rem; }
@media (min-width:768px) { .section-header { margin-bottom: 2rem; } }

.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 0.6rem;
}
.section-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--primary); }

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    letter-spacing: -0.02em; color: var(--text-h); line-height: 1.05;
    transition: color 0.3s;
}

/* ── Services ────────────────────────────────── */
.services {
    padding: 2.5rem 0 3rem; background-color: var(--surface);
    position: relative; overflow: hidden; transition: background-color 0.3s;
}
.services::before {
    content: 'УСЛУГИ'; position: absolute; top: 2rem; right: -2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 18vw, 13rem);
    color: var(--ghost-text); pointer-events: none;
    letter-spacing: 0.05em; line-height: 1; user-select: none;
}
@media (min-width:768px) { .services { padding: 3rem 0 4rem; } }

.services-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1px; background-color: var(--border);
    border: 1px solid var(--border); border-radius: 4px;
    overflow: hidden; box-shadow: 0 4px 32px var(--shadow);
}
@media (min-width:540px)  { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px) { .services-grid { grid-template-columns: repeat(3,1fr); } }

.service-card {
    background-color: var(--card);
    padding: 1.1rem 1.25rem;
    position: relative; overflow: hidden;
    transition: background-color 0.25s;
}
@media (min-width:768px) { .service-card { padding: 1.35rem 1.5rem; } }
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--primary);
    transition: width 0.4s ease;
}
.service-card:hover { background-color: var(--card-hover); }
.service-card:hover::after { width: 100%; }

.service-num {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem;
    color: rgba(212,146,15,0.1); line-height: 1;
    margin-bottom: 0.35rem; display: block; transition: color 0.3s;
}
.service-card:hover .service-num { color: rgba(212,146,15,0.22); }
.service-icon {
    font-size: 1.4rem; margin-bottom: 0.35rem;
    display: block; transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.12) translateY(-2px); }
.service-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    letter-spacing: 0.01em; text-transform: uppercase;
    margin-bottom: 0.4rem; color: var(--text-h); transition: color 0.3s;
}
.service-card p { color: var(--text-b); font-size: 1.07rem; line-height: 1.6; font-weight: 300; }

/* ── Reviews slider ──────────────────────────── */
.reviews-slider {
    background-color: var(--card); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 4px 32px var(--shadow);
    position: relative; transition: background-color 0.3s;
}
.reviews-slider::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 1;
}

/* All cards in one grid cell — stable height = tallest card */
.reviews-track {
    display: grid;
    grid-template-areas: "slide";
}

.review-card {
    grid-area: slide;
    padding: 1.8rem 1.8rem 1.5rem;
    opacity: 0; visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s linear 0.55s;
    pointer-events: none;
}
@media (min-width:640px) { .review-card { padding: 2rem 2.2rem 1.7rem; } }

.review-card.active {
    opacity: 1; visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.review-top {
    display: flex; align-items: flex-start;
    gap: 1rem; margin-bottom: 1.1rem;
}

.review-ql {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem; line-height: 0.75;
    color: var(--primary); opacity: 0.4;
    flex-shrink: 0; user-select: none;
}

.review-info { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }

.review-company {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700;
    letter-spacing: 0.01em; text-transform: uppercase;
    color: var(--text-h); line-height: 1.25; transition: color 0.3s;
}

.review-date {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'Sora', sans-serif;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary);
}
.review-date::before { content: ''; width: 14px; height: 1px; background: var(--primary); }

.review-body {
    font-size: clamp(1rem, 1.6vw, 1.05rem);
    font-weight: 300; line-height: 1.8; color: var(--text-b);
    transition: color 0.3s;
}
.review-body--mt { margin-top: 0.75rem; }

/* Controls */
.reviews-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 1.25rem; padding: 0.85rem 1.8rem;
    border-top: 1px solid var(--border);
}

.rev-arrow {
    width: 34px; height: 34px; border-radius: 3px;
    border: 1px solid var(--border); background: none;
    color: var(--text-b); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}
.rev-arrow:hover { border-color: var(--primary); color: var(--primary); }

.rev-dots { display: flex; gap: 7px; align-items: center; }

.rev-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--border); border: none;
    cursor: pointer; padding: 0;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}
.rev-dot.active { background: var(--primary); transform: scale(1.35); }
.rev-dot:hover:not(.active) { background: var(--text-b); }

/* ── About ───────────────────────────────────── */
.about {
    padding: 4rem 0; background-color: var(--bg);
    position: relative; overflow: hidden; transition: background-color 0.3s;
}
@media (min-width:768px) { .about { padding: 6rem 0; } }

.about-badge {
    background-color: var(--card); border: 1px solid var(--border);
    border-radius: 4px; padding: 2rem; position: relative;
    overflow: hidden; transition: background-color 0.3s;
    max-width: 560px;
}
.about-badge::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--primary), transparent);
}
.badge-icon { font-size: 3rem; margin-bottom: 1.25rem; display: block; }
.badge-title {
    font-family: 'Sora', sans-serif; font-size: 1.6rem;
    letter-spacing: -0.01em; color: var(--text-h); line-height: 1.15;
    margin-bottom: 0.75rem; transition: color 0.3s;
}
.badge-subtitle { font-size: 0.95rem; font-weight: 300; color: var(--text-b); line-height: 1.7; }
.badge-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.75rem; margin-top: 1.5rem;
}
.badge-item {
    background: rgba(212,146,15,0.07); border: 1px solid rgba(212,146,15,0.18);
    border-radius: 3px; padding: 0.75rem;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.06em; color: var(--primary);
    text-transform: uppercase; text-align: center;
}

/* ── Contact ─────────────────────────────────── */
.contact {
    padding: 4rem 0; background-color: var(--bg);
    position: relative; overflow: hidden; transition: background-color 0.3s;
}
.contact::before {
    content: 'КОНТАКТЫ'; position: absolute; top: 2rem; left: -2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 18vw, 13rem);
    color: var(--ghost-text); pointer-events: none;
    letter-spacing: 0.05em; line-height: 1; user-select: none;
}
@media (min-width:768px) { .contact { padding: 6rem 0; } }

.contact-content { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width:900px) {
    .contact-content { grid-template-columns: 9fr 10fr; gap: 3rem; align-items: stretch; }
}

.contact-col { display: flex; flex-direction: column; }
.contact-col .section-header { margin-bottom: 1.2rem; }
.contact-info { flex: 1; }

.contact-reviews { display: flex; flex-direction: column; }
.contact-reviews-header { margin-bottom: 1.2rem; }
.reviews-slider { flex: 1; }
.contact-reviews-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em; color: var(--text-h);
    line-height: 1.05; margin-top: 0.25rem;
    transition: color 0.3s;
}

.contact-info {
    display: flex; flex-direction: column;
    background-color: var(--card);
    border: 1px solid var(--border); border-radius: 4px;
    overflow: hidden; position: relative;
    box-shadow: 0 4px 32px var(--shadow);
    transition: background-color 0.3s;
}
.contact-info::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 1;
}

.contact-item {
    padding: 1.35rem 1.8rem;
    position: relative; transition: background-color 0.25s;
}
/* divider only between odd→even pairs: after items 2 and 4 */
.contact-item:nth-child(3),
.contact-item:nth-child(5) {
    border-top: 1px solid var(--border);
}
.contact-item:hover { background-color: var(--card-hover); }
.contact-item::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--primary); transform: scaleY(0); transition: transform 0.3s;
}
.contact-item:hover::before { transform: scaleY(1); }
.contact-item h3 {
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 0.3rem;
}
.contact-item p { color: var(--text-mid); font-size: 1rem; line-height: 1.55; transition: color 0.3s; }
.contact-item a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.contact-item a:hover { color: var(--primary-dark); }


/* ── Footer ──────────────────────────────────── */
.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 2rem 0; transition: background-color 0.3s;
}
.footer-inner {
    display: flex; flex-direction: column;
    gap: 0.4rem; align-items: center; text-align: center;
}
@media (min-width:640px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer p { font-size: 0.8rem; font-weight: 300; color: rgba(140,151,168,0.65); }

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(26px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn  { from{opacity:0;} to{opacity:1;} }

.reveal       { opacity:0; transform:translateY(24px);  transition:opacity 0.65s ease,transform 0.65s ease; }
.reveal-left  { opacity:0; transform:translateX(-24px); transition:opacity 0.65s ease,transform 0.65s ease; }
.reveal-right { opacity:0; transform:translateX(24px);  transition:opacity 0.65s ease,transform 0.65s ease; }
.reveal.visible,.reveal-left.visible,.reveal-right.visible { opacity:1; transform:translate(0); }

.stagger-1 { transition-delay:0.05s; }
.stagger-2 { transition-delay:0.11s; }
.stagger-3 { transition-delay:0.17s; }
.stagger-4 { transition-delay:0.23s; }
.stagger-5 { transition-delay:0.29s; }
.stagger-6 { transition-delay:0.35s; }