/* =========================================================
   E GRAHOK — landing page
   Mobile reference: Figma frame "App Open Page" (393px wide)
   Mobile values below map 1:1 to the Figma coordinates.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aeonik";
  src: url("font/Aeonik-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("font/Aeonik-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("font/Aeonik-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red: #bf2b2b;
  --red-deep: #591414;
  --red-soft: #ff8181;
  --ink: #000000;
  --ink-60: #5b5b5b;
  --ink-50: #6a6a6a;
  --ink-40: #8e8e8e;
  --line: #e4e4e4;
  --line-2: #eaeaea;

  --card-w: 269px;   /* Figma card width  */
  --card-h: 324px;   /* Figma card height */
  --cs: 1;           /* card scale factor */
}

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

html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.page { position: relative; overflow-x: clip; }

/* =========================================================
   Brand lockup  (logo mark + wordmark)
   The source logo is a square export with generous padding —
   these percentages reproduce the exact Figma crop.
   ========================================================= */
.brand { display: inline-flex; align-items: center; gap: 5px; }

.brand__mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 35px;
  overflow: hidden;
}
.brand__mark img {
  position: absolute;
  max-width: none;
  width: 212.5%;
  height: 178.95%;
  left: -56.25%;
  top: -39.47%;
}

.brand__text { display: block; }
.brand__name {
  display: block;
  height: 24px;
  font-size: 22px;
  line-height: .95;
  color: var(--ink);
}
.brand__tag {
  display: block;
  height: 10px;
  font-size: 8px;
  line-height: .9;
  color: #7c7c7c;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 393px;
  margin: 0 auto;
  padding: 23px 20px 0;
}

.nav { display: none; }

.burger {
  flex: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin: -11px -10px 0 0;   /* keep the 19×17 icon on its Figma spot */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.burger:hover { background: rgba(0, 0, 0, .04); }
.burger img { width: 19px; height: 17px; transition: opacity .15s ease; }
.burger__x {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--red);
}
.burger[aria-expanded="true"] img { opacity: 0; }
.burger[aria-expanded="true"] .burger__x { display: flex; }

/* backdrop behind the dropdown */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, .28);
  opacity: 0;
  transition: opacity .18s ease;
}
.menu-backdrop[hidden] { display: none; }
.menu-backdrop.is-open { opacity: 1; }

