
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;900&display=swap');

:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-on-dark: #ffffff;
    --accent: #ffffff;
    --gutter: 20px;
    --anim-easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Когда открыт профиль или полное меню — разрешаем скролл */
body.profile-active,
body.fullmenu-active {
    overflow: visible;
    touch-action: pan-y;
}

.app-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter);
    z-index: 150;
    color: white;
    pointer-events: none;
}

.menu-btn {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
}

.menu-btn span:nth-child(2) {
    width: 70%;
}

.brand {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    pointer-events: auto;
}

/* === SIDEBAR === */
.sidebar-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60%;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    mix-blend-mode: difference;
    color: white;
    pointer-events: none;
}

.sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    white-space: nowrap;
}

/* === КАРТИНКИ (стек, одна поверх другой) === */
.images-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    will-change: opacity;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-image.active {
    opacity: 1;
    z-index: 2;
}

.bg-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

/* === ТЕКСТОВЫЙ СЛОЙ === */
.text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 100px 30px 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-on-dark);
    pointer-events: none;
}

.text-slide .category-label,
.text-slide .main-title,
.text-slide .description,
.text-slide .price-block,
.text-slide .cta-btn,
.text-slide .cta-menu,
.text-slide .index-number {
    opacity: 0;
    visibility: hidden;
}

/* === ТИПОГРАФИКА === */
.category-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-label .line {
    width: 0;
    height: 1px;
    background: white;
    display: inline-block;
    transition: width 0.6s var(--anim-easing);
}

.text-slide.active .category-label .line {
    width: 40px;
    transition-delay: 0.55s;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-transform: capitalize;
}

.description {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    max-width: 280px;
    margin-bottom: 16px;
    opacity: 0.9;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 15px;
}

.price-block {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.price-block .currency {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: fit-content;
    min-width: 200px;
}

.cta-btn {
    background: #FFFFFF;
    color: #000000;
    border: none;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.cta-btn:active {
    transform: scale(0.98);
}

.cta-menu {
    background: #FFFFFF;
    color: #000000;
    border: none;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.2s;
}

.cta-menu:active {
    transform: scale(0.98);
}

.index-number {
    position: absolute;
    bottom: 40px;
    right: 20px;
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -5px;
    color: #ffffff;
}

/* === ПРОГРЕСС === */
.progress-container {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60%;
    height: 2px;
    background: rgba(255,255,255,0.15);
    z-index: 50;
    border-radius: 1px;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    background: #ffffff;
    width: 0%;
    border-radius: 1px;
    transition: width 0.5s var(--anim-easing);
}

/* === FULLSCREEN МЕНЮ === */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.menu-overlay.open {
    pointer-events: auto;
    visibility: visible;
}

.menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.menu-overlay.open .menu-backdrop {
    opacity: 1;
}

.menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1a1a 100%);
    transform: translateX(-100%);
    transition: transform 0.5s var(--anim-easing);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
}

.menu-overlay.open .menu-panel {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 28px;
    right: 24px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: white;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

.menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-nav li {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.4s ease, transform 0.5s var(--anim-easing);
}

.menu-overlay.open .menu-nav li {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay.open .menu-nav li:nth-child(1) { transition-delay: 0.15s; }
.menu-overlay.open .menu-nav li:nth-child(2) { transition-delay: 0.25s; }
.menu-overlay.open .menu-nav li:nth-child(3) { transition-delay: 0.35s; }

.menu-nav a {
    display: block;
    padding: 20px 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s, padding-left 0.3s var(--anim-easing);
}

.menu-nav a:hover {
    color: rgba(255, 255, 255, 0.6);
    padding-left: 15px;
}

.menu-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.menu-overlay.open .menu-label {
    opacity: 1;
    transform: translateY(0);
}

/* === СТРЕЛКА === */
.nav-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 50;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.arrow-graphic {
    width: 30px;
    height: 1px;
    background: white;
    position: relative;
}
.arrow-graphic::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid white;
    border-right: 1px solid white;
    transform: rotate(45deg);
}

/* ======================
   АНИМАЦИИ ТЕКСТА
   ====================== */

@keyframes catIn {
    0%   { opacity: 0; transform: translateY(50px) skewY(3deg); filter: blur(8px); }
    100% { opacity: 0.9; transform: translateY(0) skewY(0); filter: blur(0); }
}
@keyframes titleIn {
    0%   { opacity: 0; transform: translateY(70px) scale(0.92); filter: blur(12px); letter-spacing: 8px; }
    60%  { letter-spacing: -1px; }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: -1px; }
}
@keyframes descIn {
    0%   { opacity: 0; transform: translateX(-30px); filter: blur(6px); }
    100% { opacity: 0.9; transform: translateX(0); filter: blur(0); }
}
@keyframes btnIn {
    0%   { opacity: 0; transform: translateY(25px) scale(0.85); }
    70%  { transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes idxIn {
    0%   { opacity: 0; transform: translateX(50px) scale(1.15); filter: blur(10px); }
    100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes catOut {
    0%   { opacity: 0.9; transform: translateY(0) skewY(0); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-35px) skewY(-2deg); filter: blur(6px); }
}
@keyframes titleOut {
    0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-45px) scale(0.96); filter: blur(10px); }
}
@keyframes descOut {
    0%   { opacity: 0.9; transform: translateX(0); filter: blur(0); }
    100% { opacity: 0; transform: translateX(25px); filter: blur(6px); }
}
@keyframes btnOut {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(18px) scale(0.85); }
}
@keyframes idxOut {
    0%   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translateX(-35px) scale(0.85); filter: blur(8px); }
}

