:root {
    --bg: #070a0c;
    --bg-soft: #0d1114;
    --panel: rgba(18, 24, 28, 0.78);
    --panel-solid: #11171b;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f7f7;
    --muted: #9ba8ad;
    --lime: #bafc43;
    --lime-strong: #96e326;
    --blue: #62d7ff;
    --danger: #ff7878;
    --radius: 22px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 8%, rgba(98, 215, 255, 0.08), transparent 28rem),
        radial-gradient(circle at 12% 30%, rgba(186, 252, 67, 0.055), transparent 24rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.65rem, 9vw, 6.6rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 4.25rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.65rem);
}

p {
    color: var(--muted);
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #071000;
    background: var(--lime);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid transparent;
    background: rgba(7, 10, 12, 0.72);
    backdrop-filter: blur(18px);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(7, 10, 12, 0.92);
}

.header-inner {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-logo {
    width: 39px;
    height: 39px;
    object-fit: contain;
    filter: drop-shadow(0 0 13px rgba(98, 215, 255, 0.16));
}

.footer-brand .brand-logo {
    width: 46px;
    height: 46px;
}

.menu-toggle {
    display: grid;
    width: 43px;
    height: 43px;
    margin-left: auto;
    padding: 11px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text);
    background: transparent;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
}

.main-nav {
    position: fixed;
    inset: 70px 0 0;
    display: flex;
    padding: 32px 24px;
    flex-direction: column;
    gap: 5px;
    background: rgba(7, 10, 12, 0.98);
    opacity: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: 0.3s ease;
}

.main-nav.is-open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.main-nav a {
    padding: 12px 0;
    color: #c9d1d4;
    border-bottom: 1px solid var(--line);
    font-size: 1.2rem;
}

.main-nav a.is-active,
.main-nav a:hover {
    color: var(--lime);
}

.header-phone,
.header-cta {
    display: none;
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #081000;
    background: linear-gradient(135deg, var(--lime), #d8ff8d);
    box-shadow: 0 12px 38px rgba(150, 227, 38, 0.16);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(12px);
}

.button-small {
    min-height: 42px;
    padding-inline: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.breadcrumbs {
    padding-block: 15px;
    overflow: hidden;
}

.breadcrumbs ol {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 9px;
    list-style: none;
    white-space: nowrap;
    overflow-x: auto;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #77848a;
    font-size: 0.78rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #455157;
}

.breadcrumbs a:hover {
    color: var(--lime);
}

.hero {
    position: relative;
    min-height: calc(100svh - 105px);
    padding: 76px 0 42px;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(7, 10, 12, 0.98) 0%, rgba(7, 10, 12, 0.8) 55%, rgba(7, 10, 12, 0.25)),
        linear-gradient(0deg, var(--bg) 0%, transparent 34%),
        url("../img/house-montblanc-166.jpg") center / cover no-repeat;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-content {
    max-width: 870px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 9px;
    color: var(--lime);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    content: "";
    background: currentColor;
}

.hero h1 {
    max-width: 950px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--lime);
}

.hero-lead {
    max-width: 680px;
    margin-bottom: 30px;
    color: #d1d9dc;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-metrics {
    display: grid;
    margin-top: 48px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.metric {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 10, 12, 0.54);
    backdrop-filter: blur(14px);
}

.metric strong {
    display: block;
    color: var(--lime);
    font-size: 1.35rem;
}

.metric span {
    color: #aab4b8;
    font-size: 0.78rem;
}

.section {
    padding: 78px 0;
}

.section-tight {
    padding-top: 32px;
}

.section-head {
    display: flex;
    margin-bottom: 34px;
    flex-direction: column;
    gap: 14px;
}

.section-head h2 {
    max-width: 860px;
    margin-bottom: 0;
}

.section-head p {
    max-width: 650px;
    margin-bottom: 0;
}

.glass {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
        var(--panel);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), var(--shadow);
    backdrop-filter: blur(17px);
}

.benefit-grid,
.direction-grid,
.process-grid,
.project-grid,
.stats-grid,
.gallery-grid,
.content-grid {
    display: grid;
    gap: 14px;
}

.benefit-card,
.direction-card,
.process-card,
.info-card,
.stat-card {
    position: relative;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius);
}

.benefit-card::after,
.direction-card::after {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 120px;
    height: 120px;
    content: "";
    border-radius: 50%;
    background: rgba(186, 252, 67, 0.1);
    filter: blur(18px);
}

