:root {
  --bg: #f7f9fc;
  --bg-alt: #ffffff;
  --bg-dark: #0b1020;
  --text: #0b1020;
  --text-soft: #5c667a;
  --border: #e6ebf2;
  --primary: #4f7cff;
  --primary-dark: #3b66e8;
  --mint: #24d6c5;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 18px 60px rgba(11, 16, 32, 0.08);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.15rem; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.site-wrap { overflow: clip; }
.section {
  padding: 100px 0;
}
.section--alt {
  background: rgba(255,255,255,0.65);
}
.section--dark {
  background: linear-gradient(180deg, #0b1020 0%, #10182d 100%);
  color: #fff;
}
.center { text-align: center; }
.prose {
  max-width: 860px;
}
.prose h1,
.prose h2,
.prose h3,
.section-head__title,
.hero__title,
.logo,
.footer__brand,
.btn,
.process-item span,
.price-card__value {
  font-family: Manrope, system-ui, sans-serif;
}
.prose h1,
.section-head__title,
.hero__title {
  letter-spacing: -0.04em;
}
.prose h1,
.hero__title {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1;
  margin: 0 0 18px;
}
.prose h2,
.section-head__title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
  margin: 0 0 18px;
}
.prose h3 {
  font-size: 1.4rem;
}
.prose p,
.hero__text,
.section-text {
  color: var(--text-soft);
  font-size: 1.08rem;
}
.section-text--light,
.section-head__title--light,
.section--dark .section-head__eyebrow,
.section--dark .seo-point,
.section--dark .contacts-list,
.section--dark .contacts-list a {
  color: #fff;
}
.eyebrow,
.hero__eyebrow,
.section-head__eyebrow,
.post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before,
.hero__eyebrow::before,
.section-head__eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--mint));
}
.section-head {
  max-width: 820px;
  margin-bottom: 40px;
}
.section-head--tight { margin-bottom: 32px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.75);
  border-bottom: 1px solid rgba(230, 235, 242, 0.8);
}
.header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
}
.main-nav__list,
.footer-nav__list,
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav__list a,
.footer-nav__list a {
  color: var(--text-soft);
  font-weight: 500;
}
.main-nav__list a:hover,
.footer-nav__list a:hover,
.header__phone:hover,
.text-link:hover {
  color: var(--primary);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__phone {
  font-weight: 600;
}
.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}
.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
}
.mobile-menu__actions {
  display: grid;
  gap: 12px;
}

.hero {
  padding: 86px 0 48px;
}
.hero__grid,
.calculator__grid,
.seo-block__grid,
.support__grid,
.lead-form__grid,
.contacts__grid,
.about__grid,
.contact-layout,
.brief-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}
.hero__title { max-width: 760px; }
.hero__text { max-width: 700px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}
.hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__meta li,
.trust-strip__item,
.seo-point {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79,124,255,0.12);
  background: rgba(255,255,255,0.75);
  color: var(--text-soft);
  font-weight: 600;
}
.hero__visual {
  position: relative;
  min-height: 420px;
}
.hero-card {
  position: absolute;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,248,255,0.88));
  border: 1px solid rgba(255,255,255,0.75);
}
.hero-card--primary {
  inset: 20px 0 40px 70px;
}
.hero-card--secondary {
  inset: 130px 150px 0 0;
  background: linear-gradient(180deg, rgba(79,124,255,0.18), rgba(36,214,197,0.12));
}
.hero-glow {
  position: absolute;
  filter: blur(80px);
  opacity: 0.55;
  border-radius: 999px;
}
.hero-glow--one {
  width: 220px;
  height: 220px;
  background: rgba(79,124,255,0.4);
  top: 10px;
  right: 10px;
}
.hero-glow--two {
  width: 180px;
  height: 180px;
  background: rgba(36,214,197,0.35);
  bottom: 10px;
  left: 10px;
}
.trust-strip {
  padding-bottom: 22px;
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cards-grid {
  display: grid;
  gap: 20px;
}
.cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card,
.service-card,
.case-card,
.price-card,
.adv-card,
.audience-card,
.post-card,
.testimonial-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover,
.service-card:hover,
.case-card:hover,
.price-card:hover,
.adv-card:hover,
.audience-card:hover,
.post-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 70px rgba(11, 16, 32, 0.1);
  border-color: rgba(79,124,255,0.3);
}
.service-card h3,
.service-card h2,
.case-card h3,
.case-card h2,
.price-card h2,
.price-card h3,
.adv-card h2,
.adv-card h3,
.testimonial-card h3,
.post-card h2,
.post-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}
.case-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79,124,255,0.18), rgba(36,214,197,0.14));
  margin-bottom: 20px;
}
.text-link {
  color: var(--primary);
  font-weight: 700;
}
.text-link::after {
  content: " →";
}
.calc-form,
.contact-form {
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 28px;
}
.lead-form .contact-form {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  gap: 8px;
}
.form-row label {
  font-size: 0.95rem;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(79,124,255,0.65);
  box-shadow: 0 0 0 4px rgba(79,124,255,0.08);
}
.calc-result {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.12);
  font-weight: 700;
  color: #fff;
}
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.process-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.process-item span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
}
.price-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
}
.seo-block__grid {
  align-items: start;
}
.seo-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.seo-point {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.support__grid,
.lead-form__grid,
.contacts__grid,
.contact-layout,
.brief-layout {
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-item__toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  text-align: left;
  font: 700 1.08rem/1.4 Inter, system-ui, sans-serif;
  color: var(--text);
  cursor: pointer;
}
.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item.is-open .faq-item__content {
  max-height: 400px;
}
.faq-item__content-inner {
  padding: 0 24px 22px;
  color: var(--text-soft);
}
.contact-form__success,
.contact-form__error {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}
.contact-form__success {
  background: rgba(36,214,197,0.14);
  color: #0a6b62;
}
.contact-form__error {
  background: rgba(255,78,78,0.12);
  color: #8b1f1f;
}
.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.contacts-list--page li {
  color: var(--text-soft);
}
.cta-panel {
  margin-top: 40px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(79,124,255,0.12), rgba(36,214,197,0.10));
  border: 1px solid rgba(79,124,255,0.18);
}
.cta-panel h2 { margin-top: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(79,124,255,0.24);
}
.btn--secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn--block { width: 100%; }
.site-footer {
  padding: 32px 0 90px;
  background: #0b1020;
  color: rgba(255,255,255,0.82);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 20px;
}
.footer__brand {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}
.footer__contacts,
.footer__links {
  display: grid;
  gap: 10px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(11,16,32,0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(11,16,32,0.18);
}
.mobile-bar a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}
.featured-image,
.pagination-wrap {
  margin-top: 24px;
}
.footer-widget__title { margin-top: 0; }

@media (max-width: 1180px) {
  .cards-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: inline-block; }
  .hero__grid,
  .calculator__grid,
  .seo-block__grid,
  .support__grid,
  .lead-form__grid,
  .contacts__grid,
  .about__grid,
  .contact-layout,
  .brief-layout,
  .footer__grid,
  .footer__bottom {
    grid-template-columns: 1fr;
  }
  .process-list,
  .cards-grid--3,
  .seo-points,
  .trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-bar { display: grid; }
  .site-footer { padding-bottom: 110px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 52px; }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .mobile-menu.is-open { display: block; }
  .hero__visual { min-height: 260px; }
  .hero-card--primary { inset: 20px 0 30px 50px; }
  .hero-card--secondary { inset: 90px 120px 0 0; }
  .cards-grid--3,
  .cards-grid--4,
  .process-list,
  .seo-points,
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    align-items: flex-start;
  }
}
