/* Bienly — маркетинговый сайт.
   Токены взяты из дизайн-системы Bienly (warm cream + electric blue). */

@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap");

:root {
  /* Палитра */
  --cream-50:  #FCFBF9;
  --cream-100: #F2EFE9;
  --cream-200: #E8E4DC;
  --white:     #FFFFFF;
  --ink-900: #1C1C1A;
  --ink-500: #7A766F;
  --ink-300: #B0ABA3;
  --blue-600: #075EF5;
  --blue-700: #0549C9;
  --blue-100: #D2E1FF;
  --blue-50:  #EAF1FF;
  --red-500: #CC4040;
  --red-50:  #FDF0F0;

  /* Семантика */
  --surface-app:    var(--cream-50);
  --text-primary:   var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-tertiary:  var(--ink-300);
  --text-brand:     var(--blue-600);
  --border-default: var(--cream-200);
  --brand:          var(--blue-600);
  --brand-strong:   var(--blue-600);
  --brand-press:    var(--blue-700);
  --brand-tint:     var(--blue-50);
  --slot-free-fill:    var(--blue-50);
  --slot-free-border:  var(--blue-600);
  --slot-free-text:    var(--blue-600);
  --slot-busy-fill:    var(--red-50);
  --slot-busy-text:    var(--red-500);
  --slot-selected-fill:var(--blue-600);
  --slot-selected-text:var(--white);

  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 16px;
  --radius-sm: 8px;
  --shadow-card:   0 1px 6px rgba(0, 0, 0, 0.07);
  --shadow-raised: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Логотип-монограмма «MZ» (рукописный, как фирменный знак).
   Цвет наследуется (currentColor): белый на синем герое, синий на белом фоне. */
.mz-logo {
  font-family: "Caveat", cursive;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
}
.brand-lockup { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }

/* Синий герой со скруглённым низом + декоративные круги (дизайн «Landing») */
.hero-blue { background: var(--brand-strong); border-radius: 0 0 40px 40px; position: relative; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-blob.a { top: -120px; right: -80px; width: 380px; height: 380px; background: rgba(255,255,255,0.07); }
.hero-blob.b { bottom: -160px; left: -60px; width: 320px; height: 320px; background: rgba(255,255,255,0.05); }
@keyframes mzFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-app);
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
input::placeholder, textarea::placeholder { color: var(--ink-300); }

@keyframes mzUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes mzIn { from { opacity: 0; } to { opacity: 1; } }

/* Появление секций при прокрутке */
.reveal { opacity: 0.001; transform: translateY(30px); }
.reveal.on { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }

/* Контейнер */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* Шапка на синем */
.nav-link { color: rgba(255,255,255,0.82); text-decoration: none; transition: color 150ms ease; }
.nav-link:hover { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 700; color: var(--brand); background: #fff;
  padding: 10px 18px; border-radius: 9999px; text-decoration: none; white-space: nowrap;
  transition: background 200ms ease;
}
.nav-cta:hover { background: var(--blue-50); }

/* Переключатель языка */
.seg { display: flex; background: rgba(255,255,255,0.14); border-radius: 9999px; padding: 3px; }
.seg button {
  border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 9999px;
  background: transparent; color: rgba(255,255,255,0.85);
  transition: background 150ms ease, color 150ms ease;
}
.seg button.active { background: #fff; color: var(--brand); }

/* Кнопки */
.btn-white {
  display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 28px;
  border-radius: 27px; background: #fff; color: var(--brand); font-size: 16px; font-weight: 700;
  text-decoration: none; white-space: nowrap; border: none; cursor: pointer; font-family: var(--font-body);
  transition: transform 200ms ease, background 200ms ease;
}
.btn-white:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 26px;
  border-radius: 27px; background: transparent; border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff; font-size: 15.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer; font-family: var(--font-body);
  transition: border-color 200ms ease, background 200ms ease;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-deep {
  display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 26px;
  border: none; border-radius: 27px; background: #0A3FA8; color: #fff;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background 200ms ease;
}
.btn-deep:hover { background: #072F7E; }
.btn-brand {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 24px;
  border-radius: 24px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap; border: none; cursor: pointer; font-family: var(--font-body);
  transition: background 200ms ease;
}
.btn-brand:hover { background: var(--brand-press); }

/* Карточки с подъёмом при наведении */
.card-hover { transition: transform 250ms ease, box-shadow 250ms ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-raised); }

/* Ссылки в подвале */
.ft-link { color: var(--text-secondary); text-decoration: none; transition: color 150ms ease; }
.ft-link:hover { color: var(--brand); }

/* Слайдеры калькулятора */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 9999px; background: var(--cream-100); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.18); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.18); cursor: pointer;
}

/* Поля формы заявки (на синей карточке) */
.lead-input {
  width: 100%; height: 50px; border: none; border-radius: 14px; padding: 0 18px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  color: var(--text-primary); background: #fff; outline: none;
}
textarea.lead-input { height: auto; min-height: 76px; padding: 14px 18px; resize: vertical; }
select.lead-input { appearance: none; cursor: pointer; }

/* Адаптив: на узких экранах сетки складываются в одну колонку */
@media (max-width: 960px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .grid-2, .grid-3, .grid-4, .hero-grid, .calc-grid, .v-grid { grid-template-columns: 1fr !important; }
  .v-grid > div { grid-column: span 1 !important; }
  h1 { font-size: 38px !important; }
  .nav-links { display: none !important; }
  .wl-form { flex-direction: column; align-items: stretch; }
  .wl-form input { width: 100% !important; }
  .stats-grid > div { border-right: none !important; }
}