.icon-box {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 35px;
    place-items: center;
    color: var(--lime);
    border: 1px solid rgba(186, 252, 67, 0.22);
    border-radius: 14px;
    background: rgba(186, 252, 67, 0.07);
    font-weight: 850;
}

.benefit-card p,
.direction-card p,
.process-card p {
    margin-bottom: 0;
    font-size: 0.94rem;
}

.direction-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.direction-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(7,10,12,.98), rgba(7,10,12,.12));
}

.direction-card > * {
    position: relative;
    z-index: 1;
}

.direction-card span {
    margin-bottom: 8px;
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.direction-card h3 {
    margin-bottom: 8px;
}

.process-card {
    min-height: 210px;
}

.process-number {
    display: inline-block;
    margin-bottom: 42px;
    color: rgba(186, 252, 67, 0.75);
    font: 800 0.82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.project-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    border-color: rgba(186, 252, 67, 0.32);
    transform: translateY(-5px);
}

.project-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover img {
    transform: scale(1.035);
}

.project-body {
    padding: 20px;
}

.project-top,
.project-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-top {
    margin-bottom: 10px;
}

.project-top span {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.project-top strong {
    color: var(--lime);
}

.project-body h3 {
    margin-bottom: 16px;
}

.project-specs {
    margin-bottom: 18px;
    padding-block: 12px;
    border-block: 1px solid var(--line);
    color: #aeb8bc;
    font-size: 0.78rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eaf0f1;
    font-size: 0.9rem;
    font-weight: 750;
}

.text-link:hover {
    color: var(--lime);
}

.calculator {
    display: grid;
    overflow: hidden;
    border-radius: 28px;
}

.calculator-form,
.calculator-result {
    padding: 24px;
}

.calculator-form {
    display: grid;
    gap: 20px;
}

.calculator-result {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(98,215,255,.16), transparent 50%),
        linear-gradient(145deg, #121a1e, #0b0f12);
}

.calculator-result > strong {
    margin-bottom: 4px;
    color: var(--lime);
    font-size: clamp(2.8rem, 10vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.calculator-result > span:not(.eyebrow) {
    color: #d5dddf;
    font-size: 1.3rem;
    font-weight: 700;
}

.selected-model {
    display: grid;
    padding: 12px;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
}

.selected-model img {
    width: 92px;
    height: 68px;
    border-radius: 11px;
    object-fit: cover;
}

.selected-model div {
    display: grid;
}

.selected-model span,
.selected-model small {
    color: var(--muted);
    font-size: 0.75rem;
}

.selected-model strong {
    font-size: 1.05rem;
}

.calculator-switches {
    grid-template-columns: 1fr;
}

.switch b {
    font-weight: 600;
}

.switch:has(input:disabled) {
    opacity: 0.38;
    cursor: not-allowed;
}

.option-quantities {
    display: grid;
    gap: 12px;
}

.calc-breakdown {
    display: grid;
    width: 100%;
    margin-bottom: 28px;
    gap: 10px;
}

.calc-breakdown > div {
    display: flex;
    padding-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.calc-breakdown span {
    color: var(--muted);
    font-size: 0.82rem;
}

.calc-breakdown strong {
    color: #f1f5f6;
    font-size: 1rem;
}

.calc-total-label {
    margin-bottom: 8px;
    color: var(--lime) !important;
    font-size: 0.72rem !important;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.calculator-result p {
    max-width: 480px;
    margin: 22px 0;
    font-size: 0.86rem;
}

.field {
    display: grid;
    gap: 9px;
}

.field label {
    color: #dfe6e7;
    font-size: 0.86rem;
    font-weight: 700;
}

.field select,
.field input:not([type="range"]),
.field textarea,
.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: rgba(5, 8, 10, 0.7);
}

.field textarea,
.lead-form textarea {
    min-height: 130px;
    resize: vertical;
}

.field select:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: rgba(186, 252, 67, 0.55);
    box-shadow: 0 0 0 4px rgba(186, 252, 67, 0.06);
}

.range-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--lime);
}

.range-row output {
    min-width: 72px;
    padding: 8px 10px;
    color: var(--lime);
    border: 1px solid rgba(186, 252, 67, 0.18);
    border-radius: 10px;
    background: rgba(186, 252, 67, 0.05);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.switch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.switch {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #c9d2d5;
    font-size: 0.84rem;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
}

.switch span {
    position: relative;
    width: 34px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 20px;
    background: #30383c;
    transition: background 0.2s ease;
}

.switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    content: "";
    border-radius: 50%;
    background: white;
    transition: transform 0.2s ease;
}

.switch input:checked + span {
    background: var(--lime-strong);
}

.switch input:checked + span::after {
    transform: translateX(14px);
}

.page-hero {
    padding: 80px 0 58px;
}

.page-hero .container {
    max-width: var(--container);
}

.page-hero h1 {
    max-width: 980px;
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 8vw, 5.6rem);
}

.page-hero p {
    max-width: 760px;
    color: #bac4c7;
    font-size: 1.08rem;
}

.split {
    display: grid;
    gap: 28px;
}

.split-media {
    min-height: 360px;
    overflow: hidden;
    border-radius: 26px;
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-copy {
    align-self: center;
}

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

.check-list li {
    display: flex;
    gap: 11px;
    color: #c7d0d3;
}

.check-list li::before {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    content: "✓";
    color: #081000;
    border-radius: 50%;
    background: var(--lime);
    font-size: 0.75rem;
    font-weight: 900;
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--lime);
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1;
}

.stat-card span {
    color: #aab5b9;
}

.price-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.price-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: rgba(13, 17, 20, 0.72);
}

