/* ===== Variables — чёрно-белая палитра ===== */
:root {
  --color-bg: #000000;
  --color-zebra-light: #141414;
  --color-surface: #0a0a0a;
  --color-surface-elevated: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-accent: #ffffff;
  --color-accent-hover: #e5e5e5;
  --color-border: rgba(255, 255, 255, 0.12);
  --font-heading: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* ===== Header ===== */
/* ===== Header — liquid glass ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

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

.nav {
  display: flex;
  gap: 32px;
}

.nav__brand {
  display: none;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* ===== Зебра: темный-светлый-темный-светлый ===== */
.hero-video {
  background: var(--color-bg);
}

.hero {
  background: var(--color-zebra-light);
}

.features {
  background: var(--color-bg);
}

.how {
  background: var(--color-zebra-light);
}

.cta {
  background: var(--color-bg);
}

.prices {
  background: var(--color-zebra-light);
}

.footer {
  background: var(--color-zebra-light);
}

/* ===== Hero Video ===== */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-video__player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
}

@media (max-width: 600px) {
  .hero-video {
    display: none;
  }

  .hero {
    padding-top: 80px;
  }

  .hero__inner {
    padding-top: 76px;
  }

  .features {
    padding-top: 72px;
  }
}

@media (max-width: 768px) {
  /* Меню — liquid glass на весь экран, сильное размытие */
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    min-width: 100vw;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 24px 48px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(48px) saturate(180%);
    -webkit-backdrop-filter: blur(48px) saturate(180%);
    border: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 9999;
    box-sizing: border-box;
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__brand {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 24px;
    order: -1;
  }

  .nav__link {
    display: block;
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
  }

  .nav__link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-accent);
  }

  .burger {
    display: flex;
    position: relative;
    z-index: 10001;
  }

  .burger--open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .burger--open span:nth-child(2) {
    opacity: 0;
  }

  .burger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .burger span {
    transition: var(--transition);
  }

  body.no-scroll {
    overflow: hidden;
  }

  .header {
    padding: 16px 0;
  }

  .logo {
    font-size: 1.2rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 60px 0 64px;
    text-align: center;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    text-align: center;
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 20px;
  }

  .hero__text {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 14ch;
}

