:root, [data-theme="light"] {
    --bg: #eef3f8;
    --header: rgba(255, 255, 255, 0.94);
    --ink: #162033;
    --muted: #5d6b80;
    --card: #ffffff;
    --line: rgba(18, 40, 72, 0.1);
    --hero: #0d1d33;
    --hero-ink: #f5f8fc;
    --btn: #12315a;
    --btn-ink: #ffffff;
    --btn-hover: #1c4d8c;
    --soft: #f7fafc;
    --shadow: 0 16px 40px rgba(16, 36, 68, 0.08);
    --max: 1120px;
    --sans: "Outfit", "Segoe UI", sans-serif;
}
[data-theme="dark"] {
    --bg: #071425;
    --header: rgba(7, 20, 37, 0.9);
    --ink: #f4f7fb;
    --muted: #b7c4d6;
    --card: #10243f;
    --line: rgba(255, 255, 255, 0.16);
    --hero: #102844;
    --hero-ink: #f7f9ff;
    --btn: #f7f9ff;
    --btn-ink: #071425;
    --btn-hover: #c9d8ff;
    --soft: #0c1c31;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(ellipse 55% 30% at 100% 0%, rgba(120, 160, 210, 0.18), transparent 55%),
        radial-gradient(ellipse 40% 28% at 0% 8%, rgba(255, 255, 255, 0.45), transparent 50%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
}
[data-theme="dark"] body {
    background:
        radial-gradient(ellipse 60% 36% at 12% -8%, rgba(255, 255, 255, 0.16), transparent 58%),
        radial-gradient(ellipse 40% 30% at 100% 0%, rgba(180, 205, 255, 0.14), transparent 50%),
        var(--bg);
}
a { color: inherit; }
img { max-width: 100%; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--btn); color: var(--btn-ink); padding: 0.45rem 0.7rem; }
.skip:focus { top: 0.5rem; }
.container { width: min(var(--max), calc(100% - 2.2rem)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
    width: 42px;
    height: 42px;
    display: block;
    flex: 0 0 42px;
}
.brand-mark img { width: 42px; height: 42px; display: block; }
.brand-mark .for-dark { display: none; }
[data-theme="dark"] .brand-mark .for-light { display: none; }
[data-theme="dark"] .brand-mark .for-dark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: 0.72rem; }
.primary-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.theme-toggle {
    display: flex;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.15rem;
}
.theme-option {
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
}
.theme-option.active { background: #f5c542; }
[data-theme="dark"] .theme-option.active { background: #243656; color: #fff; }
.langs { display: flex; gap: 0.35rem; color: var(--muted); font-size: 0.82rem; }
.langs a { text-decoration: none; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.header-cta, .btn-primary, button.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btn);
    color: var(--btn-ink);
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 0.72rem 1.05rem;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta:hover, .btn-primary:hover { background: var(--btn-hover); }
.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 10px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: center;
}
.mobile-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
.only-mobile { display: none; }

.hero-section { padding: 1.6rem 0 0; position: relative; }
.hero-slider-shell { position: relative; }
.hero-slider { position: relative; z-index: 1; min-height: 420px; overflow: hidden; border-radius: 28px; display: grid; }
.hero-motion {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #071425;
    pointer-events: none;
}
.hero-motion canvas,
.hero-motion video {
    position: absolute;
    left: -8%;
    top: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    filter: blur(10px);
}
.hero-motion::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(7, 20, 37, 0.28), rgba(7, 20, 37, 0.05) 60%, transparent);
}
.hero-slide {
    display: grid;
    grid-area: 1 / 1;
    opacity: 1;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
    z-index: 0;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 1fr;
    gap: 1.2rem;
    align-items: stretch;
    background: transparent;
    color: var(--hero-ink);
    border-radius: 28px;
    padding: 1.15rem;
    min-height: 420px;
    box-shadow: none;
}
.hero-text {
    background: linear-gradient(165deg, #0e2138 0%, #16365c 100%);
    border-radius: 22px;
    padding: 1.5rem 1.45rem 1.25rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
.hero-slide.active { pointer-events: auto; transform: translateX(0); z-index: 2; }
.hero-slide.is-leaving { transform: translateX(-100%); z-index: 1; }
.hero-slider.go-back .hero-slide { transform: translateX(-100%); }
.hero-slider.go-back .hero-slide.active { transform: translateX(0); z-index: 2; }
.hero-slider.go-back .hero-slide.is-leaving { transform: translateX(100%); z-index: 1; }
.hero-text h1 { margin: 0 0 0.8rem; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; color: #fff; }
.hero-text p { margin: 0 0 1.2rem; max-width: 36rem; color: #d5e2f2; font-size: 1.05rem; }
.hero-slide .btn-primary { background: #fff; color: #10233d; }
.hero-slide .btn-primary:hover { background: #d7e4ff; }
.hero-media { display: flex; align-items: flex-end; min-height: 100%; }
.hero-panel {
    width: 100%;
    background: rgba(7, 20, 37, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    min-height: 0;
    padding: 1.15rem 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hero-panel span { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: #d5e2f2; }
.hero-panel strong { display: block; margin: 0.7rem 0 1rem; font-size: 1.6rem; }
.hero-panel ul { margin: 0; padding-left: 1.1rem; }
.hero-panel li { margin: 0.35rem 0; }
.slider-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #142033;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.slider-arrow.left { left: -18px; }
.slider-arrow.right { right: -18px; }
.slider-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 0.9rem; }
.slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: #b7c3d4;
    cursor: pointer;
}
.slider-dots button.active { background: var(--btn); width: 22px; border-radius: 999px; }

.slider-dots { margin: 0.85rem 0 0.2rem; }
.stats-section { margin-top: 1rem; position: relative; z-index: 2; overflow: visible; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; max-width: 720px; margin: 0 auto; }
.stat-item { will-change: transform; }
.stat-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem 1rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-number { font-size: 2rem; font-weight: 700; color: #1a7f4b; letter-spacing: -0.04em; }
[data-theme="dark"] .stat-number { color: #d7e4ff; }
.stat-label { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

.cards-section, .about-preview, .faq-section, .page-head, .band { padding: 3rem 0; }
.cards-section h2, .about-preview h2, .faq-section h2, .page-head h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
}
.cards-grid, .service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-grid, .project-list, .steps, .intro-copy, .band > .note {
    width: min(var(--max), calc(100% - 2.2rem));
    margin-left: auto;
    margin-right: auto;
}
a.button, .button {
    display: inline-flex;
    align-items: center;
    background: var(--btn);
    color: var(--btn-ink);
    text-decoration: none;
    border-radius: 10px;
    padding: 0.72rem 1.05rem;
    font-weight: 650;
}
.card-item, .card, .case, .form, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}
.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--soft);
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.card-item h3, .card h2, .card h3, .case h2, .case h3 { margin: 0.2rem 0 0.45rem; font-size: 1.35rem; }
.price, .label {
    display: inline-block;
    margin-top: 0.6rem;
    color: #1a7f4b;
    font-weight: 650;
    font-size: 0.92rem;
}
[data-theme="dark"] .price, [data-theme="dark"] .label { color: #d7e4ff; }
.text-link { display: inline-block; margin-top: 0.8rem; color: var(--btn); font-weight: 650; }
.note { color: var(--muted); }
.kicker { margin: 0 0 0.45rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.about-grid, .faq-grid, .case { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.about-points { display: grid; gap: 0.7rem; }
.about-points article, .step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}
.about-points h3, .step h3 { margin: 0 0 0.25rem; }
.about-points p, .step p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    padding: 0.95rem 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.faq-answer { display: none; color: var(--muted); padding-bottom: 0.8rem; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open button span { transform: rotate(45deg); }

.page-head .wrap, .page-head .container { width: min(var(--max), calc(100% - 2.2rem)); margin: 0 auto; }
.lead { font-size: 1.08rem; max-width: 42rem; }
.form { width: min(760px, calc(100% - 2.2rem)); margin: 0 auto 3rem; display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.28rem; font-weight: 650; font-size: 0.95rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
    font: inherit;
}
textarea { min-height: 8rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hp { position: absolute; left: -9999px; }
.alert { width: min(760px, calc(100% - 2.2rem)); margin: 0 auto 0.8rem; padding: 0.8rem 1rem; border-radius: 12px; }
.alert.ok { background: #e8f6ee; color: #146c43; }
.alert.bad { background: #fde8e4; color: #8a341c; }
[data-theme="dark"] .alert.ok { background: rgba(255,255,255,0.08); color: var(--hero-ink); }
[data-theme="dark"] .alert.bad { background: rgba(255,180,160,0.12); color: #ffd2c8; }
.project-list { display: grid; gap: 0.9rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 1.4rem; margin-top: 1rem; background: var(--bg); position: relative; z-index: 1; }

body.has-reel { background: #071425; }
.reel {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #071425;
}
.reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: blur(18px);
}
body.has-reel .site-header { position: relative; z-index: 30; }
body.has-reel .site-content { position: relative; z-index: 1; }
.reel-gap { position: relative; z-index: 1; min-height: 9rem; }
.reel-gap-wide {
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.2rem;
}
body.has-reel .promise {
    color: #f7f9ff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    font-size: 1.15rem;
    max-width: 40rem;
}
body.has-reel .cards-section h2,
body.has-reel .about-preview h2,
body.has-reel .faq-section h2,
body.has-reel .kicker,
body.has-reel .note {
    color: #f4f7fb;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
body.has-reel .card-item,
body.has-reel .stat-item,
body.has-reel .about-points article,
body.has-reel .about-preview .about-grid > div:first-child,
body.has-reel .faq-section .faq-grid {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
body.has-reel .faq-section .faq-grid {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    padding: 1.3rem 1.5rem;
}
body.has-reel .about-preview .about-grid > div:first-child {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
}
body.has-reel .about-preview .about-grid > div:first-child h2,
body.has-reel .about-preview .about-grid > div:first-child .kicker,
body.has-reel .about-preview .about-grid > div:first-child p,
body.has-reel .faq-section h2,
body.has-reel .faq-section .kicker,
body.has-reel .card-item h3,
body.has-reel .stat-item {
    text-shadow: none;
}
body.has-reel .card-item h3,
body.has-reel .card-item p,
body.has-reel .stat-label,
body.has-reel .about-preview .about-grid > div:first-child h2,
body.has-reel .about-preview .about-grid > div:first-child p,
body.has-reel .about-preview .about-grid > div:first-child .kicker,
body.has-reel .faq-section h2,
body.has-reel .faq-section .kicker,
body.has-reel .faq-item button {
    color: #162033;
    text-shadow: none;
}
body.has-reel .cards-section h2 { color: #f7f9ff; }
[data-theme="dark"] body.has-reel .card-item,
[data-theme="dark"] body.has-reel .stat-item,
[data-theme="dark"] body.has-reel .about-points article,
[data-theme="dark"] body.has-reel .about-preview .about-grid > div:first-child,
[data-theme="dark"] body.has-reel .faq-section .faq-grid {
    background: rgba(12, 28, 48, 0.78);
}
[data-theme="dark"] body.has-reel .card-item h3,
[data-theme="dark"] body.has-reel .card-item p,
[data-theme="dark"] body.has-reel .stat-label,
[data-theme="dark"] body.has-reel .about-preview .about-grid > div:first-child p,
[data-theme="dark"] body.has-reel .about-preview .about-grid > div:first-child .kicker,
[data-theme="dark"] body.has-reel .faq-section .kicker,
[data-theme="dark"] body.has-reel .faq-section h2,
[data-theme="dark"] body.has-reel .about-preview .about-grid > div:first-child h2,
[data-theme="dark"] body.has-reel .faq-item button {
    color: #f4f7fb;
}
@media (prefers-reduced-motion: reduce) {
    .reel video { display: none; }
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.site-footer h3 { margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { color: var(--muted); }
.footer-copy { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }

.promise {
    margin: 0.15rem 0 0;
    text-align: center;
    color: var(--muted);
    letter-spacing: 0.04em;
    font-size: 0.92rem;
}
.hero-media { min-height: 100%; }
.hero-photo, .card-photo img, .page-banner img, .case-photo img, .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-photo { min-height: 280px; border-radius: 22px; }
.work-stage { perspective: 1100px; }
.work-stage .work-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.5rem);
    justify-self: center;
}
.work-card {
    position: relative;
    transform-origin: center bottom;
    transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.7s ease, box-shadow 0.45s ease;
    transition-delay: calc(var(--i) * 120ms);
}
.work-stage.work-ready:not(.is-in) .work-card {
    opacity: 0;
    transform: translateY(48px) rotateX(16deg);
}
.work-card .card-photo {
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.85s cubic-bezier(0.22, 0.8, 0.24, 1);
    transition-delay: calc(var(--i) * 120ms);
}
.work-stage.work-ready:not(.is-in) .work-card .card-photo { clip-path: inset(0 0 100% 0); }
.work-card .card-photo img,
.work-card .frame-mark { transition: transform 0.6s ease; }
.work-card h3::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: #1a4f86;
    transition: width 0.45s ease;
}
[data-theme="dark"] .work-card h3::after { background: #d7e4ff; }
.work-copy { display: grid; }
.work-problem, .work-solution { grid-area: 1 / 1; margin: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.work-problem .kicker, .work-solution .kicker { display: block; }
.work-solution { opacity: 0; transform: translateY(12px); }
.work-stage.is-in .work-card:hover,
.work-stage.is-in .work-card.is-open {
    transform: translateY(-14px);
    box-shadow: 0 24px 46px rgba(7, 20, 37, 0.2);
    transition-delay: 0s;
}
.work-card:hover h3::after,
.work-card.is-open h3::after { width: 2.8rem; }
.work-card:hover .card-photo img,
.work-card.is-open .card-photo img,
.work-card:hover .frame-mark,
.work-card.is-open .frame-mark { transform: scale(1.08); }
.work-card:hover .work-problem,
.work-card.is-open .work-problem { opacity: 0; transform: translateY(-10px); }
.work-card:hover .work-solution,
.work-card.is-open .work-solution { opacity: 1; transform: none; }
.card-photo, .about-photo, .case-photo, .page-banner {
    margin: 0 0 0.9rem;
    height: 168px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(16, 35, 61, 0.08), rgba(29, 77, 115, 0.18)),
        var(--soft);
    border: 1px solid var(--line);
}
.page-banner { height: 240px; margin: 1.2rem 0 0; }
.about-photo { height: 210px; }
.case-photo { height: 220px; grid-column: 1 / -1; }
.card-photo.is-empty, .about-photo.is-empty, .case-photo.is-empty, .page-banner.is-empty {
    display: grid;
    place-items: center;
}
.frame-mark {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
}
[data-theme="dark"] .card-photo,
[data-theme="dark"] .about-photo,
[data-theme="dark"] .case-photo,
[data-theme="dark"] .page-banner {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(215,228,255,0.12));
}

.service-stage { overflow: visible; position: relative; }
.service-slot { position: relative; min-height: 100%; }
.service-face {
    position: relative;
    z-index: 2;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.55s ease;
}
.service-slot.is-open { z-index: 5; }
.service-slot.is-open .service-face {
    pointer-events: none;
    box-shadow: 0 24px 50px rgba(7, 20, 37, 0.28);
}
.service-detail {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.45s ease;
    overflow: auto;
}
.service-slot.is-open .service-detail { pointer-events: auto; }
.service-slot.is-open .service-detail { opacity: 1; transform: none; }
body.has-reel .card-item .kicker { color: #1a4f86; }
[data-theme="dark"] body.has-reel .card-item .kicker { color: #d7e4ff; }
@media (prefers-reduced-motion: reduce) {
    .hero-motion canvas, .hero-motion video { display: none; }
    .hero-slide, .service-face, .service-detail, .stat-item, .work-card, .work-card .card-photo { transition: none; }
    .work-stage.work-ready:not(.is-in) .work-card { opacity: 1; transform: none; }
    .work-stage.work-ready:not(.is-in) .work-card .card-photo { clip-path: none; }
}
@media (max-width: 980px) {
    .service-slot.is-open .service-detail { z-index: 3; }
    .stats-grid, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-slide, .about-grid, .faq-grid, .case, .cards-grid, .service-grid, .pair { grid-template-columns: 1fr; }
    .work-stage .work-card:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
    .slider-arrow.left { left: 8px; }
    .slider-arrow.right { right: 8px; }
}
@media (max-width: 800px) {
    html, body { overflow-x: clip; }
    .container, .service-grid, .project-list, .steps, .intro-copy, .band > .note, .page-head .container, .form, .alert {
        width: min(var(--max), calc(100% - 1.4rem));
    }
    .mobile-toggle { display: flex; }
    .header-cta, .header-actions .langs { display: none; }
    .header-inner { min-height: 64px; gap: 0.6rem; }
    .brand-text small { display: none; }
    .only-mobile { display: list-item; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header);
        border-bottom: 1px solid var(--line);
        padding: 0.4rem 1rem 1rem;
        max-height: calc(100vh - 64px);
        overflow: auto;
    }
    .primary-nav.open { display: block; background: #f7f9ff; box-shadow: 0 18px 40px rgba(7, 20, 37, 0.18); }
    [data-theme="dark"] .primary-nav.open { background: #071425; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
    .nav-langs { display: flex; gap: 1rem; padding-top: 0.85rem; }
    .nav-langs a { border: 0; padding: 0.2rem 0; }
    .steps, .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
    .stat-item { padding: 0.9rem 0.55rem 0.75rem; }
    .stat-number { font-size: 1.55rem; }
    .stat-label { font-size: 0.68rem; letter-spacing: 0.03em; }
    .hero-slider, .hero-slide, .hero-motion { border-radius: 18px; }
    .hero-slider, .hero-slide { min-height: 0; }
    .hero-slide { padding: 0.7rem; gap: 0.7rem; }
    .hero-text { padding: 1.15rem 1rem 1rem; }
    .hero-text h1 { font-size: 1.85rem; }
    .hero-text p, .lead { font-size: 1rem; }
    .hero-panel strong { font-size: 1.25rem; }
    .hero-photo { min-height: 180px; }
    .slider-arrow { width: 38px; height: 38px; font-size: 1.3rem; top: auto; bottom: 10px; transform: none; }
    .slider-arrow.left { left: 12px; }
    .slider-arrow.right { right: 12px; }
    .cards-section, .about-preview, .faq-section, .page-head, .band { padding: 2rem 0; }
    .page-banner { height: 180px; }
    .reel-gap { min-height: 5.5rem; }
    .reel-gap-wide { min-height: 28vh; padding: 1.3rem 0.8rem; }
    .faq-item button { align-items: flex-start; gap: 0.75rem; }
    .card-item, .card, .case, .form, .panel { padding: 1rem; }
    input, select, textarea { font-size: 16px; }
    .site-footer { padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
}
