/* РАНТОР — лендинг */
:root {
  --red: #e31e24;
  --red-hover: #c41a1f;
  --black: #0c0c0c;
  --gray-900: #1a1a1a;
  --gray-700: #3d3d3d;
  --gray-400: #9a9a9a;
  --gray-100: #f4f4f4;
  --white: #fff;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius: 10px;
  --container: min(1160px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

/* Якоря: под прилипающую шапку (~76px) */
section[id],
footer[id] {
  scroll-margin-top: 88px;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top bar: часы слева / адрес по центру / телефон справа */
.topbar {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  font-size: 13px;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  gap: 10px 16px;
}

.topbar__ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--red);
}

.topbar__hours,
.topbar__address,
.topbar__phone {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.topbar__hours span,
.topbar__address span {
  min-width: 0;
  flex: 1;
  line-height: 1.4;
}

.topbar__hours {
  grid-column: 1;
  justify-self: start;
  color: var(--gray-700);
  line-height: 1.35;
}

.topbar__address {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  padding: 6px 0;
  text-align: left;
  color: var(--gray-700);
  line-height: 1.35;
  max-width: min(420px, 52vw);
}

.topbar__phone {
  grid-column: 3;
  justify-self: end;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  text-decoration: none;
}

.topbar__phone:hover {
  color: var(--red);
  text-decoration: none;
}

.topbar__phone .topbar__ico {
  color: var(--red);
}

@media (max-width: 720px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
    padding-bottom: 8px;
    gap: 8px;
  }

  .topbar__hours,
  .topbar__address,
  .topbar__phone {
    grid-column: 1;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .topbar__address {
    max-width: 100%;
    order: 2;
  }

  .topbar__hours {
    order: 1;
    padding-top: 4px;
  }

  .topbar__phone {
    order: 3;
    padding-bottom: 4px;
  }
}

@media (max-width: 400px) {
  .topbar {
    font-size: 12px;
  }

  .topbar__phone {
    white-space: normal;
  }

  .topbar__phone .topbar__ico {
    margin-top: 2px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 76px;
}

.nav {
  margin-left: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.header__logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.header__logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(300px, 68vw);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}

.nav__list a:hover {
  color: var(--red);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger__line {
  display: block;
  height: 3px;
  width: 24px;
  background: var(--black);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .burger {
    display: flex;
    margin-left: auto;
  }

  .nav {
    margin-left: 0;
    position: fixed;
    inset: 0 0 auto 0;
    top: 120px;
    z-index: 60;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 16px 20px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    min-height: 44px;
    line-height: 1.3;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  .nav {
    top: 200px;
    max-height: calc(100vh - 200px);
  }

  html {
    scroll-padding-top: 96px;
  }

  section[id],
  footer[id] {
    scroll-margin-top: 96px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #141414;
  background-image: url("../assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: 52% center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(5, 5, 5, 0.88) 0%,
      rgba(5, 5, 5, 0.62) 42%,
      rgba(5, 5, 5, 0.45) 70%,
      rgba(5, 5, 5, 0.65) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: block;
  padding-block: 48px 64px;
}

.hero__copy {
  max-width: 520px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero__cta {
  margin-bottom: 28px;
}

.hero__prices {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
}

.hero__prices li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 320px;
}

.hero__prices li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .hero__grid {
    text-align: center;
  }

  .hero__copy {
    max-width: none;
    margin-inline: auto;
  }

  .hero__prices li {
    margin-inline: auto;
  }

  .hero__bg {
    background-position: center center;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1160px, calc(100% - 24px));
  }

  .hero {
    min-height: clamp(420px, 68vh, 600px);
  }

  .hero__grid {
    padding-block: 32px 44px;
  }

  .hero__title {
    margin-bottom: 18px;
  }

  .hero__cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
    line-height: 1.25;
  }

  .hero__prices li {
    max-width: none;
    padding: 10px 0;
  }

  .section {
    padding: 48px 0;
  }

  .why {
    padding: 48px 0;
  }

  .section__subtitle {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .lead {
    padding: 52px 0 68px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 50% 100%, 0 calc(100% - 32px));
  }

  .lead--b {
    padding-top: 76px;
    clip-path: polygon(0 28px, 50% 0, 100% 28px, 100% 100%, 0 100%);
  }

  .lead__grid {
    gap: 28px;
  }

  .price-table th,
  .price-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .map-frame__yandex {
    min-height: 260px;
    height: min(420px, 50vh);
  }

  .footer__strip {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .footer__contacts-inline {
    white-space: normal;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .footer__copy {
    white-space: normal;
    max-width: 100%;
  }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--light {
  background: var(--white);
}

.section--muted {
  background: var(--gray-100);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
}

.section__subtitle {
  margin: 0 0 40px;
  text-align: center;
  color: var(--gray-700);
  max-width: 640px;
  margin-inline: auto;
}

.section__note {
  margin: 40px auto 0;
  max-width: 800px;
  text-align: center;
  color: var(--gray-700);
  font-size: 15px;
}

.section__title--light {
  color: var(--white);
}

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.offer-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-grid--4 {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  text-align: center;
  padding: 16px 12px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section--light .offer-card {
  border: 1px solid #eee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.offer-card__shape {
  width: 100%;
  aspect-ratio: 1;
  max-width: 160px;
  margin: 0 auto 12px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, #f0f0f0, #ddd);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-card__shape img {
  width: 72%;
  height: auto;
  object-fit: contain;
}

.offer-card__name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.offer-card__price {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
}

.offer-card__price strong {
  color: var(--red);
  font-size: 1.1em;
}

/* Lead blocks (V-cut) */
.lead {
  position: relative;
  padding: 80px 0 96px;
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 50% 100%, 0 calc(100% - 48px));
  margin-bottom: -24px;
}

.lead--b {
  margin-top: 24px;
  margin-bottom: 0;
  clip-path: polygon(0 48px, 50% 0, 100% 48px, 100% 100%, 0 100%);
  padding-top: 104px;
}

.lead__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #121212;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lead--a .lead__bg {
  background-image:
    linear-gradient(90deg, rgba(6, 6, 6, 0.9) 0%, rgba(6, 6, 6, 0.55) 55%, rgba(6, 6, 6, 0.78) 100%),
    url("../assets/img/cta-lead-a.jpg");
}

.lead__bg--b {
  background-image:
    linear-gradient(90deg, rgba(6, 6, 6, 0.9) 0%, rgba(6, 6, 6, 0.5) 48%, rgba(6, 6, 6, 0.85) 100%),
    url("../assets/img/cta-lead-b.jpg");
  background-position: 58% center;
}

.lead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 5px,
      rgba(255, 255, 255, 0.02) 5px,
      rgba(255, 255, 255, 0.02) 6px
    );
}

.lead__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.18);
}

.lead__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 40px;
  align-items: center;
}

.lead__title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
}

