/* ============================================
   Section-level layouts
   ============================================ */

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--header-h) + var(--s-9));
  padding-bottom: var(--s-9);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-10);
  }
}

.hero__eyebrow { margin-bottom: var(--s-5); }

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 8px;
  background: var(--accent-tint);
  z-index: -1;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--ink-muted);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.hero__chips {
  margin-top: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__chips span { white-space: nowrap; }
.hero__chips span + span::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
  margin-right: var(--s-3);
  vertical-align: middle;
}

/* Hero visual: compass + decorative tiles */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.hero__compass {
  position: absolute;
  inset: 8% 12% 12% 8%;
  width: auto;
  height: auto;
  animation: spin 60s linear infinite;
  transform-origin: center;
  /* GPU compositing layer — устраняет суб-пиксельные артефакты при вращении PNG с альфа-маской */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__compass { animation: none; }
}

.hero__compass img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Оптимизация отрисовки альфа-канала при трансформациях */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimizeQuality;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Floating decorative tiles (no real data, no rating/numbers) */
.hero__tile {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  min-width: 160px;
  animation: float 6s var(--ease-in-out) infinite;
}
.hero__tile::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: var(--r-4);
  opacity: 0.18;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__tile { animation: none; }
}

.hero__tile-1 { top: 6%; left: -4%; animation-delay: -1s; }
.hero__tile-2 { top: 38%; right: -8%; animation-delay: -3s; }
.hero__tile-3 { bottom: 4%; left: 14%; animation-delay: -2s; }

.hero__tile-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero__tile-dot svg { width: 14px; height: 14px; }

.hero__tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__tile-text strong {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-snug);
}
.hero__tile-text small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__marker {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.hero__marker-1 { top: 28%; left: 14%; }
.hero__marker-2 { bottom: 32%; right: 18%; animation-delay: -1.2s; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59, 123, 181, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(59, 123, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 123, 181, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__marker { animation: none; }
}

/* ---------- PROBLEMS (dark) ---------- */
.problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  align-items: start;
}
@media (min-width: 900px) {
  .problems__grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--s-12);
  }
}

.problems__head {
  position: relative;
}
@media (min-width: 900px) {
  .problems__head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-7));
  }
}
.problems__head h2 { margin-top: var(--s-5); }
.problems__head .lede { margin-top: var(--s-5); }

.problems__list {
  display: flex;
  flex-direction: column;
}

.problem {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s-5);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--ink-line);
  position: relative;
  transition: padding-left var(--t-base) var(--ease-out);
}
.problem:last-child { border-bottom: 1px solid var(--ink-line); }

.problem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.problem:hover::before { opacity: 1; }
.problem:hover { padding-left: var(--s-3); }

.problem__index {
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: var(--ls-mono);
  line-height: 1;
  padding-top: 4px;
}
.problem__title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--paper);
  margin-bottom: var(--s-3);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-snug);
}
.problem__text {
  color: var(--ink-faint);
  line-height: var(--lh-body);
  max-width: 60ch;
}

/* ---------- RESULTS (light) ---------- */
.results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .results__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .results__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- SERVICES (gray) ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-7);
  overflow: hidden;
}
.service-card__num {
  position: absolute;
  top: var(--s-5);
  right: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-faint);
  letter-spacing: var(--ls-mono);
  transition: color var(--t-base) var(--ease-out);
}
.service-card:hover .service-card__num { color: var(--accent); }

.service-card .card__icon { margin-bottom: var(--s-5); }
.service-card__text { flex: 1; margin-bottom: 0; }

/* ---------- PROCESS (dark) ---------- */
.process {
  position: relative;
}

.process__route {
  position: relative;
}
@media (min-width: 1024px) {
  .process__route::before {
    content: "";
    position: absolute;
    top: 22px;        /* vertical center of step__dot (44px height) */
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--ink-line);
    z-index: 0;
  }
  .process__route::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 8%;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    z-index: 0;
  }
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process__grid { grid-template-columns: repeat(5, 1fr); }
}

.step {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-4);
  background: var(--ink-soft);
  transition: border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.step:hover {
  border-color: var(--accent);
  background: var(--ink);
  transform: translateY(-2px);
}

.step__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  margin-bottom: var(--s-5);
  position: relative;
  transition: background var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.step:hover .step__dot {
  background: var(--accent);
  border-color: var(--accent);
}
.step:hover .step__num { color: var(--paper); }

.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: var(--ls-mono);
  line-height: 1;
  transition: color var(--t-base) var(--ease-out);
}

.step__title {
  font-size: var(--fs-h6);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-snug);
}

/* ---------- PRICING (light) ---------- */
.pricing__note {
  display: block;
  margin-top: var(--s-4);
  max-width: 72ch;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: var(--lh-body);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-8);
}
@media (min-width: 800px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  position: relative;
  padding: var(--s-8);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-5);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-base) var(--ease-out);
  overflow: hidden;
}
.price-card:hover { box-shadow: var(--shadow-lg); }

