/* Сайт для компаний FRM: стиль «Белый лайм». Halvar Breit для заголовков, TT Hoves Pro для текста, один акцент лайм */
@font-face { font-family: 'Halvar Breit'; src: url('HalvarBreit-Md.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Halvar Breit'; src: url('HalvarBreit-MdSlanted.woff') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'TT Hoves Pro'; src: url('TT_Hoves_Pro_Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'TT Hoves Pro'; src: url('TT_Hoves_Pro_Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TT Hoves Pro'; src: url('TT_Hoves_Pro_Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --soft: #f4f5f1; --line: #e4e6df;
  --ink: #111111; --graphite: #3a3a36; --muted: #63635c; --olive: #5c6a00;
  --lime: #d7ff2e; --dark: #121311; --dark2: #1c1d1a; --err: #b42318;
  --head: 'Halvar Breit', 'Arial Black', system-ui, sans-serif;
  --body: 'TT Hoves Pro', 'Inter', system-ui, sans-serif;
  --r: 22px;
  --shadow: 0 18px 50px rgba(17,17,17,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 16px; background: var(--lime); color: var(--ink); font: 500 16px/1 var(--head); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--ghost { background: var(--bg); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark img { filter: invert(1); }
.btn--dark:hover { box-shadow: 0 8px 0 rgba(17,17,17,.25); }
.btn--full { width: 100%; }
.btn--center { display: flex; width: fit-content; margin: 36px auto 0; }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s; }
.nav--scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: none; gap: 28px; font: 500 15px/1 var(--body); }
.nav__links a { text-decoration: none; color: var(--graphite); }
.nav__links a:hover { color: var(--ink); }

/* Иконки в плашке */
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); flex: none; }
.ico img { width: 24px; height: 24px; }
.ico--lime { background: var(--lime); }

/* Обложка */
.hero { padding: 28px 0 56px; background: radial-gradient(90% 60% at 100% 0%, rgba(215,255,46,.28), transparent 60%); }
.hero__in { display: grid; gap: 36px; }
.kicker { font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 16px; }
h1 { font: 500 38px/1.04 var(--head); letter-spacing: -.015em; text-wrap: balance; }
h1 em, .h2 em { font-style: italic; background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 94%, transparent 94%); }
.lead { font: 300 19px/1.45 var(--body); color: var(--graphite); margin-top: 18px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 auto; white-space: nowrap; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats b { display: block; font: 500 20px/1.1 var(--head); margin-bottom: 6px; white-space: nowrap; }
.stats span { display: block; font: 400 13.5px/1.35 var(--body); color: var(--muted); }
.hero__photo { position: relative; }
.hero__photo > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(17,17,17,.14); font: 500 14px/1.25 var(--body); max-width: 250px; }
.float img { width: 20px; height: 20px; flex: none; }
.float--a { left: 12px; bottom: 12px; }
.float--b { right: 12px; top: 12px; background: var(--lime); }

