
:root{
  --bg:#050505;
  --panel:#080808;
  --panel2:#15130f;
  --gold:#e5c47a;
  --gold2:#b68c4d;
  --gold3:#8d6530;
  --white:#f7f1e5;
  --muted:#9c907b;
  --red:#ff4f4f;
  --red-bg:rgba(255,79,79,.13);
  --booked:#f5c76b;
  --free:#ffffff;
  --line:rgba(229,196,122,.70);
  --line-soft:rgba(182,140,77,.45);
}
*{box-sizing:border-box}
html,body{
  min-height:100%;
  margin:0;
  background:#050505;
  color:var(--white);
  font-family:Arial,Helvetica,sans-serif;
}
body{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  overflow-x:auto;
  background:
    linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)),
    url("/static/fc-rsk-bg-vector.svg") center top / cover repeat,
    #050505;
}
button,input,textarea,select{font:inherit}

.stage{
  width:1920px;
  min-height:1560px;
  position:relative;
  overflow:visible;
  background:
    radial-gradient(circle, rgba(255,255,255,.075) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(30deg, rgba(255,255,255,.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.035) 87.5%) 0 0 / 92px 160px,
    linear-gradient(150deg, rgba(255,255,255,.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.035) 87.5%) 46px 80px / 92px 160px,
    #050505;
}
.stage::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(0,0,0,.18) 16.2% 18.4%, transparent 18.6% 80%, rgba(0,0,0,.16) 80.2% 82%, transparent 82.2%),
    radial-gradient(circle at 50% 20%, rgba(229,196,122,.05), transparent 35%);
  pointer-events:none;
}
.decor{
  position:absolute;
  border:6px solid rgba(182,140,77,.15);
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  pointer-events:none;
}
.decor-left{width:320px;height:280px;left:20px;top:50px}
.decor-right{width:360px;height:310px;right:20px;top:46px}
.decor-bottom-left{width:280px;height:240px;left:170px;bottom:75px;opacity:.6}
.decor-bottom-right{width:340px;height:295px;right:180px;bottom:70px;opacity:.6}

/* Header */
.hero{
  position:relative;
  z-index:2;
  height:255px;
  padding-top:20px;
}
.logo-wrap{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  filter:drop-shadow(0 0 18px rgba(229,196,122,.20));
}
.logo-wrap-rsk{
  left:70px;
  top:60px;
  width:210px;
  height:210px;
}
.logo-wrap-rsk img{
  width:210px;
  height:210px;
  object-fit:contain;
}
.logo-wrap-minstroy{
  right:80px;
  top:42px;
  width:320px;
  height:135px;
}
.logo-wrap-minstroy img{
  width:320px;
  height:135px;
  object-fit:contain;
}
.hero-frame{
  position:absolute;
  left:330px;
  top:14px;
  width:1180px;
  height:225px;
  text-align:center;
  padding:28px 60px 16px;
  background:rgba(5,5,5,.42);
  clip-path:polygon(8% 0,92% 0,100% 44%,92% 100%,8% 100%,0 44%);
}
.hero-frame::before{
  content:"";
  position:absolute;
  inset:0;
  border:2.5px solid rgba(229,196,122,.82);
  clip-path:inherit;
  filter:drop-shadow(0 0 12px rgba(229,196,122,.38));
}
.hero-frame::after{
  content:"";
  position:absolute;
  top:12px;
  left:130px;
  right:130px;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  opacity:.75;
}
.hero-caption{
  position:relative;
  z-index:1;
  color:var(--gold);
  font-size:23px;
  line-height:1.34;
  margin-bottom:18px;
}
.hero h1{
  position:relative;
  z-index:1;
  margin:0;
  color:var(--gold);
  font-family:"Arial Narrow",Arial,sans-serif;
  font-size:52px;
  font-weight:700;
  line-height:1.08;
  text-transform:uppercase;
  letter-spacing:2px;
  text-shadow:0 0 20px rgba(229,196,122,.28);
}
.hero p{
  position:relative;
  z-index:1;
  margin:18px 0 0;
  color:#d9b777;
  font-size:24px;
}