.lead__fine {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

.lead__fine a {
  color: #fff;
  text-decoration: underline;
}

.lead__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead__input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.lead__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.lead__submit {
  margin-top: 4px;
}

.lead__errors:empty {
  display: none;
}

.lead__errors:not(:empty) {
  padding: 10px 12px;
  background: rgba(227, 30, 36, 0.2);
  border-radius: 6px;
  font-size: 14px;
}

.lead__success:not([style*="display: none"]) {
  padding: 12px;
  background: rgba(40, 120, 60, 0.35);
  border-radius: 6px;
  font-size: 14px;
}

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

/* Price tables */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-table-wrap--wide {
  grid-column: 1 / -1;
}

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

.price-table__caption {
  margin: 0 0 0;
  padding: 14px 18px;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius) var(--radius) 0 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.price-table th {
  background: #f0f0f0;
  font-weight: 700;
}

.price-table td:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.price-table tr:last-child td {
  border-bottom: none;
}

/* Why us — светлый блок */
.why {
  position: relative;
  padding: 72px 0;
  color: var(--gray-900);
  background: var(--gray-100);
  border-block: 1px solid #e4e4e4;
}

.why .section__title {
  color: var(--black);
}

.why__list {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
}

.why__list li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid #e0e0e0;
}

.why__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: none;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
}

/* Map */
.map-frame iframe,
.map-frame__yandex {
  display: block;
  width: 100%;
  min-height: 380px;
  height: 420px;
}

/* Footer — одна компактная полоса */
.footer {
  background: var(--black);
  color: #aaa;
  border-top: 1px solid #222;
}

.footer a {
  color: var(--white);
}

.footer__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  padding: 10px 0;
  font-size: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.footer__logo:hover {
  opacity: 0.88;
  text-decoration: none;
}

.footer__logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(140px, 28vw);
}

.footer__contacts-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  white-space: nowrap;
  color: #bbb;
}

.footer__contacts-inline a {
  text-decoration: none;
}

.footer__contacts-inline a:hover {
  text-decoration: underline;
}

.footer__sep {
  color: #555;
  user-select: none;
}

.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-left: auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__nav a {
  color: #999;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__copy {
  margin: 0;
  color: #666;
  font-size: 11px;
  white-space: nowrap;
}

.footer__top {
  flex-shrink: 0;
  padding: 6px 14px !important;
  font-size: 11px !important;
}

@media (max-width: 1100px) {
  .footer__strip {
    row-gap: 12px;
  }

  .footer__end {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}
