:root {
  --bg-deep: #06080b;
  --bg: #0c1016;
  --bg-card: #141a22;
  --bg-card-hover: #1a222c;
  --text: #eef1f5;
  --text-muted: #8d97a5;
  --accent: #ff8c00;
  --accent-bright: #ffa726;
  --accent-dim: #cc7000;
  --border: #252f3d;
  --facet: #3a4a5c;
  --warface-nav: rgba(8, 10, 14, 0.88);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --max: 1200px;
  --radius: 4px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
  min-height: 100vh;
  min-height: 100svh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-bright);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Warface-style header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--warface-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 140, 0, 0.15);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header--minimal .header-inner {
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  border-radius: 20%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.35));
}

.brand-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: rgba(255, 140, 0, 0.08);
  text-decoration: none;
}

.nav-cta {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%) !important;
  color: #1a0e00 !important;
  margin-left: 0.5rem;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.35);
}

.nav-cta:hover {
  background: linear-gradient(180deg, #ffb84d 0%, var(--accent-bright) 100%) !important;
  color: #1a0e00 !important;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── Full-screen hero (Warface first screen) ── */
.hero-full {
  --hero-bg-x: 72%;
  --hero-bg-y: 28%;
  position: relative;
  /* svh = стабильная высота; dvh растёт, когда прячется адресная строка */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem 1.5rem 2rem;
  padding: clamp(1.25rem, 3svh, 2.5rem) 1.5rem clamp(2rem, 4svh, 3rem);
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(6, 8, 11, 0.9) 0%, rgba(6, 8, 11, 0.72) 38%, rgba(6, 8, 11, 0.28) 58%, rgba(6, 8, 11, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 8, 11, 0.82) 0%, transparent 32%, transparent 68%, rgba(6, 8, 11, 0.92) 100%),
    url("/assets/hero-stone-faceted-soldier.png") var(--hero-bg-x) var(--hero-bg-y) / cover no-repeat;
  background-attachment: scroll;
}

.hero-full--standalone {
  padding: 1.5rem 1.5rem 2rem;
  padding: clamp(1.25rem, 3svh, 2.5rem) 1.5rem clamp(2rem, 4svh, 3rem);
}

@media (min-width: 721px) and (min-height: 720px) {
  .hero-full--standalone {
    justify-content: center;
  }
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 60px,
      rgba(255, 140, 0, 0.02) 60px,
      rgba(255, 140, 0, 0.02) 61px
    );
  pointer-events: none;
}

.hero-full::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-mark {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
  border-radius: 22%;
  object-fit: cover;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 140, 0, 0.2);
}

.hero-full h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  margin: 0 0 1rem;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(238, 242, 247, 0.92);
  margin: 0 0 2.5rem;
  max-width: 560px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

/* Warface-style action tiles */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero-tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1920px) {
  .hero-full {
    --hero-bg-x: 76%;
    --hero-bg-y: 12%;
  }
}

.hero-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 168px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(165deg, rgba(18, 24, 32, 0.94) 0%, rgba(10, 14, 20, 0.9) 100%);
  border: 1px solid rgba(255, 140, 0, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.hero-tile:hover,
.hero-tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 140, 0, 0.12);
  text-decoration: none;
  color: var(--text);
  outline: none;
}

.hero-tile:hover::before,
.hero-tile:focus-visible::before {
  transform: scaleX(1);
}

.hero-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 140, 0, 0.28) 0%, rgba(255, 140, 0, 0.12) 100%);
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 6px;
  color: var(--accent-bright);
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.15);
}

.hero-tile-icon svg,
.hero-tile-icon .lucide {
  width: 26px;
  height: 26px;
  display: block;
  stroke: currentColor;
  fill: none;
}

.hero-tile-body {
  margin-top: auto;
}

.hero-tile strong {
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.hero-tile .hero-tile-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.hero-tile-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 140, 0, 0.14);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-bright);
  transition: background 0.15s, border-color 0.15s;
}

.hero-tile-action::after {
  content: "→";
  font-size: 0.85em;
}

.hero-tile:hover .hero-tile-action,
.hero-tile:focus-visible .hero-tile-action {
  background: rgba(255, 140, 0, 0.24);
  border-color: var(--accent);
}

.hero-tile-go {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.18);
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: var(--accent-bright);
}