.hero__title-accent {
  color: var(--color-accent);
  display: inline-block;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__title {
  animation: fadeInUp 0.8s ease both;
}

.hero__text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ===== Значок перехода к следующему блоку (адаптивный) ===== */
.scroll-next {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  color: var(--color-text-muted);
  transition: color var(--transition), transform var(--transition);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.scroll-next:hover {
  color: var(--color-accent);
  transform: translateX(-50%) translateY(4px);
}

.scroll-next:active {
  transform: translateX(-50%) scale(0.95);
}

.scroll-next__icon {
  width: 28px;
  height: 28px;
  min-width: 24px;
  min-height: 24px;
  pointer-events: none;
  flex-shrink: 0;
}

.features,
.how,
.cta {
  position: relative;
}

@media (max-width: 768px) {
  .scroll-next {
    bottom: 28px;
    min-width: 52px;
    min-height: 52px;
    padding: 14px;
  }

  .scroll-next__icon {
    width: 26px;
    height: 26px;
    min-width: 22px;
    min-height: 22px;
  }
}

@media (max-width: 480px) {
  .scroll-next {
    bottom: 20px;
    min-width: 56px;
    min-height: 56px;
    padding: 16px;
  }

  .scroll-next__icon {
    width: 24px;
    height: 24px;
    min-width: 20px;
    min-height: 20px;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 480px) {
    .scroll-next {
      bottom: max(20px, env(safe-area-inset-bottom));
    }
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 24px;
    min-height: 48px;
    font-size: 0.95rem;
  }
}

/* ===== Section title ===== */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 32px;
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  .section-title {
    margin-bottom: 24px;
    font-size: 1.4rem;
  }
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .features {
    padding: 64px 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .feature-card__title {
    font-size: 1.1rem;
  }

  .feature-card__text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 48px 0;
  }

  .feature-card {
    padding: 20px;
  }
}

.feature-card:hover {
  background: var(--color-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== How ===== */
.how {
  padding: 100px 0;
}

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

.how__step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.how__step:last-child {
  border-bottom: none;
}

.how__step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.how__step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.how__step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .how {
    padding: 64px 0;
  }

  .how__step {
    gap: 16px;
    padding: 20px 0;
  }

  .how__step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .how__step h3 {
    font-size: 1.05rem;
  }

  .how__step p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .how {
    padding: 48px 0;
  }

  .how__step {
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    text-align: center;
  }

  .how__step-num {
    margin: 0 auto;
  }
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
}

.cta__box {
  background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta__text {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Кнопки каталога — AVITO и TELEGRAM */
.btn--avito,
.btn--telegram {
  min-width: 200px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.btn--avito {
  background: #fff;
  color: #000;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--avito:hover {
  background: #f5f5f5;
  border-color: #e8a317;
  box-shadow: 0 6px 28px rgba(232, 163, 23, 0.25);
  transform: translateY(-2px);
}

.btn--telegram {
  background: #fff;
  color: #000;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--telegram:hover {
  background: #e8f4fd;
  border-color: #0088cc;
  box-shadow: 0 6px 28px rgba(0, 136, 204, 0.25);
  transform: translateY(-2px);
}

.cta__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.cta__input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.cta__input::placeholder {
  color: var(--color-text-muted);
}

.cta__input:focus {
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .cta {
    padding: 64px 0;
  }

  .cta__box {
    padding: 40px 24px;
  }

  .cta__title {
    font-size: 1.5rem;
  }

  .cta__text {
    margin-bottom: 24px;
    font-size: 0.95rem;
  }

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

  .cta__input {
    min-width: 100%;
    width: 100%;
  }

  .cta__form .btn {
    width: 100%;
    min-height: 48px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta__actions .btn {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 48px 0;
  }

  .cta__box {
    padding: 32px 16px;
    border-radius: var(--radius);
  }

  .cta__title {
    font-size: 1.35rem;
  }
}

/* ===== Прайс ===== */
.prices {
  padding: 100px 0;
}

.prices__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.prices__img {
  display: block;
  flex: 1 1 280px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.prices__img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.prices__note {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .prices {
    padding: 64px 0;
  }

  .prices__grid {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
  }

  .prices__img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .prices {
    padding: 48px 0;
  }

  .prices__grid {
    gap: 20px;
    margin-bottom: 24px;
  }

  .prices__img {
    border-radius: var(--radius);
  }

  .prices__note {
    font-size: 1rem;
    padding: 0 8px;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

/* ===== Map ===== */
.map {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0 60px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.map__title {
  margin: 0 0 24px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
}

.map__container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400px;
  margin: 0 0 20px;
  border: none;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
}

.map__address {
  margin: 0 0 24px;
  padding: 0 24px;
  font-size: 1rem;
  color: var(--color-text-muted);
  width: 100%;
  box-sizing: border-box;
}

.map__btn {
  display: inline-flex;
  min-width: 240px;
  margin: 0 auto;
  flex-shrink: 0;
}

/* Скрываем блок атрибуции Leaflet (логотипы/флаги) */
.leaflet-control-attribution {
  display: none !important;
}

@media (max-width: 768px) {
  .map {
    padding: 60px 24px;
  }

  .map__container {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .map {
    padding: 48px 0 40px;
  }

  .map__title,
  .map__address {
    padding-left: 16px;
    padding-right: 16px;
  }

  .map__title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .map__container {
    height: 280px;
    margin-bottom: 16px;
  }

  .map__btn {
    margin: 0 16px;
  }
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo--footer {
  font-size: 1.2rem;
}

.footer__copy {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

@media (max-width: 768px) {
  .footer {
    padding: 32px 0;
  }

  .footer__inner {
    gap: 16px;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer__nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__copy {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 24px 0;
  }
}

/* ===== Safe area для вырезов и индикатора (iPhone X+) ===== */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  @supports (padding: max(0px)) {
    .container {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}
