/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors from Business Card */
    --primary-blue: #1E3A8A;
    --dark-blue: #0F172A;
    --accent-orange: #F97316;
    --light-orange: #FB923C;
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --text-light-gray: #CBD5E1;
    --bg-gradient-start: #1E3A8A;
    --bg-gradient-end: #0F172A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 30px 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}

.header.header-scroll-hidden {
    transform: translateY(calc(-100% - 8px));
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: block;
    width: min(100%, 300px);
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(249, 115, 22, 0.3));
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-qr-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-qr-label {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.header-qr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.18);
    transition: transform 0.15s ease, border-color 0.15s ease;
    min-width: 56px;
    min-height: 56px;
    padding: 6px;
    overflow: hidden;
}

.header-qr-link:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.7);
}

.header-qr {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}


.header-cabinet-cta {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-cabinet-cta .btn {
    min-width: 0;
    max-width: 100%;
}

.header-cabinet-note {
    max-width: 620px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.96);
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
}



@media (max-width: 768px) {
    .header-cabinet-cta {
        gap: 12px;
        margin-top: 14px;
    }

    .header-cabinet-cta .btn {
        padding: 12px 18px;
        font-size: 0.96rem;
        line-height: 1.25;
        border-radius: 14px;
    }

    .header-cabinet-note {
        max-width: 100%;
        padding: 11px 14px;
        font-size: 0.94rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-cabinet-cta {
        margin-top: 12px;
    }

    .header-cabinet-cta .btn {
        width: auto;
        padding: 10px 14px;
        font-size: 0.86rem;
        border-radius: 12px;
    }

    .header-cabinet-note {
        padding: 10px 12px;
        font-size: 0.88rem;
        line-height: 1.4;
    }
}

.cabinet-view .logo {
    max-width: 260px;
}

.cabinet-view .header-actions {
    gap: 10px;
}

.cabinet-view .header-qr-link {
    width: 88px;
    height: 88px;
    padding: 4px;
}

.cabinet-view .header-qr-label {
    font-size: 11px;
}
/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, rgba(249, 115, 22, 0.03) 0px, transparent 1px, transparent 50px, rgba(249, 115, 22, 0.03) 51px),
        repeating-linear-gradient(0deg, rgba(249, 115, 22, 0.03) 0px, transparent 1px, transparent 50px, rgba(249, 115, 22, 0.03) 51px);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light-gray);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--light-orange) 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--accent-orange);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light-gray);
    margin-bottom: 20px;
}

/* How It Works Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
    border-color: var(--accent-orange);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.feature-card p {
    color: var(--text-light-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: rgba(15, 23, 42, 0.5);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(30, 58, 138, 0.4);
    border-color: var(--accent-orange);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.benefit-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Services Section */
.services {
    background: rgba(30, 58, 138, 0.2);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-item {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
    transform: translateY(-3px);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.service-item p {
    color: var(--text-light-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.price-button-container {
    text-align: center;
    margin-top: 50px;
}

/* Download App Section */
.download-app {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-top: 2px solid rgba(249, 115, 22, 0.3);
    border-bottom: 2px solid rgba(249, 115, 22, 0.3);
}

.download-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.download-text {
    flex: 1;
    min-width: 300px;
}

.download-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.download-text p {
    font-size: 1.1rem;
    color: var(--text-light-gray);
    margin-bottom: 15px;
}

.app-note {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
}

.download-qr {
    flex-shrink: 0;
    text-align: center;
}

.qr-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
}

.qr-code {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    border: 3px solid var(--accent-orange);
    background: white;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
}

.qr-caption {
    margin-top: 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: rgba(15, 23, 42, 0.5);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-light-gray);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9 0%, #1E88C7 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 158, 217, 0.5);
    background: linear-gradient(135deg, #1E88C7 0%, #229ED9 100%);
}

.btn-price {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--light-orange) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--accent-orange) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(148, 163, 184, 0.45);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-orange);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.18);
}

.telegram-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 2px solid rgba(249, 115, 22, 0.3);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
}

.footer-info {
    flex: 1;
    text-align: center;
}

.footer-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.footer-contact a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