.mobile-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 16px;
  left: 16px;
  max-width: 320px;
  margin-left: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .28);
  font-size: 15px;
  transform-origin: top right;
  animation: menu-in .16s ease;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  color: #1c1c1c;
  line-height: 1.2;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible { background: #f5f5f6; color: var(--red); }
/* separate the primary nav from the information / legal links */
.mobile-menu a:nth-child(3) {
  margin-bottom: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  border-radius: 9px 9px 0 0;
}
.mobile-menu[hidden] { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 91px 31px 0;
}
.hero__inner {
  max-width: 331px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.hero__title {
  max-width: 299px;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.3;
}
.hero__sub {
  max-width: 263px;
  font-size: 15px;
  line-height: 1.42;
  color: var(--ink-60);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 169px;
  height: 37.19px;
  border-radius: 19px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.36;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { background: #1c1c1c; transform: translateY(-1px); }

/* floating app-icon decor */
.decor { position: absolute; z-index: 1; pointer-events: none; display: block; }
.decor img { width: 100%; height: 100%; object-fit: contain; }

.decor--1 { left: 296px; top: 414px; width: 57.85px; height: 57px; transform: rotate(-8.53deg); filter: blur(.95px); }
.decor--2 { left: 354px; top: 39px;  width: 50.59px; height: 52.75px; transform: rotate(-11.18deg); filter: blur(.3px);
            border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; }
.decor--2 img { object-fit: cover; border-radius: 8px; }
.decor--3 { left: -32px; top: 196px; width: 56.08px; height: 56.08px; transform: rotate(21.35deg); filter: blur(.6px); }

/* =========================================================
   Mission (red gradient)
   ========================================================= */
.mission {
  position: relative;
  z-index: 2;
  margin-top: 95px;
  padding: 67px 31px 55px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
}
.mission__inner { max-width: 331px; margin: 0 auto; }

.mission__title {
  font-weight: 500;
  font-size: 29px;
  line-height: 1.34;
  text-align: center;
  margin-bottom: 39px;
}
.mission__body { font-size: 13px; line-height: 1.42; }
.mission__body p + p { margin-top: 1.42em; }
.mission__body b { font-weight: 700; }

/* =========================================================
   Products
   ========================================================= */
.products { margin-top: 72px; padding: 0 31px; }

.section-head {
  max-width: 331px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.section-head h2 { font-weight: 500; font-size: 30px; line-height: 1.3; }
.section-head p { max-width: 263px; font-size: 15px; line-height: 1.42; color: var(--ink-60); }

.products__grid {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* --- card ------------------------------------------------ */
.card-slot {
  width: calc(var(--card-w) * var(--cs));
  height: calc(var(--card-h) * var(--cs));
}
.card {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  background: var(--red);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transform: scale(var(--cs));
  transform-origin: top left;
}

/* soft shadow behind the device render */
.card__shadow {
  position: absolute;
  left: 96px;
  top: 20px;
  width: 192px;
  height: 250px;
  transform: rotate(-1.35deg);
  background: radial-gradient(
    54% 52% at 54% 57%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.40) 38%,
    rgba(0, 0, 0, 0) 76%
  );
  filter: blur(20px);
  pointer-events: none;
}
.card__shadow > span,
.card__shadow img { display: none; }

.card__shadow--c { top: 30px; }

.card__phone {
  position: absolute;
  left: 129.78px;
  top: 22.41px;
  width: 113.5px;
  height: 234.32px;
  object-fit: contain;
  object-position: top left;
}
.card__panel {
  position: absolute;
  left: -1px;
  top: 196px;
  width: 269px;
  height: 129px;
  background: #fff;
}
.card__badge {
  position: absolute;
  left: 15px;
  top: 182px;
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.card__cat { position: absolute; left: 15px; top: 220px; font-size: 13px; line-height: 1.3; color: var(--ink); }
.card__desc {
  position: absolute;
  left: 16px; top: 242px;
  width: 242px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink-50);
}
.card__status { position: absolute; left: 16px; top: 294px; font-weight: 500; font-size: 11px; line-height: 1.3; }
.card__status--link  { color: var(--red); text-decoration: underline; }
.card__status--maint { color: var(--red-soft); }
.card__status--soon  { color: var(--ink-40); }

/* =========================================================
   Stats
   ========================================================= */
.stats { margin-top: 62px; padding: 33px 20px 42px; text-align: center; }

.stats__years {
  font-weight: 700;
  font-size: 35px;
  line-height: 1.34;
  color: var(--red);
}
.stats__people {
  width: 333px;
  height: 130px;
  max-width: 100%;
  margin: 55px auto 0;
  object-fit: cover;
  object-position: center 12%;
}
.stats__bar {
  width: 352px;
  max-width: 100%;
  margin: 1px auto 0;
  padding: 7.5px;
  display: flex;
  gap: 8px;
  background: #fff;
  border: .5px solid #d9d9d9;
  border-radius: 10px;
}
.stat {
  flex: 1 1 0;
  height: 65px;
  border-radius: 10px;
  background: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat__num { font-weight: 500; font-size: 20px; line-height: 1.27; color: #fff; }
.stat__label { font-size: 12px; line-height: 1.34; color: #f3f3f3; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin-top: 37px;
  padding: 45px 32px 32px;
  background: #000;
  border-radius: 25px 25px 0 0;
  color: #fff;
}
.footer__inner { max-width: 329px; margin: 0 auto; }

.brand--footer { align-items: center; gap: 14px; }
.brand--footer .brand__mark { width: 35px; height: 43px; }
.brand--footer .brand__mark img { width: 183.67%; height: 151.52%; left: -43.27%; top: -27.27%; }
.brand--footer .brand__name { height: 32.62px; font-size: 26px; line-height: 1.19; color: #fff; }
.brand--footer .brand__tag  { height: 15.59px; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .55); }

/* social links */
.socials { margin-top: 22px; display: flex; gap: 20px; }
.social {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, opacity .18s ease;
}
.social img { width: 16px; height: 24px; object-fit: contain; }
.social:hover { transform: translateY(-2px); opacity: .85; }

.footer__addr { margin-top: 24px; font-size: 16px; line-height: 1.45; }

.footer__h {
  margin-top: 24px;
  padding-bottom: 5px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.19;
  color: rgba(255, 255, 255, .65);
  display: inline-block;
  border-bottom: 2px solid rgba(255, 255, 255, .65);
}
.footer__links { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 16px; line-height: 1.19; transition: color .18s ease; }
.footer__links a:hover { color: rgba(255, 255, 255, .6); }

.footer__paywith { margin-top: 24px; font-size: 14px; line-height: 1.19; color: rgba(255, 255, 255, .31); }
.footer__pay { width: 330px; max-width: 100%; height: 63px; margin-top: 14px; object-fit: contain; object-position: left center; }

.footer__copy {
  margin-top: 22px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.19;
}

/* =========================================================
   Tablet  ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --cs: 1; }

  .site-header { max-width: 720px; padding: 28px 32px 0; }
  .mobile-menu { right: 32px; }

  .hero { padding: 84px 32px 0; }
  .hero__inner { max-width: 560px; gap: 26px; }
  .hero__title { max-width: 520px; font-size: 42px; }
  .hero__sub { max-width: 420px; font-size: 17px; }
  .btn { width: auto; height: 46px; padding: 0 30px; font-size: 15px; border-radius: 23px; }

  .decor--1 { left: auto; right: 4%; top: 300px; width: 72px; height: 71px; }
  .decor--2 { left: auto; right: 6%; top: 30px; width: 66px; height: 69px; }
  .decor--3 { left: 3%; top: 190px; width: 70px; height: 70px; }

  .mission { margin-top: 96px; padding: 76px 32px 84px; }
  .mission__inner { max-width: 620px; }
  .mission__title { max-width: 545px; margin: 0 auto 34px; font-size: 38px; }
  .mission__body { font-size: 15px; }

  .products { margin-top: 84px; padding: 0 32px; }
  .section-head { max-width: 560px; }
  .section-head h2 { font-size: 38px; }
  .section-head p { max-width: 420px; font-size: 17px; }

  .products__grid {
    margin-top: 48px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
  }

  .stats { margin-top: 90px; padding: 40px 32px 56px; }
  .stats__years { font-size: 48px; }
  .stats__people { width: 520px; height: 198px; margin-top: 40px; object-position: center 12%; }
  .stats__bar { width: 560px; padding: 12px; gap: 12px; border-radius: 14px; }
  .stat { height: 90px; border-radius: 12px; gap: 6px; }
  .stat__num { font-size: 28px; }
  .stat__label { font-size: 14px; }

  .footer { margin-top: 64px; padding: 56px 32px 28px; border-radius: 32px 32px 0 0; }
  .footer__inner {
    max-width: 720px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 40px;
    align-items: start;
    grid-template-areas:
      "brand   pay"
      "addr    pay"
      "links   links"
      "socials socials"
      "copy    copy";
  }
  .footer__brandcol { grid-area: brand; }
  .footer__addr     { grid-area: addr; }
  .footer__linkscol { grid-area: links; }
  .socials          { grid-area: socials; margin-top: 32px; }
  .footer__paycol   { grid-area: pay; }
  .footer__copy     { grid-area: copy; }

  .footer__h { margin-top: 44px; }
  .footer__paywith { margin-top: 0; }
  .footer__copy {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
}

/* =========================================================
   Desktop  ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --cs: 1.05; }

  /* header becomes a real nav bar */
  .site-header {
    max-width: 1200px;
    padding: 32px 40px 0;
    gap: 40px;
  }
  .brand { gap: 8px; }
  .brand__mark { width: 39px; height: 45px; }
  .brand__name { height: auto; font-size: 28px; line-height: 1.1; }
  .brand__tag { height: auto; font-size: 10px; line-height: 1.3; }

  .nav { display: flex; align-items: center; gap: 36px; }
  .nav a {
    position: relative;
    font-size: 15px;
    line-height: 1.4;
    color: #2c2c2c;
    transition: color .18s ease;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1.5px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
  }
  .nav a:hover { color: var(--red); }
  .nav a:hover::after { transform: scaleX(1); }

  .burger { display: none; }
  .mobile-menu { display: none !important; }

  /* hero */
  .hero { padding: 104px 40px 0; }
  .hero__inner { max-width: 700px; gap: 30px; }
  .hero__title { max-width: 700px; font-size: 56px; line-height: 1.14; letter-spacing: -0.015em; }
  .hero__sub { max-width: 500px; font-size: 19px; line-height: 1.5; }
  .btn { height: 54px; padding: 0 38px; font-size: 16px; border-radius: 27px; }

  .decor--1 { left: auto; right: 9%;  top: 330px; width: 84px; height: 83px; filter: blur(1.1px); }
  .decor--2 { left: auto; right: 4%;  top: 74px;  width: 76px; height: 79px; }
  .decor--3 { left: 4%;   right: auto; top: 150px; width: 82px; height: 82px; }

  /* mission */
  .mission { margin-top: 130px; padding: 104px 40px 112px; }
  .mission__inner { max-width: 1000px; }
  .mission__title {
    max-width: 660px;
    margin: 0 auto 52px;
    font-size: 46px;
    line-height: 1.22;
    letter-spacing: -0.015em;
  }
  .mission__body {
    font-size: 16px;
    line-height: 1.7;
    column-count: 2;
    column-gap: 56px;
  }
  .mission__body p { break-inside: avoid; }
  .mission__list { break-before: column; }

  /* products */
  .products { margin-top: 120px; padding: 0 40px; }
  .section-head { max-width: 760px; }
  .section-head h2 { font-size: 52px; letter-spacing: -0.015em; }
  .section-head p { max-width: 480px; font-size: 19px; }
  .products__grid {
    margin-top: 64px;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 28px;
  }
  .card { transition: transform .25s ease, box-shadow .25s ease; }
  .card-slot { transition: box-shadow .25s ease; border-radius: 12px; }
  .card-slot:hover .card { transform: scale(var(--cs)) translateY(-6px); }

  /* stats */
  .stats { margin-top: 130px; padding: 56px 40px 72px; }
  .stats__years { font-size: 64px; }
  .stats__people { width: 680px; height: 262px; margin-top: 48px; object-position: center 12%; }
  .stats__bar { width: 780px; padding: 14px; gap: 14px; border-radius: 16px; }
  .stat { height: 112px; border-radius: 14px; gap: 8px; }
  .stat__num { font-size: 34px; }
  .stat__label { font-size: 15px; }

  /* footer keeps the tablet grid until the wide layout kicks in at 960px */
  .footer { margin-top: 96px; }
  .footer__inner { max-width: 900px; }
}

/* =========================================================
   Footer — desktop composition (Figma "Frame 40314", 1524×368)
   ========================================================= */
@media (min-width: 1024px) {
  .footer {
    margin-top: 96px;
    padding: 57px 85px 44px;
    border-top: 1px solid #929292;
    border-radius: 50px 50px 0 0;
    box-shadow: 0 -3px 10.4px rgba(0, 0, 0, .25);
  }
  .footer__inner {
    max-width: 1354px;   /* 1524 frame − 2 × 85px side padding */
    min-height: 267px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 48px;
    align-items: start;
    grid-template-areas:
      "brand   pay"
      "socials addr"
      ".       ."
      "copy    links";
  }

  .footer__brandcol { grid-area: brand; }
  .footer__paycol   { grid-area: pay;   justify-self: end; text-align: right; }
  .footer__addr     { grid-area: addr;  justify-self: end; text-align: right; margin-top: 16px; }
  .footer__copy     { grid-area: copy;  justify-self: start; align-self: center; }
  .footer__linkscol { grid-area: links; justify-self: end;   align-self: center; }

  .brand--footer { gap: 16px; }
  .socials { grid-area: socials; margin-top: 30px; width: max-content; }

  /* "Pay With" column is right-aligned above the strip */
  .footer__paywith { margin-top: 0; font-size: 14px; color: rgba(255, 255, 255, .76); }
  .footer__pay { width: 330px; max-width: none; height: 63px; margin: 12px 0 0 auto; object-position: right center; }

  .footer__addr { font-size: 16px; line-height: 1.45; }

  /* the horizontal link row replaces the "Information" list */
  .footer__h { display: none; }
  .footer__links {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 27px;
    white-space: nowrap;
  }
  .footer__links a { font-size: 16px; line-height: 24px; }

  .footer__copy {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #d6d3d1;
    white-space: nowrap;
  }
}

/* =========================================================
   Wide desktop  ≥ 1200px
   ========================================================= */
@media (min-width: 1200px) {
  :root { --cs: 1.22; }
  .hero__inner { max-width: 820px; }
  .hero__title { max-width: 800px; font-size: 62px; }
  .products__grid { gap: 36px; }
  .mission__title { max-width: 760px; font-size: 52px; }
  .section-head h2 { font-size: 52px; }
}

/* =========================================================
   Large desktop  ≥ 1440px
   ========================================================= */
@media (min-width: 1440px) {
  :root { --cs: 1.35; }
  .hero__title { font-size: 68px; }
  .products__grid { gap: 44px; }
  .decor--1 { right: 12%; }
  .decor--3 { left: 7%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Content / legal pages
   ========================================================= */
.subpage .site-header {
  max-width: 848px;          /* 800 content + 2 × 24 padding */
  padding: 23px 24px 18px;
  border-bottom: 1px solid #ededed;
}
@media (min-width: 640px) {
  .subpage .site-header { max-width: 864px; padding: 28px 32px 20px; }
}
@media (min-width: 1024px) {
  .subpage .site-header { max-width: 880px; padding: 32px 40px 22px; }
}

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-50);
  text-decoration: none;
  margin-bottom: 22px;
}
.legal__back:hover { color: var(--red); }

.legal__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.legal h1 {
  margin: 10px 0 10px;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal__meta {
  font-size: 13.5px;
  color: var(--ink-50);
  line-height: 1.6;
}
.legal__lead {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #363636;
}

.legal__toc {
  margin: 34px 0 8px;
  padding: 20px 24px;
  background: #f7f7f8;
  border: 1px solid #ececee;
  border-radius: 12px;
}
.legal__toc h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.legal__toc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.legal__toc a { color: #2b2b2b; text-decoration: none; }
.legal__toc a:hover { color: var(--red); text-decoration: underline; }

.legal section { margin-top: 40px; scroll-margin-top: 90px; }
.legal section > h2 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
}
.legal h3 {
  margin: 22px 0 8px;
  font-weight: 600;
  font-size: 15.5px;
  color: #1c1c1c;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.72;
  color: #333333;
}
.legal p + p { margin-top: 12px; }
.legal ul,
.legal ol { margin: 12px 0 12px 22px; }
.legal li + li { margin-top: 7px; }
.legal a { color: var(--red); text-decoration: underline; }
.legal strong { font-weight: 600; color: #1c1c1c; }

.legal__table-wrap { overflow-x: auto; margin: 16px 0; }
.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.legal th,
.legal td {
  border: 1px solid #e4e4e4;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.legal th { background: #f7f7f8; font-weight: 600; color: #1c1c1c; }

.legal__note {
  margin: 18px 0;
  padding: 14px 18px;
  background: #fdf3f3;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4a2b2b;
}

.legal__contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.legal__contact-card {
  padding: 18px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}
.legal__contact-card h3 { margin: 0 0 4px; }
.legal__contact-card p { font-size: 14px; margin: 0; }

.legal__form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.legal__field { display: grid; gap: 6px; }
.legal__field label { font-size: 13px; font-weight: 600; color: #1c1c1c; }
.legal__field input,
.legal__field select,
.legal__field textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
}
.legal__field textarea { min-height: 130px; resize: vertical; }
.legal__field input:focus,
.legal__field select:focus,
.legal__field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.legal__form .btn { width: max-content; }
.legal__form-hint { font-size: 12.5px; color: var(--ink-50); line-height: 1.6; }

@media (min-width: 640px) {
  .legal { padding: 52px 32px 100px; }
  .legal h1 { font-size: 38px; }
  .legal__toc ol { columns: 2; column-gap: 40px; }
  .legal__contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .legal { padding: 64px 40px 120px; }
}
