:root {
    --cream: #fdf8f6;
    --blush: #f5e6e8;
    --mist: #e8eef5;
    --sage-soft: #dbe8df;
    --text: #3d4544;
    --text-muted: #6b7573;
    --accent: #c89b9e;
    --accent-dark: #a67a7e;
    --card: #ffffff;
    --border: rgba(200, 155, 158, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 42%, var(--mist) 100%);
    min-height: 100vh;
}

a {
    color: var(--accent-dark);
}

a:hover {
    text-decoration: none;
}

.container {
    width: min(920px, 92vw);
    margin: 0 auto;
    padding: 0 16px;
}

.hero {
    padding: 56px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.85rem, 4.8vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #2f3635;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36ch;
    margin: 0 auto 28px;
}

.meta-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 8px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    text-align: left;
}

.meta-card .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.meta-card .value {
    font-weight: 600;
    font-size: 1.05rem;
    color: #2f3635;
}

section {
    padding: 44px 0;
}

.section-title {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 20px;
    color: #2f3635;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 14px 50px rgba(180, 150, 155, 0.12);
}

.program-list {
    margin: 0;
    padding-left: 20px;
}

.program-list li {
    margin-bottom: 10px;
}

.program-list li strong {
    color: #35403e;
}

.grid-two {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pill-note {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: #3d5445;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-intro {
    background: rgba(232, 238, 245, 0.55);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(180, 190, 210, 0.35);
}

.emotional-photo {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(40, 30, 35, 0.22);
    line-height: 0;
}

.emotional-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.caption-strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a524f;
    margin: 14px 0 0;
    text-align: center;
    padding: 0 8px 8px;
    line-height: 1.4;
}

.instructors {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.instructor-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
}

.instructor-card h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #2f3635;
}

.instructor-role {
    font-size: 0.9rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 14px;
}

.instructor-medals {
    margin: 0;
    padding-left: 18px;
    font-size: 0.925rem;
    color: var(--text-muted);
}

.instructor-medals li {
    margin-bottom: 6px;
}

.pricing {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid var(--border);
}

.price-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 28px;
}

.price-card {
    background: linear-gradient(160deg, #fffefb 0%, var(--blush) 100%);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    position: relative;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(200, 155, 158, 0.25);
}

.price-card .badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--accent);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.price-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #2f3635;
}

.price-amount {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.price-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cta-row {
    text-align: center;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1.075rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(166, 122, 126, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(166, 122, 126, 0.5);
}

.btn-register:focus-visible {
    outline: 3px solid #8fb5a8;
    outline-offset: 3px;
}

.site-footer {
    padding: 32px 0 48px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Modal */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(55, 45, 48, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--cream);
    border-radius: 22px;
    width: min(420px, 100%);
    padding: 28px 26px 26px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(70, 50, 55, 0.25);
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal {
    transform: translateY(0);
}

.modal h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #2f3635;
}

.modal p.sub {
    margin: 0 0 22px;
    font-size: 0.925rem;
    color: var(--text-muted);
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #504a4e;
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid #e5d9d8;
    background: #fff;
    font: inherit;
    color: var(--text);
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 155, 158, 0.25);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    flex-wrap: wrap;
}

.modal-actions button {
    font: inherit;
    cursor: pointer;
    border-radius: 12px;
    padding: 11px 20px;
    font-weight: 600;
    border: none;
}

.modal-actions .btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #ddd4d6;
}

.modal-actions .btn-primary {
    background: var(--accent);
    color: #fff;
}

.modal-actions .btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
}

.modal-actions button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-message {
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 1.2em;
}

.form-message.success {
    color: #4a7356;
}

.form-message.error {
    color: #a85c62;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn-register,
    .modal,
    .modal-overlay {
        transition: none;
    }
}