/* Активный слайд — каскадный вход */
.text-slide.active .category-label {
    opacity: 0; visibility: visible;
    animation: catIn 0.65s var(--anim-easing) 0.08s forwards;
}
.text-slide.active .main-title {
    opacity: 0; visibility: visible;
    animation: titleIn 0.8s var(--anim-easing) 0.18s forwards;
}
.text-slide.active .description {
    opacity: 0; visibility: visible;
    animation: descIn 0.65s var(--anim-easing) 0.35s forwards;
}
.text-slide.active .price-block {
    opacity: 0; visibility: visible;
    animation: descIn 0.6s var(--anim-easing) 0.42s forwards;
}
.text-slide.active .cta-btn {
    opacity: 0; visibility: visible;
    animation: btnIn 0.55s var(--anim-easing) 0.5s forwards;
}
.text-slide.active .cta-menu {
    opacity: 0; visibility: visible;
    animation: btnIn 0.55s var(--anim-easing) 0.58s forwards;
}
.text-slide.active .index-number {
    opacity: 0; visibility: visible;
    animation: idxIn 0.7s var(--anim-easing) 0.12s forwards;
}

/* Уходящий слайд — каскадный выход */
.text-slide.leaving .category-label {
    visibility: visible;
    animation: catOut 0.35s ease-in forwards;
}
.text-slide.leaving .main-title {
    visibility: visible;
    animation: titleOut 0.35s ease-in 0.03s forwards;
}
.text-slide.leaving .description {
    visibility: visible;
    animation: descOut 0.3s ease-in 0.05s forwards;
}
.text-slide.leaving .price-block {
    visibility: visible;
    animation: descOut 0.3s ease-in 0.04s forwards;
}
.text-slide.leaving .cta-btn {
    visibility: visible;
    animation: btnOut 0.25s ease-in 0.02s forwards;
}
.text-slide.leaving .cta-menu {
    visibility: visible;
    animation: btnOut 0.25s ease-in 0.02s forwards;
}
.text-slide.leaving .index-number {
    visibility: visible;
    animation: idxOut 0.35s ease-in forwards;
}

/* === ПЕРЕКЛЮЧЕНИЕ ЭКРАНОВ (Меню ↔ Профиль) === */
.app-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s var(--anim-easing);
}
.app-view:not(.active) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.app-view.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.view-profile {
    background-color: #000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* === ЭКРАН ПРОФИЛЯ (1:1 с Профиль.html) === */
.view-profile .bg-static.profile-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.view-profile .bg-static.profile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Чуть темнее, чтобы читался текст формы */
}
.view-profile .bg-static.profile-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

/* === КОНТЕНТ ПРОФИЛЯ === */
.view-profile .profile-layer {
    position: relative;
    z-index: 10;
    min-height: 100%;
    padding: 120px 30px 60px 60px;
    display: flex;
    flex-direction: column;
    color: var(--text-on-dark);
}

