:root {
    --ink: #17211f;
    --ink-soft: #465653;
    --paper: #f7f9fb;
    --paper-strong: #ffffff;
    --mist: #e8eef1;
    --chalk: #12372f;
    --chalk-2: #1f5f50;
    --teal: #0f9f8f;
    --sky: #2f80ed;
    --amber: #f3a51d;
    --orange: #e56b2f;
    --rose: #d94c73;
    --line: rgba(23, 33, 31, 0.12);
    --shadow: 0 24px 80px rgba(19, 38, 35, 0.14);
    --radius: 22px;
    --header-height: 76px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

::selection { background: rgba(243, 165, 29, 0.35); }

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

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

.skip-link {
    position: fixed;
    left: 18px; top: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ====== HEADER ====== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(247, 249, 251, 0.82);
    border-bottom: 1px solid rgba(23, 33, 31, 0.08);
    backdrop-filter: blur(18px);
}

.navbar {
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    position: relative;
    z-index: 1002;
    font-weight: 900;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--chalk);
}
.logo span { color: var(--orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--ink);
    background: rgba(18, 55, 47, 0.08);
    outline: none;
}

.nav-links .nav-cta {
    margin-left: 6px;
    color: white;
    background: var(--chalk);
}
.nav-links .nav-cta:hover {
    color: white;
    background: var(--chalk-2);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 1002;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}
.menu-toggle span:not(.visually-hidden) {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px; height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span:not(.visually-hidden):nth-of-type(2) {
    transform: translate(-50%, -7px);
}
.menu-toggle span:not(.visually-hidden):nth-of-type(3) {
    transform: translate(-50%, -50%);
}
.menu-toggle span:not(.visually-hidden):nth-of-type(4) {
    transform: translate(-50%, 5px);
}
.menu-toggle[aria-expanded="true"] span:not(.visually-hidden):nth-of-type(2) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:not(.visually-hidden):nth-of-type(3) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:not(.visually-hidden):nth-of-type(4) {
    transform: translate(-50%, -50%) rotate(-45deg);
}
/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 82svh;
    display: grid;
    align-items: end;
    padding: calc(var(--header-height) + 48px) 0 36px;
    isolation: isolate;
    color: white;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(10, 24, 21, 0.94) 0%, rgba(14, 35, 31, 0.82) 42%, rgba(14, 35, 31, 0.24) 100%),
        url("IMG_0806.jpg") center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 42%;
    background: linear-gradient(0deg, rgba(9, 24, 21, 0.78), transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 24%, rgba(243, 165, 29, 0.22), transparent 24%),
        radial-gradient(circle at 70% 18%, rgba(47, 128, 237, 0.18), transparent 28%);
}

