:root {
  --text: #1f2b27;
  --muted: #66746d;
  --bg: #f7f8f4;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f0f4ee;
  --line: #dfe6dc;
  --dark: #172622;
  --dark-soft: #223832;
  --dark-mid: #4e635b;
  --orange: #e36b25;
  --orange-hover: #c95a18;
  --orange-light: #fff1e7;
  --amber: #e2a23c;
  --green: #3f7665;
  --teal: var(--green);
  --teal-light: #e7f2ed;
  --shadow: 0 14px 32px rgba(23, 38, 34, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

select,
button,
a,
[role="button"],
.btn {
  caret-color: transparent;
}

.btn:focus-visible,
.nav a:focus-visible,
.faq-header:focus-visible,
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar .container {
  width: min(1280px, calc(100% - 48px));
}

/* ──────────── TOPBAR ──────────── */
.topbar {
  background: rgba(31, 33, 31, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(20, 20, 18, 0.16);
  backdrop-filter: blur(14px) saturate(140%);
}

.topbar-inner {
  height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #fff;
  font-size: 17px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  background: #121212;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(245, 142, 23, 0.28);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 230;
  flex-shrink: 0;
}

.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.burger-line:nth-child(1) { top: 14px; }
.burger-line:nth-child(2) { top: 21px; }
.burger-line:nth-child(3) { top: 28px; }

.burger.active .burger-line:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger.active .burger-line:nth-child(2) { opacity: 0; }
.burger.active .burger-line:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 220;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active { display: block; opacity: 1; }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #202220;
  padding: 88px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-panel nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-panel nav a:hover {
  background: rgba(227, 107, 37, 0.16);
  color: var(--orange);
}

.mobile-menu-panel .mobile-phone {
  display: block;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}

.mobile-menu-panel .mobile-btn {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.has-public-messenger .top-actions .phone {
  display: none;
}

.phone {
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
}

.top-actions .btn {
  min-height: 48px;
  padding: 13px 22px;
  font-size: 15px;
  white-space: nowrap;
}

.top-actions .btn-primary { box-shadow: 0 6px 14px rgba(227, 107, 37, 0.22); }
.top-actions .btn-primary:hover { box-shadow: 0 10px 20px rgba(227, 107, 37, 0.28); }

.btn-telegram,
.btn-messenger {
  background: #2aabee;
  color: #fff;
  border-color: #2aabee;
  box-shadow: 0 8px 18px rgba(42, 171, 238, 0.18);
  gap: 8px;
}

.btn-telegram:hover,
.btn-messenger:hover {
  background: #229ed9;
  border-color: #229ed9;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(42, 171, 238, 0.24);
}

.btn-messenger .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.top-actions .btn-telegram,
.top-actions .btn-messenger {
  min-height: 48px;
  padding: 13px 22px;
}

.messenger-menu {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.messenger-menu[hidden],
.messenger-menu-list[hidden],
.messenger-option[hidden] {
  display: none;
}

.messenger-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 160;
  display: grid;
  gap: 4px;
  width: 190px;
  max-width: min(260px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 34px rgba(20, 20, 18, 0.18);
}

.messenger-menu-inline .messenger-menu-list {
  left: 0;
  right: auto;
}

.messenger-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.messenger-option::after {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: '';
  background: currentColor;
  opacity: 0.55;
}

.messenger-option:hover {
  background: var(--surface-strong);
}

.messenger-option-max {
  color: var(--green);
}

.messenger-option-telegram {
  color: #229ed9;
}

.mobile-menu-panel .messenger-menu {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.mobile-menu-panel .messenger-menu .mobile-btn {
  width: 100%;
  margin-top: 0;
}

.mobile-menu-panel .messenger-menu-list {
  position: static;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1180px) {
  .top-actions .phone {
    display: none;
  }

  .nav {
    gap: 10px;
    font-size: 12.5px;
  }

  .top-actions .btn {
    padding-inline: 18px;
  }
}

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(227, 107, 37, 0.18);
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(227, 107, 37, 0.24);
}

.btn-outline {
  background: var(--surface);
  color: var(--dark);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