/* Controls */
.control-row{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:520px 470px 340px;
  gap:16px;
  align-items:center;
  margin:8px 80px 0;
}
.control-title,.control-tabs,.control-actions{
  min-height:70px;
  display:flex;
  align-items:center;
  border:1.5px solid rgba(229,196,122,.62);
  background:linear-gradient(180deg,rgba(12,12,12,.98),rgba(7,7,7,.98));
  clip-path:polygon(28px 0,calc(100% - 28px) 0,100% 50%,calc(100% - 28px) 100%,28px 100%,0 50%);
  box-shadow:inset 0 0 22px rgba(229,196,122,.035);
}
.control-title{
  gap:22px;
  padding:0 30px;
  color:var(--gold);
  font-family:"Arial Narrow",Arial,sans-serif;
  font-size:28px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.control-tabs{
  gap:12px;
  justify-content:center;
  padding:0 18px;
}
.control-actions{
  gap:12px;
  justify-content:center;
  padding:0 15px;
}
.hex-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
  border:1.5px solid rgba(229,196,122,.78);
  color:var(--gold);
  background:#080808;
}
.control-title .hex-icon{
  width:60px;
  height:60px;
  font-size:28px;
}
button{
  min-height:46px;
  border:1.3px solid rgba(229,196,122,.72);
  color:var(--gold);
  background:linear-gradient(180deg,#15130f,#080808);
  padding:0 22px;
  clip-path:polygon(13px 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,13px 100%,0 50%);
  text-transform:uppercase;
  cursor:pointer;
  font-size:16px;
  letter-spacing:.02em;
}
button:hover{box-shadow:0 0 18px rgba(229,196,122,.24)}
button.active,#saveBookingBtn{
  color:#160f07;
  background:linear-gradient(180deg,#f7d58a,#8d6530);
  border-color:#ffe0a0;
  font-weight:700;
}
.status{
  position:relative;
  z-index:3;
  height:20px;
  margin:2px 94px 0;
  text-align:right;
  color:var(--muted);
  font-size:13px;
}

/* Calendar */
.calendar-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:900px 900px;
  gap:24px;
  margin:10px 8px 0;
  align-items:start;
}
.calendar-grid.all{
  grid-template-columns:repeat(3, 560px);
  gap:24px;
  margin-left:80px;
  margin-right:80px;
}
.month-card{
  width:900px;
  min-height:780px;
  overflow:visible;
  background:linear-gradient(180deg,rgba(12,12,12,.98),rgba(18,16,12,.94));
  border:1.5px solid rgba(229,196,122,.72);
  clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px);
}
.calendar-grid.all .month-card{
  width:560px;
  min-height:430px;
}
.month-title{
  min-height:64px;
  padding:0 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(182,140,77,.45);
  color:var(--gold);
  font-family:"Arial Narrow",Arial,sans-serif;
  font-size:36px;
  text-transform:uppercase;
  letter-spacing:2px;
}
.month-title span:last-child{
  font-family:Arial,sans-serif;
  font-size:26px;
  font-weight:700;
  letter-spacing:0;
}
.weekdays{
  min-height:34px;
  display:grid;
  grid-template-columns:repeat(7,1fr);
}
.weekdays div{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  border-bottom:1px solid rgba(182,140,77,.26);
  font-size:15px;
}
.weekdays div:nth-child(6),.weekdays div:nth-child(7){
  color:var(--red);
}
.days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  grid-auto-rows:minmax(145px, auto);
}
.day{
  position:relative;
  padding:8px 7px 6px;
  border:1px solid rgba(182,140,77,.25);
  background:rgba(12,12,12,.78);
  cursor:pointer;
  min-height:145px;
}
.day:hover{
  z-index:3;
  outline:2px solid rgba(229,196,122,.75);
  box-shadow:0 0 16px rgba(229,196,122,.2);
}
.day.empty{
  cursor:default;
  background:rgba(255,255,255,.015);
}
.day.today{
  outline:2px solid var(--gold);
  outline-offset:-2px;
}
.day.holiday{
  background:linear-gradient(180deg,var(--red-bg),rgba(13,7,7,.88));
}
.day.busy{
  background:linear-gradient(180deg,rgba(72,48,17,.85),rgba(15,11,6,.92));
}
.day.busy.holiday{
  background:linear-gradient(180deg,rgba(92,38,18,.88),rgba(45,9,9,.88));
}
.day-number{
  font-size:28px;
  font-weight:700;
  color:var(--free);
}
.day.holiday .day-number{
  color:var(--red);
}
.day.busy .day-number{
  color:var(--booked);
}
.day.busy.holiday .day-number{
  color:#ff8585;
}
.booking-chip{
  display:block;
  margin-top:10px;
  width:min(172px, calc(100% - 4px));
  padding:8px 8px 8px 10px;
  border-left:5px solid var(--booked);
  background:rgba(0,0,0,.58);
  color:#f2d69b;
  font-size:12px;
  line-height:1.22;
  word-break:break-word;
}
.booking-chip strong{
  display:block;
  margin-bottom:3px;
  color:var(--booked);
  font-size:14px;
}
.calendar-grid.all .month-title{
  height:54px;
  font-size:24px;
}
.calendar-grid.all .weekdays{
  height:32px;
}
.calendar-grid.all .days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  grid-auto-rows:minmax(92px, auto);
}
.calendar-grid.all .day{
  padding:6px 5px;
  min-height:92px;
}
.calendar-grid.all .day-number{
  font-size:17px;
}
.calendar-grid.all .booking-chip{
  font-size:9px;
  padding:4px 5px 4px 8px;
  width:min(110px, calc(100% - 2px));
  margin-top:6px;
}
.calendar-grid.all .booking-chip strong{
  font-size:9px;
}

