/* Sila Clock Tools – base styles */
:root{
  color-scheme: dark;

  --bg0:#050a12;
  --bg1:#07121d;
  --card: rgba(10,16,24,.72);
  --card2: rgba(10,16,24,.85);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);
  --text: rgba(235,245,255,.92);
  --muted: rgba(235,245,255,.66);

  --ok: rgba(20, 140, 90, .55);
  --ok2: rgba(20, 140, 90, .85);
  --danger: rgba(140, 30, 45, .55);
  --danger2: rgba(160, 40, 55, .9);

  --accent: rgba(120,255,220,.55);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 0% 0%, rgba(60,255,220,.10), transparent 55%),
    radial-gradient(900px 700px at 100% 30%, rgba(60,140,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 70%);
}

a{ color: rgba(180,240,255,.9); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.top{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5,10,18,.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.brand__title{
  font-weight: 700;
  letter-spacing: .2px;
}
.brand__sub{
  color: var(--muted);
  font-size: 12px;
}

.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(235,245,255,.82);
}
.nav a.is-active{
  border-color: rgba(120,255,220,.35);
  background: rgba(120,255,220,.06);
  color: rgba(235,245,255,.95);
}

.hero{
  margin-top: 18px;
  margin-bottom: 10px;
}
.h1{
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: .2px;
}
.sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items:start;
  margin-top: 14px;
}
.side{ display:flex; flex-direction:column; gap:16px; }

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--compact{ padding: 14px; }
.card__title{
  font-weight: 700;
  margin-bottom: 10px;
}
.muted{ color: var(--muted); font-size: 13px; }

.row{
  display:flex;
  gap: 10px;
  align-items:center;
}
.row--wrap{ flex-wrap:wrap; }

.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items:end;
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}
.field > span{
  color: var(--muted);
  font-size: 13px;
}
.field--inline{
  min-width: 240px;
}

input, textarea, select{
  font: inherit;
}

input[type="text"], input[type="time"], input[type="date"], input[type="datetime-local"], input[type="number"], input:not([type]){
  background: rgba(10,16,24,.92);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}
input:focus{
  border-color: rgba(120,255,220,.35);
  box-shadow: 0 0 0 3px rgba(120,255,220,.08);
}

textarea.codearea{
  width: 100%;
  min-height: 88px;
  resize: vertical;
  background: rgba(10,16,24,.92);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}

.check{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(235,245,255,.82);
}
.check--top{ align-items:flex-end; }
.check input{ width: 16px; height: 16px; }

input[type="range"]{
  width: 260px;
}

/* SELECT – закрытое состояние оставляем тёмным, но выпадашку делаем стабильной */
select.select, .select{
  /* заставляем браузер рисовать нативные части как "light" (иначе на одной странице может быть тёмная выпадашка) */
  color-scheme: light;

  background: rgba(10,16,24,.92);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(235,245,255,.92);
  outline:none;
  min-width: 240px;
}

select.select:focus, .select:focus{
  border-color: rgba(120,255,220,.35);
  box-shadow: 0 0 0 3px rgba(120,255,220,.08);
}

/*
  ВАЖНО:
  option и выпадашка рисуются нативно.
  Делаем жёстко: белый фон + чёрный текст, чтобы не было "чёрное на чёрном" как на твоём скрине.
*/
select.select option, .select option{
  background: #fff !important;
  color: #111 !important;
}

/* Buttons */
.btn{
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.02);
  color: rgba(235,245,255,.9);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn:hover{
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.04);
}
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.btn--ghost{
  background: rgba(255,255,255,.01);
}
.btn--ok{
  border-color: rgba(80,255,190,.22);
  background: rgba(20,140,90,.22);
}
.btn--ok:hover{
  border-color: rgba(80,255,190,.35);
  background: rgba(20,140,90,.30);
}
.btn--danger{
  border-color: rgba(255,120,140,.22);
  background: rgba(140,30,45,.22);
}
.btn--danger:hover{
  border-color: rgba(255,120,140,.35);
  background: rgba(140,30,45,.30);
}
.btn--sm{ padding: 8px 12px; border-radius: 12px; }

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.chip{
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.02);
  color: rgba(235,245,255,.9);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover{
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.04);
}
.chip.is-active{
  border-color: rgba(120,255,220,.35);
  background: rgba(120,255,220,.06);
}

