/* fonts */
@font-face {
  font-family: 'SF Pro Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SFProDisplay-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'SF Pro Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/SFProDisplay-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'SF Pro Rounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/SF-Pro-Rounded-Medium.woff2') format('woff2');
}

:root {
  --c-bg: #0b0b0b;
  --c-fg: #f4f4f2;
  --c-muted: rgba(244, 244, 242, 0.8);
  --c-dark: #1b1b1b;
  --c-darker: #0e0e0e;

  --g-accent: linear-gradient(135deg, #2f6d3d 0%, #9db169 68%, #e1fbcd 100%);
  --g-btn: linear-gradient(180deg, #e1fbcd 0%, #f4f4f2 100%);

  --s-card: 20px 20px 40px rgba(68, 68, 68, 0.15);
  --s-btn: 12px 12px 40px rgba(225, 251, 205, 0.15);

  --r-card: 20px;
  --r-pill: 100px;

  --pad-x: clamp(20px, 8vw, var(--gap-section));
  --gap-section: 60px;
  --container: calc(1320px + var(--gap-section) * 2);

  --ff-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-display: 'SF Pro Rounded', var(--ff-sans);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}

::selection {
  background-color: #9db169;
}

section,
.footer {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--gap-section) var(--pad-x);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 60px;
  background: var(--c-bg);
  max-width: var(--container);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__mark {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  isolation: isolate;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav__item {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 8px 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--c-fg);
  border-bottom: 1px solid transparent;
  transition:
    opacity 0.2s,
    border-bottom-color 0.2s;
}
.nav__item:hover {
  border-bottom-color: rgba(255, 255, 255, 0.8);
  opacity: 0.8;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 60px 40px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 1320px;
  margin: 40px auto 0;
}

.hero__stage {
  position: relative;
  width: 100%;
  height: 424px;
  max-width: 1320px;
  margin: 26px auto 60px;
  display: block;
  overflow: visible;
}

.hero__stage img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: block;
  pointer-events: none;
}

/* мокап — центр сцены */
.hero__phone-img {
  width: 760px;
  height: auto;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
}

/* Зеленое пятно */
.hero__blob {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1636px;
  max-width: initial;
  pointer-events: none;
}

/* тёмный blur поверх мокапа */
.hero__blob--bk {
  width: 645px;
  top: 79%;
  left: 50%;
  transform: translateX(-60%);
  z-index: 3;
}

.hero__cta {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 17px;
  color: #0b0b0b;
  text-decoration: none;
  border-radius: var(--r-pill);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.15s ease;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--lg {
  padding: 24px 48px;
  min-width: 247px;
}

.btn--primary {
  background: var(--g-btn);
  box-shadow: var(--s-btn);
}
.btn__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--g-btn);
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
}

/* =========================================================
   WHY
   ========================================================= */
.why {
  padding-top: 160px;
}

.why__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 80px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.feature {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--grey-dark, #1b1b1b);
  background: var(--black, #0b0b0b);
  box-shadow: 20px 20px 40px 0 rgba(68, 68, 68, 0.15);
  text-align: left;
}
.feature__icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 39px;
  display: grid;
  place-items: center;
}
.feature__svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.feature__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.17;
  margin-bottom: 12px;
}
.feature__text {
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.3;
  max-width: 342px;
  letter-spacing: 1px;
}

/* =========================================================
   HOW TO USE
   ========================================================= */
