:root {
    color-scheme: light;
    --page: 1240px;
    --narrow: 860px;
    --bg: #edf0f5;
    --surface: #edf0f5;
    --surface-strong: #f7f9fc;
    --text: #181c23;
    --muted: #687281;
    --line: rgba(132, 147, 167, 0.24);
    --accent: #ff7a18;
    --accent-strong: #d95f00;
    --neon: #20d6ff;
    --shadow-out: 8px 8px 18px rgba(163, 174, 190, 0.48), -8px -8px 18px rgba(255, 255, 255, 0.86);
    --shadow-soft: 5px 5px 12px rgba(163, 174, 190, 0.38), -5px -5px 12px rgba(255, 255, 255, 0.78);
    --shadow-in: inset 5px 5px 12px rgba(163, 174, 190, 0.42), inset -5px -5px 12px rgba(255, 255, 255, 0.82);
    --glow: 0 0 0 rgba(255, 122, 24, 0);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111522;
    --surface: #111522;
    --surface-strong: #171d2d;
    --text: #f4f7fb;
    --muted: #aeb8c9;
    --line: rgba(117, 137, 166, 0.28);
    --accent: #ff8a24;
    --accent-strong: #ffb15f;
    --neon: #25e4ff;
    --shadow-out: 8px 8px 18px rgba(0, 0, 0, 0.48), -7px -7px 16px rgba(48, 58, 83, 0.42), 0 0 18px rgba(37, 228, 255, 0.06);
    --shadow-soft: 5px 5px 12px rgba(0, 0, 0, 0.42), -5px -5px 12px rgba(48, 58, 83, 0.34);
    --shadow-in: inset 5px 5px 12px rgba(0, 0, 0, 0.42), inset -5px -5px 12px rgba(48, 58, 83, 0.34);
    --glow: 0 0 24px rgba(37, 228, 255, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 122, 24, 0.12), transparent 28rem),
        radial-gradient(circle at 100% 18%, rgba(32, 214, 255, 0.12), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    transition: background 180ms ease, color 180ms ease;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent-strong);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

p {
    margin: 0;
}

.site-header,
.site-footer,
.hero,
.detail-hero,
.page-hero,
.tag-strip,
.section,
.final-cta {
    width: min(var(--page), calc(100% - 28px));
    margin-inline: auto;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    max-width: none;
    margin-top: 0;
    min-height: 74px;
    padding: 14px max(14px, calc((100% - var(--page)) / 2));
    border: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
    background: var(--surface-strong);
    background: color-mix(in srgb, var(--surface-strong) 97%, var(--surface));
    box-shadow: var(--shadow-soft);
}

.brand {
    color: var(--text);
    font-size: 23px;
    font-weight: 900;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.site-nav a,
.site-footer a,
.text-link,
.text-button {
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.site-nav a {
    border-radius: 16px;
    padding: 8px 11px;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover,
.text-button:hover {
    color: var(--accent-strong);
}

.theme-toggle,
.header-cta,
.button,
button {
    font: inherit;
}

.theme-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 72px;
    min-width: 72px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-in);
    cursor: pointer;
    padding: 5px;
}

.theme-toggle::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--neon));
    box-shadow: var(--glow);
    transition: transform 180ms ease;
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(32px);
}

.theme-toggle span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.header-cta,
.button,
.text-button {
    border: 0;
    cursor: pointer;
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 18px;
    padding: 11px 18px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.header-cta,
.button-secondary {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    box-shadow: 8px 8px 18px rgba(180, 92, 24, 0.24), -8px -8px 18px rgba(255, 255, 255, 0.35), var(--glow);
}

[data-theme="dark"] .button-primary {
    color: #111522;
    background: linear-gradient(135deg, var(--accent), var(--neon));
}

.button:hover,
.header-cta:hover {
    transform: translateY(-1px);
}

.text-button {
    background: transparent;
    padding: 0;
}

.hero,
.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    min-height: 72vh;
    padding: clamp(58px, 7vw, 104px) 0 clamp(34px, 6vw, 72px);
}

.hero h1 {
    max-width: 860px;
    font-size: 60px;
}

