@font-face {
  font-family: "RT Fonts";
  src: url("https://rt-static.rt.ru/themes/rt_ru/fonts/BasisGrotesquePro-Regular-Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "RT Fonts";
  src: url("https://rt-static.rt.ru/themes/rt_ru/fonts/BasisGrotesquePro-Medium-Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "RT Fonts";
  src: url("https://rt-static.rt.ru/themes/rt_ru/fonts/BasisGrotesquePro-Bold-Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f8f8f8;
  --text: #101828;
  --muted: #797e8b;
  --dark: #101828;
  --purple: #7700ff;
  --purple-light: #ecdff8;
  --purple-soft: rgba(119, 0, 255, 0.05);
  --orange: #ff4f12;
  --blue: #2f9aff;
  --card: #ffffff;
  --line: #e8e8ee;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "RT Fonts", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--purple);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #fff !important;
  font-weight: 500;
}

.nav-cta:hover {
  background: #e6460f;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.section,
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: block;
  width: min(1160px, calc(100% - 32px));
  padding: 3rem 0 2.5rem;
}

.hero-content {
  width: 100%;
  max-width: none;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-content h1,
.hero-content .lead {
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
}

.button-primary:hover {
  background: #e6460f;
  border-color: #e6460f;
}

.button-secondary {
  border: 2px solid var(--purple);
  background: transparent;
  color: var(--purple);
}

.button-secondary:hover {
  background: var(--purple-soft);
}

.section {
  padding: 3.5rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
}

.text-card,
.review-card,
.trust-card,
.case-item,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.text-card {
  padding: 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.text-card p:last-child,
.review-card p:last-child,
.trust-card p:last-child {
  margin-bottom: 0;
}

.section-dark {
  width: 100%;
  max-width: none;
  padding: 3.5rem max(16px, calc((100vw - 1160px) / 2));
  background: var(--dark);
  color: #fff;
}

.section-dark .section-heading {
  width: min(760px, 100%);
}

.section-dark .section-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .eyebrow {
  color: #b794ff;
}

.yandex-reviews-heading {
  margin-top: 2.5rem;
}

.reviews-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  padding: 1.25rem;
  color: var(--text);
}

.review-card p {
  color: var(--muted);
  font-size: 15px;
}

.review-card span {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
}

.stars {
  margin-bottom: 0.85rem;
  color: #ffb608;
  letter-spacing: 0.06em;
}

/* Отзывы с Яндекс Карт */
.yandex-reviews {
  width: 100%;
  max-width: 1160px;
  margin: 2.5rem auto 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  color: #101828;
}

.yandex-reviews__header {
  position: relative;
  margin-bottom: 1.25rem;
  padding-right: 6.25rem;
}

.yandex-reviews__org-name {
  display: block;
  margin-bottom: 0.65rem;
  color: #101828;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.yandex-reviews__org-name:hover,
.yandex-reviews__org-name:focus {
  color: #1a6df2;
}

.yandex-reviews__rating-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.yandex-reviews__rating-score {
  flex-shrink: 0;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}

.yandex-reviews__stars {
  display: flex;
  gap: 3px;
}

.yandex-reviews__stars--header {
  width: 4.5rem;
  margin-bottom: 0.35rem;
}

.yandex-reviews__stars--comment {
  width: 4.5rem;
  margin-bottom: 0.5rem;
}

.yandex-reviews__star {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: center / cover no-repeat;
}

.yandex-reviews__stars--header .yandex-reviews__star {
  width: 13px;
  height: 13px;
}

.yandex-reviews__star.is-filled {
  background-image: url("https://yastatic.net/s3/front-maps-static/maps-front-org-badge-api/28/out/assets/_/178df0f18f6025c2e764130c7d1ac463.svg");
}

.yandex-reviews__star.is-empty {
  background-image: url("https://yastatic.net/s3/front-maps-static/maps-front-org-badge-api/28/out/assets/_/ee15bab6241eec6618f0f5720fa6daa9.svg");
}

.yandex-reviews__rating-link {
  color: #797e8b;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}

.yandex-reviews__rating-link:hover,
.yandex-reviews__rating-link:focus {
  color: #1a6df2;
}

.yandex-reviews__logo {
  position: absolute;
  top: 0.25rem;
  right: 0;
  width: 5rem;
  height: 0.75rem;
  opacity: 0.5;
  background: url("https://yastatic.net/s3/front-maps-static/maps-front-org-badge-api/28/out/assets/_/19f91a9bfe2992c3557394b1b82b934e.svg") center / contain no-repeat;
}

.yandex-reviews__logo:hover,
.yandex-reviews__logo:focus {
  opacity: 1;
}

.yandex-reviews__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #f6f6f6;
}

.yandex-reviews__cta-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.yandex-reviews__cta-btn {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #258ffb;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.yandex-reviews__cta-btn:hover,
.yandex-reviews__cta-btn:focus {
  background: #1a6df2;
  color: #fff;
}

.yandex-reviews__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.yandex-reviews__comment {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.1rem 1rem;
  border: 2px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.yandex-reviews__comment:hover {
  border-color: #a8a8a8;
}

.yandex-reviews__comment-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.yandex-reviews__comment-photo {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.yandex-reviews__comment-name {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.yandex-reviews__comment-date {
  margin: 0;
  color: #797e8b;
  font-size: 12px;
  line-height: 1.2;
}

.yandex-reviews__comment-text {
  flex: 1 1 auto;
  margin: 0 0 0.65rem;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

.yandex-reviews__comment-source {
  margin-top: auto;
  color: #797e8b;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
}

.yandex-reviews__comment-source:hover,
.yandex-reviews__comment-source:focus {
  color: #1a6df2;
}

.yandex-reviews__footer {
  text-align: center;
}

.yandex-reviews__more-link {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #f5f7fa;
  color: #198cff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.yandex-reviews__more-link:hover,
.yandex-reviews__more-link:focus {
  background: #e9eef3;
  color: #198cff;
}

.case-list {
  display: grid;
  gap: 0.85rem;
}

.case-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
}

.case-year {
  display: inline-grid;
  place-items: center;
  align-self: start;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 700;
  font-size: 15px;
}

.case-item p,
.trust-card p,
.faq-item p {
  color: var(--muted);
}

.trust-section {
  padding-top: 1.5rem;
}

.trust-card {
  padding: 1.25rem;
}

.trust-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.faq-section {
  padding-top: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.25rem;
}

.faq-item a {
  color: var(--purple);
  font-weight: 500;
}

.main-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.main-site p {
  max-width: 720px;
  color: var(--muted);
}

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--purple);
  font-weight: 500;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 2.5rem;
  }

  .reviews-grid,
  .trust-grid,
  .yandex-reviews__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    z-index: 20;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 14px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .nav-links a:hover {
    background: var(--purple-soft);
    color: var(--purple);
  }

  .nav-cta {
    margin-top: 0.25rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-content,
  .text-card,
  .section-dark,
  .main-site {
    padding: 1.25rem;
  }

  .reviews-grid,
  .trust-grid,
  .yandex-reviews__list,
  .case-item {
    grid-template-columns: 1fr;
  }

  .yandex-reviews {
    padding: 1.25rem;
  }

  .yandex-reviews__header {
    padding-right: 0;
  }

  .yandex-reviews__logo {
    position: static;
    display: block;
    margin-top: 0.75rem;
  }

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