:root {
  --bg: #0b1220;
  --bg-soft: #111a2c;
  --card: #151f36;
  --text: #f2f6ff;
  --muted: #b9c5df;
  --accent: #ffcf33;
  --accent-dark: #eab300;
  --line: #273454;
  --ok: #4ade80;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(5, 10, 20, 0.35);
  --maxw: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo span {
  color: var(--accent);
}

.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.phones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 600;
  font-size: 14px;
}

.hero {
  position: relative;
  padding: 64px 0 48px;
  background:
    linear-gradient(110deg, rgba(7, 12, 24, 0.82), rgba(7, 12, 24, 0.56)),
    radial-gradient(900px 420px at 0% -10%, rgba(255, 207, 51, 0.16), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(54, 116, 255, 0.16), transparent 55%),
    url("images/hero.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.32), rgba(10, 16, 32, 0.78));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(30px, 5vw, 54px);
  max-width: 14ch;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 58ch;
  margin-bottom: 20px;
}

.benefits {
  display: block;
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.benefits li {
  position: relative;
  padding: 0 0 0 28px;
  margin: 0 0 10px;
  color: #d8e1f8;
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 18px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1b1f2a;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #d7e0f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-card h3 {
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.quick-form {
  display: grid;
  gap: 10px;
}

.quick-form input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1830;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.quick-form input:focus {
  border-color: #5979d8;
}

.section {
  padding: 54px 0;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.service-title {
  font-size: 18px;
  margin-bottom: 12px;
  min-height: 42px;
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

.factors {
  display: grid;
  gap: 10px;
  color: #d9e2fb;
  margin-top: 10px;
}

.factor {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
}

.form-callout {
  margin-top: 24px;
  background: linear-gradient(160deg, #182546 0%, #121c33 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.form-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.form-line input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1830;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.tiny {
  color: #90a2cb;
  font-size: 12px;
  margin-top: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  min-height: 160px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1e2431;
  background: var(--accent);
  border-radius: 999px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  max-width: 14ch;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(255, 207, 51, 0.14), rgba(40, 91, 196, 0.2)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.06) 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
}

.photo img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 14px;
  color: #eaf0ff;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 28, 0.82) 80%);
}

.danger {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.danger li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.badge {
  margin-top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 80, 80, 0.2);
  color: #ff9a9a;
  border: 1px solid rgba(255, 80, 80, 0.38);
  font-size: 14px;
  font-weight: 700;
}

.warn-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 16px;
}

.warn-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contacts {
  background: #0a1120;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 42px 0 32px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  align-items: start;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.phones-big {
  display: grid;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

footer {
  margin-top: 18px;
  color: #8798be;
  font-size: 13px;
}

@media (max-width: 1020px) {
  .hero-grid,
  .cards,
  .steps,
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar-wrap {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid,
  .cards,
  .steps,
  .gallery,
  .contacts-grid,
  .form-line {
    grid-template-columns: 1fr;
  }
}
