/* ============================================================
   СЕРВИСБИТ — design system
   Clean corporate, atol-inspired. Red accent, white, ink.
   Fonts: Montserrat ExtraBold (display) + Onest (body/UI)
   ============================================================ */

:root {
  /* ink / neutrals — brand slate (Pantone 432 C #333e48) */
  --ink:        #333e48;
  --ink-2:      #56616C;
  --muted:      #7A8590;
  --line:       #E4E7EA;
  --line-soft:  #EDEFF2;
  --bg:         #FFFFFF;
  --bg-soft:    #F4F6F8;
  --bg-soft-2:  #EBEEF1;

  /* brand red (Pantone 185 C #d9262e) */
  --red:        #d9262e;
  --red-700:    #B21F26;
  --red-600:    #C5232A;
  --red-50:     #FBEAEB;
  --red-100:    #F4CDCF;

  /* dark surface — deep brand slate */
  --ink-bg:     #2A333B;
  --ink-bg-2:   #333E48;
  --ink-line:   #434F59;

  /* radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(20,22,26,.06), 0 1px 3px rgba(20,22,26,.04);
  --sh-2: 0 4px 16px rgba(20,22,26,.07), 0 1px 3px rgba(20,22,26,.05);
  --sh-3: 0 18px 48px rgba(20,22,26,.13), 0 4px 12px rgba(20,22,26,.06);
  --sh-red: 0 12px 30px rgba(217,38,46,.28);

  /* layout */
  --container: 1240px;
  --pad: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", "Onest", sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink-bg); color: #E8EAEE; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section--ink .eyebrow { color: #FF6675; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: clamp(17px,1.4vw,19px); }
.section--ink .section-head p { color: #A7ADB8; }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 17px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn-primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(217,38,46,.34); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-1); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--red);
  transition: gap .2s var(--ease);
}
.btn-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn-link:hover { gap: 12px; }
.btn-link:hover svg { transform: translateX(3px); }

.btn-block { width: 100%; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink-bg);
  color: #A7ADB8;
  font-size: 13.5px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; gap: 20px;
}
.topbar a { color: #C8CDD6; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; color: #FF6675; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 56px; width: auto; display: block; }
.site-footer .logo__img { height: 46px; }
@media (max-width: 520px) { .logo__img { height: 46px; } }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a {
  position: relative; white-space: nowrap;
  font-weight: 500; font-size: 15px; color: var(--ink-2);
  padding: 10px 11px; border-radius: var(--r-xs);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content:""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions .btn { padding: 15px 21px; }
.header-phone {
  font-family: "Montserrat", sans-serif;
  font-weight: 700; font-size: 17px; color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--red); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  place-items: center; color: var(--ink); margin-left: auto;
}
.burger svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; overflow: hidden;
  background: rgba(20,22,26,.45);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; padding: 24px;
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open .mobile-menu__panel { transform: none; }
.mobile-menu__panel a.m-link {
  padding: 15px 12px; border-radius: 10px; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__panel a.m-link:hover { background: var(--bg-soft); }
.mobile-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 10px; border:1px solid var(--line); background:#fff; display:grid; place-items:center; cursor:pointer; margin-bottom: 8px;}

/* ---------- cards generic ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--red-50); color: var(--red);
}
.icon-badge svg { width: 27px; height: 27px; }
.icon-badge--ink { background: rgba(255,255,255,.06); color: #fff; }
.icon-badge--soft { background: var(--bg-soft); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-bg); color: #A7ADB8; padding-top: 72px; }
.site-footer a { color: #C8CDD6; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 56px;
}
.footer-col h4 { color: #fff; font-size: 14px; font-family:"Onest"; font-weight:600; letter-spacing:.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer-about p { color: #8990A0; font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: #6E7686;
}

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.section--ink .field label { color: #B7BDC8; }
.input, .textarea, .select {
  font-family: "Onest", sans-serif; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 15px 16px; transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-50);
}
.input::placeholder, .textarea::placeholder { color: #9AA1AC; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
}
.chip svg { width: 16px; height: 16px; color: var(--red); }
.chip--ink { background: rgba(255,255,255,.05); border-color: var(--ink-line); color: #C8CDD6; }

/* reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* utility */
.grid { display: grid; gap: 24px; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.text-red { color: var(--red); }
.hide-mobile { }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 15px 22px; border-radius: 12px;
  box-shadow: var(--sh-3); font-weight: 500; z-index: 200; display:flex; align-items:center; gap:10px;
  transition: transform .4s var(--ease); max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; color: #56D364; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1040px) {
  .nav, .header-phone { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; gap: 10px; }
  .topbar__left .topbar__item.hide-sm { display: none; }
}
@media (max-width: 620px) {
  :root { --pad: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .btn { width: 100%; }
  .header-actions .btn { width: auto; }
}
@media (max-width: 600px) {
  /* header has no room for the request button next to logo + burger — menu holds it */
  .header-actions > .btn-primary { display: none; }
}