.price-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--accent-tint) 100%);
}
.price-card--featured::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74, 143, 206, 0.32) 0%, rgba(74, 143, 206, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.price-card--featured::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 74, 122, 0.16) 0%, rgba(30, 74, 122, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.price-card--featured > * { position: relative; z-index: 1; }
.price-card--featured:hover { box-shadow: 0 24px 60px rgba(59, 123, 181, 0.22); }

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.price-card__name {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.price-card__lead {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-6);
  line-height: var(--lh-snug);
  max-width: 32ch;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--paper-line);
}
.price-card__price-num {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.price-card--featured .price-card__price-num {
  font-size: var(--fs-mega);
  color: var(--accent-deep);
}
.price-card__price-cur {
  font-family: var(--font-mono);
  font-size: var(--fs-h5);
  color: var(--ink-muted);
  font-weight: 500;
}
.price-card--featured .price-card__price-cur {
  color: var(--accent);
  font-size: var(--fs-h3);
}

.price-card__list {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-small);
  color: var(--ink);
  line-height: var(--lh-body);
}
.price-card__list li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--accent);
  margin-top: 2px;
}

.price-card__cta { margin-top: auto; }
.price-card__cta .btn { width: 100%; }

.pricing__disclaimer {
  margin-top: var(--s-8);
  padding: var(--s-5) var(--s-6);
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-3);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-4);
  align-items: start;
  max-width: 92ch;
}
.pricing__disclaimer-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.pricing__disclaimer-icon svg { width: 22px; height: 22px; }
.pricing__disclaimer p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: var(--lh-loose);
}
@media (max-width: 600px) {
  .pricing__disclaimer { grid-template-columns: 1fr; }
}

/* ---------- REPUTATION (gray) ---------- */
.reputation__lead {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--ink);
  max-width: 38ch;
  margin-bottom: var(--s-10);
  letter-spacing: -0.01em;
}
.reputation__lead::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: var(--s-4);
  font-family: var(--font-display);
}

.reputation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 800px) {
  .reputation__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- WHY (asymmetric) ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  align-items: start;
}
@media (min-width: 960px) {
  .why__grid {
    grid-template-columns: 1fr 1.6fr;
    gap: var(--s-12);
  }
}

.why__sticky {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
}
.why__sticky h2 { margin-bottom: var(--s-5); }

.why__list {
  display: flex;
  flex-direction: column;
}
.why__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--paper-line);
}
.why__item:last-child { border-bottom: 1px solid var(--paper-line); }
.why__num {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  color: var(--accent);
  letter-spacing: var(--ls-wide);
}
.why__title {
  font-size: var(--fs-h6);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.why__text {
  color: var(--ink-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

/* ---------- ABOUT (dark, centered) ---------- */
.about {
  text-align: center;
}
.about__inner {
  max-width: 64ch;
  margin: 0 auto;
}
.about__text {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--ink-faint);
  margin-bottom: var(--s-10);
}
.about__slogan {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--paper);
  position: relative;
  display: inline-block;
}
.about__slogan::before,
.about__slogan::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--ink-line);
  margin: var(--s-6) auto;
}

/* ---------- FAQ (light) ---------- */
.faq__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- CTA + FORM (gray) ---------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: var(--accent);
  opacity: 0.06;
  border-radius: 50%;
  filter: blur(8px);
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .cta__grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-12); }
}

.cta__title {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-7);
}
.cta__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.cta__contact {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--fs-body);
  color: var(--ink);
}
.cta__contact svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.cta__contact a:hover { color: var(--accent); }
.cta__contact-label {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  color: var(--ink-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-5);
  padding: var(--s-7);
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: var(--fs-h5);
  margin-bottom: var(--s-2);
}
.form-card__lead {
  color: var(--ink-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--s-6);
}

.form__disclaimer {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: var(--lh-body);
  margin-top: var(--s-2);
}

/* ---------- FOOTER (dark) ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-faint);
  padding-top: var(--s-12);
  padding-bottom: var(--s-7);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-10);
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer h4 {
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.site-footer__about {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  max-width: 38ch;
  color: var(--ink-faint);
}
.site-footer__about .site-logo { display: inline-flex; margin-bottom: var(--s-4); }

.site-footer__nav,
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--fs-small);
}
.site-footer__nav a,
.site-footer__contacts a {
  color: var(--ink-faint);
  transition: color var(--t-base) var(--ease-out);
}
.site-footer__nav a:hover,
.site-footer__contacts a:hover { color: var(--paper); }

.site-footer__bottom {
  padding-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-mono);
  color: var(--ink-muted);
  text-transform: uppercase;
}
.site-footer__bottom a:hover { color: var(--paper); }