.price-table th,
.price-table td {
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.price-table th {
    color: #8d9ba0;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-table td:last-child {
    color: var(--lime);
    font-weight: 800;
}

.price-note {
    margin-top: 14px;
    font-size: 0.82rem;
}

.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1;
    background: #111;
}

.gallery-item:nth-child(5n + 1) {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 14px 12px;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    font-size: 0.78rem;
}

.faq-list {
    display: grid;
    max-width: 920px;
    margin-inline: auto;
    gap: 11px;
}

.faq-item {
    border-radius: 16px;
}

.faq-item summary {
    display: flex;
    padding: 19px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    font-weight: 750;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    color: var(--lime);
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 18px;
}

.faq-answer p {
    margin-bottom: 0;
}

.seo-copy {
    columns: 1;
}

.seo-copy h2,
.seo-copy h3 {
    break-after: avoid;
}

.seo-copy p {
    color: #9fa9ad;
}

.cta-section {
    padding: 30px 0 90px;
}

.cta-panel {
    position: relative;
    display: grid;
    padding: 30px;
    gap: 28px;
    overflow: hidden;
    border: 1px solid rgba(186, 252, 67, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 0, rgba(186, 252, 67, 0.2), transparent 35%),
        linear-gradient(145deg, #131a1d, #0b0f11);
}

.cta-panel h2 {
    max-width: 800px;
    margin-bottom: 16px;
}

.cta-panel p {
    max-width: 660px;
    margin-bottom: 0;
}

.lead-form {
    display: grid;
    padding: 24px;
    gap: 15px;
    border-radius: 24px;
}

.lead-form label {
    display: grid;
    gap: 7px;
    color: #dbe2e4;
    font-size: 0.84rem;
    font-weight: 700;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    opacity: 0 !important;
}

.form-alert {
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 0.88rem;
}

.form-alert.success {
    color: #dfffaa;
    border: 1px solid rgba(186, 252, 67, 0.25);
    background: rgba(186, 252, 67, 0.08);
}

.form-alert.error {
    color: #ffc2c2;
    border: 1px solid rgba(255, 120, 120, 0.25);
    background: rgba(255, 120, 120, 0.08);
}

.contact-card {
    display: grid;
    padding: 26px;
    gap: 13px;
    border-radius: 24px;
}

.contact-card a {
    font-size: 1.2rem;
    font-weight: 800;
}

.contact-card a:hover {
    color: var(--lime);
}

.contact-card span {
    color: var(--muted);
}

.floating-actions {
    position: fixed;
    z-index: 900;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 9px;
}

.float-button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.36);
    font-weight: 900;
}

.float-viber {
    background: #7360f2;
}

.float-phone {
    color: #081000;
    background: var(--lime);
}

.toast {
    position: fixed;
    z-index: 2000;
    right: 16px;
    bottom: 130px;
    max-width: 310px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #dce5e7;
    background: #141b1f;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: 0.25s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--line);
    background: #060809;
}

