:root {
  --blue: #0b5ed7;
  --blue-dark: #084298;
  --blue-soft: #e8f1ff;
  --text: #1f2937;
  --muted: #5b6472;
  --bg: #f5f7fb;
  --white: #ffffff;
  --max: #471aff;
  --max-hover: #6e1aff;
  --border: #e5eaf2;
  --shadow: 0 10px 30px rgba(15, 40, 80, 0.08);
  --radius: 18px;
  --container: 1140px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

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

/* Top bar */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar__social { display: flex; gap: 10px; }
.topbar__social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.15);
}
.topbar__meta { display: flex; gap: 22px; flex-wrap: wrap; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}
.logo {
  display: flex; align-items: center; gap: 12px; min-width: 210px;
}
.logo img { width: 54px; height: 54px; object-fit: contain; }
.logo__text strong {
  display: block; color: var(--blue); font-size: 18px; line-height: 1.1;
}
.logo__text span { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 600; color: var(--text); }
.nav a:hover { color: var(--blue); }
.nav__dropdown { position: relative; }
.nav__dropdown > button {
  border: 0; background: none; font-weight: 600; cursor: pointer; padding: 0;
}
.nav__menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 280px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 10px;
}
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu { display: grid; gap: 4px; }
.nav__menu a {
  padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 14px;
}
.nav__menu a:hover { background: var(--blue-soft); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline {
  background: #fff; color: var(--blue); border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-soft); }
.btn-phone { background: var(--blue); color: #fff; padding-inline: 16px; }
.btn-max { background: var(--max); color: #fff; }
.btn-max:hover { background: var(--max-hover); }
.btn-ghost {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
}

/* Hero */
.hero {
  padding: 48px 0 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(11,94,215,.12), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center;
}
.hero__copy h1 {
  margin: 0 0 14px; color: var(--blue); font-size: clamp(28px, 4vw, 42px); line-height: 1.15;
}
.hero__copy ul {
  margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px;
}
.hero__copy li {
  position: relative; padding-left: 22px; font-size: 18px; font-weight: 600;
}
.hero__copy li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
}
.hero__cta-line {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: var(--blue);
  margin: 0 0 18px;
}
.hero__cta-line .max { color: var(--max); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__visual {
  position: relative; display: grid; place-items: center; min-height: 420px;
}
.hero__blob {
  position: absolute; inset: 8% 6% 4% 18%;
  background:
    radial-gradient(circle at 40% 35%, #ff8a3d 0 18%, transparent 19%),
    radial-gradient(circle at 55% 55%, #0b5ed7 0 42%, transparent 43%);
  filter: blur(0.2px); opacity: .95; z-index: 0;
  clip-path: ellipse(48% 55% at 55% 50%);
}
.hero__visual img {
  position: relative; z-index: 1; width: min(420px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
}

/* Sections */
.section { padding: 56px 0; }
.section__title {
  margin: 0 0 28px; text-align: center; color: var(--blue);
  font-size: clamp(26px, 3vw, 36px);
}

.services { display: grid; gap: 22px; }
.service {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr;
}
.service__body { padding: 28px; display: grid; gap: 14px; align-content: start; }
.service__body h3 { margin: 0; color: var(--blue); font-size: 28px; }
.service__body p { margin: 0; color: var(--muted); }
.service__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.service__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.service:nth-child(even) { grid-template-columns: .9fr 1.1fr; }
.service:nth-child(even) .service__media { order: -1; }

/* Prices */
.prices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.price {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px;
  align-items: baseline;
}
.price span { color: var(--muted); }
.price strong { color: var(--blue); white-space: nowrap; font-size: 18px; }

.cta-band {
  margin-top: 28px; background: linear-gradient(135deg, #0b5ed7, #063a8c);
  color: #fff; border-radius: var(--radius); padding: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  align-items: center;
}
.cta-band h3 { margin: 0; font-size: 24px; max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery a {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:nth-child(1),
.gallery a:nth-child(5) { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }

/* About + form */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch;
}
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.card h3 { margin: 0 0 12px; color: var(--blue); font-size: 28px; }
.card p { color: var(--muted); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; background: #fbfcfe;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: 13px; color: var(--muted); font-weight: 500; }
.form .ok,
.form .err {
  padding: 12px 14px; border-radius: 12px; font-weight: 600;
}
.form .ok {
  background: #e8fff1; color: #0f7a3c;
}
.form .err {
  background: #ffe8e8; color: #a11;
}

/* Footer */
.footer {
  background: #0c2348; color: #d7e4ff; padding: 36px 0 22px; margin-top: 20px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px;
}
.footer h4 { margin: 0 0 12px; color: #fff; }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: #9db2d8;
}

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(8, 20, 40, .55);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100;
}
.modal.open { display: flex; }
.modal__box {
  width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 24px;
  position: relative;
}
.modal__close {
  position: absolute; right: 12px; top: 10px; border: 0; background: none;
  font-size: 28px; cursor: pointer; color: var(--muted);
}

@media (max-width: 980px) {
  .hero__grid, .service, .service:nth-child(even), .split, .footer__grid {
    grid-template-columns: 1fr;
  }
  .service:nth-child(even) .service__media { order: 0; }
  .prices { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:nth-child(1),
  .gallery a:nth-child(5) { grid-row: span 1; }
  .nav, .header__actions .btn-phone { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .header.open .nav {
    display: grid; position: absolute; left: 16px; right: 16px; top: 78px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 14px; box-shadow: var(--shadow);
  }
  .nav__menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0; }
  .hero__visual { min-height: 320px; }
}

@media (max-width: 600px) {
  .prices { grid-template-columns: 1fr; }
  .topbar__meta { display: none; }
  .hero { padding-top: 28px; }
}