/* === ТИПОГРАФИКА (1:1 с Профиль.html) === */
.view-profile .profile-layer .category-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: catIn 0.65s var(--anim-easing) 0.08s forwards;
}
.view-profile .profile-layer .category-label .line {
    width: 0;
    height: 1px;
    background: white;
    display: inline-block;
    animation: lineGrow 0.6s var(--anim-easing) 0.6s forwards;
}
.view-profile .profile-layer .main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -1px;
    text-transform: capitalize;
    opacity: 0;
    animation: titleIn 0.8s var(--anim-easing) 0.18s forwards;
}

/* === TELEGRAM ПРОФИЛЬ === */
.view-profile .tg-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
    opacity: 0;
    animation: descIn 0.65s var(--anim-easing) 0.28s forwards;
}
.tg-avatar-placeholder {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.view-profile .tg-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tg-avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
}
.view-profile .tg-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.view-profile .tg-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}
.view-profile .tg-username {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}
.view-profile .tg-id {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

/* === ФОРМА === */
.view-profile .profile-form {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    animation: descIn 0.65s var(--anim-easing) 0.35s forwards;
}
.view-profile .input-group {
    position: relative;
}
.view-profile .input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    transition: border-color 0.3s ease;
    border-radius: 0; /* iOS fix */
    outline: none;
    -webkit-user-select: text;
    user-select: text;
}
.view-profile .input-field:focus {
    border-bottom-color: #ffffff;
}
.view-profile .input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}
.view-profile select.input-field {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.view-profile select.input-field option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}
.view-profile .input-group .prof-select-arrow {
    position: absolute;
    right: 0; top: 12px;
    width: 6px; height: 6px;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(45deg);
    pointer-events: none;
}
.view-profile .input-label {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    pointer-events: none;
}
.view-profile .profile-save-btn {
    background: #FFFFFF;
    color: #000000;
    border: none;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    cursor: pointer;
    margin-top: 20px;
    opacity: 0;
    animation: btnIn 0.55s var(--anim-easing) 0.5s forwards;
    transition: transform 0.2s;
}
.view-profile .profile-save-btn:active {
    transform: scale(0.98);
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .view-profile .profile-layer {
        padding: 110px 20px 60px 30px;
    }
    .view-profile .profile-layer .main-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

/* =========================================================
   ЭКРАН: ПОЛНОЕ МЕНЮ (1:1 с полное меню.html)
   Все классы с префиксом fm- чтобы не конфликтовать
   ========================================================= */
.view-fullmenu {
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.view-fullmenu .header,
body.fullmenu-active .header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--text-primary);
    pointer-events: auto;
}
body.fullmenu-active .header .menu-btn span {
    background-color: var(--text-primary);
}

/* Sidebar в полном меню (1:1 с оригиналом) */
.fm-sidebar-indicator {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60%;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    pointer-events: none;
}
.fm-sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.2;
    white-space: nowrap;
}

/* Контент */
.fm-page-content {
    padding: 100px 20px 80px 60px;
}
.fm-page-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.1;
    color: #000;
}
.fm-page-subtitle {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 40px;
}

/* Сетка карточек */
.fm-meal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.fm-meal-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--anim-easing);
    opacity: 0;
    transform: translateY(40px);
}
.fm-meal-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.7s var(--anim-easing);
}
.fm-meal-card:active {
    transform: scale(0.96);
}
.fm-meal-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.5s var(--anim-easing), filter 0.3s;
}
.fm-meal-card:hover .fm-meal-thumb {
    transform: scale(1.05);
    filter: brightness(0.75);
}
.fm-meal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
}
.fm-meal-day {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.7;
}
.fm-meal-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.fm-meal-detail {
    font-size: 10px;
    font-weight: 300;
    opacity: 0.6;
    margin-top: 4px;
    line-height: 1.4;
}
.fm-meal-card.fm-full {
    grid-column: 1 / -1;
    aspect-ratio: 1;
}

