/* =========================================
   ОСНОВНЫЕ НАСТРОЙКИ (ГОТИЧЕСКИЙ СТИЛЬ + ФОН)
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    margin: 0 auto;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)),
        url('/images/fon.jpg');
    background-size: contain;        /* ← вся картинка целиком */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #0a0a0a;
}

/* =========================================
   APP (полупрозрачный, чтобы фон просвечивал)
========================================= */

.app {
    min-height: 100vh;
    max-width: 520px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    padding-bottom: 90px;
}

/* =========================================
   HEADER
========================================= */

.header {
    padding: 28px 20px 18px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header h1 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.header p {
    font-size: 14px;
    color: #aaaaaa;
}

/* =========================================
   CONTENT
========================================= */

.content {
    padding: 16px 16px 24px;
}

/* =========================================
   HERO CARD
========================================= */

.hero-card {
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-card h2 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-card p {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* =========================================
   PRIMARY BUTTON (Светящиеся, монохром)
========================================= */

.primary-button {
    width: 100%;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.35), 0 0 35px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.primary-button:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.55), 0 0 55px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.primary-button:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.button-icon {
    font-size: 20px;
    vertical-align: -1px;
    margin-right: 5px;
}

/* =========================================
   SECTION
========================================= */

.section {
    margin-top: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

/* =========================================
   ORDER CARD
========================================= */

.order-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-top strong {
    font-size: 16px;
    color: #ffffff;
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* =========================================
   STATUS (монохром)
========================================= */

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

.status-progress {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.order-date {
    margin-top: 12px;
    font-size: 13px;
    color: #aaaaaa;
}

/* =========================================
   BOTTOM NAVIGATION (Светящиеся, монохром)
========================================= */

.buttom-navigation {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    min-height: 72px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    flex-shrink: 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.9);
}

.nav-item {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 72px;
    border: none;
    background: transparent;
    color: #666666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.nav-item span {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.nav-item small {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nav-item.active span {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.nav-item:active {
    opacity: 0.7;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 380px) {
    .header {
        padding-left: 16px;
        padding-right: 16px;
    }
    .content {
        padding-left: 12px;
        padding-right: 12px;
    }
    .hero-card {
        padding: 16px;
    }
}

/* ==========================================
ЗАГОЛОВОК ЭКРАНА
========================================== */

.screen-header {
    margin-bottom: 20px;
}

.screen-header h1 {
    margin: 10px 0 4px;
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.step-counter {
    margin: 0;
    color: #aaaaaa;
    font-size: 14px;
}

/* ==========================================
КНОПКА НАЗАД (Светящаяся, монохром)
========================================== */

.back-button {
    border: none;
    background: none;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.back-button:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

/* ==========================================
ПРОГРЕСС ШАГОВ (Светящийся, монохром)
========================================== */

.progress {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    overflow: visible;
}

.progress-step {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-step.active {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    border-color: #ffffff;
}

.progress-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    flex: 1;
    transition: background-color 0.3s ease;
}

.progress-line.active {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ==========================================
ТЕКСТ
========================================== */

.order-content h2 {
    margin-bottom: 6px;
    font-size: 22px;
    color: #ffffff;
}

.order-description {
    margin-top: 0;
    margin-bottom: 20px;
    color: #aaaaaa;
}

/* ==========================================
КАРТОЧКА ВЫБОРА (Светящаяся при выборе)
========================================== */

.option-card {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 30, 0.85);
}

.option-icon {
    font-size: 28px;
    margin-right: 14px;
}

.option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-info strong {
    font-size: 16px;
    color: #ffffff;
}

.option-info span {
    font-size: 13px;
    color: #aaaaaa;
}

.option-check {
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.option-card.selected .option-check {
    display: flex;
}

/* ==========================================
ПЕРЕКЛЮЧЕНИЕ ЭКРАНОВ
========================================== */

.app-hidden {
    display: none !important;
}

/* ==========================================
ЭКРАН СОЗДАНИЯ ЗАКАЗА (полупрозрачный фон)
========================================== */

#create-order-screen {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 20px;
    padding-bottom: 100px;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

#create-order-screen h1,
#create-order-screen h2,
#create-order-screen h3 {
    margin-top: 0;
    color: #ffffff;
}

#create-order-screen .order-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#create-order-screen .option-card {
    width: 100%;
    box-sizing: border-box;
}

#create-order-screen button {
    box-sizing: border-box;
    max-width: 520px;
}

/* ==========================================
КОЛИЧЕСТВО ЛИСТОВ В ТЕТРАДИ
========================================== */

.notebook-pages {
    margin-top: 4px;
    margin-bottom: 20px;
}

.notebook-pages-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.page-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.page-option {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-option strong {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.page-option span {
    margin-top: 2px;
    font-size: 12px;
    color: #aaaaaa;
}

.page-option.selected {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 30, 0.85);
}

.page-option:active {
    transform: scale(0.98);
}

/* Подсказка под листами (была светло-голубая — теперь тёмная) */
.notebook-pages-hint {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #cccccc !important;
}

/* ==========================================
   МНОГОШАГОВОЕ СОЗДАНИЕ ЗАКАЗА
========================================== */

.order-step {
    width: 100%;
}

.order-step.app-hidden {
    display: none !important;
}

/* ==========================================
   ТЕТРАДИ
========================================== */

.notebook-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notebook-card {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notebook-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 30, 0.85);
}

.notebook-image {
    width: 58px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 30px;
    margin-right: 12px;
}

.notebook-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notebook-info strong {
    font-size: 14px;
    color: #ffffff;
}

.notebook-info span {
    font-size: 12px;
    color: #aaaaaa;
}

.notebook-info b {
    font-size: 14px;
    margin-top: 3px;
    color: #ffffff;
}

.notebook-arrow {
    color: #666666;
    font-size: 25px;
}

/* ==========================================
   ВЫБОР ТИПА ЛИСТА
========================================== */

.paper-type-card {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.paper-type-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 30, 0.85);
}

.paper-type-card .notebook-image {
    width: 58px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 30px;
    margin-right: 12px;
}

.paper-type-card .notebook-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.paper-type-card .notebook-info strong {
    font-size: 14px;
    color: #ffffff;
}

.paper-type-card .notebook-info span {
    font-size: 12px;
    color: #aaaaaa;
}

.paper-type-card .notebook-info b {
    font-size: 14px;
    margin-top: 3px;
    color: #ffffff;
}

.paper-type-card .option-check {
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.paper-type-card.selected .option-check {
    display: flex;
}

/* ==========================================
   ТИП РАБОТЫ
========================================== */

.work-type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-type-card {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-type-card > span {
    font-size: 20px;
    margin-right: 12px;
}

.work-type-card strong {
    font-size: 14px;
    flex: 1;
    color: #ffffff;
}

.work-type-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 30, 0.85);
}

/* Цены в карточках работ — вместо серого */
.work-price-display {
    font-size: 12px;
    color: #cccccc !important;
    margin-left: auto;
    margin-right: 8px;
}


/* ==========================================
   ТИП ЗАДАНИЯ (Готовая работа / Нужно сделать)
========================================== */

.task-type-card {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-family: inherit;
}

.task-type-card > span {
    font-size: 22px;
    margin-right: 12px;
    flex-shrink: 0;
}

.task-type-card strong {
    font-size: 14px;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.task-type-card .task-type-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-type-card .task-type-info span {
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.4;
}

.task-type-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 30, 0.85);
}

.task-type-card .option-check {
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    margin-left: 8px;
}

.task-type-card.selected .option-check {
    display: flex;
}

/* ==========================================
   ШАГ 7 — ЧЕК ЗАКАЗА (ORDER SUMMARY)
========================================== */

.order-summary {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 4px;
    margin-bottom: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* ─── Строка чека ─────────────────────────── */

.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.summary-row:last-of-type {
    border-bottom: none;
}

/* Иконка слева */
.summary-row > span:first-child {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    margin-top: 2px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

/* Центральная часть: заголовок + подпись */
.summary-row > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.summary-row > div strong {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.summary-row > div small {
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.4;
    word-break: break-word;
}

/* Правая часть: цена / значение */
.summary-row > b {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    margin-top: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ─── ИТОГО ───────────────────────────────── */

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1.5px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.summary-total::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
}

.summary-total strong {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.summary-total b {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

/* ─── КНОПКИ ПОД ЧЕКОМ ────────────────────── */

.summary-buttons {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}

.summary-buttons .secondary-button,
.summary-buttons .primary-button {
    flex: 1;
    margin: 0;
    width: auto;
    max-width: none;
}

.summary-buttons .secondary-button {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.summary-buttons .primary-button {
    padding: 14px 18px;
    font-size: 15px;
}

/* ─── Строка "Материалы" — особый случай ─── */

.summary-materials-row {
    align-items: flex-start;
}

.summary-materials-row > div {
    flex: 1;
    min-width: 0;
}

.summary-materials-row small {
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.4;
}

.summary-materials-row small[style*="word-break"] {
    word-break: break-all;
    max-width: 100%;
}

.summary-materials-row > b {
    align-self: flex-start;
    margin-top: 2px;
}

/* ─── Адаптив для узких экранов ──────────── */

@media (max-width: 380px) {
    .summary-row {
        padding: 12px 12px;
        gap: 10px;
    }

    .summary-row > span:first-child {
        font-size: 18px;
        width: 20px;
    }

    .summary-row > div strong {
        font-size: 13px;
    }

    .summary-row > div small {
        font-size: 11px;
    }

    .summary-row > b {
        font-size: 13px;
    }

    .summary-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px;
        margin: 4px -4px -8px;   /* растягиваем на всю ширину блока */
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%
        );
        border-top: 1.5px solid rgba(255, 255, 255, 0.2);
        border-radius: 0 0 14px 14px;
    }

    .summary-total strong {
        font-size: 14px;
    }

    .summary-total b {
        font-size: 20px;
    }

    .summary-buttons {
        gap: 8px;
    }

    .summary-buttons .secondary-button,
    .summary-buttons .primary-button {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* ==========================================
   ФОРМЫ
========================================== */

.form-label {
    display: block;
    margin-top: 16px;
    margin-bottom: 7px;
    font-size: 13px;
    color: #cccccc;
}

.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    padding: 12px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus,
.form-textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.form-textarea {
    min-height: 90px;
    resize: vertical;
}

.selected-work {
    font-size: 13px;
    color: #aaaaaa;
}

/* ==========================================
   СЧЁТЧИК
========================================== */

.number-control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.75);
}

.number-control button {
    width: 50px;
    height: 46px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.number-control button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.number-control span {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================
   ЗАГРУЗКА ФАЙЛОВ
========================================== */

.upload-box {
    width: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.upload-box strong {
    color: #ffffff;
    font-size: 14px;
}

.upload-box span {
    font-size: 11px;
    color: #aaaaaa;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.75);
}

.file-item span {
    flex: 1;
    font-size: 13px;
    color: #ffffff;
}

.file-remove {
    border: none;
    background: none;
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.file-remove:hover {
    color: #ffffff;
}

/* ==========================================
   КАЛЕНДАРЬ — ЦВЕТНЫЕ СТАТУСЫ ДНЕЙ
========================================== */

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.calendar-nav {
    border: none;
    background: none;
    font-size: 28px;
    padding: 8px 16px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.calendar-nav:active {
    transform: scale(0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.calendar-month-year {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    padding: 8px 0;
}

.calendar-day-btn {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: #e0e0e0;
}

.calendar-day-btn:active {
    transform: scale(0.92);
}

/* Прошедшие дни / вне учебного года */
.calendar-day-btn.past {
    background: rgba(0, 0, 0, 0.4);
    color: #444444;
    cursor: not-allowed;
    opacity: 0.5;
    border-color: transparent;
}

/* 🟢 ЗЕЛЁНЫЙ — много мест (доступно > 3) */
.calendar-day-btn.available {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    cursor: pointer;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.calendar-day-btn.available:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10b981;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.calendar-day-btn.available .day-badge {
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* 🟡 ЖЁЛТЫЙ — мало мест (доступно 2-3) */
.calendar-day-btn.limited {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    cursor: pointer;
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.calendar-day-btn.limited:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: #f59e0b;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.calendar-day-btn.limited .day-badge {
    background: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* 🔥 КРАСНЫЙ — последнее место (доступно 1) */
.calendar-day-btn.almost-full {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    cursor: pointer;
    border: 1.5px solid #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    animation: pulse-red 1.8s infinite;
}

.calendar-day-btn.almost-full:hover {
    background: rgba(239, 68, 68, 0.32);
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.9);
}

.calendar-day-btn.almost-full .day-badge {
    background: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

/* ❌ СЕРЫЙ — всё занято (доступно 0) */
.calendar-day-btn.full {
    background: rgba(60, 60, 60, 0.3);
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
    border: 1.5px solid transparent;
}

.calendar-day-btn.full .day-badge {
    background: rgba(0, 0, 0, 0.3);
    color: #888888;
}

/* ⚪ ВЫБРАННЫЙ ДЕНЬ — перебивает цвета статусов */
.calendar-day-btn.selected {
    background: #ffffff !important;
    color: #0a0a0a !important;
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7),
                0 0 60px rgba(255, 255, 255, 0.25) !important;
    border: 1.5px solid #ffffff !important;
    animation: none !important;
}

.calendar-day-btn.selected .day-badge {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #0a0a0a !important;
}

.calendar-day-btn .day-number {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.calendar-day-btn .day-badge {
    font-size: 8px;
    margin-top: 2px;
    padding: 1px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

/* Пульсация красного свечения для "последнего места" */
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 28px rgba(239, 68, 68, 0.95);
    }
}

/* Старая пульсация прозрачности для #date-status */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ==========================================
   ЛЕГЕНДА КАЛЕНДАРЯ
========================================== */

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 20px;
    padding: 12px 14px;
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 11px;
    color: #aaaaaa;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-legend .dot.green  {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.calendar-legend .dot.yellow {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}
.calendar-legend .dot.red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}
.calendar-legend .dot.gray {
    background: #666666;
}

/* ==========================================
   ИНФО О ВЫБРАННОЙ ДАТЕ
========================================== */

.date-info {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.date-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    margin: 8px 0;
}

.date-stats span {
    font-size: 13px;
    color: #aaaaaa;
}

#date-status {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* ==========================================
   ВЫБОР ПОЧЕРКА
========================================== */

.handwriting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.handwriting-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.handwriting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.handwriting-card.selected {
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
    background: rgba(30, 30, 30, 0.9);
}

.handwriting-card .handwriting-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 28px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.handwriting-card:hover .handwriting-preview {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.handwriting-card .handwriting-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.handwriting-card .handwriting-info strong {
    font-size: 13px;
    color: #ffffff;
}

.handwriting-card .handwriting-info span {
    font-size: 11px;
    color: #aaaaaa;
}

.handwriting-card .option-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.handwriting-card.selected .option-check {
    display: flex;
}

/* Модальное окно */
.handwriting-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.handwriting-modal.active {
    display: flex;
}

.handwriting-modal-content {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    font-size: 28px;
    color: #aaaaaa;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.handwriting-modal-content h2 {
    margin-bottom: 16px;
    font-size: 20px;
    text-align: center;
    color: #ffffff;
}

.modal-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 400px) {
    .handwriting-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .handwriting-card {
        padding: 8px;
    }
    .handwriting-card .handwriting-preview {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

/* ==========================================
   МАТЕРИАЛЫ В ЧЕКЕ
========================================== */

.summary-materials-row > div {
    flex: 1;
    min-width: 0;
}

.summary-materials-row .summary-materials-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.summary-materials-row small {
    font-size: 12px;
    line-height: 1.4;
    color: #aaaaaa;
}

.summary-materials-row small[style*="word-break"] {
    word-break: break-all;
    max-width: 100%;
}

/* ==========================================
   СЧЕТЧИК СТРАНИЦ
========================================== */

.page-counter-section {
    margin-bottom: 20px;
}

.page-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.75);
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.counter-btn:active {
    transform: scale(0.92);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.counter-input {
    width: 70px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: rgba(17, 17, 17, 0.75);
    color: #ffffff;
    outline: none;
}

.counter-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.counter-input::-webkit-inner-spin-button,
.counter-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-price-preview {
    background: rgba(17, 17, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
}

.page-price-preview strong {
    font-size: 20px;
    color: #ffffff;
}

/* ==========================================
   ЗАМЕНА СВЕТЛЫХ И СИНИХ ЭЛЕМЕНТОВ ВНУТРИ HTML
   (инлайн-стили из index.html перекрываем)
========================================== */

/* Количество символов/страниц (шаг 5) */
#char-count,
#page-estimate,
#page-price-per,
#pages-total-price {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Блок результата подсчёта текста — был светло-серый */
.text-counter-result {
    background: rgba(17, 17, 17, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Блок "Ответы на вопросы" — был оранжевый */
#answers-pages-block {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e0e0e0 !important;
}

#answers-pages-block h4,
#answers-pages-block p,
#answers-pages-block label,
#answers-pages-block small {
    color: #e0e0e0 !important;
}



/* Сводка заказа — заголовки строк */
.summary-row strong {
    color: #ffffff !important;
}

.summary-row small {
    color: #aaaaaa !important;
}

.summary-row > b {
    color: #ffffff !important;
}

/* Итого в сводке */
.summary-total strong,
.summary-total b {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Оплата — карточка */
/* ==========================================
   ШАГ 8 — ОПЛАТА ЗАКАЗА
========================================== */

/* ─── Карточка с суммой к оплате ─────────── */

.payment-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 24px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.payment-card span {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.payment-card small {
    display: block;
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 6px;
}

.payment-card strong {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 45px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.5px;
}

/* ==========================================
   ШАГ 8 — ОПЛАТА ЧЕРЕЗ СБП
========================================== */

/* ─── Номер заказа ────────────────────────── */

.payment-order-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    margin-bottom: 24px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-order-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.payment-order-number small {
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.payment-order-number strong {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 45px rgba(255, 255, 255, 0.2);
}

/* ─── Кнопка "Оплатить через СБП" ─────────── */

.pay-sbp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
    border-radius: 14px;
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.45),
        0 0 55px rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.pay-sbp-btn:hover {
    box-shadow:
        0 0 35px rgba(255, 255, 255, 0.65),
        0 0 70px rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.pay-sbp-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.pay-sbp-btn .sbp-icon {
    font-size: 22px;
    line-height: 1;
}

.pay-sbp-btn:disabled,
.pay-sbp-btn.processing {
    opacity: 0.7;
    cursor: wait;
    box-shadow: none;
    transform: none;
}

/* Спиннер при оплате */
.pay-sbp-btn.processing {
    color: transparent;
    position: relative;
    pointer-events: none;
}

.pay-sbp-btn.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2.5px solid rgba(10, 10, 10, 0.25);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Мелкий текст под кнопкой ───────────── */

.payment-info {
    font-size: 12px;
    color: #888888;
    line-height: 1.5;
    text-align: center;
    padding: 0 8px;
    margin-top: 20px;
}

/* ─── Экран успеха (после оплаты) ────────── */

.payment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 60vh;
    animation: fadeIn 0.5s ease;
}

.payment-success .success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #10b981;
    margin-bottom: 24px;
    box-shadow:
        0 0 30px rgba(16, 185, 129, 0.5),
        0 0 60px rgba(16, 185, 129, 0.2);
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-success h2 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.payment-success p {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 6px;
    line-height: 1.5;
}

.payment-success .order-number {
    display: inline-block;
    margin: 16px 0 24px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Адаптив */
@media (max-width: 380px) {
    .payment-order-number {
        padding: 22px 16px;
    }
    .payment-order-number strong {
        font-size: 26px;
    }
    .pay-sbp-btn {
        font-size: 15px;
        padding: 16px 16px;
    }
    .pay-sbp-btn .sbp-icon {
        font-size: 20px;
    }
}

/* Кнопка "Изменить" */
.secondary-button {
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.secondary-button:hover {
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Кнопка "Выбрать этот стиль" в модалке */
.handwriting-modal-content .primary-button {
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Опции выбора листов — уже тёмные, но подстрахуемся */
.page-option strong {
    color: #ffffff;
}

/* Заголовок "Количество листов" */
.notebook-pages-title {
    color: #e0e0e0;
}

/* Шаг 3 — "Выбран тип:" */
.selected-work {
    color: #aaaaaa;
}

.selected-work strong {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Заголовок "Выберите стиль почерка" */
.form-label[style*="font-size: 16px"] {
    color: #ffffff !important;
}

/* Плейсхолдеры в textarea/input — светлее */
.form-textarea::placeholder,
.counter-input::placeholder {
    color: #666666;
    opacity: 1;
}

/* Кнопки "Далее" в конце шагов */
.order-content > .primary-button.next-step-btn {
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
}

/* ==========================================
   ОТСТУПЫ ДЛЯ КНОПОК "ДАЛЕЕ"
========================================== */

/* Базовая кнопка "Далее" — одинаковая высота отступа на всех шагах */
.order-content > .primary-button.next-step-btn,
.order-content > .summary-buttons,
.order-step > .order-content > .primary-button.next-step-btn {
    margin-top: 32px;
}

/* На шаге 1 (выбор носителя) — ещё больше воздуха,
   т.к. перед кнопкой идёт карточка "Лист" и блок с листами */
.order-step[data-step="1"] .order-content > .primary-button.next-step-btn {
    margin-top: 40px;
}

/* Если перед кнопкой "Далее" идёт карточка выбора (option-card, paper-type-card
   и т.п.) — добавляем воздух снизу самой карточке, чтобы точно не слипалось */
.order-content > .option-card:last-of-type,
.order-content > .paper-type-card:last-of-type,
.order-content > .task-type-card:last-of-type {
    margin-bottom: 8px;
}

/* Внутри шага 2-paper кнопка "Далее" идёт после .notebook-list —
   даём самому списку небольшой нижний отступ */
.order-step[data-step="2-paper"] .notebook-list {
    margin-bottom: 8px;
}

/* Внутри шага 2 (.notebook-list) — то же самое */
.order-step[data-step="2"] .notebook-list {
    margin-bottom: 8px;
}

/* Шаг 3 — список типов работ + блок типов заданий. 
   Кнопка идёт после .task-type-section — добавляем воздух */
.order-step[data-step="3"] .task-type-section {
    margin-bottom: 8px;
}

/* Шаг 4 — после textarea "Дополнительные требования" */
.order-step[data-step="4"] .form-textarea {
    margin-bottom: 8px;
}

/* Шаг 5 — после textarea "Комментарий" */
.order-step[data-step="5"] #customer-comment {
    margin-bottom: 8px;
}

/* Шаг 6 — после .date-info */
.order-step[data-step="6"] .date-info {
    margin-bottom: 8px;
}

/* Шаг 7 — блок .summary-buttons уже имеет margin-top: 16px,
   но давайте сделаем чуть больше для единообразия */
.summary-buttons {
    margin-top: 32px !important;
}

/* На маленьких экранах — чуть меньше отступ, но всё равно заметный */
@media (max-width: 380px) {
    .order-content > .primary-button.next-step-btn {
        margin-top: 28px;
    }
    .order-step[data-step="1"] .order-content > .primary-button.next-step-btn {
        margin-top: 34px;
    }
    .summary-buttons {
        margin-top: 28px !important;
    }
}

/* ==========================================
   ШАГ 1 — отступ кнопки "Далее" как на других шагах
========================================== */

.order-step[data-step="1"] .order-content > .primary-button.next-step-btn {
    margin-top: 32px;
}

@media (max-width: 380px) {
    .order-step[data-step="1"] .order-content > .primary-button.next-step-btn {
        margin-top: 28px;
    }
}

/* ==========================================
   ЗАГОЛОВКИ ДНЕЙ НЕДЕЛИ (отдельный блок)
========================================== */

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.calendar-weekdays .calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    padding: 6px 0;
}

/* ==========================================
   ОШИБКА ЗАГРУЗКИ КАЛЕНДАРЯ
========================================== */

.calendar-error {
    margin: 12px 0;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

.calendar-error small {
    display: block;
    margin-top: 6px;
    color: #f87171;
    font-size: 11px;
}

.calendar-retry-btn {
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.calendar-retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* ========================================== */
/* СПИСОК ЗАКАЗОВ НА ГЛАВНОЙ */
/* ========================================== */

.order-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 12px;
}

.order-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
    font-size: 14px;
}

.order-empty span {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}