/* ТЦ «Капитолий Марьина Роща» — лендинг аренды помещений.
   Вёрстка по макету из вложения (1024×1536). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  --navy: #0d2a4e;
  --navy-soft: #1b3a63;
  --red: #cf1d2e;
  --red-dark: #b3151f;

  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --field: #f6f8fc;
  --icon-bg: #e6edf8;

  --line: #e4e9f2;
  --line-soft: #eef1f7;

  --text: #16233a;
  --muted: #6f7681;
  --placeholder: #9aa3b2;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Красная засечка над заголовками. */
.accent-line {
  display: block;
  width: 46px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* ---------- Шапка ---------- */

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.logo__mark { width: 38px; height: 44px; object-fit: contain; }
.logo__name {
  display: block;
  color: var(--navy);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.05;
}
.logo__sub {
  display: block;
  margin-top: 3px;
  color: #8893a5;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
}
.topbar__divider {
  width: 1px;
  align-self: stretch;
  margin: 8px 4px;
  background: var(--line);
  flex: none;
}
.topbar__address {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #273449;
  font-size: 15px;
}
.topbar__address svg { flex: none; color: var(--navy); }
.topbar__link { margin-left: auto; flex: none; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn--outline {
  height: 44px;
  padding: 0 22px;
  border: 1px solid #c3ccdb;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
}
.btn--outline:hover { border-color: var(--navy); background: #f7f9fd; }

.btn--pill {
  height: 56px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
}
.btn--pill:hover { border-color: #b9c4d6; background: #fafbfe; }
.btn--pill .btn__arrow { transition: transform 0.16s ease; }
.btn--pill:hover .btn__arrow { transform: translateX(3px); }

/* Ссылка, для которой ещё не передан адрес. */
.btn[aria-disabled='true'] { cursor: default; opacity: 0.55; }
.btn[aria-disabled='true']:hover { border-color: #c3ccdb; background: #fff; }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 18, 36, 0.86) 0%, rgba(8, 18, 36, 0.62) 38%, rgba(8, 18, 36, 0.1) 72%, rgba(8, 18, 36, 0) 100%),
    linear-gradient(0deg, rgba(8, 18, 36, 0.55) 0%, rgba(8, 18, 36, 0) 45%);
}
.hero__inner { padding-top: 64px; padding-bottom: 44px; }
.hero__title {
  margin: 20px 0 0;
  max-width: 17ch;
  color: #fff;
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.hero__sub {
  margin: 18px 0 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.5;
}

/* ---------- Основная сетка ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(304px, 31%, 372px);
  gap: clamp(18px, 2.2vw, 26px);
  align-items: start;
  padding-top: 34px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.unit__title {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.unit__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(206px, 252px);
  gap: clamp(20px, 3vw, 34px);
  margin-top: 22px;
}
.unit__plan { margin: 0; }
.unit__plan img { width: 100%; height: auto; }

.spec {
  display: flex;
  align-items: center;
  gap: 16px;
}
.spec + .spec { margin-top: 26px; }
.spec__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 13px;
  background: var(--icon-bg);
  color: var(--navy);
}
.spec__label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}
.spec__value {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.unit__note {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.layout__left > .btn--pill { margin-top: 20px; }

/* ---------- Карточка заявки ---------- */

.lead {
  position: relative;
  border-radius: var(--radius);
  background: var(--navy);
  padding: 32px;
  color: #fff;
}
.lead__title {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lead__sub {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}
.form { margin-top: 24px; }
.field {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field + .field { margin-top: 12px; }
.field::placeholder { color: var(--placeholder); opacity: 1; }
.field:focus-visible { border-color: #7ea2d8; box-shadow: 0 0 0 3px rgba(126, 162, 216, 0.3); }
.field[aria-invalid='true'] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(207, 29, 46, 0.25); }

/* Ловушка для ботов. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.submit {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}
.submit:hover { background: var(--red-dark); }
.submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.submit[disabled] { opacity: 0.65; cursor: progress; }

.consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
.consent__box {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.consent__box:hover { border-color: #fff; }
.consent__box:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.consent__box[aria-invalid='true'] { border-color: var(--red); background: rgba(207, 29, 46, 0.18); }
.consent__box:checked { background: var(--red); border-color: var(--red); }
.consent__box:checked::before {
  content: '';
  position: absolute;
  left: 5.5px; top: 2px;
  width: 4px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* Зона нажатия крупнее квадрата. */
.consent__box::after { content: ''; position: absolute; inset: -8px; }
.consent label { cursor: pointer; }

.form-error {
  margin: 14px 0 0;
  color: #ff9ca5;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.form-error:empty { margin: 0; }

/* Состояние «заявка отправлена». */
.lead__done { text-align: center; padding: 18px 0 6px; }
.lead__done svg { margin: 0 auto 16px; display: block; }
.lead__done h3 { margin: 0; font-size: 21px; font-weight: 700; }
.lead__done p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 15px; }

/* ---------- Преимущества ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 26px 10px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 24px;
}
.feature + .feature { border-left: 1px solid #e3e8f1; }
.feature svg { flex: none; color: var(--navy); }
.feature span { color: var(--navy); font-size: 15px; line-height: 1.35; }

/* ---------- О торговом центре ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: stretch;
  margin: 30px 0 60px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.about__text { padding: 46px 40px; align-self: center; }
.about__title {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.about__text p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 52ch;
}
.about__photo { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .lead { max-width: 520px; }
}

@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .feature:nth-child(3) { border-left: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { order: -1; min-height: 220px; max-height: 280px; }
  .about__text { padding: 32px 26px 38px; }
}

@media (max-width: 760px) {
  .topbar__inner { flex-wrap: wrap; gap: 14px 18px; min-height: 0; }
  .topbar__divider { display: none; }
  .topbar__link { margin-left: 0; order: 3; width: 100%; }
  .hero { min-height: 390px; }
  .hero__inner { padding-top: 48px; padding-bottom: 34px; }
  .unit__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card, .lead { padding: 22px; }
  .layout__left > .btn--pill { width: 100%; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature + .feature { border-left: 0; }
  .feature { padding: 6px 16px; }
}

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