/* ==========================================================================
   FORUM — юридическая компания
   Статический сайт. Без зависимостей и внешних CDN (кроме виджета Яндекс.Карт).
   ========================================================================== */

/* ------------------------------- Fonts ---------------------------------- */
/* Oswald — заголовки (узкий гротеск). Golos Text — основной текст. */

@font-face { font-family: Oswald; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/Oswald-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Oswald; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/Oswald-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Oswald; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/Oswald-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Oswald; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/Oswald-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Oswald; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/Oswald-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Oswald; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/Oswald-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/GolosText-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/GolosText-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/GolosText-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/GolosText-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/GolosText-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/GolosText-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/GolosText-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/GolosText-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ------------------------------- Tokens --------------------------------- */
:root {
  --navy:        #090237;
  --navy-deep:   #0b0334;
  --slate:       #a3b3c7;
  --white:       #ffffff;
  --ink:         #000000;

  --font-display: Oswald, 'Golos Text', Arial, sans-serif;
  --font-body:    'Golos Text', Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius-card: 16px;
  --radius-hero: 22px;

  --section-py: 100px;
  --header-h: 75px;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--white); color: var(--navy); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav { display: flex; gap: 46px; }
.nav--right { justify-content: flex-end; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--white);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--white); transition: right .25s ease;
}
.nav a:hover::after { right: 0; }
.logo img { width: 120px; height: auto; }

.burger { display: none; width: 40px; height: 40px; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; background: var(--navy); padding: 8px var(--gutter) 20px; }
.mobile-nav a { color: var(--white); font-size: 17px; font-weight: 500; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.mobile-nav.is-open { display: flex; }

/* -------------------------------- Hero ---------------------------------- */
.hero { background: var(--navy); padding: 18px 0 0; }
.hero__card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-hero);
  min-height: 600px;
  display: grid; place-items: center;
  background: url(../img/hero-bg.jpg) center / cover no-repeat;
  isolation: isolate;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,2,55,.62) 0%, rgba(9,2,55,.70) 55%, rgba(9,2,55,.78) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 60px var(--gutter); }
.hero__mark { width: 168px; height: auto; margin: 0 auto 18px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1.1;
  color: var(--white); letter-spacing: .2px;
}
.hero__subtitle { margin-top: 16px; font-size: 22px; line-height: 1.35; color: var(--white); }
.hero .btn { margin-top: 40px; }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-block; border-radius: 999px; text-align: center;
  font-size: 16px; font-weight: 500; padding: 18px 44px;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn--ghost { background: rgba(163,179,199,.72); color: var(--white); }
.btn--ghost:hover { background: var(--slate); transform: translateY(-1px); }
.btn--solid { background: var(--navy); color: var(--white); border-radius: 8px; width: 100%; padding: 17px 24px; font-weight: 600; }
.btn--solid:hover { background: #150a52; }
.btn--solid[disabled] { opacity: .6; cursor: default; }

/* ------------------------------ Sections -------------------------------- */
.section { padding-block: var(--section-py); }
.section--navy  { background: var(--navy);  color: var(--white); }
.section--light { background: var(--white); color: var(--ink); }
.section--slate { background: var(--slate); }

.section__title {
  font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1.15;
  text-align: center; color: var(--white);
}
.section__title--dark { color: var(--navy); }
.section__lead {
  max-width: 720px; margin: 28px auto 0;
  font-size: 22px; line-height: 1.5; text-align: center; color: var(--white);
}
.section__lead--dark { color: var(--navy); }

/* ------------------------------- Services ------------------------------- */
.svc-list { margin-top: 86px; display: flex; flex-direction: column; gap: 78px; }
.svc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.svc__media img {
  width: 100%; aspect-ratio: 49 / 28; object-fit: cover;
  border-radius: var(--radius-card);
}
.svc--reverse .svc__media { order: 2; }
.svc--reverse .svc__body  { order: 1; }
.svc__title { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--white); }
.svc__text  { margin-top: 18px; font-size: 16px; line-height: 1.45; color: var(--white); }

/* -------------------------------- Why us -------------------------------- */
.why-list { margin: 76px auto 0; max-width: 700px; display: flex; flex-direction: column; gap: 44px; }
.why { display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; }
.why__icon { color: var(--navy); }
.why__icon svg { width: 46px; height: 46px; }
.why__title { font-size: 18px; font-weight: 600; color: var(--ink); }
.why__text  { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink); }

/* ------------------------------- Pricing -------------------------------- */
.pricing { padding-block: 86px; text-align: center; }
.pricing__title { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.2; color: var(--white); }
.pricing__lead  { max-width: 840px; margin: 26px auto 0; font-size: 20px; line-height: 1.4; color: var(--white); }
.pricing__action { margin-top: 40px; }

