/* info.f-auto.app — по руководству бренда Freedom 2026:
   Black 0B1015, Main Green 02B140, Secondary Green 164734, White EDFBFF,
   стеклянные карточки, зелёное свечение, шапка «логотип | категория».
   CoFo Sans — фирменный, но платный; до лицензии — Onest (как на vip.f-auto.app). */
:root {
  --bg: #0B1015;
  --surface: rgba(237, 251, 255, 0.04);
  --surface-hi: rgba(237, 251, 255, 0.07);
  --line: rgba(237, 251, 255, 0.10);
  --line-hi: rgba(237, 251, 255, 0.20);
  --fg: #EDFBFF;
  --fg-dim: #949FA4;
  --green: #02B140;
  --green-2: #164734;
  --radius: 24px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* стекло */
.glass {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .2s, transform .2s;
}
a.glass:hover { border-color: var(--line-hi); transform: translateY(-2px); }

/* кнопки и плашки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 500; white-space: nowrap;
  transition: filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line-hi); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 500;
}
.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1px solid var(--line-hi); border-radius: 999px; font-size: 14px;
}
.pill:hover { border-color: var(--green); }

/* шапка: логотип Freedom | категория */
.bar { position: sticky; top: 0; z-index: 10; padding: 12px 0; }
.bar-in {
  max-width: 1200px; margin: 0 auto; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(18, 26, 33, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.bar-nav { display: none; gap: 24px; margin-left: auto; font-size: 15px; color: var(--fg-dim); }
.bar-nav a:hover { color: var(--fg); }
.bar .btn-sm { margin-left: auto; }
@media (min-width: 900px) {
  .bar-in { width: calc(100% - 64px); }
  .bar-nav { display: flex; }
  .bar .btn-sm { margin-left: 8px; }
}
.chip-dark { background: rgba(2, 177, 64, 0.16); color: #5FE08C; }

/* первый экран */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 7.4vw, 88px); max-width: 15ch; margin: 20px 0 20px; }
.hero .accent { color: var(--green); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--fg-dim); max-width: 44ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.stats li { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; border-radius: 18px; min-width: 0; }
.stats b { font-size: clamp(22px, 5.4vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.stats span { color: var(--fg-dim); font-size: 13px; line-height: 1.3; }
@media (min-width: 640px) {
  .stats { gap: 12px; }
  .stats li { padding: 24px; border-radius: var(--radius); }
  .stats span { font-size: 16px; }
}
/* зелёная дуга снизу — графический элемент бренда */
.hero-glow {
  position: absolute; left: 50%; bottom: -62vw; width: 160vw; height: 80vw;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(2, 177, 64, 0.0) 70%, rgba(2, 177, 64, 0.55) 88%, rgba(120, 255, 200, 0.35) 92%, transparent 100%);
  filter: blur(24px); pointer-events: none;
}
/* нижний край первого экрана растворяется в фоне, без резкой полосы */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
@media (min-width: 1200px) { .hero-glow { bottom: -900px; width: 2200px; height: 1100px; } }

/* секции */
.sec { padding: 40px 0; }
@media (min-width: 960px) { .sec { padding: 56px 0; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-title { margin-bottom: 24px; }
.sec-title h2 { margin: 0; }
.sub { color: var(--fg-dim); font-size: 17px; margin: 10px 0 0; max-width: 56ch; }
h3 { font-size: 19px; font-weight: 500; margin: 0; line-height: 1.25; }

/* сервисы */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feat p { margin: 0; color: var(--fg-dim); font-size: 15px; }
.ic { width: 96px; height: 96px; margin: -8px 0 4px -8px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(2, 177, 64, 0.25)); }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps p { margin: 0; color: var(--fg-dim); font-size: 15px; }
.n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 600; margin-bottom: 4px;
}

/* партнёрам */
.partners {
  padding: 28px 20px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(2, 177, 64, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(22, 71, 52, 0.45), rgba(22, 71, 52, 0.12));
  border-color: rgba(2, 177, 64, 0.28);
}
@media (min-width: 768px) { .partners { padding: 48px; } }
.partners-head h2 { margin: 16px 0 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.checks li { display: flex; flex-direction: column; gap: 4px; padding-left: 30px; position: relative; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks b { font-weight: 500; font-size: 17px; }
.checks span { color: var(--fg-dim); font-size: 15px; }
.partners .hero-cta { margin-bottom: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }

.apps { display: grid; gap: 12px; }
@media (min-width: 768px) { .apps { grid-template-columns: 1fr 1fr; } }
.app { display: flex; align-items: center; gap: 16px; padding: 20px; }
.app img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.app-txt b { font-size: 20px; font-weight: 500; }
.app-txt span { color: var(--fg-dim); font-size: 15px; }
.arrow { font-size: 22px; color: var(--green); }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 20px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.card .src { font-size: 13px; color: var(--green); font-weight: 500; padding: 0 8px; }
.card b { font-weight: 500; font-size: 17px; line-height: 1.3; padding: 0 8px; }
.thumb { position: relative; display: block; }
.thumb img { aspect-ratio: 16 / 10; }
.play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(11, 16, 21, 0.62); border: 1px solid var(--line-hi);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.play::after {
  content: ''; position: absolute; left: 22px; top: 18px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--fg);
}
.video:hover .play { background: var(--green); border-color: var(--green); }

.insta { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.insta a { overflow: hidden; padding: 0; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.contacts { display: grid; gap: 12px; }
@media (min-width: 768px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact .note { color: var(--fg-dim); font-size: 15px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.contact { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.contact .lbl { color: var(--fg-dim); font-size: 14px; }
.contact b { font-weight: 500; font-size: 20px; line-height: 1.3; }
.contact .more { color: var(--green); font-size: 15px; margin-top: auto; padding-top: 8px; }

/* подвал: точка входа — логотип приложения слева внизу */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: 32px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.entry { display: flex; align-items: center; gap: 12px; }
.entry img { width: 40px; height: 40px; border-radius: 10px; }
.entry span { display: flex; flex-direction: column; line-height: 1.25; }
.entry b { font-weight: 500; }
.entry span span { color: var(--fg-dim); font-size: 14px; }
.copy { color: var(--fg-dim); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .glass, .btn { transition: none; } }
