﻿:root {
  --bg-page: #cfd8e4;
  --bg-surface: #e8edf5;
  --bg-soft: #eef2f7;
  --bg-white: #ffffff;
  --text-main: #2d4964;
  --text-secondary: #35516f;
  --line: #d8e3f0;
  --line-soft: #ccd7e6;
  --accent: #3f79bc;
  --accent-strong: #2f6eb5;
  --shadow-soft: 0 4px 12px rgba(77, 101, 127, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: Roboto, Arial, sans-serif;
}

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

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

#lb-services,
#lb-benefits,
#lb-contacts {
  scroll-margin-top: 110px;
}

.wrapper {
  width: 100%;
  background: var(--bg-surface);
  overflow: hidden;
}

.hero {
  background: url('/img/background-header.png') center/cover no-repeat;
  min-height: 720px;
  padding: 120px 56px 30px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(233, 240, 248, 0.78);
  box-shadow: 0 6px 18px rgba(59, 86, 117, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  width: 270px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.phone {
  font-size: 27px;
  line-height: 1;
  color: #30455f;
  white-space: nowrap;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 73, 100, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--text-main);
}

.nav-burger span + span {
  margin-top: 6px;
}

.nav-mobile {
  display: none;
  position: absolute;
  right: 20px;
  top: 100%;
  margin-top: 10px;
  min-width: 280px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(233, 240, 248, 0.96);
  box-shadow: 0 8px 24px rgba(59, 86, 117, 0.18);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-link {
  display: block;
  padding: 10px 4px;
  font-size: 20px;
  line-height: 1.2;
}

.nav-mobile-link + .nav-mobile-link {
  border-top: 1px solid rgba(47, 73, 100, 0.16);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
  align-items: start;
}

.hero-left h1 {
  margin: 6px 0 36px;
  font-size: 58px;
  line-height: 1.16;
  color: #2c455f;
}

.hero-subtitle {
  margin: 0 0 56px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-main);
}

.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.adv {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.adv img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
}

.hero-call p {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-secondary);
}

.hero-call a {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  color: #2c455f;
}

.hero-image {
  height: 420px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

.hero-image img {
  width: auto;
  max-width: 100%;
  height: 200%;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
}

.section {
  padding: 28px 56px;
}

.section h2,
.questions-title-text {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 48px;
  line-height: 1.2;
  color: var(--text-main);
  text-align: center;
}

.section h2::before,
.section h2::after,
.questions-title-text::before,
.questions-title-text::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line-soft);
}

