/* =========================================================
   SkillForge AI — clean premium style
   Полностью очищенный и улучшенный CSS
   ========================================================= */

:root {
    --bg: #07080d;
    --bg-2: #0b0d14;
    --panel: rgba(12, 14, 23, 0.78);
    --panel-strong: rgba(15, 17, 27, 0.92);
    --card: rgba(255, 255, 255, 0.065);
    --card-hover: rgba(255, 255, 255, 0.095);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --muted-2: rgba(255, 255, 255, 0.48);
    --accent: #ff3b24;
    --accent-2: #ff6a2a;
    --accent-3: #ff9448;
    --green: #42ff89;
    --blue: #6680ff;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 34px;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.34);
    --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 80% 14%, rgba(80, 100, 255, 0.12), transparent 28%),
        radial-gradient(circle at 15% 72%, rgba(55, 210, 255, 0.06), transparent 32%),
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, #07080d 0%, #090a12 45%, #07080d 100%);
    background-size:
        auto,
        auto,
        58px 58px,
        58px 58px,
        auto;
    background-attachment: fixed;
}

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

button,
select,
textarea,
input {
    font-family: inherit;
}

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

button {
    cursor: pointer;
}

::selection {
    color: #ffffff;
    background: rgba(255, 92, 45, 0.5);
}

/* scrollbar */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* =========================================================
   Background video
   ========================================================= */

