:root {
    --bg: #fbf1dd;
    --surface: #fff7eb;
    --text: #19110a;
    --muted: #5c4c37;
    --primary: #b98d25;
    --secondary: #b92b23;
    --accent: #f5c152;
    --border: rgba(185, 141, 37, 0.18);
    --shadow: 0 18px 50px rgba(22, 17, 11, 0.12);
    --radius: 24px;
    --max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7eb 0%, #f3e3c8 100%);
    line-height: 1.6;
}

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

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

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(255, 250, 240, 0.95);
    border-bottom: 1px solid rgba(185, 141, 37, 0.15);
}

.nav-wrap {
    max-width: var(--max-width);
    margin: auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.site-logo {
    height: 50px;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.burger {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    position: absolute;
}

.burger span:nth-child(1) {
    top: 12px;
}

.burger span:nth-child(2) {
    top: 21px;
}

.burger span:nth-child(3) {
    top: 30px;
}

.nav-wrap.nav-open .burger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-wrap.nav-open .burger span:nth-child(2) {
    opacity: 0;
}

.nav-wrap.nav-open .burger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-wrap.nav-open nav {
    display: flex;
}

@media (max-width: 720px) {
    .burger {
        display: inline-flex;
    }

    .nav-wrap {
        position: relative;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .brand {
        flex: 1;
    }

    .burger {
        margin-left: auto;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        flex-direction: column;
        gap: 16px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 24px;
        padding: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
        display: none;
        z-index: 20;
    }

    .nav-wrap.nav-open nav {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
        color: var(--text);
        border-bottom: 1px solid rgba(185, 141, 37, 0.12);
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}

.nav-link {
    font-size: 0.95rem;
    color: var(--muted);
}

.hero {
    display: grid;
    place-items: center;
    padding: 80px 24px 60px;
}

.hero-grid {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-copy h1 {
    word-break: break-word;
}

.hero-copy p {
    max-width: 100%;
}

.hero-copy {
    animation: fadeInUp 0.9s ease forwards;
    opacity: 0;
}

.hero-copy span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(185, 45, 35, 0.12);
    color: var(--secondary);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-copy h1 {
    font-size: clamp(3rem, 4vw, 4.7rem);
    margin: 24px 0 16px;
    line-height: 0.98;
}

.hero-copy p {
    max-width: 640px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.06rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 18px 40px rgba(185, 141, 37, 0.24);
}

.button.secondary {
    background: var(--secondary);
    color: white;
    border: 1px solid rgba(185, 45, 35, 0.14);
}

.button:hover {
    transform: translateY(-1px);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.tab-button {
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: var(--primary);
    color: white;
    border-color: rgba(185, 141, 37, 0.18);
    box-shadow: 0 18px 40px rgba(185, 141, 37, 0.14);
}

.tab-button:hover {
    transform: translateY(-1px);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    border-radius: 32px;
    border: 1px solid rgba(185, 141, 37, 0.12);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.plan-card h4 {
    margin: 0;
    font-size: 1.25rem;
}

.plan-card .badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(185, 141, 37, 0.12);
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-card p {
    margin: 0;
    color: var(--muted);
}

.plan-card .button {
    margin-top: auto;
    align-self: flex-start;
}

.form-selected-plan {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }
}

.hero-visual {
    position: relative;
    min-height: 620px;
    background: linear-gradient(145deg, #160f0a 0%, #7d3e22 45%, #b92b23 100%);
    border-radius: 36px;
    padding: 32px;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeInRight 0.9s ease forwards;
    opacity: 0;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 45%);
}

.hero-visual .photo-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
}

.hero-visual .photo-card span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.72);
}

.hero-visual .hero-meta {
    position: absolute;
    bottom: 32px;
    left: 32px;
    width: calc(100% - 64px);
    display: grid;
    gap: 18px;
}

.hero-visual .hero-meta .chip {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
}

.section {
    padding: 90px 24px;
    max-width: var(--max-width);
    margin: auto;
}

.section h2 {
    font-size: clamp(2rem, 2.5vw, 2.7rem);
    margin-bottom: 18px;
}

.section p.lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 760px;
}

.grid {
    display: grid;
    gap: 28px;
}

.coach-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: start;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.card strong {
    color: var(--primary);
}

.highlight-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.highlight-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.highlight-item span {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.highlight-item div {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border-radius: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    background: var(--surface);
}

th,
td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(31, 61, 122, 0.08);
    color: var(--text);
}

th {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

td:last-child,
th:last-child {
    text-align: right;
}

.section.alt {
    background: #fcf1e0;
}

.form-grid {
    display: grid;
    gap: 24px;
}

.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.form-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.field-group {
    display: grid;
    gap: 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
    color: #333;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(31, 61, 122, 0.16);
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(209, 68, 59, 0.1);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
}

.form-note {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 680px;
}

.alert {
    padding: 18px 22px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.success {
    background: #e7f7ed;
    color: #1f4e28;
    border: 1px solid #c9e8d0;
}

.alert.error {
    background: #fcedee;
    color: #8f2626;
    border: 1px solid #f4c4c4;
}

.field-error {
    color: #b93b3b;
    font-size: 0.9rem;
}

.confirmation-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 130;
    max-width: min(420px, calc(100vw - 32px));
}

.confirmation-banner.hidden {
    display: none;
}

.confirmation-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f3fbf6;
    color: #1f4e28;
    border: 1px solid #c9e8d0;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 14px 32px rgba(20, 48, 30, 0.16);
}

.confirmation-banner__content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.confirmation-banner__close {
    background: transparent;
    border: none;
    color: #1f4e28;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.faq-grid {
    display: grid;
    gap: 18px;
}

.faq-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 61, 122, 0.08);
}