.footer-contact a:hover {
    color: var(--light-orange);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

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

    .download-content {
        flex-direction: column;
        text-align: center;
    }

    .download-text {
        min-width: 100%;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Примечание: размер логотипа и кнопки синхронизируется на клиенте без хардкода размеров */


.cabinet-page {
    padding: 48px 0 64px;
}

.cabinet-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.cabinet-card,
.cabinet-side {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 50px rgba(2, 6, 23, 0.22);
}

.cabinet-card h1,
.cabinet-side h2 {
    color: var(--text-white);
}

.cabinet-subtitle,
.cabinet-hint,
.cabinet-side p,
.cabinet-status,
.cabinet-empty,
.cabinet-order-problem,
.cabinet-order-date,
.cabinet-order-meta {
    color: var(--text-light-gray);
}

.cabinet-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 14px 0 0;
}

.cabinet-panel {
    display: none;
    margin-top: 28px;
}

.cabinet-panel.is-active {
    display: block;
}

.cabinet-form {
    display: grid;
    gap: 16px;
}

.cabinet-field {
    display: grid;
    gap: 8px;
}

.cabinet-field label {
    color: var(--text-white);
    font-weight: 600;
}

.cabinet-field input,
.cabinet-field textarea,
.cabinet-field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-white);
    font: inherit;
}

.cabinet-field textarea {
    min-height: 132px;
    resize: vertical;
}

.cabinet-field input:focus,
.cabinet-field textarea:focus,
.cabinet-field select:focus {
    outline: 2px solid rgba(249, 115, 22, 0.45);
    border-color: rgba(249, 115, 22, 0.55);
}

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

.cabinet-actions,
.cabinet-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cabinet-inline-actions {
    margin-top: 8px;
}

.cabinet-step-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cabinet-step-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cabinet-step-index {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(249, 115, 22, 0.18);
    color: var(--accent-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cabinet-state {
    margin-top: 20px;
    min-height: 24px;
    font-weight: 600;
}

.cabinet-state.is-error {
    color: #fca5a5;
}

.cabinet-state.is-success {
    color: #86efac;
}

.cabinet-state.is-neutral {
    color: var(--text-gray);
}

.cabinet-orders {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.cabinet-order-card {
    background: rgba(30, 58, 138, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 18px;
    padding: 18px;
}


.cabinet-order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.cabinet-open-chat-button {
    min-width: 168px;
}

.cabinet-chat-modal__dialog {
    width: min(100%, 760px);
}

.cabinet-chat-modal__top {
    margin-bottom: 14px;
}

.cabinet-chat-state {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.cabinet-chat-state.is-success {
    color: #86efac;
}

.cabinet-chat-state.is-error {
    color: #fca5a5;
}

.cabinet-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.cabinet-chat-empty {
    color: var(--text-gray);
    text-align: center;
    padding: 28px 14px;
}

.cabinet-chat-message {
    display: flex;
    justify-content: flex-start;
}

.cabinet-chat-message.is-own {
    justify-content: flex-end;
}

.cabinet-chat-bubble {
    width: min(100%, 82%);
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(30, 58, 138, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}

.cabinet-chat-message.is-own .cabinet-chat-bubble {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(251, 146, 60, 0.18));
    border-color: rgba(249, 115, 22, 0.28);
}

.cabinet-chat-message-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}

.cabinet-chat-author {
    color: var(--text-white);
    font-weight: 700;
}

.cabinet-chat-time {
    color: var(--text-gray);
    white-space: nowrap;
}

.cabinet-chat-text {
    color: var(--text-light-gray);
    line-height: 1.55;
    word-break: break-word;
}

.cabinet-chat-form {
    margin-top: 14px;
}

.cabinet-chat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light-gray);
    font-weight: 600;
}

.cabinet-chat-compose-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.cabinet-chat-input {
    min-height: 96px;
    max-height: 180px;
    resize: vertical;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.78);
    color: var(--text-white);
    font: inherit;
}

.cabinet-chat-input:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.cabinet-chat-send {
    min-width: 132px;
}

.cabinet-chat-hint {
    margin-top: 10px;
}

.cabinet-order-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cabinet-order-title {
    font-size: 1.05rem;
    color: var(--text-white);
    font-weight: 700;
}

.cabinet-order-status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 700;
}