/* Разделитель дней */
.fm-day-divider {
    grid-column: 1 / -1;
    padding: 30px 0 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.fm-day-num {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: #000;
}
.fm-day-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fm-day-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
}
.fm-day-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    color: #000;
}
.fm-day-line {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

/* Floating badge */
.fm-floating-badge {
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: black;
    color: white;
    padding: 14px 22px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 110;
    cursor: pointer;
    transition: transform 0.2s;
    display: none;
}
.view-fullmenu.active .fm-floating-badge {
    display: block;
}
.fm-floating-badge:active {
    transform: scale(0.96);
}

/* === МОДАЛЬНОЕ ОКНО БЛЮДА === */
.fm-meal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0s 0.35s;
}
.fm-meal-modal.open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0s 0s;
}
/* Скрываем хедер и sidebar когда модалка блюда открыта */
.fm-meal-modal.open ~ .fm-page-content,
body.modal-open .header,
body.modal-open .fm-sidebar-indicator {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.fm-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.5s var(--anim-easing);
}
.fm-meal-modal.open .fm-modal-container {
    transform: translateY(0);
}
.fm-modal-hero {
    width: 100%;
    height: 38vh;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.fm-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-modal-hero .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.fm-modal-close-old-hidden {
    position: absolute;
    top: 50px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}
.fm-modal-close-icon {
    width: 14px;
    height: 14px;
    position: relative;
}
.fm-modal-close-icon::before,
.fm-modal-close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
}
.fm-modal-close-icon::before { transform: rotate(45deg); }
.fm-modal-close-icon::after { transform: rotate(-45deg); }
.fm-modal-body {
    flex: 1;
    background: white;
    margin-top: -30px;
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 2;
    padding: 36px 28px 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.fm-modal-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    display: block;
}
.fm-modal-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.15;
    color: #000;
}
.fm-modal-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
    margin-bottom: 24px;
}
.fm-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
    padding: 18px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.fm-nutrition-grid .nutrition-item { text-align: center; }
.fm-nutrition-grid .nutrition-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}
.fm-nutrition-grid .nutrition-label {
    display: block;
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 1px;
}
.fm-modal-section {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 26px 0 14px 0;
    display: flex;
    align-items: center;
    color: #000;
}
.fm-modal-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
    margin-left: 16px;
}
.fm-ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.fm-ingredient-tag {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #000;
}
.fm-allergen-box {
    background: #fff8f0;
    border-left: 3px solid #f59e0b;
    padding: 12px 15px;
    font-size: 11px;
    color: #92400e;
    margin-top: 20px;
    font-weight: 600;
    line-height: 1.5;
}

/* Кнопка «Закрыть» в модалке блюда — поверх контента */
.fm-modal-close-btn {
    position: absolute;
    bottom: 24px;
    right: 20px;
    z-index: 10;
    background: black;
    color: white;
    padding: 14px 22px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}
.fm-modal-close-btn:active {
    transform: scale(0.96);
}

/* =========================================================
   ЭКРАН: СВОЙ ПЛАН / КОНСТРУКТОР (1:1 с 10b.html)
   Все классы с префиксом cp-
   ========================================================= */
.view-plan {
    background-color: #0a0a0a;
    color: #fff;
    overflow: hidden;
}
body.plan-active {
    overflow: hidden;
    touch-action: pan-y;
}
body.plan-active .header {
    color: #fff;
    background: transparent;
    border-bottom: none;
    pointer-events: auto;
}
body.plan-active .header .menu-btn span {
    background-color: #fff;
}

/* Фон */
.cp-bg-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.cp-bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.05);
    transition: transform 10s ease;
}
.cp-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Контент */
.cp-app-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding-top: 90px;
    display: flex;
    flex-direction: column;
}

/* Дни */
.cp-days-wrapper {
    padding: 0 24px;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.cp-days-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.cp-days-scroller::-webkit-scrollbar { display: none; }

.cp-day-chip {
    min-width: 60px;
    height: 80px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--anim-easing);
    opacity: 0.6;
    color: #fff;
}
.cp-day-chip.active {
    background: #ffffff;
    color: #000000;
    opacity: 1;
    transform: scale(1.05);
    border-color: #ffffff;
}
.cp-day-chip .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.cp-day-chip .num {
    font-size: 24px;
    font-weight: 700;
}

/* Блюда */
.cp-meals-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 24px 140px 24px;
    scrollbar-width: none;
}
.cp-meals-container::-webkit-scrollbar { display: none; }

.cp-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

/* Карточка блюда */
.cp-meal-card {
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,255,255,0.2);
    padding: 20px;
    margin-bottom: 15px;
    transition: background 0.3s;
    position: relative;
    cursor: pointer;
    color: #fff;
}
.cp-meal-card:active { background: rgba(255,255,255,0.08); }
.cp-meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cp-meal-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}
.cp-meal-cal {
    font-size: 12px;
    opacity: 0.7;
}
.cp-selected-dish {
    font-size: 13px;
    color: #aaa;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cp-selected-dish.filled {
    color: #fff;
    font-weight: 500;
}
.cp-add-icon {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 8px;
}

