/* ============ Переменные и база ============ */

:root {
  --color-bg: #fff;
  --color-surface: #f4f5f7;
  --color-surface-dark: #262c33;
  --color-text: #262c33;
  --color-text-muted: #5c6670;
  --color-line: #e3e6ea;
  --color-accent: #ffd500;
  --color-accent-hover: #f0c800;
  --color-white: #fff;
  --font-main: "Inter", "Segoe UI", tahoma, arial, sans-serif;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgb(38 44 51 / 8%);
  --shadow-hover: 0 14px 40px rgb(38 44 51 / 14%);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
}

/* ============ Утилиты ============ */

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 800px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.section {
  padding-block: 80px;
}

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

.section-title {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
}

.section-title-left {
  text-align: left;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--color-text-muted);
}

.badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
}

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  color: var(--color-text);
  background-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-outline {
  color: var(--color-text);
  background-color: transparent;
  border-color: var(--color-text);
}

.btn-outline:hover {
  background-color: rgb(255 213 0 / 12%);
  border-color: var(--color-accent);
}

.btn-dark {
  color: var(--color-white);
  background-color: var(--color-surface-dark);
}

.btn-dark:hover {
  background-color: #14181c;
}

.btn-outline-dark {
  color: var(--color-white);
  background-color: transparent;
  border-color: var(--color-white);
}

.btn-outline-dark:hover {
  background-color: rgb(255 255 255 / 15%);
  border-color: var(--color-white);
}

.btn-small {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-wide {
  width: 100%;
}

/* ============ Шапка ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  background-color: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  border-radius: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

.nav-phone svg {
  flex-shrink: 0;
}

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

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* ============ Главная (hero) ============ */

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgb(255 213 0 / 18%) 0%, transparent 45%),
    var(--color-surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-block: 72px;
}

.hero-content h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
}

.hero-lead {
  margin-bottom: 28px;
  font-size: 18px;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.hero-points li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: var(--color-accent);
  border-radius: 50%;
  content: "";
}

.hero-points li::after {
  position: absolute;
  top: 9px;
  left: 5px;
  width: 6px;
  height: 4px;
  border-bottom: 2px solid var(--color-text);
  border-left: 2px solid var(--color-text);
  transform: rotate(-45deg);
  content: "";
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-hover);
}

.hero-card {
  position: absolute;
  bottom: -18px;
  left: -18px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px 24px;
  background-color: var(--color-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.hero-card strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
}

.hero-card span {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ============ Преимущества ============ */

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

.advantage-card {
  padding: 28px;
  background-color: var(--color-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background-color: var(--color-accent);
  border-radius: 14px;
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
}

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

.advantage-card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ============ Услуги ============ */

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

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 22px;
}

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

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

.service-card-body p:last-of-type {
  margin-bottom: 0;
}

.service-card-body p.service-card-price {
  margin-top: auto;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

.link-arrow svg {
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ============ Этапы работы ============ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.step-card {
  padding: 24px;
  background-color: var(--color-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.step-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

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

/* ============ О компании ============ */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.about-content p {
  color: var(--color-text-muted);
}

.about-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.about-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: var(--color-accent);
  border-radius: 50%;
  content: "";
}

.about-list li::after {
  position: absolute;
  top: 9px;
  left: 5px;
  width: 6px;
  height: 4px;
  border-bottom: 2px solid var(--color-text);
  border-left: 2px solid var(--color-text);
  transform: rotate(-45deg);
  content: "";
}

/* ============ FAQ ============ */

.faq-item {
  margin-bottom: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

.faq-item summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-muted);
  transform: translateY(-50%);
  content: "+";
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 18px;
  color: var(--color-text-muted);
}

/* ============ Страница «Цены» ============ */

.page-hero {
  padding-block: 64px;
  text-align: center;
  background-color: var(--color-surface);
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
}

.page-hero-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.price-block {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: center;
  gap: 48px;
}

.price-block-reverse .price-block-media {
  order: 2;
}

.price-block-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.price-block-content h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 32px);
}

.price-table {
  width: 100%;
  background-color: var(--color-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border-collapse: collapse;
}

.price-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--color-line);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.price-table-extra {
  margin-bottom: 24px;
}

.price-note {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ============ Контакты ============ */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  text-decoration: none;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background-color: var(--color-accent);
  border-radius: 16px;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-card h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.contact-value {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
}

.contact-note {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-value a,
.contact-card h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.contact-value a:hover,
.contact-card h2 a:hover {
  text-decoration: underline;
  color: var(--color-text-muted);
}

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

.info-card {
  padding: 28px;
  background-color: var(--color-bg);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

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

.info-card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ============ Форма заявки ============ */

.request-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-field-hint {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-hint {
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: var(--color-text-muted);
}

.form-success {
  margin: 0;
  padding: 14px 18px;
  font-weight: 700;
  text-align: center;
  background-color: var(--color-accent);
  border-radius: var(--radius-s);
}

/* ============ CTA-полоса ============ */

.cta-band {
  padding-block: 56px;
  background-color: var(--color-accent);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
}

.cta-inner p {
  margin: 0;
  font-weight: 600;
  color: rgb(38 44 51 / 75%);
}

.cta-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============ Подвал ============ */

.site-footer {
  padding-top: 56px;
  color: rgb(255 255 255 / 75%);
  background-color: var(--color-surface-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.logo-light {
  margin-bottom: 16px;
  color: var(--color-white);
}

.footer-about p {
  margin: 0;
  font-size: 14px;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--color-white);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 14px;
  text-decoration: none;
  color: rgb(255 255 255 / 75%);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-contacts li {
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

/* ============ Анимация появления ============ */

.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(24px);
  opacity: 0;
}

.reveal.is-visible {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .btn,
  .service-card,
  .service-card-media img,
  .link-arrow svg {
    transition: none;
  }
}

/* ============ Адаптив ============ */

@media (width <= 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 900px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .hero-card {
    left: 12px;
  }

  .price-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .price-block-reverse .price-block-media {
    order: 0;
  }

  .contacts-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 8px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
  }

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

  .site-nav a:not(.btn) {
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav-phone {
    justify-content: center;
    margin: 8px 24px 12px;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (width <= 640px) {
  .section {
    padding-block: 56px;
  }

  .services-grid,
  .steps-grid,
  .advantages-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    gap: 16px;
  }

  .hero-inner {
    padding-block: 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .request-form {
    padding: 24px;
  }

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