.cabinet-side ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--text-light-gray);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .header {
        padding: 20px 0;
    }

    .logo-section {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .header-actions {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }

    .header-qr-item {
        padding-top: 12px;
    }


    .cabinet-order-actions {
        flex-direction: column;
    }

    .cabinet-open-chat-button,
    .cabinet-order-actions .btn {
        width: 100%;
    }

    .cabinet-chat-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .cabinet-chat-messages {
        min-height: 200px;
        max-height: 44vh;
        padding: 12px;
    }

    .cabinet-chat-bubble {
        width: min(100%, 92%);
    }

    .cabinet-chat-compose-row {
        grid-template-columns: 1fr;
    }

    .cabinet-chat-send {
        width: 100%;
    }

    .logo {
        max-width: 200px;
    }

    .cabinet-view .logo {
        max-width: 176px;
    }

    .header-qr-link {
        width: 76px;
        height: 76px;
        padding: 4px;
        border-radius: 14px;
    }

    .cabinet-view .header-qr-link {
        width: 56px;
        height: 56px;
        padding: 3px;
        border-radius: 12px;
    }

    .cabinet-view .header-qr-label {
        top: -12px;
        font-size: 0.68rem;
    }

    .download-content {
        gap: 30px;
    }

    .download-text,
    .download-qr {
        width: 100%;
    }

    .hero {
        background-attachment: scroll;
    }

    .feature-modal {
        padding: 16px;
    }

    .feature-modal__dialog {
        width: min(100%, 460px);
        padding: 16px;
        border-radius: 18px;
    }

    .cabinet-entry-card,
    .cabinet-card,
    .cabinet-side {
        padding: 24px 20px;
    }

    .cabinet-shell,
    .cabinet-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .header {
        padding: 16px 0;
    }

    .logo-section {
        gap: 14px;
    }

    .header-actions {
        gap: 8px;
    }

    .logo {
        max-width: 168px;
    }

    .cabinet-view .logo {
        max-width: 152px;
    }

    .header-qr-link {
        width: 64px;
        height: 64px;
        padding: 3px;
        border-radius: 12px;
    }

    .cabinet-view .header-qr-link {
        width: 48px;
        height: 48px;
        padding: 2px;
        border-radius: 10px;
    }

    .header-qr-label {
        top: -14px;
        font-size: 0.72rem;
    }

    .cabinet-view .header-qr-label {
        top: -11px;
        font-size: 0.64rem;
    }

    .cabinet-entry-card,
    .cabinet-card,
    .cabinet-side {
        padding: 20px 16px;
    }

    .cabinet-entry-actions,
    .cabinet-actions,
    .cabinet-inline-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 12px 25px;
        font-size: 1rem;
    }

    .cabinet-order-top {
        flex-direction: column;
    }
}

.feature-card-button {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: rgba(30, 58, 138, 0.85);
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.feature-card-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
}

.feature-card-button:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
}

body.modal-open {
    overflow: hidden;
}

.feature-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

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

.feature-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
}

.feature-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: 90vh;
    overflow: auto;
    background: #0f172a;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.feature-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.feature-modal__title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
    padding-right: 28px;
}

.feature-modal__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}


.cabinet-service-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.cabinet-service-info-button {
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}


.cabinet-service-info-button:hover,
.cabinet-service-info-button:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

.cabinet-service-info-button:disabled {
    opacity: 0.45;
    cursor: default;
    box-shadow: none;
}

.cabinet-service-hint {
    margin-top: 8px;
    font-size: 0.92rem;
}

.cabinet-order-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.cabinet-modal[hidden] {
    display: none;
}

.cabinet-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cabinet-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
}

.cabinet-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #0f172a;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    padding: 22px 22px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    margin: 0;
}

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

.cabinet-modal__title {
    margin: 0;
    font-size: 1.18rem;
    color: #fff;
}

.cabinet-modal__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.cabinet-service-modal-category {
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fb923c;
}

.cabinet-service-modal-text {
    color: #cbd5e1;
    white-space: pre-wrap;
    line-height: 1.6;
}

body.cabinet-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .cabinet-service-select-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .cabinet-service-info-button {
        height: 32px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .cabinet-modal__close {
        width: 34px;
        height: 34px;
    }

    .cabinet-order-actions .btn {
        width: 100%;
    }

    .cabinet-modal {
        padding: 14px;
    }

    .cabinet-modal__dialog {
        width: min(100%, 100%);
        padding: 18px 16px 16px;
        border-radius: 18px;
    }
}