.hero-content {
    width: min(760px, calc(100% - 40px));
    margin-left: max(20px, calc((100vw - 1160px) / 2));
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.hero .eyebrow { color: #ffd274; }

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.9rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero-title-line { display: block; }

.accent {
    color: var(--amber);
    font-style: italic;
}

.hero-lead {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn-primary {
    color: #1f1606;
    background: linear-gradient(135deg, #ffd56f, var(--amber));
    box-shadow: 0 16px 34px rgba(243, 165, 29, 0.28);
}
.btn-primary:hover { box-shadow: 0 20px 42px rgba(243, 165, 29, 0.36); }

.btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.16);
}

.btn-outline {
    color: var(--chalk);
    border-color: rgba(18, 55, 47, 0.22);
    background: white;
}
.btn-outline:hover {
    border-color: rgba(18, 55, 47, 0.42);
    box-shadow: 0 14px 34px rgba(18, 55, 47, 0.12);
}

.full-width { width: 100%; }

/* ====== HERO STATS ====== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 660px;
    margin: 34px 0 0;
}
.hero-stats div {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}
.hero-stats dt {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 950;
    line-height: 1;
}
.hero-stats dd {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

/* ====== TRUST STRIP ====== */
.trust-strip {
    background: var(--paper-strong);
    border-bottom: 1px solid var(--line);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}
.trust-grid p {
    margin: 0;
    padding: 22px 12px;
    color: var(--chalk);
    font-weight: 850;
    text-align: center;
    background: var(--paper-strong);
}

/* ====== SECTIONS ====== */
.section { padding: 96px 0; }
.section-light { background: var(--paper); }
.section-split { background: linear-gradient(180deg, #ffffff 0%, #eef5f3 100%); }

.section-heading {
    max-width: 760px;
    text-align: center;
    margin: 0 auto 50px;
}
.section-heading.align-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.section-heading p:not(.eyebrow),
.lead-text {
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.section-heading p strong { color: var(--chalk); }

/* ====== FEATURE CARDS ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    min-height: 260px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: 0 18px 60px rgba(20, 36, 33, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 80px rgba(20, 36, 33, 0.12);
}

.card-kicker {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--chalk);
    background: rgba(15, 159, 143, 0.13);
    font-weight: 950;
    font-size: 1.4rem;
}

.feature-card h3 {
    margin: 22px 0 10px;
    font-size: 1.35rem;
    line-height: 1.15;
}
.feature-card p { color: var(--ink-soft); }
.feature-card em {
    color: var(--chalk);
    font-style: normal;
    font-weight: 700;
}

/* ====== ABOUT ====== */
.about-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.about-header h1 {
    margin: 0 0 6px;  /* уменьшили отступ снизу */
}

.portrait-wrap { position: relative; }

.portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow);
}

.portrait-badge {
    position: absolute;
    left: 22px; right: 22px; bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    color: white;
    background: rgba(18, 55, 47, 0.88);
    backdrop-filter: blur(14px);
}
.portrait-badge strong, .portrait-badge span { display: block; }
.portrait-badge strong { font-size: 1.05rem; }
.portrait-badge span { color: rgba(255, 255, 255, 0.74); font-size: 0.9rem; }

.about-copy {
    display: grid;
    gap: 20px;
}

.about-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.05;
}

.philosophy-banner {
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(243, 165, 29, 0.12), rgba(15, 159, 143, 0.08));
    border-left: 5px solid var(--amber);
    border-radius: 16px;
}
.philosophy-banner p {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.6;
}
.philosophy-banner strong {
    color: var(--chalk);
}

/* ====== APPROACH COMPARISON ====== */
.approach-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.approach-card {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.approach-card h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.approach-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}
.approach-card.wrong {
    background: rgba(217, 76, 115, 0.06);
    border-color: rgba(217, 76, 115, 0.22);
}
.approach-card.right {
    background: rgba(15, 159, 143, 0.08);
    border-color: rgba(15, 159, 143, 0.28);
}
.approach-card.right strong { color: var(--chalk); }
.approach-card.right em {
    color: var(--chalk);
    font-style: normal;
    font-weight: 700;
}

/* ====== ACHIEVEMENTS ====== */
.achievements {
    display: grid;
    gap: 12px;
}
.achievement {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-strong);
}
.achievement-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.achievement strong {
    display: block;
    color: var(--chalk);
    font-size: 1rem;
    margin-bottom: 4px;
}
.achievement p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.55;
}
.achievement p strong {
    color: var(--orange);
    font-weight: 800;
}

/* ====== QUOTE ====== */
.quote-block {
    padding: 22px 26px;
    border-left: 5px solid var(--amber);
    border-radius: 18px;
    background: rgba(243, 165, 29, 0.1);
}
.quote-block p {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.6;
}

/* ====== TAGS ====== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.tag-list li {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(18, 55, 47, 0.08);
    color: var(--chalk);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ====== AUDIENCE ====== */