.cta-banner {
    display: grid;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #b98d25, #c22222);
    color: white;
    padding: 48px 32px;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.cta-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
}

.cta-banner a {
    width: fit-content;
}

.footer {
    padding: 36px 24px 50px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.7rem;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 32px rgba(185, 141, 37, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 110;
}

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

.to-top:hover {
    transform: translateY(-2px);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal:not(.hidden) {
    background: rgba(12, 18, 38, 0.45);
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 38, 0.45);
}

.modal-content {
    position: relative;
    max-width: 1040px;
    width: min(100%, 1080px);
    max-height: min(90vh, 980px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
    z-index: 1;
    transform: translateY(-18px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 141, 37, 0.45) transparent;
    scrollbar-gutter: stable;
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(185, 141, 37, 0.45), rgba(185, 45, 35, 0.35));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(185, 141, 37, 0.68), rgba(185, 45, 35, 0.52));
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-open {
    overflow: hidden;
}

.u-container {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 24px;
}

.u-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.u-grid {
    display: grid;
    gap: 24px;
}

.u-center {
    text-align: center;
}

.u-mt-0 {
    margin-top: 0;
}

.u-mb-0 {
    margin-bottom: 0;
}

.u-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.u-pill {
    border-radius: 999px;
}

.u-shadow {
    box-shadow: var(--shadow);
}

.u-bg-soft {
    background: rgba(31, 61, 122, 0.06);
}

.u-border-soft {
    border: 1px solid rgba(31, 61, 122, 0.12);
}

.u-inline-block {
    display: inline-block;
}

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

    .hero {
        min-height: auto;
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .coach-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .nav-wrap {
        padding: 16px 20px;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        padding: 16px 18px;
    }

    nav {
        justify-content: flex-start;
    }

    .hero {
        max-height: none;
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 6vw, 3.5rem);
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-visual {
        min-height: 360px;
        padding: 24px;
        border-radius: 28px;
    }

    .hero-visual .hero-meta {
        position: static;
        width: 100%;
        bottom: auto;
        left: auto;
        margin-top: 22px;
    }

    .hero-visual .hero-meta .chip {
        width: 100%;
    }

    .tabs {
        gap: 10px;
    }

    .tab-button {
        flex: 1 1 auto;
        min-width: 0;
    }

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

    .plan-card {
        padding: 24px;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    section#coach {
        padding-top: 72px;
    }

    .coach-grid {
        gap: 28px;
    }

    .card,
    .form-card,
    .faq-card {
        padding: 24px;
    }

    .cta-banner {
        padding: 32px 24px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        max-width: 92vw;
        padding: 22px;
    }

    th,
    td {
        padding: 12px 14px;
    }
}

@media (max-width: 540px) {
    .nav-wrap {
        padding: 14px 16px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 7vw, 3rem);
    }

    .hero-copy .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 320px;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .section h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(44px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}