/* KIBERone — фирменные цвета и шрифты по брендбуку + компоненты лендинга.
   Палитра: #05B9BE голубой, #F7C90E жёлтый, #1C556E тёмно-синий,
            #92241F тёмно-красный, #9C9C9C серый.
   Шрифты: Franklin Gothic Book и PF BeauSans Pro — коммерческие,
           поэтому взяты бесплатные аналоги той же пластики:
           Libre Franklin (заголовки) и Golos Text (текст). */

:root {
  --color-brand-teal: #05b9be;
  --color-brand-teal-dark: #1c556e;
  --color-brand-yellow: #f7c90e;
  --color-brand-yellow-dark: #ddac00;
  --color-brand-red: #92241f;
  --color-brand-gray: #9c9c9c;

  --color-slate-900: #1c556e;
  --color-slate-800: #265b71;
  --color-slate-700: #3a6373;
  --color-slate-600: #54707c;
  --color-slate-500: #75868e;
  --color-slate-400: #9c9c9c;
  --color-slate-200: #dce3e6;
  --color-slate-100: #edf1f3;
  --color-slate-50: #f6f8f9;

  --color-amber-600: #c79a00;
  --color-amber-800: #8a6b00;
  --color-amber-100: #fdf3cc;
  --color-amber-50: #fef9e7;

  --color-red-700: #92241f;
  --color-red-100: #f6dedc;
  --color-red-50: #fbf1f0;

  --font-display: "Libre Franklin", "Golos Text", system-ui, sans-serif;
}

body .min-h-screen {
  font-family: "Golos Text", "Libre Franklin", system-ui, sans-serif;
}

body .min-h-screen h1,
body .min-h-screen h2,
body .min-h-screen h3,
body .min-h-screen .font-\[family-name\:var\(--font-display\)\] {
  font-family: "Libre Franklin", "Golos Text", system-ui, sans-serif;
}

h1, h2, h3 { letter-spacing: -0.015em; }

/* ---------- переключатель города ---------- */

.city-switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  --i: 0;
}

.city-switch__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: #f7c90e;
  box-shadow: 0 4px 14px rgba(28, 85, 110, 0.25);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.32s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.city-switch button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 132px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 700 14px/1 "Golos Text", sans-serif;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.city-switch button.is-active { color: #1c556e; }

.city-switch--compact { max-width: 260px; }

.city-switch--light {
  background: #edf1f3;
  box-shadow: inset 0 0 0 1px #dce3e6;
  width: 100%;
}
.city-switch--light button { color: #54707c; }
.city-switch--light button.is-active { color: #1c556e; }
.city-switch--light .city-switch__thumb { background: #f7c90e; }

/* ---------- формы ---------- */

.kib-form label > span:first-child {
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3a6373;
}

.kib-form input,
.kib-form select,
.kib-form textarea {
  width: 100%;
  border: 2px solid #dce3e6;
  border-radius: 14px;
  background: #fff;
  padding: 13px 16px;
  font: 400 16px/1.4 "Golos Text", sans-serif;
  color: #1c556e;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kib-form input::placeholder,
.kib-form textarea::placeholder { color: #9c9c9c; }

.kib-form input:focus,
.kib-form select:focus,
.kib-form textarea:focus {
  border-color: #05b9be;
  box-shadow: 0 0 0 4px rgba(5, 185, 190, 0.12);
}

.kib-form textarea { min-height: 88px; resize: vertical; }

/* ---------- слайдер ---------- */

.kib-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.kib-slider::-webkit-scrollbar { display: none; }
.kib-slider > * {
  flex: 0 0 min(84%, 330px);
  scroll-snap-align: start;
}

.kib-slider-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: -6px;
}

.kib-slider-nav button {
  width: 40px;
  height: 40px;
  border: 2px solid #dce3e6;
  border-radius: 999px;
  background: #fff;
  color: #1c556e;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.kib-slider-nav button:hover {
  background: #f7c90e;
  border-color: #f7c90e;
  transform: translateY(-1px);
}

/* ---------- появление и ховеры ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .city-switch__thumb { transition: none; }
}

a, button { transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
a:active, button:active { transform: scale(0.985); }

.kib-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #05b9be;
  vertical-align: 2px;
}

.kib-num {
  display: inline-block;
  font: 800 15px/1 "Libre Franklin", sans-serif;
  color: #1c556e;
  background: #f7c90e;
  border-radius: 8px;
  padding: 7px 9px;
}

/* ---------- мобильный ---------- */

@media (max-width: 767px) {
  .city-switch { width: 100%; }
  .city-switch button { min-width: 0; padding: 10px 8px; font-size: 13px; }
  .kib-slider > * { flex-basis: 86%; }
  .kib-slider-nav { display: none; }
  body .min-h-screen { padding-bottom: 84px; }
}

@media (max-width: 420px) {
  .city-switch button { font-size: 12px; }
}

.kib-initial{color:#fff;font-weight:900;font-size:15px;letter-spacing:.02em}

/* утилиты, которых нет в собранном styles.css */
.sm\:col-span-2, .md\:col-span-2 { grid-column: 1 / -1; }
@media (min-width: 640px) { .sm\:p-7 { padding: 1.75rem; } }
.bg-\[color\:var\(--color-brand-teal\)\]\/10 { background-color: rgba(5, 185, 190, 0.1); }
.kib-form [data-form-error], .kib-form button[type="submit"] { grid-column: 1 / -1; align-self: start; }
.hover\:text-\[color\:var\(--color-brand-teal\)\]:hover { color: var(--color-brand-teal); }
.hover\:text-\[color\:var\(--color-brand-teal-dark\)\]:hover { color: var(--color-brand-teal-dark); }

/* чекбокс согласия не должен наследовать ширину полей */
.kib-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 4px;
  flex: 0 0 auto;
}
.kib-form label:has(input[type="checkbox"]) > span:first-child { margin-bottom: 0; }

/* ---------- локации ---------- */
[hidden] { display: none !important; }
.kib-loc { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.kib-loc li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: #1c556e; }
.kib-loc-n { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #2ad5c8 0%, #05b9be 60%, #059aa3 100%); box-shadow: 0 0 0 4px rgba(5,185,190,.16); display: block; margin-top: 7px; }

/* ---------- плавное раскрытие FAQ ---------- */
details > p { overflow: hidden; }
details > summary { display: flex; align-items: baseline; gap: 6px; }

.kib-loc-note { display: block; font-size: 13px; line-height: 1.4; color: #64748b; }

/* ---------- кликабельные телефоны ---------- */
a[href^="tel:"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(5, 185, 190, 0.55);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a[href^="tel:"]:hover,
a[href^="tel:"]:focus-visible {
  color: #1c556e;
  text-decoration-color: #1c556e;
}