.services { background: #f7f8fa; padding: 100px 56px; }
.benefits,
.audience,
.why { background: var(--bg-soft); }
.steps { background: #f7f8fa; padding: 50px 56px; }
.contacts { background: #edf2f9; }

.services-grid,
.benefits-grid,
.audience-grid,
.contacts-layout {
  display: grid;
  gap: 20px;
}

.services-grid,
.benefits-grid { grid-template-columns: repeat(3, 1fr); }
.audience-grid { grid-template-columns: repeat(5, 1fr); }
.contacts-layout { grid-template-columns: 1fr 1.4fr; gap: 18px; }

.service-card,
.benefit-card,
.why-card,
.contact-card,
.questions-card,
.questions-form,
.request-modal-info,
.request-modal-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.questions-card-title-text {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: var(--text-main);
    text-align: center;
  }

.service-card h3,
.benefit-card h3,
.why-card h3,
.contact-card h3,
.questions-name-title,
.questions-tel-title,
.questions-form-desc-title,
.site-footer-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-main);
  text-align: left;
}

.service-card h3 { margin: 14px 18px 12px; }
.service-card img { order: -1; width: 100%; height: 390px; object-fit: cover; }
.service-card p { margin: auto 18px 16px; font-size: 24px; line-height: 1.35; color: var(--text-secondary); }
.service-card .btn { margin: 0 18px 18px; width: calc(100% - 36px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(90deg, #4e8bd2 0%, #3f79bc 100%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(63, 121, 188, 0.25);
}

.btn:hover {
  filter: brightness(1.06);
}

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

.benefit-card { min-height: 220px; padding: 24px; background: linear-gradient(160deg, #f5f8fd 0%, #e9f0f8 100%); }
.benefit-card img { width: 76px; height: 76px; margin-bottom: 12px; object-fit: contain; }
.benefit-card p,
.why-card p,
.contact-card p,
.questions-card-desc-text,
.questions-note p,
.site-footer-list a,
.site-footer-requisites,
.site-footer-contacts-text { font-size: 22px; line-height: 1.35; color: var(--text-secondary); }
.benefit-card p { margin: 0; }

.audience { padding: 50px 56px; }
.audience h2, .steps h2 { margin-bottom: 0; }
.audience-grid, .steps-row { margin-top: 40px; }

.audience-item {
  min-height: 140px;
  padding: 10px 8px;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 27px;
  text-align: center;
}

.audience-item img { width: 180px; height: 112px; object-fit: contain; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 12px;
  border-radius: 12px;
  background: #e7edf5;
}

.step {
  min-height: 72px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4f8fd 0%, #e7edf5 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1.2;
  animation: step-highlight 10s ease-in-out infinite;
}

.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 2s; }
.step:nth-child(3) { animation-delay: 4s; }
.step:nth-child(4) { animation-delay: 6s; }
.step:nth-child(5) { animation-delay: 8s; }

.step span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #5a84b8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes step-highlight {
  0%, 12% { transform: translateX(0); box-shadow: none; filter: brightness(1); }
  18%, 28% { transform: translateX(4px); box-shadow: 0 8px 18px rgba(63,121,188,.28); filter: brightness(1.08); }
  34%, 100% { transform: translateX(0); box-shadow: none; filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
}

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

.why-card {
  min-height: 190px;
  padding: 24px;
  background: linear-gradient(160deg, #f5f8fd 0%, #e9f0f8 100%);
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: max-content 1fr;
  grid-template-areas:
    "img title"
    "img text";
  column-gap: 20px;
}

.why-wide { grid-column: span 2; }
.why-narrow { grid-column: span 1; }

.why-card img {
  grid-area: img;
  width: 360px;
  height: 360px;
  object-fit: contain;
  cursor: zoom-in;
  align-self: start;
}

.why-card h3 { grid-area: title; align-self: start; }
.why-card p {
  grid-area: text;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.why-no-image {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "title"
    "text";
}

.why-no-image h3 { margin-bottom: 14px; }
.why-no-image p { margin: 0; }

.contact-card { padding: 18px; background: linear-gradient(150deg, #f6f9fd 0%, #e6eef8 100%); }
.contact-info p { font-size: 20px; }
.contact-map {
  min-height: 420px;
  border: 1px solid #dde6f1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.questions { margin-bottom: 0; padding: 28px 56px 56px; background: #f7f8fa; }
.questions .block-wrapper { margin: 0; }
.questions-title { max-width: 100%; margin-bottom: 24px; }
.questions-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.questions-card,
.questions-form { padding: 24px; min-height: 100%; }
.questions-form { grid-column: span 2; }
.questions-card-title { margin-bottom: 16px }
.questions-card-desc { width: 100%; text-align: center; margin-bottom: 16px; }

.questions,
.request-modal-info {
  text-align: left;
}

.politics { margin-bottom: 16px; text-align: center; color: var(--text-secondary); font-size: 22px; line-height: 1.35; }
.politics a { color: var(--accent); }

.questions-name,
.questions-tel,
.questions-form-desc { margin-bottom: 10px; }

.questions-name-input,
.questions-tel-input,
.questions-form-desc-input {
  width: 100%;
  border: 1px solid #c8d4e3;
  border-radius: 7px;
  background: #f8fbff;
  color: #3b5470;
  padding: 8px 10px;
  font-size: 23px;
  line-height: 1.2;
}

.questions-name-input,
.questions-tel-input { height: 44px; }
.questions-form-desc-input { height: 110px; resize: none; }

.questions-btn { width: 100%; margin: 0; }
.questions-btn input {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  background: linear-gradient(90deg, #4e8bd2 0%, #3f79bc 100%);
  color: #fff;
  font-weight: 600;
}

.footer {
  background: #dbe4f0;
  color: #3d5672;
  padding: 28px 56px 56px;
}

.site-footer-inner { width: 100%; margin: 0 auto; }
.site-footer-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer-section { min-width: 0; }
.site-footer-title { margin: 0 0 12px; }
.site-footer-list { margin: 0; padding: 0; list-style: none; }
.site-footer-list li + li { margin-top: 8px; }
.site-footer-list a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.site-footer-list a:hover { color: var(--accent); }
.site-footer-center { text-align: center; }
.site-footer-social { display: flex; justify-content: center; gap: 18px; margin-bottom: 16px; }
.site-footer-social-icon { width: 44px; height: 44px; }
.site-footer-logo { display: inline-block; width: 190px; margin-bottom: 14px; }
.site-footer-requisites { margin: 0; }
.site-footer-contacts-text { margin: 0; }

.modal-thanks {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2050;
  padding-top: 100px;
  background: rgba(0,0,0,.4);
}

.modal-content {
  position: relative;
  width: min(640px, 95vw);
  margin: auto;
}

.modal-thanks-cards {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #f2f6fb;
  box-shadow: var(--shadow-soft);
}

.request-modal,
.why-image-modal,
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.request-modal.is-open,
.why-image-modal.is-open,
.privacy-modal.is-open {
  display: flex;
}

.request-modal-content,
.privacy-modal-content {
  position: relative;
  width: min(980px, 96vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f2f6fb;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.request-modal-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 24px;
}

.request-modal-info,
.request-modal-form {
  padding: 18px;
}

.request-modal-close,
.why-image-modal-close,
.privacy-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.why-image-modal-img {
  width: auto;
  height: 96vh;
  max-width: 95vw;
  max-height: 96vh;
  object-fit: contain;
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
}

.privacy-modal-content {
  width: min(1100px, 95vw);
  height: min(90vh, 920px);
  overflow: hidden;
  background: #fff;
}

.privacy-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1205px) {
  .nav { align-items: center; justify-content: space-between; }
  .nav-right { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 1200px) {
  .hero,
  .section { padding: 20px; }

  .hero { padding: 110px 20px 20px; }
  .hero-image { display: none; }

  .hero-content,
  .services-grid,
  .benefits-grid,
  .audience-grid,
  .steps-row,
  .why-grid,
  .contacts-layout,
  .questions-cards,
  .site-footer-sections {
    grid-template-columns: 1fr;
  }

  .nav { padding: 14px 20px; }
  .hero-left h1 { font-size: 38px; }
  .hero-subtitle { font-size: 22px; }

  .adv,
  .step,
  .service-card p,
  .audience-item,
  .why-card p,
  .contact-card p,
  .footer,
  .questions-name-input,
  .questions-tel-input,
  .questions-form-desc-input,
  .site-footer-list a,
  .site-footer-contacts-text,
  .site-footer-requisites {
    font-size: 18px;
  }

  .section h2,
  .questions-title-text,
  .service-card h3,
  .benefit-card h3,
  .why-card h3,
  .contact-card h3 {
    font-size: 30px;
  }

  .why-card {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "title" "text";
    grid-template-rows: auto auto auto;
    row-gap: 10px;
  }

  .why-wide,
  .why-narrow { grid-column: span 1; }

  .why-card img { width: 132px; height: 132px; }

  .request-modal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 96px 14px 18px; min-height: auto; }
  .nav { padding: 10px 14px; }
  .logo { width: 170px; }

  .nav-mobile {
    left: 14px;
    right: 14px;
    min-width: auto;
    margin-top: 8px;
    padding: 10px;
  }

  .nav-mobile-link {
    font-size: 16px;
    padding: 10px 2px;
  }

  .hero-left h1 { margin: 0 0 16px; font-size: 28px; }
  .hero-subtitle { margin-bottom: 18px; font-size: 16px; line-height: 1.35; }
  .hero-call { margin-bottom: 18px; }
  .hero-call p { font-size: 16px; }
  .hero-call a { font-size: 36px; }

  .advantages { grid-template-columns: 1fr; gap: 12px; }
  .adv { gap: 8px; font-size: 16px; }
  .adv img { width: 44px; height: 44px; flex: 0 0 44px; }

  .section,
  .services,
  .steps,
  .audience,
  .questions { padding: 18px 14px; }

  .section h2,
  .questions-title-text { font-size: 24px; gap: 10px; }

  .section h2::before,
  .section h2::after,
  .questions-title-text::before,
  .questions-title-text::after { height: 1px; }

  .service-card h3,
  .benefit-card h3,
  .why-card h3,
  .questions-card-title-text,
  .questions-name-title,
  .questions-tel-title,
  .questions-form-desc-title,
  .site-footer-title { font-size: 20px; }

  .service-card p,
  .benefit-card p,
  .why-card p,
  .contact-card p,
  .contact-info p,
  .questions-card-desc-text,
  .questions-note p,
  .politics,
  .site-footer-list a,
  .site-footer-contacts-text,
  .site-footer-requisites { font-size: 14px; }

  .service-card img { height: 220px; }

  .audience-item { min-height: 120px; font-size: 16px; }
  .audience-item img { width: 120px; height: 72px; }

  .steps-row { margin-top: 18px; padding: 8px; }
  .step { min-height: 54px; font-size: 15px; padding: 8px 10px; }
  .step span { width: 30px; height: 30px; font-size: 14px; }

  .why-card { padding: 14px; row-gap: 8px; }
  .why-card img {
    width: min(100%, 280px);
    height: auto;
    max-height: 280px;
    justify-self: center;
  }

  .why-no-image {
    grid-template-areas: "title" "text";
    grid-template-rows: auto auto;
  }

  .contact-map { min-height: 280px; }

  .questions-title { margin-bottom: 16px; }
  .questions-card,
  .questions-form,
  .request-modal-info,
  .request-modal-form { padding: 12px; }

  .questions-name-input,
  .questions-tel-input,
  .questions-form-desc-input { font-size: 16px; }
  .questions-form-desc-input { height: 90px; }

  .request-modal { padding: 10px; }
  .request-modal-layout { gap: 10px; padding: 14px; }

  .footer { padding: 18px 14px; }
}
