@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

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

:root {
  --al-bg: #0d0e10;
  --al-surface: #1F2124;
  --al-surface-2: #2a2d31;
  --al-accent: #FF3B30;
  --al-accent-soft: rgba(255, 59, 48, 0.12);
  --al-text: #f5f5f7;
  --al-muted: #9a9aa3;
  --al-border: rgba(255,255,255,0.08);
  --al-radius: 14px;
  --al-shadow: 0 24px 60px rgba(0,0,0,0.45);
  --al-font: 'Outfit', system-ui, sans-serif;
  --al-display: 'Playfair Display', Georgia, serif;
  --al-max: 1180px;
  --al-nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--al-font);
  background: var(--al-bg);
  color: var(--al-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.al-wrap { min-height: 100vh; }

.al-container {
  width: min(var(--al-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Навигация ——— */
.al-navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--al-nav-h);
  background: rgba(13,14,16,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--al-border);
  transition: box-shadow 0.3s;
}

.al-navbar.is-scrolled { box-shadow: 0 8px 32px rgba(0,0,0,0.35); }

.al-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.al-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.al-brand__icon { width: 36px; height: 36px; }

.al-navlinks {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.al-navlinks a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: var(--al-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.al-navlinks a:hover,
.al-navlinks a.is-active { color: var(--al-text); background: var(--al-surface-2); }

.al-navcta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--al-accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.al-navcta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,59,48,0.35);
}

.al-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.al-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--al-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.al-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.al-burger.is-open span:nth-child(2) { opacity: 0; }
.al-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.al-mobile-menu {
  display: none;
  position: fixed;
  inset: var(--al-nav-h) 0 0;
  z-index: 99;
  background: rgba(13,14,16,0.96);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.al-mobile-menu.is-visible {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.al-mobile-menu a {
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--al-radius);
  border: 1px solid var(--al-border);
}

/* ——— Hero ——— */
.al-hero {
  position: relative;
  padding: calc(var(--al-nav-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.al-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255,59,48,0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}

.al-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.al-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--al-accent-soft);
  color: var(--al-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.al-hero__title {
  font-family: var(--al-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.al-hero__title em {
  font-style: normal;
  color: var(--al-accent);
}

.al-hero__lead {
  font-size: 1.08rem;
  color: var(--al-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.al-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.al-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.al-btn--primary {
  background: var(--al-accent);
  color: #fff;
}

.al-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,59,48,0.4);
}

.al-btn--ghost {
  border: 1px solid var(--al-border);
  color: var(--al-text);
}

.al-btn--ghost:hover { background: var(--al-surface-2); }

.al-hero__stats {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.al-hero__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.al-hero__stats span { font-size: 0.82rem; color: var(--al-muted); }

.al-hero__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--al-shadow);
}

.al-hero__visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.al-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,59,48,0.15));
}

/* ——— Секции ——— */
.al-section {
  padding: 5rem 0;
}

.al-section--alt { background: var(--al-surface); }

.al-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.al-section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--al-accent);
  margin-bottom: 0.75rem;
}

.al-section__title {
  font-family: var(--al-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.al-section__desc { color: var(--al-muted); }

/* ——— Преимущества ——— */
.al-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.al-perk {
  padding: 1.75rem;
  background: var(--al-surface-2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  transition: transform 0.3s, border-color 0.3s;
}

.al-perk:hover {
  transform: translateY(-4px);
  border-color: rgba(255,59,48,0.3);
}

.al-perk__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--al-accent-soft);
  color: var(--al-accent);
  border-radius: 10px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.al-perk h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.al-perk p { font-size: 0.88rem; color: var(--al-muted); }

/* ——— Процесс ——— */
.al-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.al-process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--al-accent), var(--al-border));
}

.al-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.al-step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: var(--al-surface);
  border: 2px solid var(--al-accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--al-accent);
  position: relative;
  z-index: 1;
}

.al-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.al-step p { font-size: 0.85rem; color: var(--al-muted); }

/* ——— Гарантии ——— */
.al-guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.al-guarantees__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.al-guarantees__list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--al-surface-2);
  border-radius: var(--al-radius);
  border-left: 3px solid var(--al-accent);
}

