/* Общая раскладка — как в летней версии (max-w 3xl, две колонки недель). Цвета — в каждой теме. */
/* Шрифты — свои (Google Fonts в России тормозит и блокирует показ страницы). Inter и Rubik, кириллица + латиница. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body { font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.cal-is-open { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#app { position: relative; z-index: 2; }

.top { max-width: 768px; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; gap: 12px; }
.logo { display: grid; place-items: center; width: 44px; height: 44px; font: 900 13px "Rubik"; letter-spacing: -0.02em; }
.season { flex: 1; font: 700 11px "Rubik"; letter-spacing: 0.22em; text-transform: uppercase; }
.cal-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font: 700 12px "Rubik"; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 999px; transition: transform .15s, background .2s, box-shadow .2s; }
.cal-btn:active { transform: scale(.97); }
.cal-btn.big { padding: 14px 26px; margin-top: 22px; }

.main { max-width: 768px; margin: 0 auto; padding: 34px 16px 120px; }
.title { text-align: center; font: 900 clamp(64px, 14vw, 104px)/0.95 "Rubik"; text-transform: uppercase; letter-spacing: -0.02em; }
.sub { max-width: 420px; margin: 16px auto 0; text-align: center; font-size: 14px; line-height: 1.5; }
.name { display: block; width: 100%; margin-top: 30px; padding: 16px 20px; text-align: center; font: 700 20px "Rubik"; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; }

.weeks { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.weeks .wk { margin-bottom: 12px; font: 700 11px "Rubik"; letter-spacing: 0.25em; text-transform: uppercase; }
.days { display: flex; flex-direction: column; gap: 10px; }
.day { overflow: hidden; border-radius: 12px; transition: box-shadow .25s, transform .25s; }
.day-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; text-align: left; }
.date { display: flex; align-items: baseline; gap: 7px; }
.date b { font: 700 16px "Rubik"; font-variant-numeric: tabular-nums; }
.date i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .55; }
.badge { padding: 3px 8px; border-radius: 999px; font: 700 10px "Inter"; letter-spacing: .08em; text-transform: uppercase; }
.shifts { display: none; flex-direction: column; gap: 7px; padding: 4px 8px 10px; }
.day.open .shifts { display: flex; }
.day.open.just .shifts { animation: drop .24s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.shift { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; transition: all .18s; }
.shift .time { font-weight: 500; font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.shift .who { font-weight: 400; font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.submit-wrap { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.count { font-size: 12px; }
.count b { font: 700 16px "Rubik"; }
.submit { width: 100%; max-width: 320px; padding: 15px 40px; border-radius: 999px; font: 900 13px "Rubik"; letter-spacing: .2em; text-transform: uppercase; transition: all .25s; }
.submit:active { transform: scale(.97); }

.empty { margin-top: 34px; padding: 40px 24px; border-radius: 20px; text-align: center; }
.empty-icon { font-size: 40px; line-height: 1; }
.empty h3 { margin-top: 14px; font: 900 24px "Rubik"; text-transform: uppercase; }
.empty p { max-width: 380px; margin: 10px auto 0; font-size: 14px; line-height: 1.55; }

/* Календарь */
.cal-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.cal-overlay.anim { animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.cal { width: 100%; max-width: 460px; padding: 18px; border-radius: 22px; }
.cal-overlay.anim .cal { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.cal-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-title { flex: 1; text-align: center; font: 900 22px "Rubik"; text-transform: uppercase; }
.cal-title span { font-weight: 500; opacity: .55; }
.cal-nav, .cal-close { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; line-height: 1; }
.cal-nav:disabled { opacity: .25; }
.cal-close { font-size: 15px; }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; text-align: center; font: 700 10px "Inter"; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid.slideR { animation: slideR .28s ease-out; }
.cal-grid.slideL { animation: slideL .28s ease-out; }
@keyframes slideR { from { opacity: 0; transform: translateX(18px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-18px); } }
.cal-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; font: 700 14px "Rubik"; transition: all .15s; }
.cal-cell.blank { visibility: hidden; }
.cal-cell.closed { opacity: .28; font-weight: 500; }
.dots { display: flex; gap: 3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: 11px; opacity: .8; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-detail { margin-top: 14px; padding: 12px; border-radius: 14px; }
.cal-detail-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cal-detail-head b { font: 900 18px "Rubik"; }
.cal-detail-head span { font-size: 11px; text-transform: uppercase; opacity: .6; }
.cal-detail-head em { margin-left: auto; font-style: normal; font-size: 11px; opacity: .7; }
.cal-detail-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }


@media (max-width: 420px) {
  .weeks { gap: 10px; }
  .day-head { padding: 10px 9px; }
  .badge { padding: 2px 6px; font-size: 9px; }
  .shift { padding: 8px 9px; font-size: 12px; }
  .shift .time { display: none; }
}


.cal-detail.swap .cal-detail-head, .cal-detail.swap .cal-detail-shifts { animation: swap .2s ease-out; }
@keyframes swap { from { opacity: .35; transform: translateY(3px); } }
.title-text { position: relative; display: inline-block; }

/* Стиль «Снежная Москва»: синий холод, голубое стекло, гирлянда. Без чёрного и серого. */
:root {
  --ice: #5ec8cd;       /* бирюза М24 */
  --ice-2: #a5f3fc;
  --violet: #8b7bff;
  --gold: #ffd36b;
  --red: #ff5d73;
  --glass: rgba(150, 200, 255, .13);
  --glass-2: rgba(150, 200, 255, .22);
  --line: rgba(180, 225, 255, .22);
  --txt-2: rgba(225, 240, 255, .68);
}
body { color: #fff; }

/* Сияние (плавающие пятна) */
.aurora i { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(60px); }
@keyframes drift1 { to { transform: translate(12vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, 10vh) scale(1.1); } }

/* Гирлянда */
.garland { position: absolute; top: 0; left: 0; width: 100%; height: 100px; z-index: 3; pointer-events: none; }
.garland svg { width: 100%; height: 100%; overflow: visible; }
.bulb { animation: blink var(--d) ease-in-out infinite alternate; }
@keyframes blink { 0% { opacity: .4; } 100% { opacity: 1; } }
.top { padding-top: 76px; }

/* Звёзды */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars i { position: absolute; border-radius: 50%; background: #fff; animation: tw var(--t) ease-in-out infinite alternate; }
@keyframes tw { from { opacity: .15; } to { opacity: .9; } }

/* Шапка */
.logo { background: #080e14; color: #fff; border: 4px solid var(--ice); box-shadow: 0 0 24px rgba(94,200,205,.35); }
.season { color: var(--ice-2); opacity: .8; }
.cal-btn { background: rgba(255,211,107,.12); border: 1px solid rgba(255,211,107,.55); color: var(--gold); backdrop-filter: blur(10px); }
.cal-btn:hover { background: rgba(255,211,107,.22); box-shadow: 0 0 26px rgba(255,211,107,.4); }

/* «АДМИН» — лёд из варианта 1 */
.title-text { background: linear-gradient(180deg, #fff 30%, var(--ice-2) 68%, var(--ice) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(94,200,205,.45)); }
.sub { color: var(--txt-2); }
.name { background: var(--glass); border: 1px solid var(--line); color: #fff; backdrop-filter: blur(12px); }
.name::placeholder { color: rgba(225,240,255,.38); }
.name:focus { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(94,200,205,.25), 0 0 40px rgba(94,200,205,.3); }

/* Карточки — голубое стекло */
.wk { color: var(--ice-2); }
.wk::before { content: "❄ "; color: var(--gold); }
/* Карточки дат — матовое стекло: плотная ровная заливка, сильное размытие, без бликов */
.day { background: rgba(78,118,215,.36); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(24px) saturate(1.15); -webkit-backdrop-filter: blur(24px) saturate(1.15); box-shadow: 0 6px 20px rgba(6,16,60,.22); }
.day-head:hover { background: rgba(255,255,255,.05); }
.day.open { border-color: rgba(255,255,255,.28); }
.day.has-sel { border-color: var(--sel-ring); box-shadow: 0 0 0 1px var(--sel-ring), 0 8px 26px var(--sel-glow); }
.day.none { background: transparent; border: 1px dashed rgba(255,255,255,.14); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.day.none .date b, .day.none .date i { opacity: .35; }
.badge-none { background: transparent; color: rgba(225,240,255,.35); }
.day.full { background: rgba(50,80,170,.26); }
.day.full .date b { color: rgba(225,240,255,.5); }
.badge-free { background: rgba(79,216,220,.2); color: #8ff3f5; }
.badge-full { background: rgba(255,93,115,.18); color: #ffb3bf; }
.shift { background: rgba(255,255,255,.1); }
.shift:hover:not(:disabled) { background: rgba(255,255,255,.17); }
.shift.taken { background: rgba(20,40,110,.28); color: rgba(225,240,255,.45); }
.shift-name { display: inline-flex; align-items: center; gap: 9px; }
.shift:not(:disabled) .shift-name::before { content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(225,240,255,.45); }
/* Выбранная смена — вся строка золотым (вариант 1 Константина), текст тёмно-коричневый */
:root { --sel-bg: linear-gradient(180deg, #ffd84d, #ffbe1a); --sel-fg: #3a2300; --sel-ring: rgba(255,200,40,.8); --sel-glow: rgba(255,190,30,.25); --sel-dot: #ffc72c; }
.shift.selected { color: var(--sel-fg); background: var(--sel-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 14px var(--sel-glow); }
.shift.selected:hover:not(:disabled) { background: var(--sel-bg); filter: brightness(1.05); }
.shift.selected .shift-name::before { background: var(--sel-fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23ffc72c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; box-shadow: none; }
.shift.selected .time { opacity: .8; }

.count { color: var(--txt-2); } .count b { color: var(--gold); }

/* Кнопка «Отправить» — градиент цветов гирлянды в золото, без украшений сверху */
.submit { background: rgba(120,160,240,.3); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(18px); }
.submit.hot { background: linear-gradient(100deg, #ff5d73 0%, #ff8a3d 30%, #ffc94d 65%, #ffe39a 100%); background-size: 160% 100%; color: #0b2266; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px rgba(255,140,70,.35); animation: glow 2.4s ease-in-out infinite, flow 6s ease-in-out infinite alternate; }
@keyframes glow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 44px 6px rgba(255,160,70,.5); } }
@keyframes flow { to { background-position: 100% 0; } }

/* Пусто */
.empty { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.empty-icon { color: var(--ice-2); filter: drop-shadow(0 0 16px var(--ice)); animation: spin 12s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty p { color: var(--txt-2); }
.cal-btn.big { background: linear-gradient(180deg, #ffe39a, #ffc94d 55%, #f5a524); color: #0b2266; border: 0; box-shadow: 0 10px 30px rgba(255,180,60,.35); }

/* Календарь — синий; дни с открытой записью — светлее с рамкой, занятые — приглушены */
.cal-overlay { background: rgba(6,16,50,.55); backdrop-filter: blur(6px); }
.cal { background: linear-gradient(180deg, #1c3a8c, #0d1e56); border: 1px solid rgba(165,243,252,.3); box-shadow: 0 30px 80px rgba(0,8,40,.6), 0 0 60px rgba(94,200,205,.2); color: #fff; }
.cal-nav, .cal-close { background: rgba(170,215,255,.14); }
.cal-wd { opacity: .75; }
.cal-cell.in-season { background: rgba(170,215,255,.08); color: rgba(235,245,255,.85); }
.cal-cell.bookable { background: rgba(170,215,255,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(165,243,252,.5); }
.cal-cell.in-season:hover { background: rgba(94,200,205,.28); }
.cal-cell.full { background: rgba(8,22,72,.4); box-shadow: none; }
.cal-cell.full .num { color: rgba(225,240,255,.35); }
.cal-cell.active { background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(210,235,255,.16)); box-shadow: inset 0 0 0 2px rgba(225,248,255,.9), 0 6px 16px rgba(8,24,80,.4); color: #fff; }
/* Точки — плоские, один цвет на смысл везде: бирюза = свободно, красный = занято, золото = выбрано */
.cal-cell, .cal-cell * { transition: none; }
.dot { width: 8px; height: 8px; box-shadow: none; }
.dot.free { background: #4fd8dc; }
.dot.taken { background: #ff5d73; }
.dot.selected { background: var(--sel-dot); }
.cal-legend { opacity: 1; color: rgba(225,240,255,.85); }
.mark-open { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: rgba(170,215,255,.2); box-shadow: inset 0 0 0 1px rgba(165,243,252,.7); }
.cal-detail { background: rgba(170,215,255,.08); border: 1px solid rgba(170,215,255,.16); }
.cal-detail-head em { color: var(--txt-2); opacity: 1; }
.cal-detail-head em.on { color: var(--gold); }

/* Небо, Москва, искры у «АДМИН» (из макета) */
/* Вечернее зимнее небо: синий сверху, сиреново-розовая дымка у горизонта */
body { background:
  radial-gradient(1200px 380px at 50% 100%, rgba(255,140,190,.35), transparent 70%),
  radial-gradient(900px 500px at 50% 100%, rgba(140,110,255,.4), transparent 70%),
  linear-gradient(180deg, #0b2266 0%, #123487 45%, #1d3e9c 75%, #3a3fa6 100%);
  background-attachment: fixed; }
.aurora .a1 { width: 80vw; height: 40vh; left: -10vw; top: -8vh; background: radial-gradient(closest-side, #3fe0d0, transparent); opacity: .55; animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 55vw; height: 45vh; right: -12vw; top: 0; background: radial-gradient(closest-side, #a78bfa, transparent); opacity: .55; animation: drift2 21s ease-in-out infinite alternate; }

/* Москва внизу */
.skyline { position: fixed; left: 0; right: 0; bottom: 0; height: 190px; z-index: 1; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; display: block; }
.wins rect { animation: win var(--t) ease-in-out infinite alternate; }
@keyframes win { 0%, 60% { opacity: .95; } 100% { opacity: .35; } }
.beacon { animation: beacon 1.6s steps(1) infinite; } .beacon.b2 { animation-delay: .8s; }
@keyframes beacon { 50% { opacity: .15; } }
.main { padding-bottom: 200px; }

/* «АДМИН»: лёд + искры вокруг */
.title-text::before, .title-text::after { content: "✦"; position: absolute; font-size: .2em; color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 0 10px #fff, 0 0 22px #ffd36b; animation: glint 2.8s ease-in-out infinite; }
.title-text::before { left: -6%; top: 6%; }
.title-text::after { right: -5%; bottom: 8%; animation-delay: 1.4s; text-shadow: 0 0 10px #fff, 0 0 22px var(--ice); }
@keyframes glint { 0%, 60%, 100% { opacity: .1; transform: scale(.5) rotate(0); } 75% { opacity: 1; transform: scale(1.15) rotate(45deg); } }

/* Тёплые акценты от гирлянды */
.season { color: var(--gold); opacity: .9; }
.cal-title span { color: var(--gold); opacity: .8; }

/* Сообщения после отправки и ошибки */
.note { margin-top: 18px; padding: 12px 16px; border-radius: 12px; text-align: center; font-size: 14px; line-height: 1.45; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.note.ok { background: rgba(255,211,107,.16); border: 1px solid rgba(255,211,107,.55); color: #ffe7a6; }
.note.err { background: rgba(255,93,115,.16); border: 1px solid rgba(255,93,115,.5); color: #ffc2cb; }
.submit-wrap .note { width: 100%; max-width: 420px; margin-top: 0; }
.loading { margin-top: 40px; text-align: center; color: var(--txt-2); font-size: 14px; }
.submit:disabled { opacity: .7; }

/* Телефон: шапка компактная — слева маленькая надпись, справа маленькая кнопка календаря;
   главное — «АДМИН», фамилия и смены (слово Константина 2026-11-16: «сверху всё оч много занято»). */
@media (max-width: 600px) {
  .garland { height: 58px; }
  .top { padding: 46px 16px 0; gap: 8px; }
  .logo { width: 26px; height: 26px; font-size: 8px; border-width: 2px; box-shadow: none; }
  .season { font-size: 10px; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal-btn { padding: 9px; }
  .cal-btn span { display: none; }
  .cal-btn svg { width: 17px; height: 17px; }
  .main { padding-top: 10px; }
  .title { font-size: clamp(64px, 19vw, 96px); }
  .sub { display: none; }
  .name { margin-top: 16px; padding: 14px 16px; font-size: 18px; }
}
