:root {
    color-scheme: dark;
    --bg: #0b0c10;
    --surface: #14161d;
    --surface-light: #1c1f28;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f3ee;
    --muted: #9b9eab;
    --accent: #dfff57;
    --violet: #8d74ff;
    --danger: #ff8e8e;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 85% 0%, rgba(102, 69, 190, 0.16), transparent 34rem),
        radial-gradient(circle at 0% 40%, rgba(65, 103, 126, 0.09), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
select,
input {
    font: inherit;
}

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

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

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(223, 255, 87, 0.55);
    outline-offset: 4px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: #12150a;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    transform: rotate(-5deg);
}

.header-note {
    color: var(--muted);
    font-size: 13px;
}

.home-main,
.booking-main,
.confirmation-main,
.error-main {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    position: relative;
    display: flex;
    min-height: 440px;
    align-items: center;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 790px;
    padding: 70px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.hero h1 span {
    color: var(--muted);
}

.hero-copy > p:last-child {
    max-width: 540px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-orbit {
    position: absolute;
    right: -110px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(223, 255, 87, 0.13);
    border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(141, 116, 255, 0.16);
    border-radius: 50%;
    inset: 52px;
}

.hero-orbit::after {
    background: radial-gradient(circle at 35% 35%, rgba(223, 255, 87, 0.25), rgba(141, 116, 255, 0.05) 45%, transparent 70%);
    inset: 112px;
}

.hero-orbit span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 30px rgba(223, 255, 87, 0.8);
}

.hero-orbit span:nth-child(1) {
    top: 44px;
    left: 72px;
}

.hero-orbit span:nth-child(2) {
    right: 25px;
    bottom: 118px;
}

.hero-orbit span:nth-child(3) {
    bottom: 40px;
    left: 95px;
    background: var(--violet);
}

.catalog {
    padding: 24px 0 90px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.catalog-count,
.demo-badge {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.demo-badge {
    border-color: rgba(223, 255, 87, 0.25);
    background: rgba(223, 255, 87, 0.06);
    color: var(--accent);
}

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

.film-card {
    min-width: 0;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    transition: transform 400ms ease, filter 400ms ease;
}

.film-rating,
.film-age {
    position: absolute;
    top: 16px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(11, 12, 16, 0.78);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
}

.film-rating {
    left: 16px;
    color: var(--accent);
}

.film-age {
    right: 16px;
}

.poster-action {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-radius: 14px;
    background: var(--accent);
    color: #111408;
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.film-card:hover .poster {
    filter: brightness(0.78);
    transform: scale(1.025);
}

.film-card:hover .poster-action,
.film-card:focus-visible .poster-action {
    opacity: 1;
    transform: translateY(0);
}

.film-card-copy {
    padding: 19px 4px 0;
}

.film-card-copy h3 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.film-card-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.film-card-copy p span {
    padding: 0 5px;
    color: #565966;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.back-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin: 34px 0;
    color: var(--muted);
    font-size: 14px;
}

.back-link:hover {
    color: var(--text);
}

.movie-hero {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    margin-bottom: 70px;
}

.movie-poster {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.movie-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 70px);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.movie-tagline {
    margin: 18px 0;
    color: #c4c5cd;
    font-size: 19px;
}

.movie-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.movie-facts span {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
}

.movie-facts strong {
    color: var(--accent);
}

.movie-description {
    max-width: 750px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.booking-section {
    padding-bottom: 90px;
}

.booking-heading {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}

.selection-panel,
.booking-step {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(20, 22, 29, 0.85);
}

.step-title {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 23px;
}

.step-title > span {
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.step-title h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.cinema-list {
    display: grid;
    gap: 10px;
}

.cinema-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.cinema-button:hover,
.date-button:hover,
.time-button:hover {
    border-color: rgba(223, 255, 87, 0.45);
}

.cinema-button.selected,
.date-button.selected,
.time-button.selected {
    border-color: var(--accent);
    background: rgba(223, 255, 87, 0.07);
}

.cinema-button strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.cinema-button small {
    color: var(--muted);
    font-size: 12px;
}

.cinema-check {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #41444e;
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
}

.cinema-button.selected .cinema-check {
    border-color: var(--accent);
    background: var(--accent);
    color: #111408;
}

.panel-placeholder {
    margin: 34px 0;
    color: #696c78;
    font-size: 14px;
    text-align: center;
}

.date-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-color: #40434e transparent;
}

.date-button {
    min-width: 81px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.date-button span,
.date-button small {
    display: block;
    white-space: nowrap;
}

.date-button span {
    font-size: 12px;
    font-weight: 700;
}

.date-button small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.time-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.time-button {
    padding: 13px 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
    cursor: pointer;
}

.booking-step {
    margin-top: 22px;
    scroll-margin-top: 24px;
}

.step-description {
    margin: -8px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.hall {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 24px 0;
}

.screen {
    width: 76%;
    height: 48px;
    margin: 0 auto 38px;
    border-top: 3px solid rgba(223, 255, 87, 0.8);
    border-radius: 50%;
    box-shadow: 0 -12px 32px rgba(223, 255, 87, 0.08);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
}

.screen span {
    position: relative;
    top: 12px;
}

.seat-map {
    display: grid;
    gap: 9px;
}

.seat-row {
    display: grid;
    grid-template-columns: 20px repeat(10, minmax(24px, 1fr)) 20px;
    gap: 8px;
    align-items: center;
}

.row-number {
    color: #6d707c;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    text-align: center;
}

.seat {
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 1px solid #414550;
    border-radius: 7px 7px 10px 10px;
    background: #262a34;
    color: #b9bdc7;
    font-size: 10px;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.seat:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.seat.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #15190b;
    font-weight: 800;
}

.seat:disabled {
    border-color: transparent;
    background: #12141a;
    color: #41444e;
    cursor: not-allowed;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 11px;
}

.seat-legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.seat-sample {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #414550;
    border-radius: 4px;
    background: #262a34;
}

.seat-sample.selected {
    border-color: var(--accent);
    background: var(--accent);
}

.seat-sample.occupied {
    border-color: transparent;
    background: #12141a;
}

.compact-step {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.select-label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
}

.price-select {
    width: 100%;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-light);
    color: var(--text);
    cursor: pointer;
}

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

.payment-option {
    position: relative;
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: #c5c7cf;
    font-size: 13px;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(223, 255, 87, 0.06);
    color: var(--text);
}

.payment-option input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--accent);
}

.order-summary {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.order-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-summary > div span {
    color: var(--muted);
}

.order-summary strong {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.order-summary p {
    margin: 12px 0 20px;
    color: var(--muted);
    font-size: 12px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 13px;
    background: var(--accent);
    color: #111408;
    font-weight: 800;
    cursor: pointer;
}

.primary-button:disabled {
    background: #30332e;
    color: #767b6d;
    cursor: not-allowed;
}

#submit-order {
    width: 100%;
}

.booking-error {
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 142, 142, 0.35);
    border-radius: 12px;
    background: rgba(255, 142, 142, 0.07);
    color: var(--danger);
    font-size: 13px;
}

.confirmation-main,
.error-main {
    display: grid;
    min-height: calc(100vh - 190px);
    place-items: center;
    padding: 60px 0;
}

.confirmation-card {
    width: min(760px, 100%);
    text-align: center;
}

.confirmation-mark {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #111408;
    font-size: 30px;
    font-weight: 900;
}

.confirmation-card h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 58px);
    letter-spacing: -0.05em;
}

.confirmation-lead {
    margin: 18px 0 32px;
    color: var(--muted);
}

.confirmation-lead strong {
    color: var(--text);
}

.ticket {
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: left;
}

.ticket-movie {
    padding: 28px;
    border-bottom: 1px dashed #3d404a;
}

.ticket span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ticket-movie h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.ticket-movie p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.ticket-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 28px;
}

.ticket-details strong {
    font-size: 14px;
    font-weight: 600;
}

.ticket-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: rgba(223, 255, 87, 0.06);
}

.ticket-total span {
    margin: 0;
}

.ticket-total strong {
    color: var(--accent);
    font-size: 26px;
}

.confirmation-note {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 12px;
}

.error-card {
    max-width: 560px;
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--accent);
    font-size: 70px;
    font-weight: 800;
}