.al-guarantees__list i { color: var(--al-accent); margin-top: 0.2rem; }
.al-guarantees__list strong { display: block; margin-bottom: 0.25rem; }
.al-guarantees__list span { font-size: 0.88rem; color: var(--al-muted); }

.al-guarantees__panel {
  padding: 2.5rem;
  background: linear-gradient(145deg, var(--al-surface-2), var(--al-surface));
  border: 1px solid var(--al-border);
  border-radius: 20px;
}

.al-guarantees__panel h3 {
  font-family: var(--al-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.al-guarantees__panel p { color: var(--al-muted); margin-bottom: 1.5rem; }

/* ——— Отзывы ——— */
.al-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.al-review {
  padding: 1.75rem;
  background: var(--al-surface-2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  transition: transform 0.3s;
}

.al-review:hover { transform: scale(1.02); }

.al-review__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.al-review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.al-review__name { font-weight: 600; font-size: 0.95rem; }
.al-review__city { font-size: 0.78rem; color: var(--al-muted); }

.al-review__stars { color: #f5c518; font-size: 0.75rem; margin-bottom: 0.75rem; }

.al-review blockquote {
  font-size: 0.9rem;
  color: var(--al-muted);
  font-style: italic;
  line-height: 1.55;
}

/* ——— FAQ ——— */
.al-faq { max-width: 760px; margin: 0 auto; }

.al-faq__item {
  border-bottom: 1px solid var(--al-border);
}

.al-faq__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--al-text);
  transition: color 0.2s;
}

.al-faq__trigger:hover { color: var(--al-accent); }

.al-faq__trigger i {
  transition: transform 0.3s;
  color: var(--al-muted);
}

.al-faq__item.is-open .al-faq__trigger i { transform: rotate(180deg); color: var(--al-accent); }

.al-faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.al-faq__item.is-open .al-faq__body {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.al-faq__body p { font-size: 0.92rem; color: var(--al-muted); line-height: 1.65; }

/* ——— Футер ——— */
.al-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--al-border);
  background: var(--al-surface);
}

.al-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.al-footer__brand p { color: var(--al-muted); font-size: 0.88rem; margin-top: 0.75rem; max-width: 280px; }

.al-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--al-muted); margin-bottom: 1rem; }

.al-footer ul { list-style: none; }
.al-footer li { margin-bottom: 0.5rem; }
.al-footer a { font-size: 0.9rem; color: var(--al-muted); transition: color 0.2s; }
.al-footer a:hover { color: var(--al-text); }

.al-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--al-border);
  font-size: 0.82rem;
  color: var(--al-muted);
}

.al-footer__bottom a { color: var(--al-muted); transition: color 0.2s; }
.al-footer__bottom a:hover { color: var(--al-accent); }

.al-footer__columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.al-footer__col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--al-muted);
  margin-bottom: 0.85rem;
}

.al-footer__col ul { list-style: none; }
.al-footer__col li { margin-bottom: 0.45rem; }
.al-footer__col a { font-size: 0.9rem; color: var(--al-muted); transition: color 0.2s; }
.al-footer__col a:hover { color: var(--al-text); }

.al-footer__col--brand p {
  color: var(--al-muted);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  max-width: 260px;
}

@media (max-width: 960px) {
  .al-footer__columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .al-footer__columns { grid-template-columns: 1fr; }
  .al-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ——— Панель обратной связи ——— */
.al-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.al-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.al-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.35s;
}

.al-drawer.is-open .al-drawer__overlay { opacity: 1; }

.al-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: var(--al-surface);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.al-drawer.is-open .al-drawer__panel { transform: none; }

.al-drawer__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--al-surface-2);
  color: var(--al-text);
}