/* Перекусы */
.cp-snacks-section { margin-top: 30px; }
.cp-snacks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.cp-snacks-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    font-weight: 700;
    color: #fff;
}
.cp-snacks-counter {
    font-size: 11px;
    opacity: 0.4;
    font-weight: 500;
    color: #fff;
}
.cp-snack-card {
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,255,255,0.12);
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    cursor: pointer;
    color: #fff;
}
.cp-snack-card:active { background: rgba(255,255,255,0.08); }
.cp-snack-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.cp-snack-card-name {
    font-size: 14px;
    font-weight: 600;
}
.cp-snack-card-meta {
    font-size: 11px;
    opacity: 0.5;
}
.cp-snack-remove-btn {
    width: 28px; height: 28px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    flex-shrink: 0;
    margin-left: 12px;
}
.cp-snack-remove-btn:hover {
    border-color: rgba(255,80,80,0.5);
    color: rgba(255,80,80,0.8);
}
.cp-add-snack-btn {
    border: 1px dashed rgba(255,255,255,0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    text-align: left;
}
.cp-add-snack-btn:active { background: rgba(255,255,255,0.05); }
.cp-add-snack-btn .cp-add-icon { border-color: rgba(255,255,255,0.25); }

/* Нижняя панель */
.cp-total-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: #ffffff;
    color: #000000;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    display: none;
}
.view-plan.active .cp-total-bar { display: flex; }
.cp-total-info {
    display: flex;
    flex-direction: column;
}
.cp-total-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.6;
}
.cp-total-values {
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}
.cp-order-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}
.cp-order-btn.disabled {
    background: #444444;
    color: rgba(255,255,255,0.3);
    cursor: default;
    pointer-events: none;
}

/* Модалка конструктора */
.cp-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}
.cp-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.cp-modal-sheet {
    width: 100%;
    height: 93vh;
    background: #0a0a0a;
    border-top: 2px solid rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.45s var(--anim-easing);
    overflow: hidden;
}
.cp-modal-overlay.open .cp-modal-sheet {
    transform: translateY(0);
}
.cp-modal-header {
    padding: 20px 24px 16px;
    flex-shrink: 0;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cp-modal-handle {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    margin: 0 auto 16px;
}
.cp-modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cp-modal-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}
.cp-modal-close-btn {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cp-modal-close-btn:active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.cp-dish-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 40px;
    scrollbar-width: none;
}
.cp-dish-list-scroll::-webkit-scrollbar { display: none; }

