/* ---------- Шрифт ---------- */
@font-face {
  font-family: "InterVariable";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVariable";
  src: url("assets/fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --bg: #0b0d10;
  --bg-elevated: #14171c;
  --bg-elevated-2: #1b1f26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #f2f3f5;
  --text-body: #c4c8d0;
  --text-muted: #838a97;

  --accent: #4f7cff;
  --accent-hover: #6e93ff;
  --accent-dim: rgba(79, 124, 255, 0.14);
  --accent-dim-strong: rgba(79, 124, 255, 0.28);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container-width: 1120px;

  --font-sans: "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Сброс ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  color: var(--text-primary);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.section {
  padding: 96px 0;
}
#process {
  padding-top: 48px;
}
#process h2 {
  margin-bottom: 40px;
}
.section-alt {
  background: var(--bg-elevated);
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 14px 0 48px;
}
.section-lead:last-child {
  margin-bottom: 0;
}
.section h2 {
  max-width: 720px;
}
.section-title-accent {
  font-size: clamp(2.1rem, 3.5vw + 1rem, 3rem);
}
.accent-text {
  color: var(--accent);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}
.btn-large {
  padding: 16px 34px;
  font-size: 1rem;
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-right: auto;
}
.logo-dot {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-body);
}
.nav a:hover {
  color: var(--text-primary);
}
.nav a.is-active,
.mobile-nav a.is-active {
  color: var(--accent-hover);
}
.header-inner > .btn {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn {
  margin-top: 14px;
  width: 100%;
}
.site-header.is-open .mobile-nav {
  display: flex;
}
.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 60px;
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(closest-side, var(--accent-dim), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
}
.eyebrow {
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.hero h1 {
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 36px;
}
.hero-sub strong {
  color: var(--text-primary);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Карточки задач ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}
.directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
a.card {
  cursor: pointer;
}
a.card:hover {
  border-color: var(--accent-dim-strong);
  background: var(--bg-elevated-2);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(79, 124, 255, 0.4), 0 0 0 1px var(--accent-dim);
}
a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform 0.2s ease, color 0.2s ease;
}
.card-icon svg {
  width: 100%;
  height: 100%;
}
a.card:hover .card-icon {
  color: var(--accent-hover);
  transform: scale(1.1);
}
.card h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
a.card:hover h3 {
  color: var(--accent-hover);
}
.card-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card p + p {
  margin-top: 10px;
}
.card p strong {
  color: var(--accent-hover);
  font-weight: 700;
}

.card .price-list {
  margin: 16px 0 0;
}
.card .price-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Скриншоты ---------- */
.hero-shot {
  position: relative;
  max-width: 1040px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.shot {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(79, 124, 255, 0.35);
}
.shot img {
  width: 100%;
  height: auto;
}
.shot figcaption {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-elevated-2), var(--bg-elevated));
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.section h2 + .steps {
  margin-top: 40px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-hover);
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 {
  margin-bottom: 10px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Тарифы ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.price-card .price-list {
  flex-grow: 1;
}
.price-card--main {
  background: linear-gradient(180deg, var(--bg-elevated-2), var(--bg-elevated));
  border-color: var(--accent-dim-strong);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 30px 60px -30px rgba(79, 124, 255, 0.35);
}
.price-badge {
  display: inline-block;
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.price-card h3 {
  margin-bottom: 6px;
}
.price-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0 28px;
}
.price-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.text-link {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim-strong);
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--accent);
}
.price-list {
  margin-bottom: 32px;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card .btn {
  width: 100%;
}
.pricing-terms {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.pricing-terms span:not(:last-child)::after {
  content: "\00B7";
  margin-left: 8px;
}

/* ---------- Обо мне ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.about-text h2 {
  margin-bottom: 22px;
}
.about-text p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}
.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-answer > p {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.98rem;
  padding-right: 40px;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.is-open .faq-answer > p {
  padding-bottom: 24px;
}

/* ---------- Финальный CTA ---------- */
.cta-section {
  padding: 100px 0;
}
.cta-section--tight {
  padding-top: 24px;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
}
.cta-inner h2 {
  margin-bottom: 16px;
}
.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cta-inner p.cta-note {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.cta-inner p.cta-note a {
  color: var(--accent-hover);
}
.cta-inner p.cta-note a:hover {
  color: var(--accent);
}

/* ---------- Перелинковка между страницами ---------- */
.cross-links-section {
  padding: 48px 0;
}
.cross-links {
  display: grid;
  gap: 12px;
  max-width: 780px;
}
.cross-links p {
  color: var(--text-muted);
  font-size: 0.98rem;
}
.cross-links a {
  color: var(--accent-hover);
  font-weight: 600;
}
.cross-links a:hover {
  color: var(--accent);
}

/* ---------- Футер ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-heading {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-body);
  margin-bottom: 8px;
}
.footer-col a:hover {
  color: var(--accent-hover);
}
.footer-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom a:hover {
  color: var(--accent-hover);
}

/* ---------- Текстовые страницы ---------- */
.doc {
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin-bottom: 24px;
}
.doc h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.doc p + p,
.doc ul + p {
  margin-top: 12px;
}
.doc ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 12px;
}
.doc li + li {
  margin-top: 6px;
}
.doc a {
  color: var(--accent-hover);
}

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header-inner > .btn-small {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .shots-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-terms {
    flex-direction: column;
    gap: 6px;
  }
  .pricing-terms span:not(:last-child)::after {
    content: none;
    margin-left: 0;
  }
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    width: 180px;
    margin: 0 auto;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 64px 0 40px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .price-card {
    padding: 28px;
  }
}