.error-card h1 {
    margin: 0 0 15px;
}

.error-card p:not(.error-code) {
    margin-bottom: 25px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero-orbit {
        right: -240px;
        opacity: 0.6;
    }

    .film-grid {
        gap: 16px;
    }

    .film-card-copy h3 {
        font-size: 18px;
    }

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

    .payment-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header,
    .home-main,
    .booking-main,
    .confirmation-main,
    .error-main,
    .site-footer {
        width: min(100% - 28px, 1240px);
    }

    .site-header {
        min-height: 74px;
    }

    .header-note {
        display: none;
    }

    .hero {
        min-height: 390px;
    }

    .hero-copy {
        padding: 52px 0;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-copy > p:last-child {
        font-size: 16px;
    }

    .film-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .poster-action {
        opacity: 1;
        transform: none;
    }

    .section-heading {
        align-items: start;
    }

    .catalog-count {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 7px;
    }

    .movie-hero {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 19px;
        align-items: start;
        margin-bottom: 46px;
    }

    .movie-copy h1 {
        font-size: 35px;
    }

    .movie-tagline {
        display: none;
    }

    .movie-description {
        grid-column: 1 / -1;
    }

    .movie-facts {
        gap: 5px;
        margin: 14px 0 0;
    }

    .movie-facts span {
        padding: 5px 7px;
        font-size: 10px;
    }

    .movie-description {
        margin-top: 20px;
        font-size: 14px;
    }

    .selection-panel,
    .booking-step {
        padding: 20px 16px;
        border-radius: 18px;
    }

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

    .hall {
        padding: 0;
    }

    .seat-row {
        grid-template-columns: 14px repeat(10, minmax(20px, 1fr)) 14px;
        gap: 4px;
    }

    .seat {
        border-radius: 4px 4px 6px 6px;
        font-size: 8px;
    }

    .seat-legend {
        gap: 13px;
        font-size: 9px;
    }

    .ticket-details {
        grid-template-columns: 1fr;
    }
}

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

.main-nav a {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.main-nav a.active {
    background: rgba(223, 255, 87, 0.08);
    color: var(--accent);
}

.content-page {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 90px;
}

.page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
    align-items: end;
    overflow: hidden;
    padding: 58px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(141, 116, 255, 0.18), transparent 26rem),
        var(--surface);
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(40px, 5.5vw, 66px);
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.page-lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.page-hero-note {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 12, 16, 0.45);
}

