:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --bg-card: #162036;
  --text: #eef3ff;
  --text-muted: #a9b6d3;
  --primary: #ff8a1f;
  --primary-dark: #e67300;
  --accent: #3b82f6;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* ← новое: предотвращаем горизонтальный скролл */
}

img {
  max-width: 100%;
  display: block;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.88);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  font-size: 1.8rem;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-size: 1.05rem;
}

.logo__text small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  font-weight: 700;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #ffb347);
  color: #1a1208;
  padding: 12px 22px;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #ff9f2e);
}

.btn--outline {
  border: 1px solid var(--border);
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.03);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--light {
  background: #fff;
  color: #111827;
  padding: 14px 28px;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(255, 138, 31, 0.12), transparent 30%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.12);
  color: #ffc285;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 138, 31, 0.25);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__stats li {
  min-width: 110px;
}

.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.hero__stats span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__photo {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-card);
}

.hero__card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #7ee081;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--bg-soft);
}

.section__head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.card h3,
.advantage h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p,
.advantage p,
.review__text {
  margin: 0;
  color: var(--text-muted);
}

.advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantage {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.advantage__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

.review__stars {
  color: #ffc94d;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review__text {
  margin-bottom: 18px;
  min-height: 96px;
}

.review__author strong {
  display: block;
}

.review__author span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.gallery__item--wide {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery__item--wide img {
  min-height: 100%;
  aspect-ratio: auto;
}

.gallery__item figcaption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.section__head code {
  font-size: 0.88em;
  color: #ffc285;
}

/* Order form */
.section--order {
  background:
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 40%),
    var(--bg-soft);
}

.order__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.order__info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.order__info > p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.order__phone {
  margin: 20px 0 0;
  font-weight: 700;
}

.order__phone a {
  color: var(--primary);
}

.order-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 138, 31, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7a99;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field--hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-alert--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.form-alert--fail {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.order-form.is-loading .btn[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

/* CTA */
.cta {
  padding: 0 0 72px;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, #ff8a1f);
  box-shadow: var(--shadow);
}

.cta__inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta__inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #08101d;
  padding-top: 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer__desc,
.footer__list {
  color: var(--text-muted);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li + li {
  margin-top: 8px;
}

.footer__list a:hover {
  color: var(--text);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, background 0.2s;
}

.socials__link:hover {
  transform: translateY(-2px);
}

.socials__link--vk:hover { background: rgba(76, 117, 163, 0.25); }
.socials__link--tg:hover { background: rgba(42, 171, 238, 0.25); }
.socials__link--wa:hover { background: rgba(37, 211, 102, 0.25); }
.socials__link--yt:hover { background: rgba(255, 0, 0, 0.2); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Floating call button (mobile) */
.float-call {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ffb347);
  color: #1a1208;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(255, 138, 31, 0.35);
}

/* ===== Mobile & Tablet ===== */
@media (max-width: 960px) {
  .hero__grid,
  .cards--3,
  .advantages,
  .footer__grid,
  .order__grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-row: auto;
  }

  .nav {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .phone-link {
    display: none;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-call {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 32px;
  }
  .section {
    padding: 48px 0;
  }
  .cta {
    padding: 0 0 48px;
  }
  .hero__stats {
    gap: 16px;
  }
  .hero__stats li {
    min-width: 80px;
  }
  .hero__stats strong {
    font-size: 1.3rem;
  }
  .order-form {
    padding: 20px;
  }

  /* ← новый блок: уменьшаем отступы контейнера */
  .container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 560px) {
  .header__actions .btn--sm {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

  .section {
    padding: 40px 0;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__buttons .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .order__info h2 {
    font-size: 1.8rem;
  }

  .order-form {
    padding: 16px;
  }

  .field input,
  .field textarea {
    padding: 10px 12px;
  }

  .cta__inner {
    padding: 24px;
  }

  .footer__grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .logo__icon {
    font-size: 1.4rem;
  }
  .logo__text strong {
    font-size: 0.9rem;
  }
  .logo__text small {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section__head h2 {
    font-size: 1.6rem;
  }

  .card,
  .review,
  .advantage {
    padding: 16px;
  }

  .review__text {
    min-height: auto;
  }

  .gallery__item img {
    min-height: 160px;
  }

  .order__grid {
    gap: 24px;
  }

  .footer {
    padding-top: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .float-call {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    right: 12px;
    bottom: 12px;
  }

  /* ← новый блок: ещё сильнее уменьшаем отступы */
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 400px) {
  .container {
    width: min(var(--container), calc(100% - 16px));
  }

  .hero {
    padding: 24px 0 24px;
  }
  .section {
    padding: 32px 0;
  }
  .cta {
    padding: 0 0 32px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
  .hero__lead {
    font-size: 0.95rem;
  }

  .header__inner {
    min-height: 64px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 40px;
  }

  .field input,
  .field textarea {
    font-size: 15px;
    padding: 8px 10px;
  }

  .form-note {
    font-size: 0.75rem;
  }
}