/* Prime Mall Management — сайт компании. Тёмная тема в цветах логотипа. */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --card: #161618;
  --line: rgba(201, 162, 106, 0.24);
  --line-soft: rgba(237, 231, 222, 0.08);
  --gold: #c9a26a;
  --gold-2: #e3c79a;
  --text: #ede7de;
  --muted: #a9a196;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 14px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: 0.01em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 22ch; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--gold); color: #111; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.muted { color: var(--muted); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 12, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold-2); }
.brand__name span { color: var(--text); font-size: 17px; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav .nav__phone { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.menu-btn { display: none; }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15110b; }
.btn--gold:hover { background: var(--gold-2); }
.btn--line { border: 1px solid var(--gold); color: var(--gold-2); }
.btn--line:hover { background: rgba(201, 162, 106, 0.1); }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(80px, 11vw, 140px); background: radial-gradient(1200px 520px at 85% 10%, rgba(201, 162, 106, 0.12), transparent 60%), var(--bg); }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; pointer-events: none; }
.hero__inner { position: relative; }
.hero h1 { max-width: 15ch; }
.lead { margin-top: 24px; max-width: 60ch; font-size: clamp(17px, 1.6vw, 19px); color: #d9d2c7; }

/* Секции */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 72px; }
.section--alt { background: var(--bg-2); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 24px 30px; transition: border-color .2s; }
.card:hover { border-color: var(--line); }
.card__num { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 21px; color: var(--gold-2); }
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -6px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 90px; }
.panel h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.panel > p { color: var(--muted); }
.panel .btn { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.report { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.report .muted { margin-top: 18px; max-width: 46ch; }
.report__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.report__list li { background: var(--bg-2); padding: 22px 22px 24px; color: var(--muted); font-size: 15px; }
.report__list span { display: block; color: var(--text); font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }

.person { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.person__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 10px rgba(201, 162, 106, 0.06); }
.person__role { margin-top: 10px; color: var(--gold-2); font-size: 18px; }

.contact { text-align: center; background: radial-gradient(800px 360px at 50% 0%, rgba(201, 162, 106, 0.1), transparent 70%), var(--bg); }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__logo { width: 112px; height: 112px; margin-bottom: 26px; }
.contact h2 { margin-inline: auto; }
.contact .muted { margin-top: 14px; }
.contact__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; width: min(100%, 900px); }
.contact__way { display: block; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: clamp(18px, 2vw, 21px); font-weight: 700; color: var(--gold-2); overflow-wrap: anywhere; transition: background .15s; }
.contact__way:hover { background: rgba(201, 162, 106, 0.08); }
.contact__way span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.footer { border-top: 1px solid var(--line-soft); padding: 26px 0 34px; color: var(--muted); font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer a { text-decoration: none; color: var(--gold); }

/* Страница 404 */
.page-404 { min-height: 100vh; border: 0; display: grid; align-items: center; }
.page-404 h1 { font-size: clamp(34px, 5vw, 56px); }
.page-404 .actions { justify-content: center; }

/* Планшеты */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 62px; min-height: 40px; }
  .steps li::after { top: 46px; bottom: 6px; left: 20px; right: auto; width: 1px; height: auto; }
  .report { grid-template-columns: 1fr; }
  .person { grid-template-columns: 280px 1fr; }
}

/* Свёрнутое меню: полная строка разделов в шапку помещается только с ~1000px */
@media (max-width: 1020px) {
  .js .menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
  .menu-btn__bars::before { position: absolute; top: -6px; }
  .menu-btn__bars::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  /* Открытое меню не выше экрана и прокручивается (телефон боком, увеличение страницы) */
  .js .nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line-soft); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .js .nav a:last-child { border-bottom: 0; }
  /* Без JavaScript разделы переносятся отдельной строкой под логотип */
  html:not(.js) .header { position: static; }
  html:not(.js) .header__row { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 8px 18px; }
}

/* Телефоны */
@media (max-width: 820px) {
  .brand__name span { display: none; }
  .split { grid-template-columns: 1fr; }
  .report__list { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; justify-items: start; }
  .person__photo { width: min(72vw, 300px); }
  .contact__ways { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .hero__lines { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { forced-color-adjust: none; background: ButtonText; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
}

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