:root {
    --bg: #f6f4ef;
    --ink: #202829;
    --muted: #687273;
    --ocean: #315f66;
    --dark: #244a50;
    --sand: #d8c9ae;
    --line: #dfe2df;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f6f4eff5;
    border-bottom: 1px solid #ddd
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-weight: 900;
    letter-spacing: .08em
}

.logo span {
    display: block;
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--muted)
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 700
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 25px
}

.hero {
    min-height: 650px;
    display: grid;
    place-items: center;
    background: linear-gradient(90deg, #141d1db8, #141d1d20), url('../../images/hero.jpg') center/cover;
    color: white
}

.hero-inner {
    width: min(calc(100% - 40px), var(--max));
    padding: 90px 0
}

.eyebrow,
.tag {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800
}

.hero h1,
.page-hero h1 {
    line-height: .98;
    letter-spacing: -.045em
}

.hero h1 {
    font-size: clamp(44px, 7vw, 78px);
    max-width: 820px;
    margin: 15px 0 22px
}

.hero p {
    font-size: 19px;
    max-width: 620px;
    margin-bottom: 30px
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px
}

.btn-primary {
    background: #d9e1df;
    color: #173f43;
}

.btn-dark {
    background: var(--ink);
    color: white
}

.btn-ocean {
    background: var(--ocean);
    color: white
}

.btn-outline {
    border: 1px solid #ffffff99;
    color: white
}

section {
    padding: 82px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 32px
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0
}

.section-head p,
.card p,
.page-hero p {
    color: var(--muted)
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden
}

.card-body {
    padding: 25px
}

.card h3 {
    font-size: 23px;
    margin: 0 0 8px
}

.photo {
    aspect-ratio: 4/3;
    background: #dfe4e1;
    overflow: hidden
}

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

.photo.tall {
    aspect-ratio: 3/4
}

.photo.wide {
    aspect-ratio: 16/8
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line)
}

.stat {
    background: white;
    padding: 28px
}

.stat strong {
    font-size: 30px;
    display: block
}

.stat span {
    color: var(--muted);
    font-size: 13px
}

.feature {
    background: var(--dark);
    color: white;
    border-radius: 28px;
    padding: 48px
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center
}

.feature h2,
.cta h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.03;
    margin: 0 0 16px
}

.feature p {
    color: #ffffffcc
}

.cta {
    background: var(--sand);
    border-radius: 28px;
    padding: 50px
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
}

.price {
    font-size: 34px;
    font-weight: 900
}

.list {
    list-style: none;
    padding: 0
}

.list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.check {
    color: var(--ocean);
    font-weight: 900
}

.page-hero {
    background: #e9e6dd;
    padding: 55px 0 70px
}

.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    padding-bottom: 22px
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    margin: 0 0 16px
}

.page-hero p {
    font-size: 18px;
    max-width: 720px
}

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

.gallery .photo {
    aspect-ratio: 1
}

.note {
    padding: 20px;
    background: #eef2f0;
    border-left: 4px solid var(--ocean);
    border-radius: 10px
}

.faq {
    border-top: 1px solid var(--line)
}

details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0
}

summary {
    font-weight: 800;
    cursor: pointer;
    font-size: 17px
}

.contact-box {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 25px
}

.map {
    min-height: 400px;
    background: #dfe4e1;
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #677171;
    padding: 25px
}

.footer {
    background: #1f2728;
    color: white;
    padding: 60px 0 30px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px
}

.footer p,
.footer a {
    color: #bfc7c6;
    font-size: 14px
}

.footer-bottom {
    border-top: 1px solid #ffffff22;
    margin-top: 35px;
    padding-top: 20px;
    color: #8f9998;
    font-size: 12px
}

@media(max-width:800px) {
    .nav {
        height: 64px
    }

    .menu-btn {
        display: block
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 20px;
        flex-direction: column
    }

    .nav-links.open {
        display: flex
    }

    .grid-3,
    .grid-2,
    .price-grid,
    .feature-grid,
    .contact-box,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr
    }

    .gallery {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:480px) {
    .container {
        width: calc(100% - 28px)
    }

    .hero h1 {
        font-size: 44px
    }

    .hero p {
        font-size: 17px
    }

    .stat-grid,
    .gallery {
        grid-template-columns: 1fr
    }

    .buttons .btn {
        width: 100%
    }
}

/* Footer layout */
.footer-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) minmax(0, 2fr);
    gap: 60px;
    align-items: start;
}

.footer-layout > .footer-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px;
}

.footer-links p {
    margin-bottom: 0;
}

.footer-links a {
    display: inline-block;
    margin-bottom: 4px;
}

@media (max-width: 800px) {
    .footer-layout {
        grid-template-columns: 1fr !important;
    }

    .footer-layout > .footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px;
    }
}

@media (max-width: 520px) {
    .footer-layout > .footer-links {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}