.panel{
  margin-top: 12px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(10,16,24,.35);
}

.timer__value{
  font-size: 74px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 2px;
  margin-bottom: 6px;
}
.timer__hint{
  color: var(--muted);
  margin-bottom: 10px;
}

.details{
  margin-top: 12px;
}
.details summary{
  cursor: pointer;
  color: rgba(235,245,255,.84);
}
.details summary:hover{ color: rgba(235,245,255,.95); }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 50;
}
.modal.is-open{ display:block; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.modal__card{
  position: relative;
  max-width: 520px;
  margin: 12vh auto 0;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal__title{
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}
.modal__text{
  color: rgba(235,245,255,.86);
  margin-bottom: 12px;
}

.footer{
  margin-top: 18px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 2px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .side{ order: 2; }
  .timer__value{ font-size: 64px; }
  input[type="range"]{ width: 220px; }
  .field--inline{ min-width: 220px; }
}

@media (max-width: 520px){
  .top__inner{ flex-direction:column; align-items:flex-start; }
  .nav{ width:100%; justify-content:flex-start; }
  .h1{ font-size: 28px; }
  .timer__value{ font-size: 52px; }
  .grid3{ grid-template-columns: 1fr; }
  input[type="range"]{ width: 100%; }
  .field--inline{ min-width: 100%; }
}

/* grid-auto: ровная сетка карточек (избранные часы и т.п.) */
.grid-auto{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  align-items: stretch;
}

/* ===== Theme override (единый фон без “границы перехода”) ===== */
html, body{
  min-height: 100%;
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(0, 185, 200, .18), transparent 55%),
    radial-gradient(900px 520px at 100% 10%, rgba(35, 95, 220, .14), transparent 55%),
    linear-gradient(180deg, #07131c 0%, #050b10 55%, #050b10 100%);
  background-attachment: fixed;
}

/* убираем любые “подложки” у секций, которые дают шов/границу */
header, main, footer, .header, .main, .footer{
  background: transparent !important;
}

/* если где-то были линии/бордеры между шапкой/контентом/футером — гасим */
header, footer, .header, .footer{
  border: 0 !important;
  box-shadow: none !important;
}

/* расширяем контейнер, чтобы на широких экранах не было ощущения “пустых полос” */
.container{
  max-width: 1680px !important;
}

/* ===== Promo block ===== */
.promo{
  margin: 14px 0 18px;
  padding: 16px 16px 14px;
}
.promo__title{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 6px;
}
.promo__text{
  opacity: .92;
  margin-bottom: 10px;
  line-height: 1.35;
}
.promo__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}
.promo__hint{
  opacity: .9;
  margin: 10px 0 8px;
  font-weight: 700;
}
.promo__creds{
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.promo__row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}
.promo__label{
  opacity: .85;
  font-weight: 800;
  font-size: 13px;
}
.promo__input{
  width: 100%;
}
.promo__foot{
  opacity: .8;
  margin-top: 10px;
  font-size: 13px;
}

/* ===== Time settings (без выбора цвета) ===== */
.is-digital .timer__value{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.theme-day body{
  color-scheme: light;
}

.theme-day body{
  color: rgba(12,16,22,.92);
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(0, 185, 200, .20), transparent 55%),
    radial-gradient(900px 520px at 100% 10%, rgba(35, 95, 220, .16), transparent 55%),
    linear-gradient(180deg, #eef6ff 0%, #eaf1ff 55%, #eef6ff 100%);
}

.theme-day .card{
  background: rgba(255,255,255,.80);
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}
.theme-day .muted{ color: rgba(20,30,40,.65); }
.theme-day .nav a{ color: rgba(20,30,40,.78); }
.theme-day .nav a.is-active{
  border-color: rgba(0,120,120,.35);
  background: rgba(0,120,120,.06);
  color: rgba(12,16,22,.95);
}

.setrow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  margin-bottom: 10px;
}
.setrow span{
  font-weight: 700;
  color: rgba(235,245,255,.88);
}
.theme-day .setrow{
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}
.theme-day .setrow span{
  color: rgba(12,16,22,.90);
}
.setrow input[type="checkbox"]{
  width: 44px;
  height: 24px;
  accent-color: rgba(120,255,220,.75);
}

/* === Docs/Legal pages (Terms/Privacy/Contacts) === */
.doc-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 44px;
}
.doc-hero{ margin-bottom: 16px; }
.doc-title{
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0;
}
.doc-subtitle{
  margin-top: 6px;
  opacity: .82;
  line-height: 1.5;
}
.doc-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: .85;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  margin-top: 12px;
}
.doc-card{
  padding: 18px 18px;
}
.doc-content{
  line-height: 1.65;
  font-size: 15px;
}
.doc-content h2{
  font-size: 18px;
  font-weight: 750;
  margin: 18px 0 8px;
}
.doc-content h3{
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 6px;
  opacity: .95;
}
.doc-content p{ margin: 10px 0; opacity: .95; }
.doc-content ul, .doc-content ol{
  margin: 10px 0 10px 20px;
}
.doc-content li{ margin: 6px 0; }
.doc-muted{ opacity: .78; }

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 840px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.kv{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items: center;
}
@media (max-width: 520px){
  .kv{ grid-template-columns: 1fr; }
}
.kv .k{ opacity: .78; font-size: 13px; }
.kv .v{ font-weight: 650; }