/* Секции */
.sec { padding: 64px 0; }
.sec--soft { background: var(--soft); }
.sec--dark { background: var(--dark); color: #f2f3ee; }
.sec--lime { background: var(--lime); }
.h2 { font: 500 30px/1.08 var(--head); letter-spacing: -.01em; text-wrap: balance; max-width: 20em; }
.sub { font: 300 18px/1.45 var(--body); color: var(--muted); margin-top: 14px; max-width: 40em; }
.sec--dark .sub { color: #a9aba2; }
h3 { font: 500 19px/1.2 var(--head); letter-spacing: -.005em; }

/* Проблема */
.grid3 { display: grid; gap: 16px; margin-top: 36px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--graphite); }

/* Программа */
.steps { list-style: none; display: grid; gap: 16px; margin-top: 36px; counter-reset: s; }
.step { position: relative; background: var(--bg); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.step__n { position: absolute; right: 22px; top: 18px; font: 500 44px/1 var(--head); color: var(--line); }
.step p { color: var(--graphite); }

/* Игры */
.games { display: grid; gap: 14px; margin-top: 36px; }
.game { position: relative; overflow: hidden; background: var(--dark2); border: 1px solid #2a2b27; border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.game__do { color: #c9cbc3; }
.game__ai { margin-top: auto; padding-top: 14px; border-top: 1px solid #2f302b; color: #f2f3ee; }
.game__ai b { color: var(--lime); font-weight: 500; }
.game--photo { padding: 0; min-height: 360px; }
.game__bg { position: absolute; inset: 0 0 auto; width: 100%; height: 62%; object-fit: cover; object-position: 78% 70%; filter: brightness(1.35); }
.game--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,17,0) 0%, rgba(18,19,17,.2) 30%, rgba(18,19,17,.85) 62%, rgba(18,19,17,.97) 100%); }
.game__body { position: relative; z-index: 1; margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; justify-content: flex-end; }
.game__body .game__ai { margin-top: 0; }

/* Вайб кодинг */
.shots { display: grid; gap: 18px; margin-top: 36px; }
.shot { background: var(--soft); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.shot b { font: 500 17px/1.2 var(--head); }
.shot span { color: var(--muted); font-size: 15.5px; }

/* Кейсы */
.cases { display: grid; gap: 18px; margin-top: 36px; }
.case { background: var(--bg); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case > img.case__img--top { object-position: center 30%; }
.case__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.case__who { font: 500 13px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 26px; color: var(--graphite); font-size: 16px; line-height: 1.4; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime) url('icons/check.svg') center/11px no-repeat; }
.also { display: grid; gap: 18px; align-items: center; margin-top: 18px; background: var(--bg); border-radius: var(--r); padding: 16px; border: 1px solid var(--line); }
.also img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; }
.also p:last-child { color: var(--graphite); margin-top: 8px; }

/* Форматы */
.formats { display: grid; gap: 16px; margin-top: 36px; }
.fmt { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.fmt__len { font: 500 26px/1.1 var(--head); margin-bottom: 6px; }
.fmt--main { border: 2px solid var(--ink); box-shadow: 0 10px 0 var(--ink); }
.badge { position: absolute; right: 18px; top: 18px; background: var(--ink); color: var(--lime); font: 500 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; }

/* Что получает компания */
.gets { display: grid; gap: 12px; margin-top: 32px; }
.get { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border-radius: 18px; padding: 18px; }
.get .ico { background: var(--lime); }
.get p { color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.get b { display: block; color: var(--ink); font: 500 16px/1.25 var(--head); margin-bottom: 4px; }

/* Заявка */
.request { display: grid; gap: 32px; align-items: start; }
.request .lead { color: var(--ink); margin-bottom: 26px; }
.formcard { background: var(--bg); border-radius: 26px; padding: 24px 20px; box-shadow: 0 24px 60px rgba(17,17,17,.14); }
form { display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.field > span, .field > legend { font: 500 15px/1.2 var(--body); padding: 0; margin-bottom: 0; }
fieldset.field > legend { margin-bottom: 8px; }
.field i { font-style: normal; color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; font: 400 17px/1.35 var(--body); color: var(--ink); background: var(--soft); border: 2px solid transparent; border-radius: 14px; padding: 14px 15px; outline: none; transition: border-color .2s, background .2s; }
textarea { resize: vertical; min-height: 88px; }
input:focus, textarea:focus { border-color: var(--ink); background: var(--bg); }
input::placeholder, textarea::placeholder { color: #8b8b84; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; font: 500 14.5px/1 var(--body); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 14px; transition: background .15s, border-color .15s; }
.chip input:checked + span { background: var(--lime); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.err { color: var(--err); font: 500 15px/1.35 var(--body); }
.consent { font: 400 12.5px/1.4 var(--body); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; }
.done .ok { width: 60px; height: 60px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; }
.done h3 { font-size: 26px; }
.done p { color: var(--graphite); }

/* Подвал */
.foot { background: var(--dark); color: #c9cbc3; padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-direction: column; gap: 16px; }
.foot__logo { height: 40px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.foot__links a { color: #f2f3ee; }

/* Плавающая кнопка WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* Планшет */
@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  h1 { font-size: 50px; }
  .h2 { font-size: 38px; }
  .sec { padding: 88px 0; }
  .grid3, .steps { grid-template-columns: repeat(3, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .gets { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .also { grid-template-columns: 300px 1fr; padding: 16px 28px 16px 16px; }
  .formcard { padding: 32px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 14.5px; }
}

/* Компьютер */
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .hero { padding: 48px 0 88px; }
  .hero__in { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  h1 { font-size: 60px; }
  .h2 { font-size: 44px; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .game--photo { grid-row: span 1; }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .formats { grid-template-columns: repeat(3, 1fr); }
  .gets { grid-template-columns: repeat(3, 1fr); }
  .request { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .request__text { position: sticky; top: 100px; }
  .foot { padding-bottom: 48px; }
  .foot__in { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot__in p { max-width: 26em; }
}
