:root {
    color-scheme: light;
    --page: #c8d5c3;
    --page-soft: #dce6d7;
    --panel: #f7f7f5;
    --cream: #fffdf7;
    --sidebar: #f1f2ef;
    --line: #e4e4df;
    --text: #252a27;
    --muted: #6f776f;
    --shadow: 0 24px 70px rgb(48 61 44 / 18%);
    --soft-shadow: 0 14px 35px rgb(54 63 50 / 10%);
    --yellow: #fff4ae;
    --blue: #c9edf3;
    --pink: #ffd0d2;
    --orange: #ffd1a1;
    --green: #e9f6e6;
    --button: #202620;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, var(--page-soft), var(--page));
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
    overflow: hidden;
}

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 #91cfd8;
    outline-offset: 3px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: min(1120px, calc(100% - 32px));
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 14px auto 0;
    padding: 12px 14px;
    border: 1px solid rgb(228 228 223 / 72%);
    border-radius: 8px;
    background: rgb(247 247 245 / 92%);
    box-shadow: 0 12px 30px rgb(48 61 44 / 10%);
    backdrop-filter: blur(16px);
}

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

.brand img {
    display: block;
    border-radius: 8px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 12px;
    color: #4f574f;
    font-size: 14px;
    font-weight: 800;
}

.primary-nav a:hover {
    background: #e9ebe5;
    color: var(--text);
}

.nav-cta {
    background: var(--button);
    color: #fff !important;
}

.nav-cta:hover {
    background: #343b34 !important;
}

.nav-login {
    border: 1px solid #cfd5ca;
    background: #fffdf7;
    color: #273027 !important;
}

.nav-login:hover {
    border-color: #b8c1b3;
    background: #eef1ea !important;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: #e5e7e1;
    cursor: pointer;
}

.menu-toggle__bar {
    width: 20px;
    height: 2px;
    display: block;
    grid-column: 1;
    grid-row: 1;
    background: var(--text);
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle__bar:first-child {
    transform: translateY(-7px);
}

.menu-toggle__bar:nth-of-type(3) {
    transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(3) {
    transform: rotate(-45deg);
}

main {
    overflow: hidden;
}

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

.hero {
    min-height: calc(100vh - 104px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.85fr);
    align-items: center;
    gap: 44px;
    padding: 54px 0 42px;
}

.hero__content {
    max-width: 520px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #5f675e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    max-width: 540px;
    margin-bottom: 18px;
    font-size: clamp(44px, 7vw, 72px);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.04;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.15;
}

.hero__copy,
.section-heading p,
.contact-card p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgb(54 63 50 / 14%);
}

.button:active {
    transform: translateY(0);
    box-shadow: none;
}

.button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

.button--primary {
    background: var(--button);
    color: #fff;
}

.button--primary:hover {
    background: #353c35;
}

.button--secondary {
    background: #e5e7e1;
    color: #273027;
}

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

.button--login {
    border: 1px solid #cfd5ca;
    background: var(--cream);
    color: #273027;
}

.button--login:hover {
    background: #eef1ea;
}

.product-card {
    width: min(100%, 540px);
    justify-self: end;
    border: 1px solid rgb(228 228 223 / 88%);
    border-radius: 8px;
    padding: 14px;
    background: rgb(255 253 247 / 84%);
    box-shadow: var(--shadow);
}

.product-preview {
    min-height: 390px;
    display: grid;
    grid-template-columns: 132px 1fr;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgb(228 228 223 / 75%);
    background: var(--panel);
    box-shadow: var(--soft-shadow);
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 10px;
    border-right: 1px solid var(--line);
    background: var(--sidebar);
}

.preview-menu,
.preview-nav,
.preview-list {
    display: flex;
    align-items: center;
    gap: 9px;
}

.preview-menu {
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.preview-search {
    height: 26px;
    border: 1px solid #e7e7e3;
    border-radius: 6px;
    background: #f8f8f6;
}

.preview-nav,
.preview-list {
    min-height: 28px;
    border-radius: 6px;
    padding: 5px 7px;
    color: #4c544c;
    font-size: 11px;
}

.preview-nav.active {
    background: #e7e8e4;
    color: var(--text);
}

.preview-nav em,
.preview-list em {
    margin-left: auto;
    font-style: normal;
    font-weight: 800;
}

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

.dot-yellow {
    background: #edcf78;
}

.dot-blue {
    background: #bbd8d8;
}

.preview-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.preview-tags span {
    padding: 6px 7px;
    border-radius: 5px;
    background: var(--blue);
    font-size: 10px;
    font-weight: 800;
}

.preview-tags span:last-child {
    background: var(--pink);
}

.preview-board {
    padding: 18px;
}

.preview-alert {
    min-height: 34px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border-radius: 6px;
    padding: 0 10px;
    background: var(--green);
    color: #286b28;
    font-size: 12px;
    font-weight: 850;
}

.preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.preview-head strong {
    display: block;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1;
}

.preview-head span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.preview-head button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 11px;
    background: #e5e7e1;
    color: #273027;
    font-size: 12px;
    font-weight: 900;
}

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

.note {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    padding: 13px;
    box-shadow: 0 10px 25px rgb(54 63 50 / 8%);
}

.note h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.note p {
    color: #384038;
    font-size: 11px;
    line-height: 1.35;
}

.note small {
    color: #667066;
    font-size: 10px;
}

.note-orange {
    background: var(--orange);
}

.note-blue {
    background: var(--blue);
}

.note-yellow {
    background: var(--yellow);
}

.note-add {
    min-height: 150px;
    display: grid;
    place-items: center;
    background: #e9e9e7;
    font-size: 62px;
    line-height: 1;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 8px 0 72px;
}

.benefits article,
.steps article,
.price-card,
.form-panel,
.contact-card {
    border: 1px solid rgb(228 228 223 / 88%);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: var(--soft-shadow);
}

.benefits article {
    padding: 22px;
}

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

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

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

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

.benefits h2 {
    font-size: 20px;
}

.benefits p,
.steps p,
.price-card li,
.academic-note,
.footer-note,
.site-footer p,
dd {
    color: var(--muted);
    line-height: 1.55;
}

.section {
    padding: 74px 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 30px;
}

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

.steps article {
    padding: 24px;
}

.pricing-section {
    width: 100%;
    max-width: none;
    padding-right: max(16px, calc((100vw - 1120px) / 2));
    padding-left: max(16px, calc((100vw - 1120px) / 2));
    background: rgb(247 247 245 / 46%);
}

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

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

.price-card--featured {
    border-color: #c5d7a8;
    background: #fbfff6;
    transform: translateY(-8px);
}

.popular-badge {
    align-self: flex-start;
    margin-bottom: 16px;
    border-radius: 5px;
    padding: 8px 10px;
    background: var(--green);
    color: #286b28;
    font-size: 12px;
    font-weight: 900;
}

.price {
    margin: 4px 0 20px;
    font-size: 42px;
    font-weight: 950;
}

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

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding-left: 20px;
}