.how__head {
  margin-top: 40px;
  margin-bottom: 80px;
}
.how__title {
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.how__subtitle {
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.17;
  color: var(--c-muted);
  color: var(--accent-olive, #9db169);
}

.how__grid {
  display: grid;
  grid-template-columns: 648px 1fr;
  gap: 24px;
  align-items: stretch;
}

.how__visual {
  background: linear-gradient(137deg, rgba(47, 109, 61, 0.1) 10.75%, rgba(157, 177, 105, 0.1) 65.48%, rgba(226, 251, 206, 0.1) 91.24%);
  border-radius: var(--r-card);
  padding: 40px 40px 0;
  height: 378px;
  justify-content: center;
  align-items: flex-end;
  box-shadow: var(--s-card);
}

.how__visual__img {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--accent-olive, #9db169);
}

.how__visual img {
  height: 338px;
  margin: 0 auto;
  object-fit: cover;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--c-darker);
  border: 1px solid var(--c-dark);
  border-radius: var(--r-card);
  box-shadow: var(--s-card);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.step:hover {
  transform: translateY(-2px);
  border-color: #2a2a2a;
}

.step__icon {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-dark);
  display: grid;
  place-items: center;
}
.step__icon img {
  width: 48px;
  height: 48px;
}

.step__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.17;
}
.step__text {
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 1px;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__title {
  max-width: 660px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 40px auto 40px;
}

.faq__list {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq__item {
  display: grid;
  grid-template-columns: 312px 312px 1fr;
  gap: 24px;
  align-items: start;
  padding: 40px 0;
}

.faq__num {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.17;
}
.faq__q {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.17;
}
.faq__a {
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 1px;
}

.faq__divider {
  height: 2px;
  background: var(--c-dark);
}

/* =========================================================
   POLICY
   ========================================================= */
.policy {
  padding-top: 0;
  max-width: 992px;
}

.policy__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
  max-width: 1320px;
  margin: 20px auto 40px;
}

.policy__text {
  margin-bottom: 22px;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 1px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer__policy {
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}
.footer__policy:hover {
  color: var(--c-fg);
}

/* =========================================================
   MEDIA
   ========================================================= */
@media (max-width: 1199px) {
  .header {
    padding: 16px 24px;
  }
  .hero {
    padding: 0 24px 32px;
  }
  .hero__title {
    margin-top: 80px;
  }
  .hero__stage {
    margin: 48px auto 40px;
  }
  .why__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .how__grid {
    grid-template-columns: 1fr;
  }
  .faq__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .nav__item {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 16px;
  }

  .brand img {
    width: 134px;
  }

  .header {
    padding: 14px 0;
  }
  .nav__item {
    display: none;
  }

  .hero {
    padding: 0 16px 40px;
  }
  .hero__title {
    font-size: 32px;
    margin-top: 36px;
  }
  .hero__stage {
    margin: 32px auto 28px;
    height: 293px;
  }

  .hero__blob {
    left: 193px;
    width: 927px;
  }

  .hero__blob--bk {
    left: 50%;
    top: 60%;
    width: 107vw;
  }

  .why {
    padding-top: 98px;
    padding-bottom: 0;
  }

  .why__title,
  .faq__title {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .how__title {
    font-size: 32px;
    margin-bottom: 14px;
  }

  .why__grid {
    gap: 18px;
  }

  .how {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .how__head {
    margin-bottom: 40px;
  }

  .how__subtitle {
    font-size: 20px;
  }

  .how__visual {
    height: 225px;
    padding: 16px 16px 0;
  }

  .how__visual img {
    height: 100%;
  }

  .faq {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .faq__title {
    margin-bottom: 10px;
  }

  .feature {
    padding: 16px;
  }

  .feature__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 29px;
  }

  .feature__title,
  .step__title,
  .faq__q {
    font-size: 20px;
  }
  .faq__num {
    font-size: 20px;
  }

  .faq__item {
    gap: 20px;
    padding: 28px 0 23px;
  }

  .faq__a {
    line-height: 22px;
    font-size: 15px;
  }

  .feature__title {
    margin-bottom: 10px;
  }

  .step {
    padding: 16px;
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .step__icon {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .step__info {
    gap: 10px;
  }

  .step__text {
    letter-spacing: initial;
  }

  .btn--lg {
    padding: 20px 50px;
    min-width: 0;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .footer {
    gap: 32px;
  }

  .footer__policy {
    font-size: 15px;
  }

  .policy {
    padding-bottom: 0;
    padding-left: 24px;
    padding-right: 24px;
  }

  .policy__title {
    margin-top: 0;
  }

  .policy__text {
    font-size: 15px;
  }
}