/* ==========================
   Holidays page (prazdniki)
   ========================== */

zpx;
}

.holpage__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.holpage__hero {
  margin-bottom: 14px;
}

.holpage__h1 {
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.holpage__sub {
  color: rgba(233, 242, 255, .78);
  font-size: 14px;
  line-height: 1.35;
}

.holpage__searchRow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.holpage__search {
  width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(233,242,255,.92);
  outline: none;
}

.holpage__search::placeholder {
  color: rgba(233,242,255,.45);
}

.holpage__status {
  color: rgba(233,242,255,.65);
  font-size: 13px;
}

.holpage__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .holpage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holpage__h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .holpage__grid { grid-template-columns: 1fr; }
  .holpage__h1 { font-size: 30px; }
}

/* Card */
.holcard {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.holcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.holcard__title {
  color: rgba(233,242,255,.96);
  text-decoration: none;
  font-weight: 750;
  font-size: 16px;
  line-height: 1.2;
}

.holcard__title:hover {
  text-decoration: underline;
}

.holcard__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  color: rgba(233,242,255,.70);
  white-space: nowrap;
}

.holcard__date {
  opacity: .95;
}

.holcard__left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 153, 255, .28);
  background: rgba(0, 153, 255, .10);
  color: rgba(233,242,255,.88);
}

.holcard__body {
  margin-top: 10px;
}

.holcard__kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(233,242,255,.85);
  font-size: 12px;
}

.holcard__desc {
  margin-top: 8px;
  color: rgba(233,242,255,.78);
  font-size: 13px;
  line-height: 1.35;
}

.holcard__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Кнопки именно для страницы праздников (чтобы не поломать глобальные .btn) */
.holpage a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(233,242,255,.92);
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
}

.holpage a.btn:hover {
  background: rgba(255,255,255,.08);
}

.holpage a.btn--ghost {
  background: rgba(0,0,0,.10);
}


/* Holidays: extra spacing before footer */
.holpage__grid { margin-bottom: 22px; }


/* ==========================
   Footer spacing & layout fix
   ========================== */
.footer, footer {
  margin-top: 26px;
  padding: 14px 0 calc(22px + env(safe-area-inset-bottom));
}

.footer__inner, footer .footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__links, footer .footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .footer__inner, footer .footer__inner {
    justify-content: center;
  }
  .footer__links, footer .footer__links {
    justify-content: center;
  }
}

