/* Nomad Life — стили лендинга (цвета и шрифты из React-проекта) */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope/Manrope-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #3545DE;
  --primary-hover: #616cd9;
  --primary-active: #8189d9;
  --primary-bg: #EFF0FC;
  --text-primary: #061F40;
  --text-secondary: #7F8A99;
  --background: #F6F7F9;
  --secondary-fill: #F6FAFF;
  --secondary-border: #73ABF8;
  --white: #FFFFFF;
  --border: #e6e8eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.logo:hover {
  opacity: 0.9;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background 0.2s;
}

.burger:hover {
  background: var(--primary-bg);
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 31, 64, 0.4);
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-overlay_visible {
  opacity: 1;
  visibility: visible;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

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

/* Hero / About */
.hero {
  padding: 2.5rem 1.25rem 3rem;
}

.hero__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__media {
  order: 0;
}

.hero__image-placeholder {
  aspect-ratio: 4/3;
  max-height: 280px;
  background: var(--secondary-fill);
  border: 1px dashed var(--secondary-border);
  border-radius: 12px;
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.hero__content {
  order: 1;
}

.hero__title {
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero__text {
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary);
  max-width: 420px;
}

/* Section title */
.section-title {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.apps .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* For who / Cards */
.for-who {
  padding: 3rem 1.25rem 4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* Why choose */
.why-choose {
  padding: 3rem 1.25rem 4rem;
  background: var(--primary-bg);
  border-top: 1px solid var(--border);
}

.why-choose__inner {
  max-width: 960px;
  margin: 0 auto;
}

.why-choose .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.why-choose__item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-choose__img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--secondary-fill);
}

.why-choose__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-choose__text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0;
}

.for-who__inner {
  max-width: 960px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--secondary-fill);
  border: 1px solid var(--secondary-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(53, 69, 222, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon span {
  width: 24px;
  height: 24px;
  background: var(--primary);
  opacity: 0.5;
  border-radius: 6px;
}

.card__title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* Features */
.features {
  padding: 3rem 1.25rem 4rem;
  background: var(--background);
}

.features__inner {
  max-width: 960px;
  margin: 0 auto;
}

.features__media {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.features__img {
  width: 100%;
  height: auto;
  display: block;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.feature__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* How it works / Steps */
.how {
  padding: 3rem 1.25rem 4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.how__inner {
  max-width: 960px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--primary-bg);
  border-radius: 12px;
  border: 1px solid rgba(53, 69, 222, 0.15);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Apps block */
.apps {
  padding: 2.5rem 1.25rem 3rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.apps__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.apps__intro {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.apps__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition: background 0.2s;
}

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

.app-btn:active {
  background: var(--primary-active);
}

.app-btn__icon {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.3);
  border-radius: 6px;
}

.app-btn__icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-btn_apple {
  background: #3a4a60;
}

.app-btn_apple:hover {
  background: var(--text-primary);
}

.apps__hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.apps__extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: left;
}

.apps__extra-block {
  background: var(--secondary-fill);
  border: 1px solid var(--secondary-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.apps__extra-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.apps__extra-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.apps__qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: var(--primary-bg);
  border: 1px dashed var(--secondary-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem;
}

.placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

/* Support block (id="support" для ссылки) */
.support {
  padding: 2.5rem 1.25rem 3rem;
  background: var(--primary-bg);
}

.support__inner {
  max-width: 960px;
  margin: 0 auto;
}

.support__header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1rem;
}

.support__media {
  flex-shrink: 0;
}

.support__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.support__header-text {
  min-width: 0;
}

.support__text {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.support__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.support__item {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.support__link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.support__link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.support__note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Burger open: animate icon */
.header.nav-open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.nav-open .burger__line:nth-child(2) {
  opacity: 0;
}

.header.nav-open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* FAQ */
.faq {
  padding: 3rem 1.25rem 4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background: var(--primary-bg);
  border: 1px solid rgba(53, 69, 222, 0.12);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.faq__q {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq__a {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2.5rem 1.25rem 1.5rem;
  background: var(--text-primary);
  color: var(--white);
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer__heading {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__contact {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 968px) {
  .nav {
    gap: 0.75rem;
  }

  .nav__link {
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .header__inner {
    padding: 0.875rem 1rem;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .nav-overlay {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 4rem 1.25rem 1.5rem;
    z-index: 9;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  .nav.nav_open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

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

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .hero__media {
    order: 0;
  }

  .hero__image-placeholder {
    max-height: 200px;
  }

  .hero__content {
    order: 1;
  }

  .hero__text {
    max-width: none;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 1.5rem 1rem 2rem;
  }

  .why-choose {
    padding: 2rem 1rem 3rem;
  }

  .why-choose__grid {
    grid-template-columns: 1fr;
  }

  .why-choose__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .why-choose__img-wrap {
    width: 80px;
    height: 80px;
  }

  .for-who {
    padding: 2rem 1rem 3rem;
  }

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

  .section-intro {
    margin-bottom: 1.5rem;
  }

  .features {
    padding: 2rem 1rem 3rem;
  }

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

  .how {
    padding: 2rem 1rem 3rem;
  }

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

  .apps {
    padding: 2rem 1rem 3rem;
  }

  .apps__intro {
    margin-left: 0;
    margin-right: 0;
  }

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

  .app-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .faq {
    padding: 2rem 1rem 3rem;
  }

  .support {
    padding: 2rem 1rem 3rem;
  }

  .support__header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .support__media {
    max-width: 160px;
    margin: 0 auto;
  }

  .support__contacts {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer {
    padding: 1.5rem 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }

  .nav__link {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .hero__text {
    font-size: 0.9375rem;
  }

  .card {
    padding: 1.25rem;
  }

  .step {
    padding: 1.25rem 1rem;
  }

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