:root {
  --red: #E0553D;
  --red-dark: #C9442E;
  --ink: #1B1A19;
  --ink-2: #3C3A38;
  --paper: #F6F5F3;
  --card: #FFFFFF;
  --muted: #6E6A66;
  --line: #ECEAE7;
  --ok: #1FA45A;
  --r: 16px;
  --r-sm: 11px;
  --font: "YS Text", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sticky-h: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 18px rgba(224, 85, 61, 0.35);
}

.mark b {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.header-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-text p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.header-address {
  color: inherit;
  text-decoration: none;
}

.header-address:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 14px;
}

.hero {
  background: linear-gradient(135deg, #fff 0%, #fff8f6 100%);
  border-color: rgba(224, 85, 61, 0.18);
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--red-dark);
  background: rgba(224, 85, 61, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.hero-pay {
  margin-bottom: 8px;
}

.hero-pay-lead {
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 5px;
}

.hero-price {
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.hero-meta {
  font-size: 14px;
  color: var(--muted);
}

.card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card--comfort {
  background: #fff;
}

.perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perk-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(27, 26, 25, 0.04);
}

.perk-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(224, 85, 61, 0.14);
  color: var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

.perk-text {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.contacts-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contacts-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.contact-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.contact-phone {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.contact-phone a {
  color: inherit;
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-row--contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-row--contact .btn {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}

.btn-row--contact-wide {
  grid-column: 1 / -1;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224, 85, 61, 0.28);
}

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

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

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

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(246, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.sticky-inner {
  max-width: 560px;
  margin: 0 auto;
}

.sticky-bar .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .page {
    padding: 32px 24px 40px;
  }

  .btn-row:not(.btn-row--contact) {
    flex-direction: row;
  }

  .btn-row:not(.btn-row--contact) .btn {
    flex: 1;
  }

  .perk-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .perk-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
    padding: 16px 12px;
  }

  .perk-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .perk-label {
    grid-column: 1;
    grid-row: 2;
  }

  .perk-text {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

.sticky-inner--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sticky-inner--dual .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 14px;
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.steps-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.steps-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(224, 85, 61, 0.12);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-note {
  font-size: 14px;
  color: var(--muted);
}

.fit-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.fit-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--ink-2);
}

.fit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.apply-modal {
  width: min(100%, 560px);
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.apply-modal::backdrop {
  background: rgba(27, 26, 25, 0.45);
  backdrop-filter: blur(4px);
}

.apply-modal__panel {
  position: relative;
  max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 18px 24px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(27, 26, 25, 0.18);
}

.apply-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.apply-modal__close:hover {
  color: var(--ink);
  background: var(--line);
}

.apply-modal__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  padding-right: 40px;
  margin-bottom: 16px;
}

.apply-modal__bots-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.45;
  text-align: center;
}

body.apply-modal-open {
  overflow: hidden;
}

@media (max-width: 639px) {
  .apply-modal {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
  }

  .apply-modal[open] {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    max-height: 100%;
  }

  .apply-modal__panel {
    border-radius: var(--r) var(--r) 0 0;
    max-height: min(92vh, 720px);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}

.field-input:focus {
  outline: 2px solid rgba(224, 85, 61, 0.35);
  border-color: rgba(224, 85, 61, 0.5);
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

.consent input {
  margin-top: 3px;
  flex: none;
}

.consent a {
  color: var(--red-dark);
}

.lead-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.lead-form-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: -4px;
}

.lead-form-status {
  font-size: 14px;
  text-align: center;
  min-height: 1.4em;
}

.lead-form-status--ok {
  color: var(--ok);
}

.lead-form-status--error {
  color: var(--red-dark);
}

.apply-divider {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 12px;
}

.site-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__legal {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.site-footer__legal a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--ink-2);
  text-decoration: underline;
}

.site-footer__requisites {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0.85;
}

.page--legal .site-footer {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 16px 32px;
}

.page--legal {
  padding-top: 24px;
}

.legal-back a {
  color: var(--red-dark);
  text-decoration: none;
  font-size: 14px;
}

.legal-title {
  font-size: 22px;
  font-weight: 800;
  margin: 16px 0 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.legal-block {
  margin-bottom: 20px;
}

.legal-block h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-block p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 8px;
  line-height: 1.5;
}

.video-showcase-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.video-showcase-wrap {
  position: relative;
  margin: 0 -4px;
  padding: 8px 0;
  background: transparent;
  border-radius: var(--r-sm);
}

.video-showcase-wrap::before,
.video-showcase-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 2;
  pointer-events: none;
}

.video-showcase-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--card) 0%, transparent 100%);
}

.video-showcase-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--card) 0%, transparent 100%);
}

.video-showcase-nav {
  display: none;
}

.video-showcase-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(27, 26, 25, 0.06);
}

.video-showcase-nav button:hover {
  background: var(--paper);
}

.video-showcase-nav button:disabled {
  opacity: 0.25;
  cursor: default;
}

.video-showcase-nav__prev {
  left: 8px;
}

.video-showcase-nav__next {
  right: 8px;
}

.video-showcase-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  min-height: 20px;
}

.video-showcase-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.video-showcase-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.video-showcase-dots button.is-active {
  background: var(--ink);
  transform: scale(1.35);
}

.video-showcase-counter {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.video-showcase {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - min(88vw, 320px)) / 2);
  -webkit-overflow-scrolling: touch;
  padding: 8px calc((100% - min(88vw, 320px)) / 2) 12px;
  scrollbar-width: none;
}

.video-showcase::-webkit-scrollbar {
  display: none;
}

.video-card {
  flex: 0 0 min(88vw, 320px);
  max-width: 320px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(0.92);
  opacity: 0.68;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-card.is-active {
  transform: scale(1);
  opacity: 1;
}

.video-card.is-near {
  transform: scale(0.96);
  opacity: 0.75;
}

.video-player {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(27, 26, 25, 0.06);
  background: #000;
}

.video-player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-player__tap {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.video-player__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 48px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.video-player__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.video-player__subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.video-player__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.video-player__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transition: width 0.1s linear;
}

.video-player.is-playing .video-player__progress span {
  background: var(--red);
}

.video-player__paused-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.video-player__paused-icon::before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.video-player.is-paused .video-player__paused-icon {
  opacity: 1;
}

.video-player__paused-icon span {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-player.is-playing .video-player__paused-icon {
  opacity: 0;
}

.video-player.flash-pause .video-player__paused-icon {
  opacity: 1;
  animation: shorts-pause-flash 0.5s ease forwards;
}

@keyframes shorts-pause-flash {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@media (min-width: 900px) {
  .video-card {
    flex: 0 0 280px;
    max-width: 280px;
  }

  .video-showcase {
    scroll-padding-inline: calc((100% - 280px) / 2);
    padding-inline: calc((100% - 280px) / 2);
  }

  .video-showcase-wrap::before,
  .video-showcase-wrap::after {
    width: 32px;
  }

  .video-showcase-nav {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .video-card.is-active,
  .video-card.is-near {
    transform: none;
    opacity: 1;
  }

  .video-player.flash-pause .video-player__paused-icon {
    animation: none;
    opacity: 0;
  }
}
