/* ==========================================================
   DESIGN TOKENS
   ========================================================== */

:root {
    --blue: #123c56;
    --blue-dark: #0d3148;

    --red: #cf2b3d;
    --red-dark: #b62232;
    --red-light: #fdecee;

    --text: #123c56;
    --text-secondary: #4c5f6b;
    --text-muted: #7b8b97;

    --background-soft: #f2f7fa;
    --background-card: #fbfcfd;

    --border: #dfe7ec;
    --border-dark: #c9d7e0;

    --white: #ffffff;

    --content-width: 1180px;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    /* Celkové zmenšení UI – vizuálně odpovídá zoomu prohlížeče ~82 %. */
    zoom: 0.82;

    background: var(--white);
    color: var(--text);

    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.hidden {
    display: none !important;
}


/* ==========================================================
   SHARED
   ========================================================== */

.page-section {
    width: 100%;
    max-width: var(--content-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 64px;
    padding-right: 64px;
}

.primary-button {
    border: 0;

    background: var(--red);
    color: var(--white);

    padding: 19px 34px;

    border-radius: 34px;

    font-size: 17px;
    line-height: 1;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(207, 43, 61, 0.24);

    transition:
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.primary-button:hover {
    background: var(--red-dark);

    box-shadow:
        0 10px 24px rgba(207, 43, 61, 0.3);

    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.form-error {
    margin-top: 14px;

    padding: 13px 16px;

    border: 1px solid #efbbc1;
    border-radius: 10px;

    background: #fff3f4;
    color: #9e2634;

    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    width: 100%;

    background: var(--blue);
}

.header-inner {
    max-width: var(--content-width);

    margin: 0 auto;

    min-height: 74px;

    padding: 20px 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}

.brand-symbol {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    border-radius: 9px;

    background: var(--red);
}

.brand-title {
    color: var(--white);

    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;

    white-space: nowrap;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.55);

    font-weight: 400;
}

.site-nav {
    display: flex;
    align-items: center;

    gap: 30px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;
    line-height: 1;
    font-weight: 500;
}

.site-nav a {
    transition: color 150ms ease;
}

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

.language-switch {
    padding: 9px 15px;

    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;

    color: var(--white);

    font-size: 14px;
    font-weight: 600;
}

.mobile-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;

    padding: 8px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 23px;
    height: 2px;

    margin: 5px auto;

    background: var(--white);
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    padding-top: 74px;
}

.hero-content {
    max-width: 920px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 26px;

    padding: 9px 14px;

    border-radius: 20px;

    background: var(--red-light);
    color: var(--red);

    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: 0.1em;
}

.hero h1 {
    max-width: 920px;

    margin: 0 0 22px;

    color: var(--blue);

    font-size: clamp(44px, 5vw, 66px);
    line-height: 1.05;
    font-weight: 700;

    letter-spacing: -0.025em;

    text-wrap: balance;
}

.hero-description {
    max-width: 780px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 21px;
    line-height: 1.55;

    text-wrap: pretty;
}


/* ==========================================================
   FORM
   ========================================================== */

.input-section {
    padding-top: 40px;
}

.recommendation-form {
    padding: 32px 34px 28px;

    border: 1.5px solid var(--border);
    border-radius: 20px;

    background: var(--background-card);
}

.recommendation-form label {
    display: block;

    margin-bottom: 14px;

    color: var(--blue);

    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.recommendation-form textarea {
    display: block;

    width: 100%;
    height: 140px;

    resize: vertical;

    padding: 20px 22px;

    border: 1.5px solid #d3dde4;
    border-radius: 14px;

    outline: 0;

    background: var(--white);
    color: var(--blue);

    font-size: 17.5px;
    line-height: 1.6;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.recommendation-form textarea::placeholder {
    color: #9aa8b2;
}

.recommendation-form textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(18, 60, 86, 0.08);
}

.form-bottom {
    margin-top: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    flex-wrap: wrap;
}

.form-hint {
    margin: 0;

    color: #6b7c88;

    font-size: 14.5px;
    line-height: 1.4;
}

.examples {
    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #e8eef2;
}

.examples-label {
    margin-bottom: 14px;

    color: #8595a1;

    font-size: 12.5px;
    line-height: 1;
    font-weight: 500;

    letter-spacing: 0.05em;
}

.example-buttons {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.example-chip {
    padding: 13px 19px;

    border: 1.5px solid #d3dde4;
    border-radius: 24px;

    background: var(--white);
    color: var(--blue);

    font-size: 15px;
    line-height: 1;
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 150ms ease,
        background 150ms ease;
}

.example-chip:hover {
    border-color: var(--blue);

    background: var(--background-soft);
}


/* ==========================================================
   INITIAL STATE
   ========================================================== */

.initial-state {
    padding-top: 74px;
    padding-bottom: 96px;
}

.how-it-works {
    display: flex;

    gap: 56px;

    align-items: stretch;
}

.how-main {
    flex: 1;

    min-width: 0;
}

.how-main h2 {
    margin: 0 0 28px;

    color: var(--blue);

    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.steps {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}

.step-card {
    padding: 28px 26px 30px;

    border-radius: 16px;

    background: var(--background-soft);
}

.step-number {
    margin-bottom: 14px;

    color: var(--red);

    font-size: 46px;
    line-height: 1;
    font-weight: 700;
}

.step-card h3 {
    margin: 0 0 8px;

    color: var(--blue);

    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.step-card p {
    margin: 0;

    color: #53656f;

    font-size: 15px;
    line-height: 1.6;
}

.personality-note {
    width: 296px;

    flex: 0 0 auto;

    padding: 30px 28px;

    border-radius: 16px;

    background: var(--blue);
}

.personality-note h3 {
    margin: 0 0 12px;

    color: var(--white);

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.personality-note p {
    margin: 0 0 24px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14.5px;
    line-height: 1.65;
}

.personality-note a {
    display: inline-block;

    padding-bottom: 4px;

    border-bottom: 2px solid var(--red);

    color: var(--white);

    font-size: 14.5px;
    line-height: 1.2;
    font-weight: 600;
}


/* ==========================================================
   LOADING
   ========================================================== */

.loading-state {
    padding-top: 92px;
    padding-bottom: 128px;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.loading-bar {
    width: 420px;
    max-width: 100%;
    height: 5px;

    margin-bottom: 38px;

    overflow: hidden;

    border-radius: 3px;

    background: #e4ecf1;
}

.loading-bar-progress {
    width: 24%;
    height: 100%;

    border-radius: 3px;

    background: var(--red);

    animation: loadingSweep 1.5s ease-in-out infinite;
}

@keyframes loadingSweep {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(430%);
    }
}

.loading-state h2 {
    margin: 0 0 34px;

    color: var(--blue);

    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.loading-steps {
    display: flex;
    flex-direction: column;

    gap: 15px;

    align-items: flex-start;
}

.loading-step {
    display: flex;
    align-items: center;

    gap: 13px;

    opacity: 0.32;

    color: var(--blue);

    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;

    transition: opacity 250ms ease;
}

.loading-step.active {
    opacity: 1;
}

.loading-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--red);
}


/* ==========================================================
   CLARIFICATION
   ========================================================== */

.clarification-state {
    padding-top: 76px;
    padding-bottom: 110px;
}

.clarification-inner {
    max-width: 840px;
}

.clarification-inner h2 {
    margin: 0 0 14px;

    color: var(--blue);

    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.clarification-intro {
    margin: 0 0 42px;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.6;
}

.clarification-questions {
    display: flex;
    flex-direction: column;

    gap: 34px;
}

.clarification-question label {
    display: block;

    margin-bottom: 14px;

    color: var(--blue);

    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.clarification-question textarea {
    width: 100%;
    min-height: 84px;

    resize: vertical;

    padding: 15px 17px;

    border: 1.5px solid #d3dde4;
    border-radius: 14px;

    outline: 0;

    background: var(--white);
    color: var(--blue);

    font-size: 15.5px;
    line-height: 1.55;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.clarification-question textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(18, 60, 86, 0.08);
}

.clarification-question textarea::placeholder {
    color: #9aa8b2;
}

.clarification-actions {
    margin-top: 46px;

    display: flex;
    align-items: center;

    gap: 26px;

    flex-wrap: wrap;
}

.text-link-button,
.inline-link-button {
    padding: 0 0 3px;

    border: 0;
    border-bottom: 1.5px solid var(--red);

    background: transparent;
    color: var(--blue);

    font-weight: 500;

    cursor: pointer;
}

.text-link-button {
    font-size: 15.5px;
}

.inline-link-button {
    flex: 0 0 auto;

    font-size: 14.5px;
}


/* ==========================================================
   PROFILE
   ========================================================== */

.profile-section {
    padding-top: 64px;
}

.profile-box {
    padding: 26px 28px;

    display: flex;
    align-items: flex-start;

    gap: 28px;

    flex-wrap: wrap;

    border-radius: 16px;

    background: var(--background-soft);
}

.profile-intro {
    flex: 0 0 auto;
}

.profile-label {
    margin-bottom: 6px;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: 0.05em;
}

.profile-intro p {
    max-width: 230px;

    margin: 0;

    color: var(--text-muted);

    font-size: 13.5px;
    line-height: 1.5;
}

.profile-chips {
    flex: 1;

    min-width: 280px;

    display: flex;

    gap: 8px;

    flex-wrap: wrap;
    align-items: flex-start;
}

.profile-chip {
    padding: 10px 15px;

    border: 1px solid var(--border-dark);
    border-radius: 20px;

    background: var(--white);
    color: var(--blue);

    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}


/* ==========================================================
   RESULTS HEADING
   ========================================================== */

.results-heading {
    padding-top: 58px;
}

.results-heading h2 {
    max-width: 820px;

    margin: 0 0 14px;

    color: var(--blue);

    font-size: 46px;
    line-height: 1.1;
    font-weight: 700;

    letter-spacing: -0.025em;
}

.results-heading p {
    max-width: 680px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.6;
}


/* ==========================================================
   RECOMMENDATION CARDS
   ========================================================== */

.recommendations {
    padding-top: 40px;

    display: flex;
    flex-direction: column;

    gap: 22px;
}

.recommendation-card {
    padding: 38px 42px;

    display: grid;

    grid-template-columns: 120px minmax(0, 1fr);

    gap: 48px;

    border: 1.5px solid var(--border);
    border-radius: 20px;

    background: var(--white);
}

.recommendation-card.soft {
    border-color: #e4ecf1;

    background: #f7fafc;
}

.recommendation-card.featured {
    padding: 44px 46px;

    border: 0;

    background: var(--blue);
}

.recommendation-number {
    width: 120px;

    color: var(--red);

    font-size: 58px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: -0.03em;
}

.featured .recommendation-number {
    font-size: 76px;
}

.recommendation-content {
    min-width: 0;
}

.recommendation-title {
    margin: 0 0 22px;

    color: var(--blue);

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: -0.015em;
}

.featured .recommendation-title {
    margin-bottom: 26px;

    color: var(--white);

    font-size: 36px;

    letter-spacing: -0.02em;
}

.recommendation-columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 44px;
}

.recommendation-label {
    margin-bottom: 10px;

    color: var(--red);

    font-size: 12.5px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.recommendation-label.secondary {
    color: #8595a1;
}

.featured .recommendation-label.secondary {
    color: rgba(255, 255, 255, 0.5);
}

.recommendation-copy {
    margin: 0;

    color: var(--blue);

    font-size: 16.5px;
    line-height: 1.65;

    text-wrap: pretty;
}

.study-copy {
    color: #53656f;

    font-size: 16px;
}

.featured .recommendation-copy {
    color: var(--white);

    font-size: 17px;
}

.featured .study-copy {
    color: rgba(255, 255, 255, 0.8);

    font-size: 16px;
}

.topic-chips {
    margin-top: 24px;

    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}

.topic-chip {
    padding: 10px 14px;

    border-radius: 18px;

    background: var(--background-soft);
    color: var(--blue);

    font-size: 13.5px;
    line-height: 1;
    font-weight: 500;
}

.soft .topic-chip {
    border: 1px solid var(--border);

    background: var(--white);
}

.featured .topic-chip {
    border: 0;

    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.recommendation-footer {
    margin-top: 30px;
    padding-top: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    flex-wrap: wrap;

    border-top: 1px solid #e8eef2;
}

.featured .recommendation-footer {
    margin-top: 34px;
    padding-top: 26px;

    border-color: rgba(255, 255, 255, 0.16);
}

.program-meta {
    display: flex;

    gap: 22px;

    flex-wrap: wrap;

    color: var(--text-muted);

    font-size: 14.5px;
    line-height: 1.3;
    font-weight: 500;
}

.featured .program-meta {
    color: rgba(255, 255, 255, 0.72);
}

.program-detail-button {
    padding: 15px 26px;

    border: 1.5px solid var(--red);
    border-radius: 30px;

    color: var(--red);

    font-size: 15.5px;
    line-height: 1;
    font-weight: 600;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.program-detail-button:hover {
    background: var(--red);

    color: var(--white);
}

.featured .program-detail-button {
    padding: 17px 30px;

    border: 0;

    background: var(--red);
    color: var(--white);

    font-size: 16px;
}

.featured .program-detail-button:hover {
    background: var(--red-dark);
}


/* ==========================================================
   RETRY
   ========================================================== */

.retry-section {
    padding-top: 76px;
    padding-bottom: 96px;
}

.retry-box {
    padding: 52px 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    flex-wrap: wrap;

    border-radius: 20px;

    background: var(--background-soft);
}

.retry-box h2 {
    margin: 0 0 12px;

    color: var(--blue);

    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.retry-box p {
    max-width: 560px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.6;
}

.retry-actions {
    display: flex;
    align-items: center;

    gap: 26px;

    flex-wrap: wrap;
}

.secondary-text-link {
    padding-bottom: 3px;

    border-bottom: 1.5px solid var(--red);

    color: var(--blue);

    font-size: 15.5px;
    font-weight: 500;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    background: var(--blue);
}

.footer-inner {
    max-width: var(--content-width);

    margin: 0 auto;

    padding: 40px 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    flex-wrap: wrap;
}

.footer-inner p {
    max-width: 620px;

    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 14.5px;
    line-height: 1.6;
}

.footer-links {
    display: flex;

    gap: 26px;

    flex-wrap: wrap;

    color: rgba(255, 255, 255, 0.8);

    font-size: 14.5px;
    line-height: 1;
    font-weight: 500;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1050px) {

    .site-nav {
        gap: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .how-it-works {
        flex-direction: column;
    }

    .personality-note {
        width: 100%;
    }

    .recommendation-columns {
        grid-template-columns: 1fr;
        gap: 26px;
    }

}


@media (max-width: 820px) {

    .page-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-inner {
        position: relative;

        padding: 16px 24px;
    }

    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        z-index: 100;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        padding: 24px;

        background: var(--blue-dark);

        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.12);
    }

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

    .hero {
        padding-top: 48px;
    }

    .hero-description {
        font-size: 18px;
    }

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

    .profile-box {
        flex-direction: column;
    }

    .profile-chips {
        min-width: 0;
    }

    .recommendation-card,
    .recommendation-card.featured {
        padding: 30px 28px;

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .recommendation-number,
    .featured .recommendation-number {
        width: auto;

        font-size: 48px;
    }

    .recommendation-title,
    .featured .recommendation-title {
        font-size: 30px;
    }

}


@media (max-width: 560px) {

    .page-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .header-inner {
        min-height: 62px;

        padding: 14px 20px;
    }

    .brand-symbol {
        width: 26px;
        height: 26px;

        border-radius: 7px;
    }

    .brand-title {
        font-size: 14px;
    }

    .hero {
        padding-top: 34px;
    }

    .eyebrow {
        margin-bottom: 18px;

        padding: 8px 12px;

        font-size: 10.5px;
    }

    .hero h1 {
        margin-bottom: 14px;

        font-size: 36px;
        line-height: 1.12;
    }

    .hero-description {
        font-size: 15.5px;
        line-height: 1.6;
    }

    .input-section {
        padding-top: 26px;
    }

    .recommendation-form {
        padding: 22px 18px;
    }

    .recommendation-form textarea {
        min-height: 132px;
        height: 132px;

        padding: 16px;

        font-size: 15px;
    }

    .form-bottom {
        align-items: stretch;
    }

    .primary-button {
        width: 100%;

        padding: 18px 20px;

        text-align: center;
    }

    .examples {
        margin-top: 24px;
    }

    .example-chip {
        padding: 11px 15px;

        font-size: 13.5px;
    }

    .initial-state {
        padding-top: 52px;
        padding-bottom: 64px;
    }

    .how-main h2 {
        font-size: 30px;
    }

    .step-card {
        padding: 24px 22px;
    }

    .loading-state {
        padding-top: 64px;
        padding-bottom: 86px;
    }

    .loading-state h2 {
        font-size: 27px;
    }

    .loading-step {
        font-size: 15px;
    }

    .clarification-state {
        padding-top: 54px;
        padding-bottom: 76px;
    }

    .clarification-inner h2 {
        font-size: 31px;
    }

    .clarification-intro {
        margin-bottom: 32px;

        font-size: 16px;
    }

    .clarification-question label {
        font-size: 18px;
    }

    .profile-section {
        padding-top: 44px;
    }

    .profile-box {
        padding: 22px 20px;
    }

    .profile-chip {
        padding: 9px 12px;

        font-size: 12.5px;
    }

    .results-heading {
        padding-top: 42px;
    }

    .results-heading h2 {
        font-size: 34px;
    }

    .results-heading p {
        font-size: 16px;
    }

    .recommendations {
        padding-top: 30px;

        gap: 18px;
    }

    .recommendation-card,
    .recommendation-card.featured {
        padding: 26px 22px;

        border-radius: 16px;
    }

    .recommendation-number,
    .featured .recommendation-number {
        font-size: 46px;
    }

    .recommendation-title,
    .featured .recommendation-title {
        margin-bottom: 22px;

        font-size: 26px;
    }

    .recommendation-copy,
    .featured .recommendation-copy {
        font-size: 15.5px;
    }

    .study-copy,
    .featured .study-copy {
        font-size: 15px;
    }

    .program-meta {
        gap: 14px;

        font-size: 13px;
    }

    .program-detail-button,
    .featured .program-detail-button {
        width: 100%;

        text-align: center;
    }

    .retry-section {
        padding-top: 54px;
        padding-bottom: 64px;
    }

    .retry-box {
        padding: 32px 24px;
    }

    .retry-box h2 {
        font-size: 28px;
    }

    .retry-actions {
        width: 100%;
    }

    .footer-inner {
        padding: 32px 22px;
    }

    .footer-links {
        gap: 16px;
    }

}