:root {
    --ink: #17202a;
    --muted: #5d6876;
    --paper: #ffffff;
    --soft: #f4f6f7;
    --line: #dce2e8;
    --blue: #0e63a7;
    --blue-dark: #083a62;
    --green: #18835f;
    --wood: #b77a43;
    --stone: #a8adb5;
    --shadow: 0 18px 45px rgba(23, 32, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--paper);
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 8px 18px rgba(14, 99, 167, 0.25);
}

.brand-text {
    font-size: 1.08rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.nav a {
    padding: 8px 0;
    border-bottom: 3px solid transparent;
}

.nav a:hover {
    color: var(--blue);
    border-color: var(--green);
}

.hero {
    position: relative;
    min-height: 690px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--paper);
}

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-image: url("assets/apartment-upgrade-hero.jpg");
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(8, 58, 98, 0.86), rgba(8, 58, 98, 0.55), rgba(24, 131, 95, 0.2)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    padding: 70px 0 92px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow,
.cta .eyebrow {
    color: #88f0ca;
}

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

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.96;
}

h2 {
    margin-bottom: 14px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.28rem;
    line-height: 1.2;
}

.hero p {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: 1.23rem;
}

.mobile-title-line + .mobile-title-line::before {
    content: " ";
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: center;
}

.button.primary {
    color: var(--paper);
    background: var(--green);
}

.button.secondary {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.08);
}

.quick-panel {
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.quick-grid div {
    padding: 22px;
    border-right: 1px solid var(--line);
}

.quick-grid div:last-child {
    border-right: 0;
}

.quick-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-grid strong {
    display: block;
    line-height: 1.25;
}

.section {
    padding: 86px 0;
}

.muted {
    background: var(--soft);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading p,
.split p,
.material-grid p,
.timeline p,
.contact-section p,
.site-footer p {
    color: var(--muted);
}

.compact {
    max-width: 680px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

.service-card:nth-child(2) {
    border-left-color: var(--green);
}

.service-card:nth-child(3) {
    border-left-color: var(--wood);
}

.card-index {
    display: block;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 46px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.check-list p {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid var(--green);
    background: var(--paper);
    font-weight: 800;
}

.stats-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.stats-panel div {
    padding: 18px;
    border-radius: 8px;
    background: var(--soft);
}

.stats-panel strong,
.stats-panel span {
    display: block;
}

.stats-panel strong {
    margin-bottom: 4px;
    color: var(--blue-dark);
}

.stats-panel span {
    color: var(--muted);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.material-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.swatch {
    display: block;
    width: 100%;
    height: 78px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid rgba(23, 32, 42, 0.1);
}

.swatch.wood {
    background:
        linear-gradient(90deg, transparent 0 20%, rgba(75, 44, 20, 0.18) 20% 22%, transparent 22% 48%, rgba(75, 44, 20, 0.16) 48% 50%, transparent 50%),
        linear-gradient(135deg, #d09a5a, #b77a43);
}

.swatch.stone {
    background: linear-gradient(135deg, #eef0f2, #9aa2ac);
}

.swatch.cabinet {
    background:
        linear-gradient(90deg, #f5f1ea 0 47%, #c9b69c 47% 52%, #f5f1ea 52%),
        linear-gradient(#ffffff, #e5d7c7);
}

.swatch.carpet {
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.16), transparent 18%),
        #8f989f;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.timeline span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--paper);
    background: var(--blue);
    font-weight: 900;
}

.contact-section {
    color: var(--paper);
    background: linear-gradient(135deg, var(--blue-dark), #115f48);
}

.contact-section h2,
.contact-section h3 {
    color: var(--paper);
}

.contact-section p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 42px;
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.contact-cards a {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.contact-cards span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lead-form {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.lead-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
}

.lead-form textarea {
    resize: vertical;
}

.site-footer {
    padding: 34px 0;
    background: var(--paper);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.site-footer strong {
    display: block;
    margin-bottom: 6px;
}

.site-footer p {
    margin: 0 0 6px;
}

@media (max-width: 980px) {
    .header-inner,
    .nav {
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: column;
        padding: 16px 0;
    }

    .nav {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .hero {
        min-height: 620px;
    }

    .quick-grid,
    .card-grid,
    .split,
    .material-grid,
    .timeline,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quick-grid div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 30px, 1160px);
    }

    .mobile-title-line {
        display: block;
    }

    .mobile-title-line + .mobile-title-line::before {
        content: "";
    }

    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 54px 0 74px;
    }

    h1 {
        max-width: 330px;
        font-size: 2.2rem;
        line-height: 1.05;
        overflow-wrap: normal;
    }

    h2 {
        font-size: 1.85rem;
    }

    .hero p {
        max-width: 330px;
        font-size: 1rem;
    }

    .button {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding: 60px 0;
    }
}