.audience-disclaimer {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 20px 28px;
    background: rgba(243, 165, 29, 0.1);
    border-left: 4px solid var(--amber);
    border-radius: 12px;
    text-align: center;
}
.audience-disclaimer p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
}
.audience-disclaimer strong { color: var(--ink); }
.audience-disclaimer em {
    color: var(--chalk);
    font-style: normal;
    font-weight: 700;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 12px 24px;
    background: var(--paper-strong);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn:hover {
    color: var(--ink);
    border-color: var(--chalk);
}
.tab-btn.active {
    background: var(--chalk);
    color: white;
    border-color: var(--chalk);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== PROGRAMS ====== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.program-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: 0 18px 60px rgba(20, 36, 33, 0.07);
    display: flex;
    flex-direction: column;
}
.program-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
}
.program-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.program-top span {
    font-weight: 950;
    color: var(--chalk);
    font-size: 1.1rem;
}
.program-top small {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--chalk);
    background: rgba(18, 55, 47, 0.08);
    font-weight: 850;
    font-size: 0.8rem;
}

.accent-python::before { background: linear-gradient(90deg, var(--sky), var(--teal)); }
.accent-physics::before { background: linear-gradient(90deg, var(--amber), var(--orange)); }
.accent-future::before { background: linear-gradient(90deg, var(--rose), var(--sky)); }

.program-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.15;
}
.program-card p {
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.program-card ul {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: grid;
    gap: 10px;
}
.program-card li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.program-card li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

/* ====== RESULTS ====== */
.results-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: start;
}
.result-list {
    display: grid;
    gap: 16px;
}
.result-list article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: 0 18px 60px rgba(20, 36, 33, 0.07);
}
.result-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--chalk);
    font-size: 1.1rem;
}
.result-list p {
    margin: 0;
    color: var(--ink-soft);
}
.result-list p strong { color: var(--orange); }

/* ====== TIMELINE ====== */
.timeline-section { background: #ffffff; }
.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.timeline article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
}
.timeline span {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1f1606;
    background: var(--amber);
    font-weight: 950;
    margin-bottom: 14px;
}
.timeline h3 {
    margin: 14px 0 10px;
    font-size: 1.2rem;
}
.timeline p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* ====== FORMATS ====== */
.format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* ВАЖНО: сначала базовый класс с position: relative */
.format-card {
    position: relative;  /* Обязательно для absolute positioning дочерних элементов! */
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: 0 18px 60px rgba(20, 36, 33, 0.07);
    display: flex;
    flex-direction: column;
}

/* Потом специфичные стили */
.format-card.featured {
    border-color: rgba(243, 165, 29, 0.55);
    background: linear-gradient(180deg, rgba(255, 247, 226, 0.88), #ffffff);
}

/* Плашка — абсолютно позиционирована в правом верхнем углу */
.popular-label {
    position: absolute;
    top: 24px;
    right: 24px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    color: #6a3d00;
    background: rgba(243, 165, 29, 0.18);
    font-weight: 900;
    font-size: 0.82rem;
    display: inline-flex;
    z-index: 1; /* Чтобы была поверх других элементов */
}

/* Остальные стили карточки */
.format-card h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.format-card p { 
    color: var(--ink-soft); 
    margin-bottom: 18px; 
}

.format-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: grid;
    gap: 10px;
}

.format-card li {
    position: relative;
    padding-left: 26px;
    color: var(--ink-soft);
}

.format-card li::before {
    content: "";
    position: absolute;
    left: 0; 
    top: 0.72em;
    width: 10px; 
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
}

.format-card .btn { 
    margin-top: 28px; 
}