/* Legend and footer */
.legend-row{
  position:relative;
  z-index:2;
  height:54px;
  margin:16px 8px 0;
  padding:0 70px;
  display:flex;
  align-items:center;
  gap:56px;
  color:#e6d6b8;
  border:1px solid rgba(182,140,77,.45);
  background:linear-gradient(180deg,rgba(8,8,8,.98),rgba(15,13,10,.95));
  clip-path:polygon(22px 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,22px 100%,0 50%);
}
.legend-item{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:26px;
}
.swatch{
  width:34px;
  height:12px;
  display:inline-block;
  border-radius:999px;
}
.swatch.booked{background:var(--booked)}
.swatch.holiday{background:var(--red)}
.swatch.free{background:var(--free);border:1px solid #ccc}

.footer-info{
  position:relative;
  z-index:2;
  height:82px;
  margin:16px 120px 0;
  padding:0 250px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:90px;
  border:1.5px solid rgba(229,196,122,.52);
  background:linear-gradient(180deg,rgba(8,8,8,.98),rgba(18,16,12,.95));
  clip-path:polygon(28px 0,calc(100% - 28px) 0,100% 50%,calc(100% - 28px) 100%,28px 100%,0 50%);
}
.footer-card{
  display:flex;
  align-items:center;
  gap:20px;
  min-width:310px;
}
.footer-card .hex-icon{
  width:64px;
  min-height:64px;
  font-size:29px;
}
.footer-label{
  color:var(--gold);
  font-size:19px;
  margin-bottom:5px;
}
.footer-value{
  color:var(--white);
  font-size:29px;
}
.footer-divider{
  width:1px;
  height:60px;
  background:rgba(182,140,77,.55);
}

/* Dialog */
.dialog{
  border:1px solid rgba(229,196,122,.76);
  border-radius:18px;
  background:linear-gradient(180deg,#111,#201b13);
  color:var(--white);
  width:min(560px,92vw);
  box-shadow:0 30px 90px rgba(0,0,0,.75);
}
.dialog::backdrop{background:rgba(0,0,0,.72)}
.dialog-inner{position:relative;padding:28px;display:flex;flex-direction:column;gap:18px}
.dialog h2{margin:0;color:var(--gold);text-transform:uppercase;font-weight:500}
.dialog-close{
  position:absolute;
  right:14px;
  top:12px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:28px;
  padding:0 8px;
  clip-path:none;
}
.booking-info{color:var(--muted);line-height:1.5}
label{display:flex;flex-direction:column;gap:8px;color:var(--gold)}
input,textarea,select{
  width:100%;
  border:1px solid rgba(229,196,122,.45);
  border-radius:10px;
  background:#0f0f0f;
  color:var(--white);
  padding:12px;
  outline:none;
}
textarea{resize:vertical}
.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.dialog-actions button{
  min-height:46px;
}
button.danger{
  display:none;
  border-color:rgba(255,86,86,.72);
  color:#ffe3e3;
  background:linear-gradient(180deg,rgba(90,22,22,.95),rgba(45,10,10,.95));
}
button.ghost{
  background:linear-gradient(180deg,#15130f,#080808);
  color:var(--gold);
}

/* On smaller screens, preserve 1920 design by letting page scroll horizontally. */
@media(max-width:1919px){
  body{justify-content:flex-start}
}