.al-drawer__title {
  font-family: var(--al-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.al-drawer__sub { color: var(--al-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }

.al-form { display: flex; flex-direction: column; gap: 1rem; }

.al-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--al-muted);
}

.al-form input,
.al-form textarea,
.al-form select {
  padding: 0.75rem 1rem;
  background: var(--al-surface-2);
  border: 1px solid var(--al-border);
  border-radius: 10px;
  color: var(--al-text);
  font: inherit;
  transition: border-color 0.2s;
}

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

.al-form textarea { min-height: 120px; resize: vertical; }

.al-form__submit {
  margin-top: 0.5rem;
  padding: 0.9rem;
  background: var(--al-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s;
}

.al-form__submit:hover { transform: translateY(-1px); }

/* ——— Анимации появления ——— */
[data-al-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-al-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Внутренние страницы ——— */
.al-page-hero {
  padding: calc(var(--al-nav-h) + 3rem) 0 3rem;
  background: var(--al-surface);
  border-bottom: 1px solid var(--al-border);
}

.al-page-hero h1 {
  font-family: var(--al-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.al-page-hero p { color: var(--al-muted); max-width: 540px; }

.al-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.al-price-card {
  padding: 2rem;
  background: var(--al-surface-2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.al-price-card:hover { transform: translateY(-4px); }
.al-price-card--featured { border-color: var(--al-accent); }

.al-price-card h3 { margin-bottom: 0.5rem; }
.al-price-card .al-price { font-size: 2rem; font-weight: 700; color: var(--al-accent); margin: 1rem 0; }
.al-price-card ul { list-style: none; text-align: left; margin: 1.5rem 0; }
.al-price-card li { padding: 0.4rem 0; font-size: 0.88rem; color: var(--al-muted); }
.al-price-card li i { color: var(--al-accent); margin-right: 0.5rem; }

/* ——— Адаптив ——— */
@media (max-width: 960px) {
  .al-hero__grid { grid-template-columns: 1fr; }
  .al-hero__visual { order: -1; max-width: 520px; }
  .al-perks { grid-template-columns: repeat(2, 1fr); }
  .al-process { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .al-process::before { display: none; }
  .al-guarantees { grid-template-columns: 1fr; }
  .al-reviews { grid-template-columns: 1fr 1fr; }
  .al-footer__grid { grid-template-columns: 1fr 1fr; }
  .al-pricing { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .al-navlinks, .al-navcta { display: none; }
  .al-burger { display: flex; }
  .al-perks { grid-template-columns: 1fr; }
  .al-process { grid-template-columns: 1fr; }
  .al-reviews { grid-template-columns: 1fr; }
  .al-footer__grid { grid-template-columns: 1fr; }
  .al-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .al-hero__stats { flex-wrap: wrap; gap: 1rem; }
}

/* ——— Юридические страницы ——— */
.al-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.al-legal-nav a {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border: 1px solid var(--al-border);
  border-radius: 999px;
  color: var(--al-muted);
  transition: background 0.2s, color 0.2s;
}

.al-legal-nav a:hover,
.al-legal-nav a.is-active {
  background: var(--al-accent-soft);
  color: var(--al-accent);
  border-color: rgba(255,59,48,0.3);
}

.al-prose {
  max-width: 760px;
  color: var(--al-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.al-prose h2 {
  color: var(--al-text);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.al-prose p { margin-bottom: 1rem; }
.al-prose ul { margin: 0 0 1rem 1.25rem; }
.al-prose li { margin-bottom: 0.35rem; }
.al-prose a { color: var(--al-accent); }
.al-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.al-prose th, .al-prose td { padding: 0.65rem; border: 1px solid var(--al-border); text-align: left; }
.al-prose th { background: var(--al-surface-2); color: var(--al-text); }
.al-prose code { background: var(--al-surface-2); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }

/* ——— Баннер cookies ——— */
.al-cookie {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  z-index: 2147483646;
  width: min(540px, calc(100% - 2rem));
  padding: 1.1rem 1.25rem;
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  visibility: hidden;
}

.al-cookie.is-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.al-cookie p { flex: 1; font-size: 0.85rem; color: var(--al-muted); min-width: 200px; }
.al-cookie a { color: var(--al-accent); }

.al-cookie__acts { display: flex; gap: 0.5rem; }

.al-cookie button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.al-navcta[href] {
  text-decoration: none;
  font-size: 0.82rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
