@import url('fonts.css');

:root {
  font-family: Inter, Arial, sans-serif;
  --lime: #c6ee67;
  --chrome: #151713;
  --page: #191a16;
  --panel: #23241e;
  --ink: #fbf3df;
  --muted: #c5bca8;
  --line: #484337;
  --accent: #ffd383;
  --accent-ink: #211902;
  --inset: 40px;
  --shell-gutter: 28px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
p, h1, h2, h3, figure, ol, ul { margin: 0; }
p { line-height: 1.58; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #8f9f6f; outline-offset: 4px; }
.skip { position: absolute; top: 4px; left: 4px; z-index: 4; transform: translateY(-125%); }
.skip:focus { transform: none; }

.shell { width: min(1200px, calc(100% - 2 * var(--shell-gutter))); margin-inline: auto; }
.platform-head, .platform-foot { color: #f4f6f7; background: var(--chrome); border: solid #ffffff20; border-width: 0; }
.platform-head { position: relative; z-index: 2; border-bottom-width: 1px; }
.header-inner { height: 87px; display: flex; align-items: center; gap: 42px; }
.brand { font-size: 26px; font-weight: 900; letter-spacing: -.8px; white-space: nowrap; }
.brand strong { color: var(--lime); }
.desktop-nav { display: flex; align-self: stretch; gap: 32px; }
.desktop-nav a { display: grid; place-items: center; border-bottom: 3px solid transparent; color: #c8cdd0; white-space: nowrap; }
.desktop-nav .current { border-color: var(--lime); color: #f4f6f7; }
.locale { margin-left: auto; display: flex; gap: 2px; }
.locale > * { display: grid; place-items: center; border-radius: 6px; min-width: 40px; min-height: 44px; font-size: 13px; font-weight: 750; }
.locale span { background: #adf96f17; color: var(--lime); }
.mobile-nav { display: none; }
.platform-foot { border-top-width: 1px; }
.footer-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #c8cdd0; font-size: 14px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-brand .brand { font-size: 21px; color: #f4f6f7; }
.foot-brand p { margin-top: 2px; color: #b4bdbd; font-size: 13px; }
.platform-foot a:hover, .platform-head a:hover { color: #fff; }

main { width: min(100%, 1280px); margin-inline: auto; }
.content { padding-inline: var(--inset); }
.hero { isolation: isolate; position: relative; overflow: clip; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
h1 { font-weight: 860; letter-spacing: -.074em; line-height: .94; }
h1 b { font-weight: 900; }
h2 { font-weight: 820; font-size: clamp(26px, 3.37vw, 44px); letter-spacing: -.048em; line-height: 1.06; }
h3 { font-weight: 750; font-size: 20px; letter-spacing: -.024em; line-height: 1.15; }
.metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 720; letter-spacing: .02em; }
.metadata span + span { display: inline-flex; align-items: center; gap: 10px; }
.metadata span + span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .64; }
.lead { font-size: clamp(16px, 1.65vw, 23px); max-width: 32ch; line-height: 1.42; font-weight: 480; }
.test-note { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 760; line-height: 1.25; }
.button span, .text-action span { font-size: 1.1em; line-height: 1; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { filter: brightness(1.09); }
.secondary { border-color: var(--line); background: var(--panel); }
.secondary:hover { border-color: var(--accent); }
.text-action { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: 14px; font-weight: 710; min-height: 44px; }
.text-action:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding-block: 49px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head > span { color: var(--muted); font-size: 13px; font-weight: 665; white-space: nowrap; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 780; color: var(--accent); }
.steps strong { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -.024em; }
.steps p, .mode-list p, .short-modes p, .faq p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.shot img { width: 100%; height: auto; border-radius: 6px; }
.shot figcaption { padding-top: 11px; color: var(--muted); font-size: 13px; }
.directory { border: 1px solid var(--line); background: var(--panel); padding: 20px 23px; border-radius: 10px; min-width: 0; }
.directory-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; }
.directory h2 { font-size: clamp(20px, 2.35vw, 30px); }
.room-state { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 14px; }
.empty-state { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.empty-state strong { font-size: 14px; font-weight: 720; }
.empty-state p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.room-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.room-icon::after { content: ''; width: 10px; height: 10px; box-shadow: 4px -4px 0 -1px var(--panel), 4px -4px 0 0 currentColor; border: 1px solid currentColor; border-radius: 2px; transform: translate(-2px, 2px); }
.room-list { list-style: none; padding: 0; }
.room-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.room-list li + li { border-top: 1px solid var(--line); }
.room-list strong { overflow-wrap: anywhere; font-size: 14px; }
.room-list li > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.faq { display: grid; grid-template-columns: minmax(200px, .85fr) minmax(0, 1.65fr); gap: 35px; border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(26px, 3vw, 38px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; min-height: 48px; font-size: 15px; font-weight: 680; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px; max-width: 62ch; }

/* 1. Улицы Лос-Сантоса */
.boulevard { min-height: 597px; display: flex; align-items: center; }
.boulevard .hero-art img { object-position: 75% 59%; }
.boulevard::after {
  background: linear-gradient(180deg, var(--chrome) 0%, transparent 13%, transparent 68%, #191a1685 83%, var(--page) 100%),
    linear-gradient(90deg,#191a16 0%,#171812e0 14%,#1516138c 40%,transparent 66%,transparent 91%,var(--page) 100%);
}
.boulevard .hero-copy { padding-block: 60px 104px; }
.boulevard .metadata { color: #f1cb8d; margin-bottom: 21px; }
.boulevard h1 { font-size: clamp(54px, 8.6vw, 124px); }
.boulevard h1 span { display: block; font-size: .61em; letter-spacing: -.06em; }
.boulevard .lead { margin-top: 22px; }
.boulevard .actions { margin-top: 28px; }
.boulevard .secondary { background: #1a1b17e0; border-color: #91876b; }
.boulevard .test-note { margin-top: 12px; }
.jump { font-size: 14px; font-weight: 700; color: var(--muted); position: absolute; bottom: 20px; right: var(--inset); min-height: 44px; display: flex; align-items: center; gap: 8px; }
.jump:hover { color: var(--ink); }
.design-1 .entrance { position: relative; margin-top: -12px; }
.compact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 20px; padding: 13px 20px; }
.compact .room-state { margin: 0; padding: 0 0 0 18px; border: 0; border-left: 1px solid var(--line); }
.design-1 .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.design-1 .steps li { border-top: 1px solid var(--line); padding: 16px 0 0 38px; }
.design-1 .steps li::before { position: absolute; left: 0; top: 19px; }
.design-1 .online { padding-bottom: 37px; }
.design-1 .gallery { background: #20211b; }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.short-modes { display: grid; grid-template-columns: 1.05fr 1fr .8fr; gap: 24px; }
.short-modes h2 { font-size: clamp(26px, 3vw, 38px); }

@media (max-width: 960px) {
  :root { --inset: 28px; }
  .header-inner { gap: 24px; }
  .desktop-nav { gap: 20px; }
  .footer-inner { min-height: 81px; gap: 13px; }
  .footer-inner nav { gap: 7px 13px; }
  .boulevard { min-height: 545px; }
  .boulevard::after { background: linear-gradient(180deg,var(--chrome),transparent 12%,transparent 70%,var(--page)),linear-gradient(90deg,#191a16,#171812b5 28%,transparent 79%); }
  .compact { gap: 12px; }
  .directory-head { flex-wrap: wrap; }
}
@media (max-width: 740px) {
  .desktop-nav { display: none; }
  .header-inner { height: 71px; gap: 10px; }
  .brand { font-size: 23px; }
  .locale > * { min-width: 34px; }
  .mobile-nav { display: block; }
  .mobile-nav summary { min-width: 44px; min-height: 44px; display: grid; place-content: center; gap: 4px; list-style: none; border: 1px solid #ffffff25; border-radius: 6px; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { width: 18px; height: 2px; background: currentColor; }
  .mobile-nav nav { position: absolute; inset: 100% 0 auto; display: grid; padding: 7px var(--shell-gutter); background: var(--chrome); border-bottom: 1px solid #ffffff25; }
  .mobile-nav nav a { padding: 12px 0; min-height: 44px; }
  .mobile-nav .current { color: var(--lime); }
  .section { padding-block: 34px; }
  .short-modes { grid-template-columns: 1fr 1fr; }
  .short-modes h2 { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  :root { --inset: 20px; --shell-gutter: 20px; }
  .footer-inner { min-height: 121px; display: grid; grid-template-columns: 1fr auto; gap: 0 13px; padding-block: 9px; font-size: 12px; }
  .footer-inner nav { justify-content: end; gap: 5px 10px; }
  .foot-brand .brand { font-size: 17px; }
  .foot-brand p { font-size: 12px; }
  .boulevard { min-height: 0; align-items: start; }
  .boulevard .hero-art { bottom: auto; height: 344px; }
  .boulevard .hero-art img { object-position: 69% center; }
  .boulevard::after { background: linear-gradient(180deg,var(--chrome),#191a1645 13%,transparent 30%,var(--page) 66%); }
  .boulevard .hero-copy { padding-top: 147px; padding-bottom: 24px; }
  .boulevard .metadata { margin-bottom: 11px; }
  .boulevard h1 { font-size: clamp(64px,17vw,90px); }
  .boulevard h1 span { font-size: .68em; }
  .boulevard .lead { margin-top: 12px; }
  .boulevard .actions { margin-top: 17px; }
  .boulevard .test-note { margin-top: 10px; }
  .jump { display: none; }
  .design-1 .entrance { margin-top: 0; }
  .compact { grid-template-columns: minmax(0,1fr); gap: 0; padding: 12px 14px 15px; }
  .compact .room-state { padding: 12px 0 0; margin-top: 5px; border-left: 0; border-top: 1px solid var(--line); }
  .directory-head { column-gap: 8px; }
  .directory-head .text-action { font-size: 12px; gap: 4px; }
  .section-head { display: block; margin-bottom: 15px; }
  .section-head > span { display: block; margin-top: 6px; }
  .section-head h2 { max-width: 22ch; }
  .design-1 .steps { grid-template-columns: 1fr; gap: 0; }
  .design-1 .steps li { padding-bottom: 14px; }
  .design-1 .steps li:last-child { padding-bottom: 0; }
  .design-1 .online { padding-bottom: 31px; }
  .shot-grid, .short-modes, .faq { grid-template-columns: 1fr; }
  .short-modes { gap: 16px; }
  .faq { gap: 17px; }
  .faq summary { font-size: 14px; }
}
@media (max-width: 420px) {
  .button { font-size: 13px; min-height: 49px; padding-inline: 11px; gap: 6px; }
}
@media (max-width: 359px) {
  .header-inner { gap: 6px; }
  .brand { font-size: 20px; }
  .locale > * { min-width: 31px; }
}