/* ------------------------------- Results -------------------------------- */
.results__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.results__text { text-align: center; }
.results__descr { margin-top: 26px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.results__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); }

/* -------------------------------- Cases --------------------------------- */
.cases-intro { padding-block: 90px 40px; }
.cases-intro__title {
  font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1.2;
  text-align: center; color: var(--white);
}
.cases-intro__lead { max-width: 780px; margin: 24px auto 0; font-size: 20px; line-height: 1.45; text-align: center; color: var(--white); }

.cases { padding-block: 20px 100px; }
.cases__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 62px 50px; }
.case__value {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px;
  color: var(--white); padding-bottom: 14px; border-bottom: 2px solid var(--white);
  font-variant-numeric: tabular-nums;
}
.case__descr { margin-top: 16px; font-size: 16px; line-height: 1.4; color: var(--navy); }

/* ------------------------------- Contacts ------------------------------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contacts__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--white); }
.contacts__lines { margin-top: 26px; font-size: 18px; line-height: 1.6; color: var(--white); }
.contacts__lines a:hover { text-decoration: underline; }
.contacts__icons { margin-top: 34px; display: flex; gap: 12px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--white); color: var(--white);
  transition: background-color .2s ease, color .2s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--white); color: var(--navy); }
.contacts__map iframe { border-radius: var(--radius-card); border: 0; width: 100%; height: 345px; }

/* -------------------------------- Footer -------------------------------- */
.site-footer { background: var(--navy); color: var(--white); padding-block: 34px 46px; }
.site-footer__inner {
  border-top: 1px solid rgba(255,255,255,.25); padding-top: 30px;
  display: flex; justify-content: space-between; gap: 20px; font-size: 15px;
}

/* -------------------------------- Modal --------------------------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal__dialog {
  position: relative; width: 100%; max-width: 490px;
  background: var(--white); border-radius: var(--radius-card);
  padding: 46px 44px 44px;
  animation: modal-in .22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; color: #8b8b9a; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { color: var(--navy); }
.modal__title {
  font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.15;
  text-align: center; color: var(--navy-deep); margin-bottom: 28px;
}

.field { display: block; position: relative; margin-bottom: 14px; }
.field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 16px 18px; border: 1px solid #dcdce4; border-radius: 8px; background: var(--white);
  transition: border-color .18s ease;
}
.field input::placeholder { color: #9a9aa8; }
.field input:focus { border-color: var(--navy); outline: none; }
.field input[aria-invalid="true"] { border-color: #c8452f; }
.field--phone input { padding-left: 56px; }
.field__prefix { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink); pointer-events: none; }

.lead-form .btn--solid { margin-top: 8px; }
.lead-form__status { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.lead-form__status.is-ok    { color: #1a7f4b; }
.lead-form__status.is-error { color: #c8452f; }

/* ------------------------------- Reveal --------------------------------- */
/* Без JS (нет класса .js на <html>) блоки просто видны — анимация опциональна. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1100px) {
  .nav { gap: 30px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 900px) {
  :root { --section-py: 70px; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .logo { justify-self: start; }
  .burger { display: block; justify-self: end; grid-column: 3; }

  .hero__card { min-height: 440px; }
  .hero__title { font-size: 38px; }
  .hero__subtitle { font-size: 18px; }
  .hero__mark { width: 108px; }

  .section__title, .cases-intro__title { font-size: 32px; }
  .section__lead { font-size: 18px; }
  .pricing__title { font-size: 28px; }
  .pricing__lead { font-size: 17px; }

  .svc-list { margin-top: 56px; gap: 52px; }
  .svc { grid-template-columns: 1fr; gap: 22px; }
  .svc--reverse .svc__media { order: 0; }
  .svc--reverse .svc__body  { order: 0; }
  .svc__title { font-size: 21px; }

  .results__grid { grid-template-columns: 1fr; gap: 32px; }
  .results__media { order: -1; }

  .cases__grid { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; }

  .contacts__grid { grid-template-columns: 1fr; gap: 36px; }
  .contacts__map iframe { height: 300px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .hero__title { font-size: 30px; }
  .section__title, .cases-intro__title { font-size: 26px; }
  .cases__grid { grid-template-columns: 1fr; gap: 36px; }
  .case__value { font-size: 26px; }
  .why { grid-template-columns: 46px 1fr; gap: 16px; }
  .why__icon svg { width: 38px; height: 38px; }
  .modal__dialog { padding: 40px 22px 30px; }
  .modal__title { font-size: 27px; }
  .site-footer__inner { flex-direction: column; gap: 10px; }
  .btn { padding: 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Специфичность должна перебивать `.js .reveal`. */
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
