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

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --text-main: #111827;
  --text-muted: #475569;
  --brand: #0a5ecf;
  --brand-hover: #084fb0;
  --brand-soft: rgba(10, 94, 207, 0.08);
  --border-soft: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--text-main);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.logo a {
  font-weight: 700;
  font-size: 20px;
  color: #111;
}

.logo span {
  color: #0057b8;
}

.main-nav ul {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 99px;
  color: #334155;
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 10px 20px rgba(10, 94, 207, 0.28);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 12px 24px rgba(10, 94, 207, 0.34);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand);
  border-color: rgba(10, 94, 207, 0.36);
}

.btn-outline:hover {
  background-color: var(--brand-soft);
  text-decoration: none;
}

.hero {
  padding: 40px 0 32px;
  background: radial-gradient(circle at top left, #e7f1ff 0, #f4f8ff 42%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 17px;
  max-width: 560px;
  color: var(--text-muted);
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.hero-benefits li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 15px;
}

.hero-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0f9f4a;
  font-weight: 600;
}

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

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-photo-placeholder {
  width: 100%;
  min-height: 200px;
  border-radius: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.04), rgba(0, 0, 0, 0));
}

.hero-main-photo {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.hero-photo-top .hero-inner {
  grid-template-columns: 1fr;
  gap: 18px;
}

.hero-photo-top .hero-image {
  order: 1;
}

.hero-photo-top .hero-content {
  order: 2;
}

.hero-photo-top .hero-main-photo {
  max-height: 430px;
  object-position: center 35%;
}

.section {
  padding: 40px 0;
  background-color: var(--surface);
}

.section-light {
  background-color: var(--surface-soft);
}

.section-accent {
  background: linear-gradient(135deg, #0057b8, #0099ff);
  color: #ffffff;
}

.section-accent h2,
.section-accent p {
  color: #ffffff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  background-color: var(--surface);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  border-color: rgba(10, 94, 207, 0.22);
}

.section-light .card {
  background-color: #ffffff;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.card-link {
  font-size: 14px;
  font-weight: 500;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.benefit-item {
  background-color: #f4f7fc;
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.steps-list {
  margin: 18px 0 0;
  padding-left: 20px;
  font-size: 14px;
}

.steps-list li {
  margin-bottom: 8px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.lead-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 20px 16px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 34px rgba(4, 24, 60, 0.2);
}

.quiz-block {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.quiz-block h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.quiz-block p {
  margin-top: 0;
  margin-bottom: 12px;
  color: #475569;
  font-size: 14px;
}

.quiz-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quiz-form .btn {
  margin-top: 8px;
  width: 100%;
}

.site-toast {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 300;
  background: #0f172a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.35);
  max-width: 320px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.site-toast-error {
  background: #7f1d1d;
}

.site-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(10, 94, 207, 0.62);
  box-shadow: 0 0 0 3px rgba(10, 94, 207, 0.18);
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.form-note {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.9;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: #0057b8;
  font-size: 20px;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.page-hero {
  padding: 28px 0 18px;
  background: radial-gradient(circle at top left, #e6f1ff 0, #f5f5f7 45%, #ffffff 100%);
}

.page-hero h1 {
  font-size: 26px;
}

.faq details {
  background: #f7f9fd;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.video-thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
  text-decoration: none;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0));
  pointer-events: none;
}

.video-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 0, 0, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.reviews-carousel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(0, 87, 184, 0.35);
  border-radius: 99px;
}

.review-slide {
  margin: 0;
}

.photo-carousel .carousel-track {
  grid-auto-columns: minmax(260px, 420px);
}

.photo-slide {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  background: #fff;
}

.photo-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(10, 94, 207, 0.3);
}

.carousel-btn:hover {
  background: var(--brand-hover);
}

.photo-slide img,
.photo-grid img,
.hero-main-photo {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.9);
  padding: 18px;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-prev {
  left: 14px;
}

.image-lightbox-next {
  right: 14px;
}

.image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.site-footer {
  background: #070b12;
  color: #d2d6df;
  padding: 26px 0 18px;
  margin-top: 12px;
}

.site-footer a {
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 26px;
  font-size: 13px;
}

.footer-block h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.footer-contacts,
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacts li,
.footer-nav li {
  margin-bottom: 6px;
}

.footer-contacts span {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.site-footer-simple {
  background: #070b12;
  color: #d2d6df;
  padding: 16px 0 14px;
}

.seo-text p,
.seo-text li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.seo-text h2 {
  margin-bottom: 14px;
}

.seo-text h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.geo-list {
  columns: 2;
  column-gap: 24px;
  font-size: 14px;
  margin: 12px 0 0;
  padding-left: 20px;
}

@media (max-width: 600px) {
  .geo-list {
    columns: 1;
  }
}

.lead-banner {
  background: linear-gradient(90deg, #0b1220, #173253);
  color: #e8ecf4;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
}

.lead-banner a {
  color: #fff;
  font-weight: 600;
}

.lead-bar-mobile {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.14);
}

.lead-bar-mobile .btn {
  flex: 1;
  max-width: none;
  min-width: 0;
  font-size: 12px;
  padding: 9px 10px;
}

@media (max-width: 768px) {
  .lead-bar-mobile {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .form-section {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
    gap: 8px;
  }

  .main-nav ul::-webkit-scrollbar {
    height: 6px;
  }

  .main-nav ul::-webkit-scrollbar-thumb {
    background: rgba(10, 94, 207, 0.3);
    border-radius: 999px;
  }

  .header-contacts {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    width: 100%;
    order: 3;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .image-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .quiz-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 26px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .header-contacts {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .header-contacts .phone {
    display: none;
  }

  .header-contacts .btn {
    padding: 9px 12px;
    font-size: 13px;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 32px 0;
  }

  .card {
    border-radius: 16px;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(10, 94, 207, 0.38);
  outline-offset: 2px;
}

