/* --- ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ --- */
:root {
  --color-primary: #593c96; /* Фирменный фиолетовый цвет бренда */
  --color-primary-dark: #432b73;
  --color-dark: #141419;
  --color-gray: #f8f9fc;
  --color-text: #2d3139;
  --color-text-muted: #626875;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- ТИПОГРАФИКА И ОБЩИЕ ЭЛЕМЕНТЫ --- */
.section {
  padding: 100px 0;
}

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

.section--dark {
  background-color: var(--color-dark);
  color: #ffffff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: inherit;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px auto;
}

.section--dark .section-subtitle {
  color: #a0a5b1;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-gradient {
  background: linear-gradient(135deg, #8e62f9, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- КНОПКИ --- */
.btn {
  max-height: 46px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;

  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.btn--primary {
  background: linear-gradient(90deg, #3a50f1, #6e14b9, #3a50f1);
  box-shadow: 0 8px 25px #3b82f64d;
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #ffffff;
}

.btn--primary:hover {
  background-position: -50% 0%;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #3b82f666;
}

.btn--outline {
  background: #ffffff41;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  color: #ffffff;
  background: #6e14b9;
}

.btn--block {
  width: 100%;
}

/* --- ШАПКА САЙТА --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;

  position: relative;
}

.header-btn {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-geo {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #f1ecf9;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 1rem;
}

.messengers {
  display: flex;
  gap: 6px;
}

.msg-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.msg-link.vk {
  background-color: #2576d3;
}
.msg-link.tg {
  background-color: #0088cc;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: var(--transition);
}

/* --- ГЛАВНЫЙ ЭКРАН --- */
.hero {
  padding: 180px 0 120px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(89, 60, 150, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(142, 98, 249, 0.05) 0%, transparent 40%);
  background-color: #ffffff;
}

.hero__inner {
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- СЕКЦИЯ О НАС --- */
.about__block {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr;
  grid-template-rows: repeat(3, auto);
  align-items: center;
  column-gap: 64px;
}

.about__block .section-title {
  margin-top: auto;
  margin-bottom: 0;
  grid-row: 1;
}
.about__block .section-text.--main {
  margin-bottom: auto;
  grid-row: 2;
}
.about__block .section-text.--secondary {
  grid-row: 3;
  margin-bottom: auto;
}

.section-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.about__image {
  max-width: 350px;
  grid-column: 2;
  grid-row-start: 1;
  grid-row-end: 4;
}

.about__image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* --- СЕКЦИЯ УСЛУГ --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(89, 60, 150, 0.06);
}

.service-card__img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card__img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- ПРЕИМУЩЕСТВА --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.adv-card {
  padding: 24px;
  background: transparent;
}

.adv-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.adv-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adv-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.adv-card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- ТЕГИ ЦЕЛЕВОЙ АУДИТОРИИ --- */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.tag {
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- ЭТАПЫ РАБОТЫ --- */
.steps-list {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.step-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 56px;
  width: 2px;
  height: 100%;
  background-color: var(--color-gray);
}

.step-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  background-color: var(--color-gray);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 50%;
  font-size: 1.1rem;
}

.step-item__content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.step-item__content p {
  color: var(--color-text-muted);
}

/* --- АККОРДЕОН (FAQ) --- */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-accordion {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-accordion__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-dark);
  cursor: pointer;
}

.faq-accordion__title .icon {
  position: relative;
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.faq-accordion__title .icon::before,
.faq-accordion__title .icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* Горизонтальная линия */
.faq-accordion__title .icon::before {
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
}
/* Вертикальная линия */
.faq-accordion__title .icon::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 100%;
}

.faq-accordion.active .faq-accordion__title .icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-accordion__content p {
  padding: 0 24px 24px 24px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* --- ФОРМА ЗАЯВКИ --- */
.order-form {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #a0a5b1;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input {
  margin-top: 4px;
  width: auto;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
}

.checkbox-group a {
  color: #ffffff;
}

.form-message {
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
}

/* --- ФУТЕР --- */
.footer {
  background-color: #0b0b0e;
  color: #8a8e99;
  padding: 40px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.footer__link {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__subtext a {
  color: inherit;
}

/* --- АДАПТИВНОСТЬ (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.8rem;
  }
  .about__block {
    column-gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .section-title {
    text-align: center;
    font-size: 2rem;
  }
  .section-text {
    text-align: center;
  }
  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__subtitle {
    font-size: 1.1rem;
  }
  .hero__actions {
    flex-direction: column;
  }

  .about__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* grid-template-columns: 1fr; */
    gap: 40px;
  }
  .about__block .section-title {
    order: 1;
  }
  .about__block .section-text.--main {
    order: 2;
  }
  .about__image {
    order: 3;
    max-width: 200px;
    margin: 0 auto;
  }
  .about__block .section-text.--secondary {
    order: 4;
  }

  .adv-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .adv-card > * {
    text-align: center;
  }

  /* Мобильная навигация */
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    padding: 40px 24px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav.active {
    left: 0;
  }
  .nav__list {
    flex-direction: column;
    gap: 24px;
  }
  .nav__link {
    font-size: 1.2rem;
  }

  .header-btn {
    display: none;
  }
  .order-form {
    padding: 24px;
  }
  .footer__inner {
    text-align: center;
  }
  .text-right {
    text-align: center;
  }
}
