:root {
    color-scheme: light;
    --bg: #fbfaf8;
    --surface: #ffffff;
    --soft: #eef4f3;
    --text: #1f2933;
    --muted: #5d6875;
    --line: #dfe5e7;
    --accent: #1f7a8c;
    --accent-dark: #155e6d;
    --warm: #d9694f;
    --shadow: 0 18px 45px rgba(35, 48, 60, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

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

.hero {
    padding: 28px 0 44px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero__grid,
.split,
.order-grid,
.footer__grid {
    display: grid;
    gap: 28px;
}

.hero__content {
    align-self: center;
}

.hero__purchase {
    align-self: start;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1,
h2,
h3 {
    line-height: 1.12;
}

h1 {
    margin-bottom: 16px;
    font-size: 38px;
}

h2 {
    margin-bottom: 16px;
    font-size: 30px;
}

h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
}

.price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.hero__purchase .price {
    margin-top: 0;
}

.price > div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

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

.price strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
}

.price__old {
    color: var(--muted);
    text-decoration: line-through;
}

.price__new {
    color: var(--warm);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    background: var(--accent-dark);
}

.button--wide {
    width: 100%;
}

.hero__actions p,
.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero__media img,
.rounded-image,
.gallery img {
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section {
    padding: 48px 0;
}

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

.section__heading {
    max-width: 680px;
    margin-bottom: 26px;
}

.feature-grid {
    display: grid;
    gap: 16px;
}

.feature,
.step,
.order-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.feature {
    padding: 20px;
}

.feature p,
.step p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    content: "✓";
    font-weight: 700;
}

.gallery {
    display: grid;
    gap: 16px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.spec-list {
    display: grid;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.spec-list div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
    border-bottom: 0;
}

.spec-list dt {
    font-weight: 700;
}

.spec-list dd {
    margin: 0;
    color: var(--muted);
}

.steps {
    display: grid;
    gap: 16px;
}

.step {
    padding: 20px;
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.order-section {
    background: #ffffff;
}

.order-form {
    display: grid;
    gap: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.order-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.order-form input,
.order-form select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.order-form input:focus,
.order-form select:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(31, 122, 140, 0.15);
}

.footer {
    padding: 34px 0;
    background: #1f2933;
    color: #f6f7f8;
}

.footer p {
    margin-bottom: 6px;
    color: #d8dee3;
}

.footer__links {
    display: grid;
    gap: 8px;
}

.footer__links a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 640px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

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

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

    .spec-list div {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .hero {
        padding: 56px 0 68px;
    }

    .hero__grid,
    .split,
    .order-grid,
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero__grid {
        grid-template-areas:
            "content media"
            "purchase media";
    }

    .hero__content {
        grid-area: content;
        align-self: end;
    }

    .hero__media {
        grid-area: media;
    }

    .hero__purchase {
        grid-area: purchase;
    }

    .hero__media img {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr 1fr auto;
        align-items: start;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 27px;
    }

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