/* Карточки блюд в модалке */
.cp-dish-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: stretch;
    color: #fff;
}
.cp-dish-card:active { background: rgba(255,255,255,0.08); }
.cp-dish-card-img {
    width: 90px; height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.cp-dish-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.cp-dish-card-top {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cp-dish-card-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}
.cp-dish-card-weight {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.cp-dish-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cp-dish-card-kbju {
    display: flex;
    gap: 10px;
}
.cp-kbju-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.cp-kbju-val {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.cp-kbju-label {
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.25);
    font-weight: 700;
}
.cp-dish-card-price {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.cp-fade-in { animation: cpFadeIn 0.4s ease forwards; }
@keyframes cpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === ПУСТОЕ СОСТОЯНИЕ FULLMENU === */
.fm-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.fm-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.35;
    color: #999;
}
.fm-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.fm-empty-sub {
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    line-height: 1.5;
}

/* Карточка без фото в fullmenu */
.fm-meal-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}
.fm-meal-no-image span {
    line-height: 1.4;
}

/* ══════════════════════════════════
   ЭКРАН РЕГИСТРАЦИИ (OVERLAY)
══════════════════════════════════ */
.reg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #0a0a0a;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}
.reg-bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.reg-bg-layer img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.reg-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}
.reg-header {
    position: absolute;
    top: 0; right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 150;
    color: white;
}
.reg-header .brand {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}
.reg-sidebar {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60%;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    mix-blend-mode: difference;
    color: white;
}
.reg-sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    white-space: nowrap;
}
.reg-form-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 30px 40px 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.reg-form-container::-webkit-scrollbar { display: none; }
.reg-form-content {
    max-width: 400px;
    width: 100%;
}
/* Анимации */
@keyframes regCatIn {
    0%   { opacity: 0; transform: translateY(50px) skewY(3deg); filter: blur(8px); }
    100% { opacity: 0.9; transform: translateY(0) skewY(0); filter: blur(0); }
}
@keyframes regTitleIn {
    0%   { opacity: 0; transform: translateY(70px) scale(0.92); filter: blur(12px); letter-spacing: 8px; }
    60%  { letter-spacing: -1px; }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: -1px; }
}
@keyframes regFieldIn {
    0%   { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes regBtnIn {
    0%   { opacity: 0; transform: translateY(25px) scale(0.85); }
    70%  { transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.reg-cat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    opacity: 0;
    animation: regCatIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.reg-line {
    width: 40px; height: 1px;
    background: white;
    display: inline-block;
}
.reg-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -1px;
    text-transform: capitalize;
    color: #fff;
    opacity: 0;
    animation: regTitleIn 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}
.reg-input-group {
    margin-bottom: 25px;
    position: relative;
    opacity: 0;
}
.reg-ig-1 { animation: regFieldIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.4s forwards; }
.reg-ig-2 { animation: regFieldIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.5s forwards; }
.reg-ig-3 { animation: regFieldIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.6s forwards; }
.reg-ig-4 { animation: regFieldIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.7s forwards; }
.reg-ig-5 { animation: regFieldIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.8s forwards; }
.reg-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    display: block;
}
.reg-input-group input,
.reg-input-group select,
.reg-input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: white;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.reg-input-group textarea {
    resize: none;
    height: 40px;
}
.reg-input-group input:focus,
.reg-input-group select:focus,
.reg-input-group textarea:focus {
    border-color: #ffffff;
    outline: none;
}
.reg-input-group select {
    cursor: pointer;
}
.reg-input-group select option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}
.reg-select-wrap {
    position: relative;
}
.reg-select-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 15px;
    width: 6px; height: 6px;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(45deg);
    pointer-events: none;
}
.reg-submit-btn {
    background: #FFFFFF;
    color: #000000;
    border: none;
    padding: 18px 40px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    cursor: pointer;
    position: relative;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    animation: regBtnIn 0.6s cubic-bezier(0.22,1,0.36,1) 1s forwards;
    transition: transform 0.2s;
}
.reg-submit-btn:active {
    transform: scale(0.98);
}
/* Анимация ухода overlay */
@keyframes regSlideOut {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-100%); }
}
.reg-overlay.reg-closing {
    animation: regSlideOut 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
/* Mobile */
@media (max-width: 480px) {
    .reg-form-container {
        padding: 100px 20px 40px 60px;
    }
    .reg-title {
        font-size: 28px;
    }
    .reg-sidebar {
        width: 30px;
    }
    .reg-sidebar-text {
        font-size: 9px;
    }
}

/* ══════════════════════════════════
   МОДАЛКА ЗАКАЗА
══════════════════════════════════ */
.order-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99990;
}
.order-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    animation: orderFadeIn 0.2s ease;
}
@keyframes orderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.order-sheet {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    max-height: 80vh;
    background: #0a0a0a;
    padding: 20px 24px 30px;
    overflow-y: auto;
    animation: orderSlideUp 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes orderSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.order-sheet-handle {
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.15);
    margin: 0 auto 20px;
}
.order-sheet-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}
.order-summary {
    margin-bottom: 24px;
}
.order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.order-row-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.order-row-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    max-width: 60%;
}
.order-total-row {
    border-bottom: none;
    padding-top: 16px;
}
.order-total-row .order-row-label {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}
.order-total-row .order-row-value {
    font-size: 20px;
    font-weight: 900;
}
.order-sheet-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.order-confirm-btn {
    width: 100%;
    background: #FFFFFF;
    color: #000;
    border: none;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}
.order-confirm-btn:active {
    transform: scale(0.98);
}
.order-confirm-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}
.order-cancel-btn {
    width: 100%;
    background: transparent;
    color: rgba(255,255,255,0.4);
    border: none;
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

/* УСПЕХ */
.order-success-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99991;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-success-content {
    text-align: center;
    padding: 40px;
    animation: orderSuccessIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes orderSuccessIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.order-success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
}
.order-success-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.order-success-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin-bottom: 30px;
}
.order-success-btn {
    background: #FFFFFF;
    color: #000;
    border: none;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}