.footer-grid {
    display: grid;
    gap: 34px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-grid p {
    max-width: 360px;
    margin: 12px 0 0;
    font-size: 0.88rem;
}

.footer-grid h3 {
    margin-bottom: 7px;
    color: #eef2f3;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.footer-grid a,
.footer-grid span,
.footer-grid small {
    color: #8f9ca1;
    font-size: 0.85rem;
}

.footer-grid a:hover {
    color: var(--lime);
}

.footer-phone {
    color: white !important;
    font-size: 1.05rem !important;
}

.footer-bottom {
    display: flex;
    margin-top: 45px;
    padding-top: 20px;
    flex-direction: column;
    gap: 8px;
    color: #657176;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 620px) {
    .hero-actions,
    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-metrics {
        grid-template-columns: repeat(4, 1fr);
    }

    .benefit-grid,
    .direction-grid,
    .process-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .switch-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .calculator-switches {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-quantities {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item:nth-child(5n + 1) {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (min-width: 900px) {
    .container {
        width: min(100% - 64px, var(--container));
    }

    .header-inner {
        min-height: 78px;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: flex;
        margin-left: auto;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 18px;
        background: none;
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .main-nav a {
        padding: 27px 0 24px;
        border: 0;
        border-bottom: 2px solid transparent;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .main-nav a.is-active {
        border-color: var(--lime);
    }

    .header-cta {
        display: inline-flex;
    }

    .hero {
        padding-top: 105px;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(7, 10, 12, 0.98) 0%, rgba(7, 10, 12, 0.78) 48%, rgba(7, 10, 12, 0.1)),
            linear-gradient(0deg, var(--bg) 0%, transparent 28%),
            url("../img/house-montblanc-166.jpg") center / cover no-repeat;
    }

    .section {
        padding: 110px 0;
    }

    .section-head {
        margin-bottom: 48px;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .benefit-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .direction-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calculator {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .calculator-form,
    .calculator-result {
        padding: 46px;
    }

    .split {
        grid-template-columns: 1fr 1fr;
        gap: 70px;
    }

    .split.reverse .split-media {
        order: 2;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .seo-copy {
        columns: 2;
        column-gap: 70px;
    }

    .cta-panel {
        padding: 54px;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1.6fr repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1180px) {
    .header-inner {
        width: min(100% - 32px, 1460px);
    }

    .header-phone {
        display: inline-flex;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.82rem;
        font-weight: 800;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .process-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Light premium theme */
:root {
    --bg: #f5f7fb;
    --bg-soft: #edf2f8;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-solid: #ffffff;
    --line: rgba(20, 52, 95, 0.12);
    --text: #14345f;
    --muted: #66788d;
    --lime: #78b92d;
    --lime-strong: #65a91f;
    --blue: #155ee7;
    --shadow: 0 22px 65px rgba(20, 52, 95, 0.11);
}

body {
    background:
        radial-gradient(circle at 84% 5%, rgba(21, 94, 231, 0.1), transparent 27rem),
        radial-gradient(circle at 8% 32%, rgba(120, 185, 45, 0.08), transparent 25rem),
        var(--bg);
}

.skip-link {
    color: #fff;
    background: var(--blue);
}

.site-header,
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 30px rgba(20, 52, 95, 0.05);
}

.main-nav {
    background: rgba(255, 255, 255, 0.98);
}

.main-nav a {
    color: #405976;
}

.main-nav a.is-active,
.main-nav a:hover,
.breadcrumbs a:hover,
.contact-card a:hover,
.footer-grid a:hover,
.text-link:hover {
    color: var(--blue);
}

.main-nav a.is-active {
    border-color: var(--blue);
}

.brand {
    color: var(--text);
}

.brand-logo {
    filter: drop-shadow(0 8px 16px rgba(21, 94, 231, 0.14));
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #4384f2);
    box-shadow: 0 13px 36px rgba(21, 94, 231, 0.22);
}

.button-secondary {
    color: var(--text);
    border-color: rgba(21, 94, 231, 0.16);
    background: rgba(255, 255, 255, 0.76);
}

.breadcrumbs li {
    color: #7a8da2;
}

.breadcrumbs li:not(:last-child)::after {
    color: #afbbc8;
}

.hero::before {
    background:
        linear-gradient(90deg, rgba(245, 247, 251, 0.99) 0%, rgba(245, 247, 251, 0.92) 45%, rgba(245, 247, 251, 0.22) 74%),
        linear-gradient(0deg, var(--bg) 0%, transparent 32%),
        url("../img/house-montblanc-166.jpg") 66% center / cover no-repeat;
}

.hero::after {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(21,94,231,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21,94,231,.16) 1px, transparent 1px);
}

.eyebrow,
.hero h1 span,
.metric strong,
.project-top strong,
.stat-card strong,
.faq-item summary span {
    color: var(--blue);
}

.hero-lead,
.page-hero p {
    color: #4c637c;
}

.metric {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(20, 52, 95, 0.08);
}

.metric span {
    color: #667b92;
}

.glass {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.94), rgba(247,250,253,0.76)),
        var(--panel);
    box-shadow: inset 0 1px 0 #fff, var(--shadow);
}

.benefit-card::after {
    background: rgba(21, 94, 231, 0.1);
}

.icon-box {
    color: var(--blue);
    border-color: rgba(21, 94, 231, 0.18);
    background: rgba(21, 94, 231, 0.07);
}

.direction-card {
    color: #fff;
    box-shadow: 0 20px 45px rgba(20, 52, 95, 0.18);
}

.direction-card::before {
    background: linear-gradient(0deg, rgba(10, 32, 60, 0.94), rgba(10, 32, 60, 0.05));
}

.direction-card span {
    color: #b8f267;
}

.direction-card p {
    color: rgba(255, 255, 255, 0.76);
}

.process-number {
    color: var(--blue);
}

.project-card:hover {
    border-color: rgba(21, 94, 231, 0.32);
}

.project-media {
    position: relative;
    background: #e8eef5;
}

.project-image-note {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 7px 10px;
    color: #fff;
    border-radius: 9px;
    background: rgba(20, 52, 95, 0.8);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    text-align: center;
}

.project-specs {
    color: #657b92;
}

.text-link {
    color: var(--blue);
}

.calculator-result {
    color: var(--text);
    background:
        radial-gradient(circle at 100% 0, rgba(21,94,231,.15), transparent 48%),
        linear-gradient(145deg, #f6f9ff, #eaf1fb);
}

.calculator-result > strong {
    color: var(--blue);
}

.calculator-result > span:not(.eyebrow),
.calc-breakdown strong {
    color: var(--text);
}

.calc-total-label {
    color: var(--blue) !important;
}

.selected-model em {
    margin-top: 3px;
    color: #7d8fa2;
    font-size: 0.68rem;
    font-style: normal;
}

.field label,
.lead-form label {
    color: #405873;
}

.field label small {
    color: var(--blue);
    font-weight: 750;
}

.field select,
.field input:not([type="range"]),
.field textarea,
.lead-form input,
.lead-form select,
.lead-form textarea {
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
}

.field input:disabled {
    color: #9eacba;
    background: #eef2f6;
    cursor: not-allowed;
}

.field select:focus,
.field input:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: rgba(21, 94, 231, 0.5);
    box-shadow: 0 0 0 4px rgba(21, 94, 231, 0.08);
}

input[type="range"] {
    accent-color: var(--blue);
}

.range-row output {
    color: var(--blue);
    border-color: rgba(21, 94, 231, 0.16);
    background: rgba(21, 94, 231, 0.05);
}

.switch {
    color: #536b84;
    background: rgba(255, 255, 255, 0.52);
}

.switch span {
    background: #c8d2dd;
}

.switch input:checked + span {
    background: var(--blue);
}

.check-list li {
    color: #516980;
}

.check-list li::before {
    color: #fff;
    background: var(--blue);
}

.stat-card span,
.seo-copy p {
    color: var(--muted);
}

.price-table {
    background: rgba(255, 255, 255, 0.78);
}

.price-table th {
    color: #72859a;
    background: #edf3fa;
}

.price-table td:last-child {
    color: var(--blue);
}

.cta-panel {
    border-color: rgba(21, 94, 231, 0.14);
    background:
        radial-gradient(circle at 85% 0, rgba(120, 185, 45, 0.16), transparent 35%),
        linear-gradient(145deg, #ffffff, #edf4ff);
    box-shadow: var(--shadow);
}

.form-alert.success {
    color: #3d7310;
}

.form-alert.error {
    color: #b73737;
}

.float-button {
    color: #fff;
    box-shadow: 0 10px 30px rgba(20, 52, 95, 0.2);
}

.float-phone {
    color: #fff;
    background: var(--blue);
}

.toast {
    color: var(--text);
    background: #fff;
}

.site-footer {
    background: #eef3f9;
}

.footer-grid h3 {
    color: var(--text);
}

.footer-grid a,
.footer-grid span,
.footer-grid small {
    color: #687d93;
}

.footer-phone {
    color: var(--blue) !important;
}

.footer-bottom {
    color: #8292a4;
}

@media (min-width: 900px) {
    .main-nav {
        background: none;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(245, 247, 251, 0.99) 0%, rgba(245, 247, 251, 0.88) 42%, rgba(245, 247, 251, 0.08) 70%),
            linear-gradient(0deg, var(--bg) 0%, transparent 28%),
            url("../img/house-montblanc-166.jpg") 70% center / cover no-repeat;
    }
}