.page-hero h1,
.detail-hero h1 {
    max-width: 1050px;
    font-size: 54px;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.hero-visual,
.detail-media,
.card,
.product-card,
.case-card,
.price-row,
.contact-form,
.admin-form,
.lead-card,
.faq-list details,
.step-list li,
.admin-stats a,
.admin-row,
.gallery-grid img {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-out);
}

.hero-visual,
.detail-media {
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: min(48vw, 520px);
    object-fit: cover;
}

.page-hero {
    display: grid;
    gap: 18px;
    padding: clamp(62px, 7vw, 104px) 0 clamp(26px, 4vw, 48px);
}

.lead {
    max-width: 820px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
}

.eyebrow,
.tag {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .tag {
    color: var(--neon);
    text-shadow: 0 0 18px rgba(37, 228, 255, 0.28);
}

.actions,
.card-actions,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tag-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-in);
}

.tag-strip span,
.pill-list span,
.filter-row a,
.meta-row span,
.admin-badge {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    padding: 8px 12px;
    box-shadow: var(--shadow-soft);
}

.section {
    padding-block: clamp(54px, 7vw, 94px);
}

.section.compact {
    padding-top: clamp(34px, 5vw, 62px);
}

.section.narrow {
    width: min(var(--narrow), calc(100% - 28px));
}

.muted-band {
    margin-block: 12px;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-in);
}

.section-heading {
    display: grid;
    gap: 12px;
    max-width: 880px;
    margin-bottom: 30px;
}

.section-heading h2,
.final-cta h2 {
    font-size: clamp(30px, 4vw, 56px);
}

.split-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
    max-width: none;
}

.grid,
.product-grid,
.case-grid,
.gallery-grid,
.case-detail-grid {
    display: grid;
    gap: 24px;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.three,
.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.case-grid,
.case-detail-grid,
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.case-body,
.product-body,
.contact-form,
.admin-form,
.lead-card {
    padding: 24px;
}

.card {
    display: grid;
    gap: 13px;
}

.nav-card {
    color: var(--text);
    text-decoration: none;
}

.nav-card:hover h3 {
    color: var(--accent-strong);
}

.section-more {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

.card p,
.product-card p,
.case-card p,
.price-row p,
.fit-line,
.section-heading p,
.modal-heading p {
    color: var(--muted);
}

.problem-card {
    position: relative;
}

.problem-card::before {
    content: "";
    position: absolute;
    inset: 18px auto auto 18px;
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--neon));
}

.problem-card h3 {
    padding-top: 22px;
}

.service-card strong {
    color: var(--accent-strong);
    font-size: 18px;
}

.product-card,
.case-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-media,
.case-media {
    aspect-ratio: 16 / 9;
    background: var(--surface-strong);
    overflow: hidden;
}

.product-media img,
.case-media img,
.detail-media img,
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body,
.case-body {
    display: grid;
    gap: 14px;
    flex: 1;
}

