:root {
    --bg: #c6d0bf;
    --bg-soft: #dbe2d5;
    --surface: #f8f7f1;
    --surface-strong: #ffffff;
    --sidebar: #f0f0ec;
    --text: #222523;
    --muted: #6f766e;
    --line: #dfdfd8;
    --primary: #2f493b;
    --primary-hover: #243a2f;
    --yellow: #fff2aa;
    --blue: #ccebf0;
    --pink: #fbd0d0;
    --orange: #ffd1a3;
    --gray: #e5e5e3;
    --shadow: 0 22px 45px rgba(45, 55, 43, 0.18);
    --soft-shadow: 0 12px 26px rgba(47, 58, 45, 0.09);
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at 50% 0%, #e2e8dc 0, var(--bg) 52%, #b6c1b0 100%);
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

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

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

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(47, 73, 59, 0.35);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(198, 208, 191, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

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

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #253329;
    background: var(--yellow);
    box-shadow: var(--soft-shadow);
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #3f473e;
    font-size: 14px;
    font-weight: 750;
}

.nav-links a:not(.button):hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    display: block;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 18px rgba(47, 73, 59, 0.18);
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
    box-shadow: 0 12px 24px rgba(47, 73, 59, 0.22);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(47, 73, 59, 0.18);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.button-secondary {
    color: var(--primary);
    background: #f7f6ef;
    border-color: #cfd6ca;
    box-shadow: none;
}

.button-secondary:hover {
    background: #ffffff;
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
}

.section {
    padding: 82px 0;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 48px;
    padding-top: 54px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #6a7268;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin-bottom: 30px;
    color: #485047;
    font-size: 19px;
    line-height: 1.6;
}

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

.product-preview {
    min-width: 0;
    display: grid;
    grid-template-columns: 185px 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.preview-sidebar {
    min-height: 520px;
    padding: 24px 18px;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
}

.preview-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 18px;
}

.preview-search {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    margin-bottom: 24px;
    border: 1px solid #e2e2dc;
    border-radius: 7px;
    color: var(--muted);
    background: #fbfbf7;
    font-size: 12px;
}

.preview-sidebar p {
    margin: 24px 0 10px;
    color: #767d74;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.preview-link {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    border-radius: 7px;
    color: #3f443f;
    font-size: 12px;
    font-weight: 700;
}

.preview-link.active {
    background: #e6e6e1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.yellow,
.dot.yellow {
    background: var(--yellow);
}

.blue,
.dot.blue {
    background: var(--blue);
}

.pink {
    background: var(--pink);
}

.orange,
.dot.orange {
    background: var(--orange);
}

.preview-board {
    padding: 24px;
}

.preview-board h2 {
    margin-bottom: 24px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

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

.preview-note {
    min-height: 150px;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(37, 42, 36, 0.06);
}

.preview-note h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.preview-note p {
    color: #3f443f;
    font-size: 12px;
    line-height: 1.45;
}

.preview-note.add-note {
    display: grid;
    place-items: center;
    color: #1f2421;
    background: var(--gray);
    font-size: 64px;
    font-weight: 300;
}

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

.benefits article,
.steps article,
.price-card,
.form-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(248, 247, 241, 0.92);
    box-shadow: var(--soft-shadow);
}

.benefits article {
    padding: 24px;
}

.icon,
.step-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--blue);
    font-weight: 900;
}

.benefits article:nth-child(2) .icon,
.steps article:nth-child(2) .step-icon {
    background: var(--pink);
}

.benefits article:nth-child(3) .icon,
.steps article:nth-child(3) .step-icon {
    background: var(--orange);
}

.benefits article:nth-child(4) .icon,
.steps article:nth-child(4) .step-icon {
    background: var(--yellow);
}

.benefits h2,
.steps h3,
.price-card h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.benefits p,
.steps p,
.price-card li,
.section-copy,
.contact-details p,
.site-footer p {
    color: #555e54;
    line-height: 1.6;
}

.split-section,
.form-section,
.contact-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 42px;
    align-items: start;
}

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

.section-title {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-copy {
    margin-bottom: 0;
    font-size: 17px;
}

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

.steps article {
    padding: 24px;
}

.step-icon {
    color: #232822;
}

.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
}

.price-card.featured {
    border-color: #f2d984;
    background: #fff9d9;
    transform: translateY(-10px);
}

.badge {
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: 8px;
    color: #243a2f;
    background: var(--orange);
    font-size: 12px;
    font-weight: 850;
}

.price {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
}

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

.price-card ul {
    flex: 1;
    padding-left: 18px;
    margin: 0;
}

.price-card .button {
    width: 100%;
}

.form-card {
    display: grid;
    gap: 16px;
    padding: 26px;
}

label {
    display: grid;
    gap: 8px;
    color: #40483e;
    font-size: 14px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dbd1;
    border-radius: 8px;
    padding: 0 13px;
    color: var(--text);
    background: #ffffff;
}

textarea {
    min-height: 128px;
    padding-top: 12px;
    resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #bcc7b6;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-field input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.form-message {
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 750;
}

.form-message.show {
    display: block;
}

.form-message.success {
    color: #244536;
    background: #dcefdc;
}

.form-message.error {
    color: #74312f;
    background: #f9d5d2;
}

.contact-details {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--soft-shadow);
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    padding: 38px 0 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
    justify-content: flex-end;
    color: #3f473e;
    font-size: 14px;
    font-weight: 750;
}

.site-footer .academic-note,
.site-footer > p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
}

.site-footer > div p {
    max-width: 470px;
    margin: 16px 0 0;
}

@media (max-width: 980px) {
    .hero,
    .split-section,
    .form-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .product-preview {
        grid-template-columns: 155px 1fr;
    }

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

@media (max-width: 760px) {
    .navbar,
    .section,
    .site-footer {
        width: min(100% - 22px, 1120px);
    }

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 68px 11px auto 11px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a:not(.button) {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 0 8px;
    }

    .section {
        padding: 58px 0;
    }

    .hero {
        padding-top: 36px;
        gap: 32px;
    }

    .hero-actions,
    .hero-actions .button,
    .price-card .button,
    .form-card .button {
        width: 100%;
    }

    .product-preview {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .preview-board {
        padding: 20px;
    }

    .benefits,
    .steps,
    .pricing-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: none;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 42px;
    }

    .hero-copy,
    .section-copy {
        font-size: 16px;
    }

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

    .preview-note {
        min-height: 130px;
    }

    .form-card,
    .price-card,
    .benefits article,
    .steps article {
        padding: 20px;
    }
}
