/* ==========================================================================
   Sections: hero, phone mockup, wide photo, features, steps, CTA
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 96px);
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
}

.hero__title {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: var(--fw-black);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  color: var(--color-text);
  text-wrap: pretty;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 24px;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 48px;
  background: var(--color-primary-tint);
}

/* Phone mockup ------------------------------------------------------------ */
.phone {
  position: relative;
  width: 300px;
  height: 620px;
  padding: 10px;
  border-radius: 46px;
  background: var(--color-ink);
  box-shadow: var(--shadow-phone);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--map-land);
}

.phone__status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 14px 26px 0;
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.phone__notch {
  width: 84px;
  height: 24px;
  margin-top: -4px;
  border-radius: 12px;
  background: var(--color-ink);
}

.phone__search {
  position: absolute;
  top: 50px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.phone__search-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.phone__search-place {
  font-weight: var(--fw-bold);
}

.phone__search-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-muted);
}

/* Map illustration */
.map__shape {
  position: absolute;
}

.map__road--1 { left: -20%; top: 30%; width: 140%; height: 14px; background: var(--map-road); transform: rotate(-18deg); }
.map__road--2 { left: -20%; top: 52%; width: 140%; height: 10px; background: var(--map-road); transform: rotate(8deg); }
.map__road--3 { left: 44%; top: -10%; width: 12px; height: 120%; background: var(--map-road); transform: rotate(12deg); }
.map__river   { left: 14%; top: -10%; width: 22px; height: 120%; background: var(--map-river); transform: rotate(-6deg); }
.map__park    { left: 58%; top: 14%; width: 90px; height: 70px; border-radius: 24px; background: var(--map-park); }
.map__block   { left: 60%; top: 40%; width: 60px; height: 40px; border-radius: 14px; background: var(--map-block); }

.map__pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--shadow-pin);
  color: #fff;
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.map__pin--1 { left: 66%; top: 20%; }
.map__pin--2 { left: 30%; top: 38%; }
.map__pin--3 { left: 72%; top: 46%; }

.map__current {
  position: absolute;
  left: 47%;
  top: 41%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

.map__current::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Bottom sheet */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 18px;
  border-radius: 26px 26px 0 0;
  background: var(--color-surface);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.sheet__handle {
  align-self: center;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #d5dde3;
}

.sheet__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.sheet__label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--color-accent-dark);
}

.sheet__title {
  font-size: 15px;
  font-weight: var(--fw-bold);
  line-height: 1.5;
}

.sheet__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: #f4f8fb;
}

.spot__thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
}

.spot__thumb::before {
  content: none;
}

.spot__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spot__name {
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.spot__meta {
  overflow: hidden;
  font-size: 11px;
  color: var(--color-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.spot__no {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-bold);
}

/* Wide photo -------------------------------------------------------------- */
.wide-photo {
  padding-inline: var(--gutter-narrow);
}

.wide-photo__media {
  width: 100%;
  height: clamp(240px, 40vw, 520px);
  border-radius: var(--radius-xl);
}

/* Features ---------------------------------------------------------------- */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 112px);
  padding-block: var(--section-y);
}

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}

.feature__no {
  font-size: 48px;
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--color-number-blue);
}

.feature__no--teal {
  color: var(--color-number-teal);
}

.feature__title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}

.feature__text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-text);
  text-wrap: pretty;
}

/* Steps ------------------------------------------------------------------- */
.steps {
  background: var(--color-surface);
}

.steps__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: var(--section-y);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}

.step__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: var(--fw-black);
}

.step__title {
  font-size: 21px;
  font-weight: var(--fw-bold);
  line-height: 1.5;
}

.step__text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  text-wrap: pretty;
}

/* CTA --------------------------------------------------------------------- */
.cta {
  padding: clamp(48px, 6vw, 80px) var(--gutter-narrow);
}

.cta__card {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1232px;
  min-height: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__bg::before {
  align-items: flex-end;
  justify-content: flex-end;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 48, 82, 0.72) 0%, rgba(14, 48, 82, 0.35) 60%, rgba(14, 48, 82, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  pointer-events: none;
}

.cta__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
  padding: clamp(32px, 6vw, 72px);
  color: #fff;
}

.cta__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: var(--fw-black);
  line-height: 1.4;
}

.cta__text {
  font-size: 17px;
  line-height: 1.9;
}

.cta .signup {
  gap: 10px;
}