.product-body h3,
.case-body h3 {
    font-size: 24px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-row span {
    color: var(--accent-strong);
}

.hero-meta {
    margin: 8px 0 18px;
}

.fit-line {
    font-size: 14px;
}

.case-body dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.case-body dt {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.case-body dd {
    color: var(--muted);
    margin: 0 0 8px;
}

.step-list {
    counter-reset: steps;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-list li {
    counter-increment: steps;
    font-weight: 900;
    min-height: 116px;
    padding: 22px;
}

.step-list li::before {
    content: counter(steps);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--neon));
    color: #111522;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}

.two-column > div {
    display: grid;
    gap: 18px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--neon));
    box-shadow: var(--glow);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list.large span {
    font-size: 16px;
    padding: 10px 14px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-list details {
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.faq-list p {
    color: var(--muted);
    margin-top: 12px;
}

.final-cta {
    display: grid;
    gap: 24px;
    justify-items: start;
    margin-block: clamp(24px, 5vw, 60px);
    padding: clamp(34px, 5vw, 62px);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-out);
}

.soft-cta {
    margin-top: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-row a {
    color: var(--text);
    text-decoration: none;
}

.filter-row a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

[data-theme="dark"] .filter-row a.active {
    color: #111522;
    background: linear-gradient(135deg, var(--accent), var(--neon));
}

.detail-media {
    aspect-ratio: 16 / 10;
}

.gallery-grid img {
    aspect-ratio: 16 / 9;
}

.price-list {
    display: grid;
    gap: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
}

.price-row strong {
    color: var(--accent-strong);
    font-size: clamp(22px, 3vw, 34px);
    white-space: nowrap;
}

.inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 24px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-in);
}

.contact-form,
.admin-form {
    display: grid;
    gap: 16px;
    width: min(900px, 100%);
}

.lead-modal .contact-form {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.contact-form label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.lead-card select {
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    padding: 13px 15px;
    box-shadow: var(--shadow-in);
}

.contact-form textarea,
.admin-form textarea {
    resize: vertical;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(11, 14, 22, 0.48);
    opacity: 0;
    transition: opacity 180ms ease;
    backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-backdrop.is-open {
    opacity: 1;
}

.lead-modal {
    position: relative;
    width: min(720px, 100%);
    max-height: min(86vh, 820px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-out), 0 16px 42px rgba(0, 0, 0, 0.14);
    padding: 0;
    transform: translateY(18px) scale(0.98);
    transition: transform 180ms ease;
}

[data-theme="dark"] .lead-modal {
    box-shadow: var(--shadow-out), 0 0 18px rgba(37, 228, 255, 0.08), 0 16px 44px rgba(0, 0, 0, 0.28);
}

.lead-modal-scroll {
    display: grid;
    gap: 22px;
    max-height: min(86vh, 820px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 38px);
    padding-right: clamp(30px, 4vw, 44px);
    scrollbar-color: color-mix(in srgb, var(--accent) 58%, var(--surface)) transparent;
    scrollbar-width: thin;
}

.lead-modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.lead-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 28px 0;
}

.lead-modal-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 72%, var(--surface));
}

.lead-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent) 86%, var(--surface));
}

.modal-backdrop.is-open .lead-modal {
    transform: translateY(0) scale(1);
}

.modal-heading {
    display: grid;
    gap: 10px;
    padding-right: 42px;
}

.modal-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.flash-list {
    width: min(var(--page), calc(100% - 28px));
    margin: 18px auto 0;
}

.flash {
    border-radius: 18px;
    margin: 0 0 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
}

.flash-success {
    background: color-mix(in srgb, var(--surface) 72%, #dcfce7);
    color: #14532d;
}

.flash-error {
    background: color-mix(in srgb, var(--surface) 72%, #fee2e2);
    color: #7f1d1d;
}

.site-footer {
    margin-block: 26px;
    padding: 22px 4px;
    color: var(--muted);
}

.site-footer strong {
    color: var(--text);
    margin-right: 8px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.admin-stats a,
.admin-row,
.lead-card {
    color: var(--text);
    text-decoration: none;
}

.admin-stats a {
    display: grid;
    gap: 4px;
    padding: 24px;
}

.admin-stats strong {
    color: var(--accent-strong);
    font-size: 36px;
}

.admin-table,
.lead-list {
    display: grid;
    gap: 16px;
}

.admin-row,
.lead-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.admin-row > div,
.lead-card > div {
    display: grid;
    gap: 6px;
}

.admin-row span {
    color: var(--muted);
}

.admin-badge.muted {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.check-row label {
    align-items: center;
    display: flex;
    gap: 8px;
}

.check-row input {
    width: auto;
}

@media (max-width: 980px) {
    .hero,
    .detail-hero,
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 46px;
    }

    .page-hero h1,
    .detail-hero h1 {
        font-size: 42px;
    }

    .hero-visual img {
        height: auto;
    }

    .split-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .site-header,
    .site-footer,
    .price-row,
    .inline-cta,
    .admin-row,
    .lead-card {
        align-items: stretch;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        order: 3;
        width: 100%;
    }

    .header-cta {
        width: 100%;
    }

    .theme-toggle {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .page-hero h1,
    .detail-hero h1 {
        font-size: 34px;
    }

    .price-row strong {
        white-space: normal;
    }

    .modal-backdrop {
        padding: 14px;
    }
}

@media (min-width: 1100px) {
    .site-footer,
    .hero,
    .detail-hero,
    .page-hero,
    .tag-strip,
    .section,
    .final-cta,
    .flash-list {
        width: min(var(--page), calc(100% - 40px));
    }
}

@media (min-width: 1100px) {
    .product-grid,
    .case-grid,
    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.site-header {
    width: 100%;
    max-width: none;
}