.hero-tile-go svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.hero-scroll-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #1a0e00;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffb84d, var(--accent-bright));
  color: #1a0e00;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(20, 26, 34, 0.8);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--bg);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.card:hover {
  border-color: var(--facet);
  background: var(--bg-card-hover);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card a.stretched {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pillar {
  padding: 1.15rem;
  border-left: 3px solid var(--accent);
  background: rgba(20, 26, 34, 0.6);
}

.pillar strong {
  display: block;
  margin-bottom: 0.3rem;
}

.pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Follow / contacts block */
.landing-contacts {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 4rem;
  scroll-margin-top: 0.5rem;
}

.landing-contacts-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.landing-contacts h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.contacts-subtitle {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contacts-dev-name {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.contacts-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.site-footer--minimal {
  padding: 1.5rem;
}

.site-footer--minimal p {
  margin: 0;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

/* 3, 5, … карточек: последняя в ряду одна — на всю ширину, не «обрубок» */
.link-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.follow-page {
  padding-top: calc(var(--header-h) + 2rem);
  min-height: 100vh;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.link-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.12);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.link-card-icon svg,
.link-card-icon .link-card-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.link-card-icon--telegram {
  color: #2aabee;
  background: rgba(42, 171, 238, 0.14);
}

.link-card-icon--vk {
  color: #4c75a3;
  background: rgba(76, 117, 163, 0.16);
}

.link-card-icon--youtube {
  color: #ff3d3d;
  background: rgba(255, 61, 61, 0.14);
}

.link-card-icon--github {
  color: var(--text);
  background: rgba(238, 242, 247, 0.08);
}

.link-card strong {
  display: block;
  font-size: 0.95rem;
}

.link-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Promo */
.promo-hero {
  padding: calc(var(--header-h) + 2rem) 1.5rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.promo-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.content-block {
  max-width: 720px;
}

.content-block h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
}

.content-block ul {
  padding-left: 1.25rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.compare-table th {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
}

.compare-table td {
  color: var(--text-muted);
}

.cta-band {
  background: linear-gradient(135deg, var(--bg-card) 0%, #181f28 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.65rem;
  font-size: 1.6rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 6, 9, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(12px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.modal-close:hover {
  color: var(--accent);
}

.modal-body {
  padding: 1rem 1.35rem 1.35rem;
}

.modal--success {
  max-width: 400px;
  text-align: center;
}

.modal-success-body {
  padding: 2rem 1.5rem 1.5rem;
}

.modal-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(111, 207, 151, 0.25) 0%, rgba(111, 207, 151, 0.1) 100%);
  border: 2px solid rgba(111, 207, 151, 0.55);
  color: #6fcf97;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(111, 207, 151, 0.15);
}

.modal-success-body h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-success-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-alt-contact {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 140, 0, 0.06);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.modal-alt-contact a {
  color: var(--accent-bright);
  font-weight: 600;
  text-decoration: none;
}

.modal-alt-contact a:hover {
  text-decoration: underline;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.15);
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.form-msg {
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.form-msg.ok {
  color: #6fcf97;
}

.form-msg.err {
  color: #eb5757;
}

/* Низкий экран — компактнее hero, без наезда на контакты */
@media (max-height: 720px) {
  .hero-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
  }

  .hero-full h1 {
    font-size: clamp(2rem, 9vw, 3.25rem);
    letter-spacing: 0.22em;
    margin-bottom: 0.75rem;
  }

  .hero-tagline {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  .hero-tile {
    min-height: 0;
    padding: 0.9rem 1rem;
    gap: 0.65rem;
  }

  .hero-scroll-hint {
    margin-top: 0.85rem;
  }

  .landing-contacts {
    padding-top: 2.5rem;
  }
}

@media (max-height: 520px) {
  .hero-scroll-hint {
    display: none;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .hero-full {
    --hero-bg-x: 80%;
    --hero-bg-y: 24%;
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero-full--standalone {
    justify-content: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .hero-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .hero-tile {
    min-height: 148px;
  }
}

@media (max-width: 520px) {
  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .hero-tiles {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .hero-tile {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.85rem 0.9rem;
  }

  .hero-tile-icon {
    width: 40px;
    height: 40px;
  }

  .hero-tile-icon svg,
  .hero-tile-icon .lucide {
    width: 22px;
    height: 22px;
  }

  .hero-tile-body {
    margin-top: 0;
    flex: 1;
    min-width: 0;
  }

  .hero-tile .hero-tile-desc {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }

  .hero-tile-action {
    display: none;
  }

  .hero-tile-go {
    display: flex;
  }

  .hero-scroll-hint {
    display: none;
  }
}

/* Старый iOS без svh — только если 100svh не поддерживается */
@supports not (min-height: 1svh) {
  body,
  .hero-full {
    min-height: -webkit-fill-available;
  }
}
