/* ==========================================================================
   Метракар — style.css
   Блоки независимы: каждый можно перенести в большой сайт вместе с переменными из :root.
   Анимаций и переходов нет, кроме смены цвета при наведении.
   ========================================================================== */

/* ---------- Переменные (брендбук) ---------- */
:root {
  --blue: #19BEF0;
  --white: #FEFEFE;
  --black: #000000;
  --sky: #F0FBFE;
  --gray: #DBE4EA;
  --muted: #3A4650;          /* вторичный текст на белом/светло-голубом, контраст > 9:1 */
  --placeholder: #5B6770;    /* плейсхолдеры на белом, контраст > 5:1 */

  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-text: 500;
  --fw-head: 900;

  --radius-btn: 999px;
  --radius-card: 24px;
  --radius-field: 14px;

  --cut: 5vw;                                /* высота диагонального среза синих блоков */
  --pad: clamp(3rem, 7vw, 5.5rem);           /* вертикальный отступ секций */
  --container: 1200px;
  --gutter: 1rem;
}

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-text);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
}

h1, h2, h3 { margin: 0; font-weight: var(--fw-head); line-height: 1.1; }
p, ul, ol, dl, dd, address, figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Секции и диагональный срез ---------- */
.section { padding-block: var(--pad); }
.section--white { background: var(--white); }
.section--sky { background: var(--sky); }

.section--blue {
  background: var(--blue);
  position: relative;
  z-index: 1;
  margin-bottom: calc(var(--cut) * -1);
  padding-bottom: calc(var(--pad) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.section__title { font-size: clamp(1.75rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.section__lead { max-width: 60ch; margin-bottom: 2rem; }
.section__head { margin-bottom: 2rem; }
.section__head .section__lead { margin-bottom: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--black);
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: var(--fw-head);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: #2B2B2B; border-color: #2B2B2B; }
.btn--secondary { background: var(--white); color: var(--black); }
.btn--secondary:hover { background: var(--sky); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 0.9rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: default; opacity: 0.6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--black); text-decoration: none; }
.logo__mark { width: 44px; height: 44px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: var(--fw-head); font-size: 1.375rem; letter-spacing: -0.01em; }
.logo__sub { font-weight: var(--fw-text); font-size: 0.8125rem; margin-top: 0.2em; }

/* ---------- Шапка ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--gray); }
.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo cta" "phone phone";
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.875rem;
}
.header__logo { grid-area: logo; }
.header__cta { grid-area: cta; }
.header__contact { grid-area: phone; display: flex; flex-direction: column; }
.header__phone { font-weight: var(--fw-head); font-size: 1.25rem; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--muted); }
.header__note { font-size: 0.8125rem; color: var(--muted); }

@media (min-width: 760px) {
  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo phone cta";
    gap: 1rem 1.5rem;
  }
  .header__contact { align-items: flex-end; text-align: right; }
  .header__cta { min-height: 3.25rem; padding: 0.85rem 1.75rem; font-size: 1.0625rem; }
  .logo__name { font-size: 1.5rem; }
}

/* ---------- Иконки ---------- */
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--blue);
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--black); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--gray);
  border-radius: var(--radius-card);
  background: var(--white);
}
.section--white .card { background: var(--sky); }
.card__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-btn);
  background: var(--blue);
  font-weight: var(--fw-head);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 > .card:last-child:nth-child(odd) { grid-column: auto; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* «Почему мы»: 7 карточек — 3 + 4 */
  .grid--why { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid--why > .card { grid-column: span 3 !important; }
  .grid--why > .card:nth-child(-n + 3) { grid-column: span 4 !important; }
}

/* ---------- Первый экран ---------- */
.hero__title { font-size: clamp(2.25rem, 7vw, 4.5rem); max-width: 16ch; margin-bottom: 1.25rem; }
.hero__lead { max-width: 52ch; font-size: clamp(1.0625rem, 2.2vw, 1.3125rem); margin-bottom: 2rem; }
.stats { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.stats__item { padding-top: 0.75rem; border-top: 2px solid var(--black); }
.stats__value { display: block; font-weight: var(--fw-head); font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.1; }
.stats__label { display: block; margin-top: 0.25rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* ---------- Условия аренды ---------- */
.fact__value { display: block; font-weight: var(--fw-head); font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.15; }
.fact__label { display: block; margin-top: 0.375rem; }
.terms__cta { margin-top: 2rem; }

/* ---------- Блок «Позвоните» ---------- */
.call__btn { min-height: 4rem; padding: 1rem 2.25rem; font-size: clamp(1.25rem, 5vw, 1.75rem); white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.875rem; align-items: center; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: var(--fw-head);
}
.steps strong { font-weight: var(--fw-head); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--gray); }
.faq details { border-bottom: 1px solid var(--gray); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: var(--fw-head);
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--muted); }
.faq details p { max-width: 70ch; padding: 0 2rem 1.25rem 0; }

/* ---------- Отзывы ---------- */
.reviews__text { max-width: 60ch; font-size: 1.125rem; }

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.contacts__phone {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: var(--fw-head);
  font-size: clamp(1.5rem, 7.5vw, 3.5rem);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.contacts__phone:hover { color: var(--muted); }
.contacts__hours { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.375rem; }
.contacts__mail { font-weight: var(--fw-head); font-size: 1.25rem; }
.contacts__mail:hover { color: var(--muted); }
.addresses { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.addresses strong { display: block; font-weight: var(--fw-head); font-size: 1.125rem; }
.addresses a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.addresses a:hover { color: var(--muted); }
.contacts__title { font-size: 1.25rem; margin-bottom: 1rem; }

/* ---------- Футер ---------- */
.footer { padding-block: var(--pad); background: var(--black); color: var(--white); font-size: 0.9375rem; }
.footer :focus-visible { outline-color: var(--white); }
.footer a { color: var(--gray); text-decoration-thickness: 1px; }
.footer a:hover { color: var(--white); }
.footer__req { display: grid; gap: 0.25rem; margin-bottom: 1.5rem; }
.footer__name { font-weight: var(--fw-head); font-size: 1.125rem; }
.footer__links { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.5rem; }
.footer__stub { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #3A3A3A; }
.footer__stub h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.footer__stub p { color: var(--gray); }

/* Блок после синего: компенсируем срез (должно идти в самом конце) */
.section--blue + * { padding-top: calc(var(--pad) + var(--cut)); }