.price-card .button {
    margin-top: auto;
}

.academic-note {
    margin: 20px 0 0;
    font-size: 14px;
}

.form-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    color: #3d453e;
    font-size: 13px;
    font-weight: 850;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #dadfd6;
    border-radius: 6px;
    background: #fbfbfa;
    color: var(--text);
    padding: 12px;
    outline: none;
}

textarea {
    resize: vertical;
}

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

input:focus,
textarea:focus,
select:focus {
    border-color: #8fc9d2;
    box-shadow: 0 0 0 3px rgb(143 201 210 / 24%);
}

.field-error {
    border-color: #c95252 !important;
    box-shadow: 0 0 0 3px rgb(201 82 82 / 16%) !important;
}

.check-row {
    grid-template-columns: 18px 1fr;
    align-items: start;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #202620;
}

.form-message {
    min-height: 24px;
    margin: 0;
    color: #286b28;
    font-weight: 800;
}

.form-message.is-error {
    color: #9f2424;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 32px;
    align-items: start;
}

.contact-card {
    padding: 30px;
}

dl {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
}

dt {
    margin-bottom: 4px;
    font-weight: 900;
}

dd {
    margin: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    padding: 42px 0 34px;
    border-top: 1px solid rgb(228 228 223 / 72%);
}

.site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.site-footer nav a {
    color: #4f574f;
    font-weight: 800;
}

.site-footer nav a:hover {
    color: var(--text);
}

.footer-note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 8px;
    background: var(--button);
    color: #fff;
    box-shadow: 0 14px 30px rgb(48 61 44 / 24%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.scroll-top span {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #353c35;
    box-shadow: 0 18px 36px rgb(48 61 44 / 28%);
}

.scroll-top:active {
    transform: translateY(1px);
    box-shadow: 0 10px 20px rgb(48 61 44 / 18%);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__content {
        max-width: 760px;
    }

    .product-card {
        justify-self: start;
        width: min(100%, 560px);
    }

    .product-preview {
        grid-template-columns: 132px 1fr;
        min-height: 390px;
    }

    .preview-grid,
    .pricing-grid,
    .form-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .site-header {
        width: min(100% - 20px, 560px);
        margin-top: 10px;
    }

    .menu-toggle {
        display: grid;
    }

    .primary-nav {
        position: fixed;
        inset: 82px 10px auto;
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 14px;
        background: var(--panel);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        min-height: 44px;
    }

    .section-band,
    .section,
    .benefits,
    .site-footer {
        width: min(100% - 20px, 560px);
    }

    .hero {
        padding-top: 42px;
    }

    h1 {
        font-size: 44px;
    }

    .hero__copy,
    .section-heading p,
    .contact-card p {
        font-size: 16px;
    }

    .product-card {
        width: 100%;
        padding: 10px;
    }

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

    .preview-sidebar {
        display: none;
    }

    .preview-board {
        padding: 20px;
    }

    .preview-head {
        flex-direction: column;
    }

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

    .note-add {
        min-height: 92px;
    }

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

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

@media (max-width: 420px) {
    .hero__actions,
    .button {
        width: 100%;
    }

    .product-card,
    .product-preview {
        border-radius: 8px;
    }

    .scroll-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }

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

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }
}