/* ====== PROOF ====== */
.proof-section {
    padding: 70px 0;
    color: white;
    background: var(--chalk);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.proof-grid article {
    padding: 28px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}
.proof-number {
    margin: 0 0 10px;
    color: #ffd274;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 1;
}
.proof-grid p:not(.proof-number) {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

/* ====== REVIEWS ====== */
.review-card {
    justify-content: space-between;
}
.review-quote {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
}
.review-quote p {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.65;
    font-style: italic;
    margin: 0;
}
.review-quote p::before { content: '«'; color: var(--amber); font-weight: 900; }
.review-quote p::after { content: '»'; color: var(--amber); font-weight: 900; }

.review-author {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.review-author strong {
    display: block;
    color: var(--chalk);
    font-size: 0.98rem;
}
.review-author span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

/* ====== FAQ ====== */
.faq-list {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}
.faq-list details {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: 0 18px 60px rgba(20, 36, 33, 0.07);
}
.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    color: var(--ink);
    font-weight: 850;
    list-style: none;
    cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--chalk);
    background: rgba(18, 55, 47, 0.08);
    font-size: 1.3rem;
    transition: transform 0.2s;
}
.faq-list details[open] summary::after {
    content: "−";
    background: var(--amber);
    color: white;
}
.faq-list p {
    margin: 0;
    padding: 0 24px 24px;
    color: var(--ink-soft);
    line-height: 1.65;
}
.faq-list p strong { color: var(--chalk); }

/* ====== CONTACT ====== */
.contact-section {
    background:
        linear-gradient(135deg, rgba(18, 55, 47, 0.96), rgba(16, 70, 69, 0.92)),
        radial-gradient(circle at 18% 20%, rgba(243, 165, 29, 0.28), transparent 28%);
    color: white;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 44px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}
.contact-copy .eyebrow { color: #ffd274; }
.contact-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
}
.contact-copy p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
}

.contact-methods {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}
.contact-methods a, .contact-methods span {
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 0.95rem;
}
.contact-methods a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.lead-form {
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.form-row label {
    color: var(--ink);
    font-weight: 850;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    border: 1px solid rgba(18, 55, 47, 0.18);
    border-radius: 14px;
    color: var(--ink);
    background: white;
    padding: 14px 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 159, 143, 0.16);
}

.form-note {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    text-align: center;
}

.lead-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.lead-result strong {
    display: block;
    color: var(--chalk);
    margin-bottom: 10px;
}
.lead-result textarea {
    min-height: 156px;
    background: #f2f7f6;
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.copy-status {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--chalk);
    font-weight: 750;
    font-size: 0.9rem;
    text-align: center;
}

.hidden { display: none !important; }

/* ====== FOOTER ====== */
.site-footer {
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #0d1916;
}
.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-layout p { margin: 0; }
.footer-layout a {
    color: white;
    text-decoration: none;
    font-weight: 850;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
    .menu-toggle { display: inline-block; }
    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px; left: 16px;
        z-index: 1001;
        display: grid;
        align-content: start;
        justify-items: stretch;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(247, 249, 251, 0.98);
        box-shadow: 0 24px 80px rgba(19, 38, 35, 0.22);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        width: 100%;
        min-height: 56px;
        justify-content: center;
        border-radius: 16px;
        font-size: 1.08rem;
        background: white;
        border: 1px solid var(--line);
    }
    .nav-links .nav-cta {
        margin-left: 0;
        background: var(--chalk);
    }

    .about-layout, .results-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-copy { position: static; }
    .cards-grid, .program-grid, .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    :root { --header-height: 70px; }
    .container { width: min(100% - 28px, 1160px); }
    .hero {
        min-height: 86svh;
        padding: calc(var(--header-height) + 46px) 0 42px;
        background:
            linear-gradient(180deg, rgba(10, 24, 21, 0.9) 0%, rgba(12, 29, 26, 0.74) 52%, rgba(12, 29, 26, 0.86) 100%),
            url("IMG_0806.jpg") 58% center / cover no-repeat;
    }
    .hero-content { width: min(100% - 28px, 760px); margin: 0 auto; }
    .hero h1 { font-size: clamp(2.05rem, 8.8vw, 2.8rem); }
    .hero-actions, .hero-actions .btn, .result-actions { width: 100%; }
    .hero-actions { flex-direction: column; display: grid; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
    }
    .hero-stats dd { margin-top: 0; text-align: right; }
    .section { padding: 72px 0; }
    .section-heading { text-align: left; margin-left: 0; }
    .cards-grid, .program-grid, .timeline,
    .format-grid, .proof-grid, .trust-grid {
        grid-template-columns: 1fr;
    }
    .feature-card, .program-card { min-height: auto; }
    .portrait { aspect-ratio: 1 / 1.08; }
    .lead-form { padding: 20px; border-radius: 20px; }
    .footer-layout {
        align-items: flex-start;
        flex-direction: column;
    }
    .approach-comparison { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
