body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f3e5f5; padding-bottom: 90px; overflow-y: scroll; }
.container { max-width: 600px; margin: 0 auto; padding: 15px; }

.step { display: none; animation: fadeIn 0.3s; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Единая компактная шапка для всех экранов */
.form-header { 
    background: #fff; 
    border-top: 10px solid #673ab7; 
    border-radius: 12px; 
    padding: 15px 20px; /* Уменьшили с 25px */
    margin-bottom: 12px; /* Уменьшили с 15px */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.form-header h1, .form-header h2 { 
    margin: 0; 
    font-size: 20px; /* Уменьшили с 24/22px */
    color: #202124; 
    line-height: 1.2;
}
.form-header p { 
    margin: 0; 
    color: #5f6368; 
    line-height: 1.35; /* Уплотнили с 1.5 */
    font-size: 14px; /* Уменьшили шрифт описаний */
}

.view-toggle { display: flex; gap: 10px; margin-bottom: 15px; }
.view-toggle button { flex: 1; background: #fff; color: #673ab7; border: 1px solid #673ab7; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.view-toggle button.active { background: #673ab7; color: #fff; }

.category-header { background: #673ab7; color: white; padding: 14px 18px; border-radius: 8px; margin: 15px 0 12px 0; font-size: 16px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.category-info-wrapper { display: flex; align-items: center; gap: 10px; }
.category-count { font-size: 12px; background: rgba(255, 255, 255, 0.25); padding: 3px 9px; border-radius: 12px; font-weight: normal; }
.category-arrow { font-size: 14px; transition: transform 0.3s ease; }
.category-wrapper .category-content { display: block; }
.category-wrapper.collapsed .category-content { display: none; }
.category-wrapper.collapsed .category-arrow { transform: rotate(-90deg); }

.menu-item { background: #fff; margin-bottom: 25px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e0e0e0; transition: background-color 0.5s ease; }

/* --- ПАТЧ КОМПАКТНОГО МЕНЮ --- */
.item-content { padding: 15px; } /* Уменьшили отступы внутри карточки */
.item-content h3 { margin: 0 0 10px 0; font-size: 20px; color: #333; }
/* Ограничиваем описание тремя строками */
.item-description { 
    font-size: 14px; color: #444; line-height: 1.4; margin-bottom: 10px; 
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Класс для полного раскрытия описания */
.item-description.expanded { -webkit-line-clamp: unset; display: block; }
.btn-toggle { background: transparent; color: #673ab7; border: none; padding: 0; font-size: 14px; cursor: pointer; text-decoration: none; border-bottom: 1px dashed #673ab7; margin-bottom: 15px; font-weight: bold; transition: all 0.2s;}

.more-info { background: #fafafa; padding: 16px 20px; border-radius: 12px; margin-bottom: 15px; border: 1px solid #eaeaea; display:none;}
.info-section { margin-bottom: 16px; line-height: 1.6; }
.info-heading { font-weight: 600; color: #222; font-size: 14px; margin-bottom: 4px;}
.info-text { font-size: 14px; color: #333; }

/* Компактные строки выбора фасовки и цены */
.variant-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px dashed #e0e0e0; } 
.variant-info { flex: 1; font-size: 14px; color: #111; line-height: 1.2;} 
.variant-price { font-weight: bold; color: #673ab7; font-size: 16px; width: 65px; text-align: center; margin: 0 8px; }

.controls { display: flex; align-items: center; gap: 12px; }
/* Компактные кнопки + и - */
.controls button { background: #673ab7; color: white; border: none; width: 30px; height: 30px; border-radius: 6px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; } 
.controls span { font-size: 16px; font-weight: bold; min-width: 16px; text-align: center;}

/* ========================================================= */
/* --- ЛАЙТБОКС ДЛЯ КАРТИНОК (Всплывающее окно) --- */
/* ========================================================= */

/* Фиксируем высоту обертки, чтобы меню не схлопывалось при раскрытии фото */
.image-wrapper { position: relative; width: 100%; height: 220px; cursor: pointer; overflow: hidden; }

/* Стандартная картинка в меню */
.item-image { width: 100%; height: 220px; display: block; object-fit: cover; border-bottom: 1px solid #eee; background: #f9f9f9; }

/* Плавающая лупа на маленьком фото */
.toggle-icon-container {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(255, 255, 255, 0.85); border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); pointer-events: none;
    z-index: 5;
}
.toggle-icon-container::after { content: "🔍+"; font-weight: bold; color: #333; }

/* --- ПАТЧ ГАЛЕРЕИ: Базовые стили --- */
.gallery-container::-webkit-scrollbar { display: none; }

/* --- СОСТОЯНИЕ РАСКРЫТОГО ЛАЙТБОКСА --- */
.image-wrapper.expanded { overflow: visible; }

/* Темный фон на весь экран */
.image-wrapper.expanded::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

/* Сама картинка (одиночная) по центру экрана поверх фона */
.image-wrapper.expanded .item-image {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 95vw; max-width: 800px; height: auto; max-height: 90vh;
    object-fit: contain; z-index: 10000;
    border: none; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease-out;
}

/* --- ПАТЧ ГАЛЕРЕИ: Стили для раскрытого состояния --- */
/* Растягиваем контейнер карусели на весь экран */
.image-wrapper.expanded .gallery-container { 
    position: fixed; top: 0; left: 0; 
    width: 100vw !important; height: 100vh !important; 
    z-index: 10000; 
    display: flex; align-items: center;
}
/* Картинки внутри раскрытой карусели не обрезаются */
.image-wrapper.expanded .gallery-container img { 
    object-fit: contain !important; 
    max-height: 100vh;
    background: transparent; 
}
/* ПРИНУДИТЕЛЬНО показываем и центрируем стрелочки в раскрытом виде */
.image-wrapper.expanded .gal-arrow { 
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 50px !important; height: 50px !important; 
    font-size: 24px; color: #fff !important; background: rgba(0,0,0,0.6) !important; 
    z-index: 10001; position: fixed !important;
}
/* Отодвигаем от краев, чтобы не прятались за системными скроллами */
.image-wrapper.expanded .gal-arrow.left { left: 15px !important; }
.image-wrapper.expanded .gal-arrow.right { right: 15px !important; }

/* Фиксируем блок с точками внизу экрана */
.image-wrapper.expanded > div:nth-child(3) { 
    position: fixed !important; bottom: 20px !important; z-index: 10001 !important;
}
/* Увеличиваем точки индикатора */
.image-wrapper.expanded .gal-dot { 
    width: 10px !important; height: 10px !important; border: 1px solid rgba(255,255,255,0.5); 
}

/* Крестик закрытия в правом верхнем углу экрана */
.image-wrapper.expanded .toggle-icon-container {
    position: fixed; top: 20px; right: 20px; bottom: auto;
    width: 44px; height: 44px; font-size: 20px;
    z-index: 10002; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease-out;
}
.image-wrapper.expanded .toggle-icon-container::after { content: "✖"; }

.form-block { 
    background: #fff; 
    /* ВЕРХ 12px | ПРАВО 20px | НИЗ 12px | ЛЕВО 20px */
    padding: 12px 20px 12px 20px; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.form-block label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 6px; /* Чуть подтянули поле ввода к заголовку */
    color: #202124;
}
input, textarea, select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-size: 16px; font-family: inherit;}
textarea { resize: vertical; min-height: 80px; }

.btn-nav { background: #673ab7; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: bold; margin-top: 10px; display: inline-block; }
.btn-submit { background: #4caf50; width: 100%; padding: 15px; font-size: 18px; margin-top: 10px; transition: all 0.3s ease; }

.btn-aux { background: #fff; color: #673ab7; border: 1px solid #673ab7; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: bold; cursor: pointer; transition: background 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;}
.btn-aux:hover { background: #f3e5f5; }

/* Новая красно-белая кнопка для заказов */
.btn-red-outline { background: #fff; color: #d32f2f; border: 1px solid #d32f2f; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: bold; cursor: pointer; transition: background 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;}
.btn-red-outline:hover { background: #ffebee; }

/* Убираем лишние отступы у кнопок внутри нижней панели */
.cart-actions button { margin: 0 !important; padding: 10px 14px; }

.summary-block { background: #e8f5e9; padding: 15px; border-radius: 8px; border: 1px solid #c8e6c9; margin-bottom: 15px; font-size: 16px; color: #2e7d32; line-height: 1.6; transition: transform 0.2s;}
.summary-block span { font-weight: bold; font-size: 18px; display: block; margin-top: 5px; }
.loader { text-align: center; padding: 40px; font-size: 18px; color: #673ab7; font-weight: bold; }

.auth-container { display: none; text-align: center; padding: 20px 15px; background: #fff; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px dashed #673ab7; animation: fadeIn 0.5s;}

.upsell-block { background: #fff8e1; padding: 18px 10px 18px 18px; border-radius: 12px; margin-bottom: 15px; border: 2px dashed #ffb300; animation: fadeIn 0.5s; box-shadow: 0 4px 10px rgba(255, 179, 0, 0.15); }
.upsell-title { font-weight: bold; color: #f57c00; font-size: 17px; margin-bottom: 8px; text-align: center; padding-right: 8px;}
.upsell-text { font-size: 14px; color: #e65100; margin-bottom: 15px; line-height: 1.4; text-align: center; padding-right: 8px;}

/* ОБЕРТКА ДЛЯ КАРУСЕЛИ СО СТРЕЛОЧКАМИ */
.upsell-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff9800;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0px 0px 4px rgba(255, 255, 255, 0.9), 0px 0px 8px rgba(255, 255, 255, 0.9);
}
.left-arrow { left: -12px; }
.right-arrow { right: -5px; }

.upsell-items { 
    display: flex; gap: 10px; 
    overflow-x: auto; 
    overflow-y: hidden;
    padding-bottom: 15px; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    padding-right: 18px;
    scrollbar-width: thin; 
    scrollbar-color: #ff9800 #ffe082; 
    width: 100%;
}

.upsell-items::-webkit-scrollbar { height: 6px !important; display: block !important; -webkit-appearance: none !important; }
.upsell-items::-webkit-scrollbar-track { background: #ffe082 !important; border-radius: 10px; margin: 0 5px; }
.upsell-items::-webkit-scrollbar-thumb { background-color: #ff9800 !important; border-radius: 10px; border: 1px solid #ffe082; }

.upsell-item { flex: 0 0 115px; position: relative; cursor: pointer; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; background: #fff; border: 1px solid #ffe082; display: flex; flex-direction: column;}
.upsell-item:active { transform: scale(0.95); }
.upsell-img { width: 100%; height: 115px; object-fit: cover; display: block; transition: opacity 0.3s; }
.upsell-add { position: absolute; top: 4px; right: 4px; background: #4caf50; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.upsell-price { font-size: 13px; font-weight: bold; color: #673ab7; text-align: center; padding: 6px 2px; flex-grow: 1; display: flex; align-items: center; justify-content: center; background: #fdfdfd;}

.cart-sticky { 
    position: fixed; bottom: 0; left: 0; right: 0; 
    background: #fff; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); 
    padding: 15px 20px; 
    display: none; 
    justify-content: space-between; align-items: center; z-index: 1000;
    
    /* Точное выравнивание с основным контейнером */
    max-width: 630px; 
    box-sizing: border-box; 
    margin: 0 auto;
}
/* Адаптивная ширина для суммы */
.cart-total { font-size: 16px; font-weight: bold; color: #333; white-space: nowrap; flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* Единый жесткий размер для всех кнопок в нижней панели */
.cart-actions { display: flex; gap: 8px; }
.cart-actions button { 
    margin: 0 !important; 
    padding: 0 !important; 
    width: 110px; /* Ширина по самой длинной кнопке */
    height: 40px; /* Единая высота защитит от прыжков */
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    box-sizing: border-box; 
    font-size: 16px; 
    line-height: 1.1;
    text-align: center;
}
.btn-cart-checkout { background: #4caf50; color: white; border: none; padding: 12px 16px; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: bold; transition: all 0.2s; }
/* КАСТОМНОЕ МОДАЛЬНОЕ ОКНО */
.modal-overlay { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.6); 
    display: none; align-items: center; justify-content: center; 
    z-index: 9999; animation: fadeIn 0.2s; 
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box { 
    background: #fff; padding: 25px; border-radius: 16px; 
    width: 100%; max-width: 380px; text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-title { font-size: 20px; font-weight: bold; margin-bottom: 12px; color: #202124; }
.modal-title.danger { color: #d32f2f; }
.modal-title.success { color: #2e7d32; }

.modal-text { font-size: 15px; color: #5f6368; margin-bottom: 25px; line-height: 1.5; }

.modal-actions { display: flex; gap: 12px; justify-content: center; }
.modal-btn { 
    padding: 12px; border-radius: 8px; font-size: 15px; font-weight: bold; 
    cursor: pointer; border: none; flex: 1; transition: opacity 0.2s;
}
.modal-btn:active { opacity: 0.8; }
.modal-btn-cancel { background: #f1f3f4; color: #3c4043; }
.modal-btn-danger { background: #d32f2f; color: white; }
.modal-btn-success { background: #4caf50; color: white; }

/* ========================================================= */
/* --- ГЛОБАЛЬНЫЙ ЛОАДЕР (Всплывающее окно загрузки) --- */
/* ========================================================= */
.global-loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
}
.global-loader.hidden {
  display: none;
}
.loader-content {
  background: #fff;
  padding: 25px 35px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-width: 80%;
}
.loader-content h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.3rem;
}
.loader-content p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}
/* --- ПАТЧ: Стили для режима редактирования --- */
.edit-strip { position: fixed; bottom: 72px; left: 0; right: 0; max-width: 630px; margin: 0 auto; height: 38px; background-color: #673ab7; color: #ffffff; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif; font-size: 13px; font-weight: 500; z-index: 999; box-shadow: 0 -2px 10px rgba(103, 58, 183, 0.4); }
.edit-strip.hidden { display: none; }
.edit-strip-content { display: flex; align-items: center; gap: 8px; }
.edit-indicator { width: 8px; height: 8px; background-color: #ff9f0a; border-radius: 50%; box-shadow: 0 0 4px #ff9f0a; animation: pulse 2s infinite; }
.edit-strip-cancel { background: none; border: none; color: #ff453a; font-size: 16px; cursor: pointer; padding: 4px 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* ПАТЧ: Жесткая красная рамка для пустых чекбоксов */
input[type="checkbox"][id^="privacy-checkbox-"]:not(:checked) {
    outline: 2px solid #d32f2f !important; /* Толстая красная линия */
    outline-offset: 1px !important; /* Отступ от самого чекбокса, чтобы не сливалось */
    border-radius: 2px !important;
}
/* ========================================= */
/* --- ПАТЧ: ПЛИТОЧНЫЙ ДИЗАЙН (ВЕРСИЯ 7.5.4) --- */
/* ========================================= */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* Чуть уменьшили просвет между плитками */
    margin-top: 10px;
    margin-bottom: 20px;
}

.category-tile {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.category-tile:active { transform: scale(0.96); }

.tile-img-wrapper {
    height: 70px; /* БЫЛО 100px! Делаем картинки узкими и панорамными, как на макете */
    width: 100%;
    background: #f5f5f5;
}

.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-content {
    padding: 8px 10px; /* Уплотняем внутренние отступы */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    background: #fff;
}

.tile-title {
    font-size: 13px; /* Чуть мельче, чтобы длинные названия влезали */
    font-weight: bold;
    color: #202124;
    line-height: 1.15;
    padding-right: 4px;
}

.tile-arrow {
    background: #673ab7;
    color: #fff;
    width: 18px; /* Уменьшили стрелочку */
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

/* --- СТИЛИ ДЛЯ ПЛИТКИ "ЗАМОРОЗКА" --- */
.frozen-tile {
    grid-column: 1 / -1;
    flex-direction: row;
    height: 102px; /* БЫЛО 110px. Делаем плашку гораздо стройнее */
    background: linear-gradient(135deg, #e3f2fd, #e0f7fa);
    border: 1px solid #90caf9;
    position: relative;
}

.frozen-bg-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
}

.tile-img-frozen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.frozen-content {
    padding: 10px 12px;
    position: relative;
    z-index: 2;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.frozen-content .tile-title {
    font-size: 17px; /* Уменьшили заголовок заморозки */
    color: #0d47a1;
    margin-bottom: 3px;
}

.frozen-subtitle {
    font-size: 10px;
    color: #1565c0;
    margin-top: 2px;
    display: inline-block;
    border: 1px solid #90caf9;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    font-weight: bold;
    width: fit-content;
}

.frozen-icon-large {
    position: absolute; right: 10px; top: 10px;
    background: #fff; 
    width: 32px; height: 32px; /* Увеличили плашку */
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; /* Увеличили саму иконку */
    box-shadow: 0 2px 6px rgba(35, 100, 216, 0.25);
    z-index: 3;
    color: #2364d8; /* Благородный темный синий */
}
/* Бейдж заморозки поверх фото блюда */
.dish-snowflake-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2864e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 2;
    pointer-events: none; /* Чтобы бейдж не мешал кликать на фото для увеличения */
}

/* ========================================= */
/* --- АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ПК --- */
/* ========================================= */
@media (min-width: 600px) and (min-height: 700px) {
    .categories-grid {
        gap: 15px; /* Увеличиваем просвет между плитками */
        margin-top: 15px;
    }
    
    .category-tile {
        border-radius: 12px;
    }

    .tile-img-wrapper {
        height: 120px; /* Увеличиваем фото (было 70px) */
    }

    .tile-content {
        padding: 12px 15px;
    }

    .tile-title {
        font-size: 15px; /* Укрупняем шрифт (был 13px) */
    }

    .tile-arrow {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    /* --- Масштабирование заморозки --- */
    .frozen-tile {
        height: 160px; /* Синхронизируем высоту (было 102px) */
    }

    .frozen-content {
        padding: 15px 20px;
    }

    .frozen-content .tile-title {
        font-size: 20px; /* Был 17px */
        margin-bottom: 5px;
    }

    .frozen-subtitle {
        font-size: 12px;
        padding: 4px 8px;
    }

    .frozen-icon-large {
        width: 40px;
        height: 40px;
        font-size: 26px;
        right: 15px;
        top: 15px;
    }
}
/* === ПАТЧ: Умная подсветка заполненных полей === */

/* 1. Текстовые поля: если введено хоть что-то (placeholder скрыт) -> закрашиваем в серо-сиреневый */
.form-block input:not(:placeholder-shown),
.form-block textarea:not(:placeholder-shown) {
    background-color: #f4f0fa !important;
    border-color: #673ab7 !important;
}

/* 2. Выпадающий список: если выбран правильный вариант (не первая пустая строка) -> закрашиваем */
.form-block select:valid {
    background-color: #f4f0fa !important;
    border-color: #673ab7 !important;
}

/* 3. Фокус: когда клиент кликает в поле, возвращаем белый фон для удобства ввода + делаем яркую тень */
.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
    background-color: #ffffff !important;
    border-color: #673ab7 !important;
    box-shadow: 0 0 5px rgba(103, 58, 183, 0.4) !important;
    outline: none;
}
/* ПАТЧ: Моментальная окраска списков сразу после выбора */
.form-block select:valid:focus {
    background-color: #f4f0fa !important;
}