.page-hero-note > span,
.contact-label {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.page-hero-note strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
}

.page-hero-note p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.stat-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(20, 22, 29, 0.72);
}

.stat-card strong {
    color: var(--accent);
    font-size: 44px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.stat-card span {
    max-width: 190px;
    color: var(--muted);
    font-size: 13px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 22px;
}

.about-copy,
.about-steps,
.contact-form-wrap {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.about-copy h2,
.about-steps h2,
.contact-form-wrap h2 {
    margin: 0 0 24px;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.about-copy > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.8;
}

.about-quote {
    margin-top: 32px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    color: #d3d4da;
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
}

.about-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.about-step > span {
    padding-top: 3px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
}

.about-step strong {
    font-size: 15px;
}

.about-step p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 22px;
    margin-top: 22px;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.contact-card a,
.contact-card > strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.contact-note {
    padding: 8px 5px;
    color: #737682;
    font-size: 11px;
    line-height: 1.6;
}

.contact-form-wrap {
    scroll-margin-top: 24px;
}

.contact-form-wrap .step-title > span {
    font-size: 9px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

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

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #c6c8d0;
    font-size: 12px;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0f1117;
    color: var(--text);
    transition: border-color 160ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(223, 255, 87, 0.55);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: rgba(255, 142, 142, 0.7);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field textarea::placeholder {
    color: #555965;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 11px;
}

.field-meta {
    min-height: 18px;
    color: var(--muted);
    font-size: 11px;
}

.field-meta > span:not(.field-error) {
    display: block;
    margin-top: 7px;
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
}

.form-alert.success {
    border: 1px solid rgba(223, 255, 87, 0.3);
    background: rgba(223, 255, 87, 0.07);
    color: var(--accent);
}

.form-alert.error {
    border: 1px solid rgba(255, 142, 142, 0.3);
    background: rgba(255, 142, 142, 0.07);
    color: var(--danger);
}

.form-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .page-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px;
    }

    .page-hero-note {
        max-width: 420px;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .stat-card span {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 8px;
        font-size: 11px;
    }

    .brand > span:last-child {
        display: none;
    }

    .content-page {
        width: min(100% - 28px, 1240px);
        padding: 28px 0 60px;
    }

    .page-hero {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .page-lead {
        font-size: 14px;
    }

    .about-copy,
    .about-steps,
    .contact-form-wrap {
        padding: 25px 20px;
    }

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


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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 70px;
    align-items: center;
    max-width: 1100px;
    margin: 30px auto 0;
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 72px);
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.auth-features span {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    font-size: 11px;
}

.auth-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.demo-credentials {
    display: grid;
    gap: 6px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(223, 255, 87, 0.18);
    border-radius: 12px;
    background: rgba(223, 255, 87, 0.04);
}

.demo-credentials strong {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 11px;
}

.demo-credentials span {
    color: var(--muted);
    font-size: 12px;
}

.demo-credentials code {
    color: var(--text);
}

.secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: transparent;
    color: #c7c9d1;
    font-size: 13px;
    cursor: pointer;
}

.secondary-button:hover {
    border-color: rgba(223, 255, 87, 0.4);
    color: var(--accent);
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
}

.account-header h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.account-header .page-lead {
    margin-top: 12px;
}

.account-content {
    padding: 45px 0 30px;
}

.empty-state {
    padding: 65px 25px;
    border: 1px dashed #343741;
    border-radius: var(--radius);
    text-align: center;
}

.empty-state > span {
    color: var(--accent);
    font-size: 45px;
}

.empty-state h3 {
    margin: 15px 0 8px;
    font-size: 24px;
}

.empty-state p {
    margin: 0 auto 25px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 0;
    }

    .auth-card {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 25px 20px;
    }

    .account-header {
        align-items: start;
        padding: 25px 0;
    }

    .account-header .page-lead {
        font-size: 13px;
    }

    .account-content .section-heading {
        align-items: center;
    }
}
