:root {
  /* Figma stile.png */
  --bg: #101111;
  --surface: #191919;
  --surface2: #191919;
  --surface-input: #222323;
  --text: #f4faff;
  --text-strong: #ffffff;
  --muted: #9aa8b4;
  --accent: #38e7ed;
  --accent-hover: #58edf3;
  --accent-ink: #101111;
  --accent-rgb: 56, 231, 237;
  --success: #75e51f;
  --success-ink: #101111;
  --error: #fd0d45;
  --badge: var(--success);
  --badge-ink: var(--success-ink);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --gutter: 30px;
  --section-y: clamp(32px, 5vw, 50px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

strong,
.section-title,
.hero__title,
.price-card__name,
.modal__title--lead {
  color: var(--text-strong);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: 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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.data-load-error {
  margin: 0;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--error) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--error) 45%, transparent);
  color: color-mix(in srgb, var(--error) 35%, #fff);
  font-size: 14px;
  text-align: center;
}

.data-load-error[hidden] {
  display: none;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  text-decoration: none;
  flex-shrink: 0;
}

.brand__word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.brand__i {
  font-style: italic;
  position: relative;
}

.brand__i::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: 2px;
  right: -2px;
}

.brand__rest {
  margin-left: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__link {
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav__link--active {
  border-color: var(--accent);
  color: var(--text-strong);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-strong);
}

.city-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin: 4px auto;
  border-radius: 2px;
}

.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__link {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav__link:hover {
  color: var(--text-strong);
}

.mobile-nav .btn {
  margin-top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn--accent {
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 16px;
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: transparent;
}

/* Hero */
.hero {
  padding: var(--section-y) 0 calc(var(--section-y) + 6px);
  overflow: hidden;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.panel--title {
  padding: 28px 26px;
}

.hero__title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__text {
  margin: 0 0 20px;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  font-size: 15px;
  line-height: 1.65;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(to top, var(--bg) 8%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.media-frame--rect {
  min-height: 200px;
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.media-frame--rect .media-frame__img {
  min-height: 200px;
}

.hero__chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.hero__chips .info-chip {
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.info-chip--static {
  cursor: default;
}

.info-chip__icon {
  color: var(--accent);
  flex-shrink: 0;
}

/* Advantages */
.section {
  padding: var(--section-y) 0;
}

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

.adv-card--stat {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.adv-card--heart {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adv-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adv-feature > div {
  min-width: 0;
  flex: 1 1 auto;
}

.adv-card__big {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.adv-card__label {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

.adv-card__icon {
  color: var(--accent);
  flex-shrink: 0;
}

.adv-card__heart-text {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-strong);
}

.adv-feature__icon {
  color: var(--accent);
  flex-shrink: 0;
}

.adv-feature__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
}

.adv-feature__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Price — скрыты только селекты в строке управления */
#price .price-controls .select-wrap {
  display: none;
}

#price .price-controls {
  grid-template-columns: auto;
}

.price-head {
  margin-bottom: 18px;
}

.price-head__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-head__note {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: help;
}

.price-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 22px;
  align-items: stretch;
}

.select-wrap {
  min-width: 0;
}

.select {
  width: 100%;
  height: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: not-allowed;
  opacity: 0.85;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 108px;
}

.price-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.price-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.price-card__chev {
  color: var(--muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.price-card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.price-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.price-card__old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-card__eta {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}

.price-card__badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--badge-ink);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

/* Location */
.loc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.loc-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.loc-card__pin {
  color: var(--accent);
  margin-bottom: 8px;
}

.loc-card__city {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-strong);
}

.loc-card__addr {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text-strong);
}

.loc-card__hours {
  font-size: 14px;
}

.map-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  margin-top: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.map-placeholder__frame {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.loc-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.brand-footer .brand__word {
  font-size: 24px;
}

.footer__line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  text-decoration: none;
  color: var(--text-strong);
  font-size: 15px;
}

.footer__line:hover {
  color: var(--accent);
}

.footer__offer {
  display: inline-block;
  margin-top: 16px;
  color: var(--text-strong);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__offer:hover {
  color: var(--accent);
}

.footer__legal {
  text-align: right;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  line-height: 1.7;
}

/* Modal — заявка */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 80;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 17, 0.72);
  backdrop-filter: blur(14px);
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.modal__dialog--lead {
  background: var(--surface);
  padding: 24px 24px 28px;
}

.modal__head--lead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.modal__head-copy {
  min-width: 0;
}

.modal__title--lead {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-strong);
}

.modal__intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.icon-btn--lead {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.icon-btn--lead:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-field__hint {
  font-size: 13px;
  color: var(--muted);
}

.modal__dialog--lead .input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-input);
  padding: 14px 16px;
  color: var(--text-strong);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.modal__dialog--lead .input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.input--lead {
  min-height: 52px;
}

.input--lead-textarea {
  min-height: 120px;
  resize: vertical;
}

.modal__dialog--lead .input:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 2px;
  padding-left: 34px;
}

.consent__check {
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}

.consent__mark {
  position: absolute;
  left: 0;
  top: 1px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-sizing: border-box;
  pointer-events: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.consent__check:checked + .consent__mark {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.consent__check:focus-visible + .consent__mark {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent__label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.lead-form__error {
  margin: 0;
  font-size: 13px;
  color: var(--error);
}

.lead-form__error[hidden] {
  display: none;
}

.btn--lead-submit {
  width: 100%;
  margin-top: 4px;
  min-height: 54px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.btn--lead-submit:hover {
  background: var(--accent-hover);
}

.btn--lead-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lead-success {
  text-align: center;
  padding: 8px 8px 12px;
}

.lead-success__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 12px auto 20px;
  border-radius: 50%;
  background: var(--success);
  color: var(--success-ink);
}

.lead-success__text {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

#lead-panel-success .modal__head--lead {
  margin-bottom: 0;
}

#lead-panel-success .modal__title--lead {
  margin-bottom: 0;
}

@media (min-width: 961px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 1;
    min-height: clamp(360px, 42vw, 520px);
    justify-content: flex-end;
    overflow: hidden;
  }

  .hero__visual::after {
    left: -8%;
    right: -8%;
    height: 42%;
  }

  .hero__img {
    width: min(118%, 620px);
    max-width: none;
    margin-right: -6%;
    object-position: right bottom;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  }

  .hero__chips {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    width: auto;
    z-index: 2;
    align-items: flex-end;
    padding: 0 12px 12px 0;
  }

  .hero__chips .info-chip {
    width: auto;
    justify-content: flex-start;
  }

  .adv-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    grid-template-rows: auto auto auto;
    gap: 18px;
    align-items: stretch;
  }

  .adv-card--stat {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 280px;
  }

  .adv-card--heart {
    grid-column: 1;
    grid-row: 3;
  }

  .adv-grid .adv-feature:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .adv-grid .adv-feature:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .adv-grid .adv-feature:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-grid;
    place-items: center;
  }

  .header__row {
    flex-wrap: wrap;
  }

  .city-pill {
    font-size: 12px;
    padding: 7px 12px;
  }

  .btn--lg {
    width: 100%;
  }

  .price-controls {
    grid-template-columns: 1fr;
  }

  .price-cards {
    grid-template-columns: 1fr;
  }

  .loc-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__legal {
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 22px;
    --section-y: 28px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero__chips {
    gap: 8px;
  }

  .hero__chips .info-chip {
    font-size: 12px;
    padding: 9px 12px;
  }

  .panel,
  .panel--title {
    padding: 18px;
  }
}
