:root {
    --primary: #1e40af;
    --primary-rgb: 30, 64, 175;
    --accent: #f97316;
    --ink: #0f172a;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(15, 23, 42, .06);
    --shadow-hover: 0 18px 40px rgba(15, 23, 42, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }

.container { width: min(1200px, 100% - 40px); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 10px;
    font: 600 15px/1.2 inherit;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .28); }
.btn-secondary { background: transparent; color: var(--primary); border-color: rgba(var(--primary-rgb), .3); }
.btn-secondary:hover { border-color: var(--primary); background: rgba(var(--primary-rgb), .05); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); padding: 9px 16px; font-size: 14px; }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-large { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    transition: box-shadow .25s, transform .3s;
}
.header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15, 23, 42, .05); }
.header.hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-brand img { border-radius: 8px; }
.nav-brand--light { color: var(--white); }

.nav-menu { display: flex; list-style: none; gap: 26px; margin: 0 auto; }
.nav-link { position: relative; white-space: nowrap; color: #475569; font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary); transition: width .25s; }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }
.nav-menu-login { display: none; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-login:hover { color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 9px; border: 0; border-radius: 10px; background: var(--soft); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: 64px 0 88px; background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); }
.hero-container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-container--solo { grid-template-columns: minmax(0, 820px); justify-content: center; text-align: center; }
.hero-container--solo .hero-actions, .hero-container--solo .hero-stats { justify-content: center; }
.hero-content { animation: fadeInUp .7s ease both; }

.hero-title { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero-accent { display: block; color: var(--accent); }
.hero-description { max-width: 560px; margin-bottom: 34px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.hero-container--solo .hero-description { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.stat { min-width: 130px; padding: 16px 20px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); text-align: left; }
.stat-number { display: block; font-size: 28px; font-weight: 600; color: var(--primary); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.hero-image { animation: fadeInRight .7s ease both; }
.hero-img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; }

.section { padding: 96px 0; }
.section--soft { background: var(--soft); }

.section-header { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-header--left { margin: 0 0 32px; text-align: left; }
.section-kicker { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-title { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section-description { margin-top: 14px; font-size: 18px; color: var(--muted); }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.course-card--plain { border-top: 4px solid var(--primary); }
.course-image { position: relative; overflow: hidden; }
.course-image img { width: 100%; height: 190px; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-image img { transform: scale(1.05); }
.course-level { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; }
.course-level--inline { position: static; align-self: flex-start; margin-bottom: 12px; background: none; border: 1px solid #c2410c; color: #c2410c; }
.course-content { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.course-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.course-description { margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.course-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.feature { padding: 4px 10px; border-radius: 999px; background: rgba(var(--primary-rgb), .08); font-size: 12px; font-weight: 600; }
.course-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.course-meta { display: flex; flex-direction: column; }
.course-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.course-duration { font-size: 13px; color: var(--muted); }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-content--solo { grid-template-columns: minmax(0, 860px); justify-content: center; }
.features-list { display: grid; gap: 14px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.feature-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--primary-rgb), .1); color: var(--primary); font-weight: 800; font-size: 15px; }
.feature-content h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.feature-content p { color: var(--muted); font-size: 15px; }
.about-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-hover); }

.results { overflow: hidden; }
/* The marquee clips (overflow: hidden), so the track's padding is room for the card
   shadows; the negative margin keeps the section spacing as it was. */
.results-marquee { --gap: 22px; overflow: hidden; margin: -24px 0 -40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.results-track { display: flex; gap: var(--gap); width: max-content; user-select: none; padding: 28px 0 48px; }
.results-marquee.is-running .results-track { animation: results-loop var(--duration, 40s) linear infinite; }
.results-marquee.is-running:hover .results-track, .results-marquee.is-running:focus-within .results-track { animation-play-state: paused; }
@keyframes results-loop { to { transform: translateX(calc(-1 * var(--shift, 50%))); } }
/* One soft, wide, low-alpha shadow (no outline ring), so cards float on the soft background. */
.result-card { flex: none; width: 260px; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 10px 30px rgba(var(--primary-rgb), .07); padding: 20px 20px 16px; transition: transform .25s, box-shadow .25s; }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(var(--primary-rgb), .12); }
.result-sheet { display: block; aspect-ratio: 210 / 297; overflow: hidden; padding: 5px; border-radius: 12px; }
.result-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s; }
/* Result scans: no open, drag, select or long-press save (the image itself takes no pointer events). */
.result-sheet--protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.result-sheet--protected img { pointer-events: none; -webkit-user-drag: none; }
.result-sheet--blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(160deg, rgba(var(--primary-rgb), .9), rgba(var(--primary-rgb), .55)); color: var(--white); }
.result-sheet--blank span { font-size: 13px; font-weight: 700; letter-spacing: .2em; opacity: .85; }
.result-sheet--blank strong { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.result-sheet--blank small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.result-info { padding: 12px 12px 14px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-who { min-width: 0; }
.result-who h3 { color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-overall-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.result-overall { flex: none; display: grid; place-items: center; min-width: 64px; height: 52px; padding: 0 12px; border-radius: 12px; background: var(--primary); color: var(--white); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.result-bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.result-bands span { padding: 5px 0; border-radius: 6px; background: rgba(var(--primary-rgb), .06); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
.result-bands small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.testimonial-card::before { content: "\201C"; position: absolute; top: 4px; right: 22px; font-size: 72px; line-height: 1; color: rgba(var(--primary-rgb), .1); font-family: Georgia, serif; }
.testimonial-text { color: #334155; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-avatar--letter { display: grid; place-items: center; background: rgba(var(--primary-rgb), .1); color: var(--primary); font-weight: 700; font-size: 18px; }
.author-info { display: flex; flex-direction: column; }
.author-name { color: var(--ink); }
.author-title { font-size: 14px; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq-layout .section-header { position: sticky; top: 104px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq-item[open] { box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .35), var(--shadow); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-weight: 600; font-size: 17px; color: var(--ink); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--primary); font-size: 20px; font-weight: 500; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); }

.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 32px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list small { font-size: 13px; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--primary); }
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.branch { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s; }
.branch:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .25), var(--shadow-hover); }
.branch h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.branch-address { color: var(--text); }
.branch-muted { margin-top: 2px; color: var(--muted); font-size: 14px; }
.branch-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 18px; }
.branch-links a { font-weight: 600; text-decoration: none; }

.contact-form { padding: 32px; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-hover); }
.contact-form h3 { margin-bottom: 22px; font-size: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #374151; }
.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.phone-field { display: flex; }
.phone-field span { display: grid; place-items: center; padding: 0 14px; border: 2px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--soft); font-weight: 600; color: var(--ink); }
.phone-field input { border-radius: 0 10px 10px 0; }
.form-message { min-height: 22px; margin-bottom: 10px; font-size: 14px; }
.form-message.is-error { color: #dc2626; }
.form-message.is-ok { color: #16a34a; }
.form-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.form-note a { color: inherit; }

.verify-page { padding: 72px 0 112px; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%); min-height: 60vh; }
.verify-container { max-width: 720px; }
.verify-intro { text-align: center; margin-bottom: 32px; }
.verify-intro .section-title { font-size: clamp(32px, 4.6vw, 48px); }
.verify-form { display: flex; gap: 10px; padding: 8px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-hover); }
.verify-form input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 0; border-radius: 10px; font: 600 17px/1 inherit; font-family: inherit; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.verify-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #94a3b8; }
.verify-form input:focus { outline: none; background: var(--soft); }
.verify-result { margin-top: 28px; padding: 28px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.verify-result--ok { box-shadow: 0 0 0 2px rgba(22, 163, 74, .35), var(--shadow); }
.verify-result--bad { box-shadow: 0 0 0 2px rgba(220, 38, 38, .3), var(--shadow); }
.verify-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.verify-result--ok .verify-status { color: #178d17; }
.verify-result--bad .verify-status { color: #e50d0d; }
.verify-result h2 { font-size: 28px; font-weight: 800; }
.verify-course { margin-top: 4px; color: var(--muted); font-size: 17px; }
.verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.verify-grid dt { font-size: 13px; color: var(--muted); }
.verify-grid dd { font-weight: 600; color: var(--ink); word-break: break-word; }
.verify-result--bad p { color: var(--muted); }

.footer { padding: 64px 0 28px; background: #0b1220; color: #94a3b8; }
.footer-content { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 16px; max-width: 360px; font-size: 15px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social-link { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #cbd5e1; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-section h4 { margin-bottom: 14px; color: var(--white); font-size: 15px; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    .nav { gap: 20px; }
    .nav-menu { gap: 16px; }
    .nav-link { font-size: 14px; }
}

@media (max-width: 1080px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px 20px 20px;
        background: var(--white);
        box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-menu.active { opacity: 1; visibility: visible; transform: none; }
    .nav-menu li { border-bottom: 1px solid var(--line); }
    .nav-menu .nav-link { display: block; padding: 14px 0; font-size: 17px; color: var(--ink); }
    .nav-menu .nav-link::after { display: none; }
    .nav-menu-login { display: block; }
    .nav-login { display: none; }
    .nav-actions { margin-left: auto; }
    .nav-toggle { display: flex; }
    .hero { padding: 40px 0 64px; }
    .hero-container, .about-content, .contact-content, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .faq-layout .section-header { position: static; margin-bottom: 0; }
    .section { padding: 72px 0; }
    .about-img { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .nav-actions .btn { display: none; }
    .hero-title { font-size: 36px; }
    .hero-description { font-size: 17px; }
    .hero-actions .btn { width: 100%; }
    .stat { flex: 1 1 calc(50% - 7px); min-width: 0; }
    .section-header { margin-bottom: 36px; }
    .section-description { font-size: 16px; }
    .result-card { width: 180px; padding: 10px 10px 8px; border-radius: 16px; }
    .result-overall { min-width: 52px; height: 42px; font-size: 24px; }
    .result-info { padding-left: 4px; padding-right: 4px; --gap: 14px }
    .contact-list { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
    .verify-form { flex-direction: column; }
    .verify-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .results-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