.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100svh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.035);
    opacity: 0.64;
    filter: blur(1px) brightness(0.62) contrast(1.08) saturate(0.86);
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 10, 0.72), rgba(5, 6, 10, 0.48), rgba(5, 6, 10, 0.78)),
        linear-gradient(180deg, rgba(5, 6, 10, 0.12), rgba(5, 6, 10, 0.94));
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: fixed;
    top: 12px;
    left: 24px;
    right: 24px;
    z-index: 1000;

    height: 66px;
    padding: 0 22px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;

    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 12, 18, 0.52);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(130%);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.site-brand-logo {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.06em;

    background: linear-gradient(135deg, #ff9448, #ff5a2b 48%, #ff3322);
    box-shadow:
        0 12px 30px rgba(255, 72, 34, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.site-brand-text {
    color: #ffffff;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.site-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 850;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.site-nav a:hover {
    color: #ffffff;
}

.site-nav a:hover::after {
    width: 100%;
}

/* user block in header */

.nav-user,
.site-auth,
.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.user-pill,
.user-chip {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 5px 13px 5px 5px;
    border-radius: 999px;
    color: #ffffff;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.user-pill:hover,
.user-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.avatar,
.user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;

    background: linear-gradient(135deg, #ff9448, #ff3b24);
    box-shadow: 0 10px 24px rgba(255, 70, 35, 0.25);
}

.user-name,
.user-info strong {
    display: block;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
}

.user-status,
.user-info small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.logout-link,
.auth-link,
.login-link,
.pill-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.logout-link:hover,
.auth-link:hover,
.login-link:hover,
.pill-button:hover {
    transform: translateY(-1px);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-link-register {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 14px 34px rgba(255, 70, 35, 0.28);
}

.auth-link-register:hover {
    background: linear-gradient(135deg, #ff7b35, #ff2f1f);
    box-shadow: 0 18px 44px rgba(255, 70, 35, 0.38);
}

/* legacy header aliases */

.topbar {
    position: fixed;
    top: 12px;
    left: 24px;
    right: 24px;
    z-index: 1000;

    height: 66px;
    padding: 0 22px;

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

    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 12, 18, 0.52);
    backdrop-filter: blur(20px) saturate(130%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 950;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, #ff9448, #ff3b24);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 850;
}

.nav a:hover {
    color: #ffffff;
}

/* =========================================================
   Buttons
   ========================================================= */

.primary-button,
.secondary-button,
.small-button,
.send-button,
.finish-button,
.finish-chat-button,
.close-button,
.analysis-modal-button,
.analysis-modal-close {
    border: 0;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.primary-button,
.send-button {
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow:
        0 18px 42px rgba(255, 60, 36, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-button {
    min-height: 60px;
    padding: 0 26px;
    border-radius: 17px;
    font-size: 15px;
}

.secondary-button,
.small-button,
.finish-button {
    color: #ffffff;
    font-weight: 900;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
        rgba(10, 12, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.secondary-button {
    min-height: 60px;
    padding: 0 26px;
    border-radius: 17px;
    font-size: 15px;
}

.primary-button:hover,
.secondary-button:hover,
.small-button:hover,
.send-button:hover,
.finish-button:hover,
.finish-chat-button:hover {
    transform: translateY(-2px);
}

.primary-button:hover,
.send-button:hover {
    box-shadow:
        0 22px 54px rgba(255, 60, 36, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.secondary-button:hover,
.small-button:hover,
.finish-button:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        rgba(12, 14, 22, 0.86);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    z-index: 1;

    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 620px);
    align-items: center;
    gap: 44px;

    padding: 118px 52px 52px;
    overflow: visible;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 8, 13, 0), var(--bg) 88%);
}

.hero > * {
    position: relative;
    z-index: 1;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin-bottom: 28px;
    padding: 10px 16px;

    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
}

.hero-content h1 {
    margin: 0;
    max-width: 780px;

    font-size: clamp(64px, 6vw, 104px);
    line-height: 0.94;
    letter-spacing: -0.075em;
    font-weight: 950;

    text-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

.hero-content p {
    max-width: 660px;
    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    max-width: 630px;
    margin-top: 26px;
}

.hero-metric {
    padding: 17px 18px;
    border-radius: 20px;

    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.032)),
        rgba(10, 12, 20, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
}

.hero-metric strong {
    display: block;
    margin-bottom: 4px;

    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-metric span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.35;
}

/* =========================================================
   Trainer
   ========================================================= */

.trainer-panel {
    width: 100%;
    align-self: center;
}

.trainer-glass {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    padding: 22px;

    border-radius: 30px;
    overflow: hidden;

    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032)),
        rgba(9, 11, 18, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.48),
        0 0 70px rgba(70, 90, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(120%);
}

.trainer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-label {
    display: block;
    margin: 0 0 7px;

    color: #ff6a4a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trainer-header h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 950;
}

.close-button {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;

    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.settings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-row label {
    min-width: 0;
}

.settings-row label span {
    display: none;
}

select,
textarea {
    width: 100%;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
        rgba(8, 10, 17, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

select {
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 850;
}

select:hover,
textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

select:focus,
textarea:focus {
    border-color: rgba(255, 106, 42, 0.48);
    box-shadow: 0 0 0 4px rgba(255, 106, 42, 0.09);
}

select option {
    color: #ffffff;
    background: #171923;
}

.small-button {
    height: 46px;
    padding: 0 17px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
}

/* status cards */

.simulation-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 15px;
}

.status-chip-card {
    padding: 12px 13px;
    border-radius: 16px;

    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
        rgba(8, 10, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.105);
}

.status-chip-card span {
    display: block;
    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-chip-card strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.25;
}

.status-chip-success {
    border-color: rgba(66, 255, 137, 0.18);
}

/* chat */

.chat-card {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;

    background:
        linear-gradient(180deg, rgba(13, 15, 24, 0.94), rgba(7, 9, 15, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.chat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 17px 18px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.chat-title strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.chat-title span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
    line-height: 1.25;
}

.chat-title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.finish-chat-button {
    min-height: 32px;
    padding: 0 14px;

    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.finish-chat-button:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(255, 70, 35, 0.28);
}

.finish-chat-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 9px;
    border-radius: 999px;

    color: var(--green);
    font-size: 13px;
    font-weight: 950;

    background: rgba(66, 255, 137, 0.08);
    border: 1px solid rgba(66, 255, 137, 0.15);
}

.status-dot i {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(66, 255, 137, 0.75);
}

.messages {
    height: 230px;
    padding: 16px 18px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.message-row {
    display: flex;
    margin-bottom: 12px;
    animation: fadeUp 0.24s ease;
}

.message-row.user {
    justify-content: flex-end;
}

.message {
    max-width: 84%;
    padding: 12px 14px;

    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.message.client {
    color: #ffffff;
    border-bottom-left-radius: 6px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
        rgba(15, 17, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message.user {
    color: #ffffff;
    border-bottom-right-radius: 6px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 28px rgba(255, 60, 36, 0.22);
}

.typing {
    display: none;
    align-items: center;
    gap: 6px;

    padding: 0 18px 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.typing.is-visible {
    display: flex;
}

.typing span {
    width: 6px;
    height: 6px;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    animation: blink 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

.input-area {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 18px 18px;
}

textarea {
    min-height: 50px;
    max-height: 150px;
    padding: 14px 16px;
    resize: none;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-button {
    min-width: 112px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 15px;
    font-size: 14px;
}

/* inline analysis card is not needed on hero because modal is used */
.analysis-card-inline {
    display: none;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
    position: relative;
    z-index: 1;
    padding: 96px 56px;
    background: transparent;
}

.section + .section {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.section-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-title {
    max-width: 900px;
    margin-bottom: 38px;
}

.section-title span {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin-bottom: 14px;
    padding: 8px 11px;

    border-radius: 999px;
    color: #ff6a4a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.section-title h2 {
    margin: 0;
    max-width: 920px;

    font-size: clamp(40px, 3.8vw, 62px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.section-title::after {
    content: "";
    display: block;
    width: 78px;
    height: 3px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 59, 36, 0));
}

/* grids */

.feature-grid,
.profession-grid,
.scenario-grid,
.pricing-grid,
.pricing-grid-five {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profession-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid-five {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
}

/* cards */

.feature-card,
.profession-card,
.scenario-card,
.price-card {
    position: relative;
    overflow: hidden;

    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.032)),
        rgba(10, 12, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.115);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(18px) saturate(120%);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.feature-card:hover,
.profession-card:hover,
.scenario-card:hover,
.price-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.36),
        0 0 34px rgba(90, 120, 255, 0.055);
}

/* feature cards */

.feature-card {
    min-height: 238px;
    padding: 82px 24px 24px;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 24px;
    width: 42px;
    height: 42px;
    border-radius: 15px;

    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow:
        0 14px 34px rgba(255, 92, 38, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.feature-card::after {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 42px;
    height: 42px;

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

    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.feature-card:nth-child(1)::after {
    content: "AI";
}

.feature-card:nth-child(2)::after {
    content: "✓";
    font-size: 19px;
}

.feature-card:nth-child(3)::after {
    content: "↔";
    font-size: 21px;
}

.feature-card:nth-child(4)::after {
    content: "↗";
    font-size: 21px;
}

.feature-card h3,
.scenario-card h3,
.price-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 950;
}

.feature-card p,
.scenario-card p,
.price-card p,
.price-card li {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.52;
}

/* professions */

.profession-card {
    min-height: 128px;
    display: flex;
    align-items: flex-start;

    padding: 62px 24px 24px;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 950;
}

.profession-card::before {
    position: absolute;
    left: 24px;
    top: 22px;

    min-width: 38px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.02em;

    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profession-card:nth-child(1)::before {
    content: "SALE";
}

.profession-card:nth-child(2)::before {
    content: "B2B";
}

.profession-card:nth-child(3)::before {
    content: "SUP";
}

.profession-card:nth-child(4)::before {
    content: "ADM";
}

.profession-card:nth-child(5)::before {
    content: "HR";
}

.profession-card:nth-child(6)::before {
    content: "REC";
}

.profession-card:nth-child(7)::before {
    content: "LEAD";
}

.profession-card:nth-child(8)::before {
    content: "TEAM";
}

.profession-card:nth-child(9)::before {
    content: "REAL";
}

.profession-card:nth-child(10)::before {
    content: "AUTO";
}

.profession-card:nth-child(11)::before {
    content: "MED";
}

.profession-card:nth-child(12)::before {
    content: "EDU";
}

.profession-card::after {
    content: "→";
    position: absolute;
    right: 22px;
    bottom: 20px;

    color: rgba(255, 106, 74, 0.82);
    font-size: 24px;
    font-weight: 950;
}

/* scenarios */

.scenario-card {
    min-height: 250px;
    padding: 26px;
}

.scenario-card p {
    margin: 0 0 18px;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;

    padding: 0 10px;
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 900;

    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.scenario-tags span:first-child {
    color: #ffffff;
    background: rgba(255, 106, 42, 0.16);
    border-color: rgba(255, 106, 42, 0.24);
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-section {
    padding-bottom: 110px;
}

.price-card {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.price-card.accent,
.price-card-popular {
    border-color: rgba(255, 106, 42, 0.36);
    background:
        linear-gradient(145deg, rgba(255, 106, 42, 0.14), rgba(255, 255, 255, 0.038)),
        rgba(12, 14, 23, 0.92);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.38),
        0 0 54px rgba(255, 106, 42, 0.12);
}

.company-card {
    border-color: rgba(66, 255, 137, 0.22);
}

.price-topline {
    margin-bottom: 10px;
    color: #ff9b67;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.price-badge {
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 950;

    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 28px rgba(255, 60, 36, 0.26);
}

.price {
    margin: 16px 0;
    color: #ffffff;
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.045em;
}

.price-card p {
    min-height: 74px;
    margin: 0;
}

.price-card ul {
    flex: 1;
    margin: 20px 0 28px;
    padding-left: 18px;
}

.price-card li {
    margin-bottom: 8px;
}

.price-card a {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding: 0 20px;
    border-radius: 15px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 950;

    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        rgba(10, 12, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.price-card a:hover,
.price-card-popular a,
.price-card.accent a {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(255, 60, 36, 0.24);
}

.price-card a:hover {
    transform: translateY(-2px);
}

/* =========================================================
   Analysis modal
   ========================================================= */

.analysis-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.analysis-modal.is-open {
    display: flex;
}

.analysis-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.analysis-modal-window {
    position: relative;
    width: min(720px, 100%);
    max-height: min(720px, 90vh);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(31, 33, 42, 0.98), rgba(12, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.analysis-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.analysis-modal-header span {
    display: block;
    margin-bottom: 4px;

    color: #ff6a3d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.analysis-modal-header strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.analysis-modal-close {
    width: 38px;
    height: 38px;

    border-radius: 999px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.analysis-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.analysis-modal-body {
    padding: 24px;
    overflow-y: auto;

    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-line;
}

.analysis-modal-footer {
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-modal-button {
    width: 100%;
    min-height: 48px;

    border-radius: 16px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;

    background: linear-gradient(135deg, #ff7a3d, #ff2f1f);
    box-shadow: 0 16px 35px rgba(255, 70, 35, 0.32);
}

.analysis-modal-button:hover {
    filter: brightness(1.06);
}

/* =========================================================
   Additional reusable components
   ========================================================= */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    display: inline-flex;
    align-items: center;

    padding: 10px 14px;
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(96, 165, 250, 0.24);
}

.badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;
    border-radius: 999px;

    color: #86efac;
    font-size: 13px;
    white-space: nowrap;

    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.scenario-card__body {
    padding: 20px;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes blink {
    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
    .pricing-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .site-nav,
    .nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 112px 28px 46px;
    }

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

    .trainer-glass {
        max-width: none;
        margin-left: 0;
    }

    .feature-grid,
    .profession-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .scenario-grid,
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header,
    .topbar {
        top: 8px;
        left: 10px;
        right: 10px;
        height: 62px;
        padding: 0 14px;
        border-radius: 18px;
        gap: 12px;
    }

    .site-brand-logo,
    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: 16px;
    }

    .site-brand-text {
        font-size: 18px;
    }

    .nav-user {
        gap: 7px;
    }

    .user-pill {
        padding: 4px;
        min-height: 40px;
    }

    .user-pill .user-name,
    .user-pill .user-status {
        display: none;
    }

    .avatar,
    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .logout-link {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .hero {
        padding-top: 98px;
    }

    .hero-metrics,
    .simulation-status {
        grid-template-columns: 1fr;
    }

    .settings-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 76px 28px;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 82px;
    }

    .site-header {
        grid-template-columns: auto 1fr;
    }

    .site-brand-text {
        font-size: 17px;
    }

    .hero {
        padding: 98px 18px 34px;
    }

    .hero-content h1 {
        font-size: clamp(48px, 15vw, 74px);
        letter-spacing: -0.065em;
    }

    .hero-content p {
        margin-top: 22px;
        font-size: 17px;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .trainer-glass {
        padding: 18px;
        border-radius: 24px;
    }

    .trainer-header h2 {
        font-size: 25px;
    }

    .chat-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-title-actions {
        width: 100%;
        justify-content: space-between;
    }

    .messages {
        height: 240px;
    }

    .input-area {
        grid-template-columns: 1fr;
    }

    .send-button {
        width: 100%;
        height: 52px;
    }

    .section {
        padding: 68px 18px;
    }

    .section-title h2 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .feature-grid,
    .profession-grid,
    .scenario-grid,
    .pricing-grid,
    .pricing-grid-five,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .profession-card,
    .scenario-card,
    .price-card {
        min-height: auto;
    }

    .price-card p {
        min-height: auto;
    }

    .analysis-modal {
        padding: 14px;
    }

    .analysis-modal-window {
        border-radius: 22px;
    }

    .analysis-modal-header,
    .analysis-modal-body,
    .analysis-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 420px) {
    .site-brand-text {
        display: none;
    }

    .logout-link {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: clamp(44px, 17vw, 66px);
    }
}
/* === Компактный layout тренажёра === */
.trainer-page .chat-window,
.trainer-page #messages,
.dashboard .chat-window,
.dashboard #messages {
    max-height: 55vh !important;
    min-height: 300px;
}

#messages {
    max-height: 55vh;
    overflow-y: auto;
}

/* Кнопки управления — всегда видны */
.trainer-actions,
.chat-actions {
    position: sticky;
    bottom: 0;
    background: var(--bg, #0e1320);
    padding: 12px 0;
    z-index: 10;
}

/* На мобильных — ещё компактнее */
@media (max-width: 768px) {
    #messages {
        max-height: 45vh;
    }
}
/* =============================================
   🆕 ЛОГО В ШАПКЕ (главная страница)
   ============================================= */

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-brand:hover {
    opacity: 0.85;
}

/* =============================================
   🆕 ЛОГО В ШАПКЕ (как в ЛК)
   ============================================= */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-brand:hover {
    opacity: 0.85;
}

.site-brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(255, 72, 34, 0.35));
}

.site-brand-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.site-brand-text-accent {
    background: linear-gradient(135deg, #ff9448, #ff5a2b 48%, #ff3322);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (max-width: 760px) {
    .site-brand-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .site-brand-text {
        font-size: 18px;
    }
/* ============================================
   🆕 ВАЛИДАЦИЯ ВВОДА
   ============================================ */

.input-validation-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 500;
    animation: slideInError 0.25s ease;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#messageInput.has-error,
.message-input.has-error {
    border-color: rgba(255, 80, 80, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.15) !important;
}

/* ============================================
   🆕 КАРТОЧКА БЛОКИРОВКИ ДЕМО
   ============================================ */

.demo-limit-row {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    animation: fadeInUp 0.4s ease;
}

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

.demo-limit-card {
    max-width: 420px;
    width: 100%;
    padding: 28px 26px;
    background: linear-gradient(145deg, rgba(255, 90, 43, 0.08), rgba(255, 50, 34, 0.04));
    border: 1.5px solid rgba(255, 90, 43, 0.25);
    border-radius: 18px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(255, 90, 43, 0.15);
}

.demo-limit-icon {
    font-size: 42px;
    margin-bottom: 12px;
    line-height: 1;
}

.demo-limit-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.demo-limit-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 20px;
}

.demo-limit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #ff9448, #ff5a2b 48%, #ff3322);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(255, 90, 43, 0.35);
}

.demo-limit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 90, 43, 0.5);
}

.demo-limit-button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .demo-limit-card {
        max-width: 100%;
        padding: 22px 18px;
    }
    
    .demo-limit-icon {
        font-size: 36px;
    }
    
    .demo-limit-title {
        font-size: 16px;
    }
    
    .demo-limit-desc {
        font-size: 13px;
    }
}
}