/* ==========================================================================
   Базовое
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #222337;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

/* ==========================================================================
   Контейнер
   1920px макет ⇒ контент-зона 1660px (отступы по 130px с каждой стороны)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 48px; } }
@media (min-width: 1280px) { .container { padding: 0 80px; } }
@media (min-width: 1600px) { .container { padding: 0 130px; } }

/* ==========================================================================
   Типографика
   ========================================================================== */
.h1 {
  font-weight: 700; font-size: 56px; line-height: 1.1;
  color: #222337; letter-spacing: -0.005em;
}
.h2 {
  font-weight: 700; font-size: 45px; line-height: 1.1;
  color: #222337;
}
.h3 {
  font-weight: 700; font-size: 24px; line-height: 1;
  color: #222337;
}
.text-lead { font-size: 18px; line-height: 1.4; color: #222337; }
.text-body { font-size: 20px; line-height: 1.4; color: #222337; }
.text-muted { color: #6B6C79; }
.text-small { font-size: 14px; line-height: 1.4; }

@media (max-width: 1280px) { .h1 { font-size: 48px; line-height: 1.05; } .h2 { font-size: 40px; } }
@media (max-width: 768px)  { .h1 { font-size: 36px; } .h2 { font-size: 32px; } }
@media (max-width: 480px)  { .h1 { font-size: 28px; } .h2 { font-size: 24px; } .h3 { font-size: 20px; } .text-lead { font-size: 16px; } .text-body { font-size: 16px; } }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; line-height: 1.3;
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
  background: transparent;
}
.btn:hover { opacity: .88; }
.btn--lg  { font-size: 18px; padding: 24px 40px; border-radius: 14px; }
.btn--sm  { font-size: 14px; padding: 10px 22px; border-radius: 10px; }
.btn--xs  { font-size: 12px; padding: 9px 20px; border-radius: 8px; }

.btn--dark        { background: #222337; color: #fff; }
.btn--purple      { background: #8B32FF; color: #fff; }
.btn--ghost       { background: transparent; color: #222337; border-color: #E1E4E7; }
.btn--ghost-dark  { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn--white       { background: #fff; color: #222337; }
.btn--outline     { background: transparent; color: #222337; border-color: #222337; }

/* ==========================================================================
   Шапка (общая для обеих страниц)
   ========================================================================== */
.site-header {
  width: 100%;
  background: transparent;
  padding: 12px 0;
  position: relative;
  z-index: 10;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  background: #FFFFFF;          /* pill, как у Frame 36 в Figma */
  border-radius: 999px;
  padding: 18px 32px;
  min-height: 85px;
  height: 85px;
}
/* На странице "О проекте" pill чуть серее (#FAFAFA по Figma) */
.site-header--about .site-header__inner { background: #FAFAFA; }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo__img { width: 39px; height: 39px; }
.logo__text { font-weight: 700; font-size: 29px; line-height: 1; color: #222337; }

.nav {
  display: flex; gap: 40px;
  flex-wrap: nowrap;
}
.nav a {
  font-weight: 500; font-size: 16px; line-height: 1.3;
  color: #222337;
  white-space: nowrap;
}
.site-header__cta { display: flex; gap: 12px; }
.site-header__cta .btn { padding: 16px 24px; }

@media (max-width: 1024px) {
  .site-header__inner { padding: 14px 20px; }
  .nav { gap: 24px; }
  .site-header__cta .btn { padding: 12px 18px; font-size: 14px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .site-header__inner { gap: 16px; }
}

/* ==========================================================================
   Hero (главная)
   ========================================================================== */
.hero {
  position: relative;
  background: #E9D8FE;
  min-height: 870px;
  margin-top: -109px;
  padding-top: 109px;       /* под шапку */
  padding-bottom: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  position: relative; z-index: 2;
  width: 100%;
}
.hero__text { flex: 1 1 0; min-width: 0; max-width: 874px; }
.hero h1 { margin-bottom: 30px; }
.hero p  { margin-bottom: 50px; max-width: 708px; }
.hero__media { flex: 0 0 755px; }
.hero__media img { width: 100%; height: auto; }
.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  width: 100%; height: 180px; pointer-events: none;
}

@media (max-width: 1280px) {
  .hero { min-height: 700px; }
  .hero__media { flex: 0 0 480px; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 140px; padding-bottom: 200px; }
  .hero__inner { flex-direction: column; align-items: stretch; }
  .hero__text { padding-top: 0; }
  .hero__media { flex: 0 0 auto; align-self: center; max-width: 500px; width: 100%; }
}
@media (max-width: 600px) {
  .hero { padding-top: 120px; padding-bottom: 140px; }
  .hero h1 { margin-bottom: 20px; }
  .hero p { margin-bottom: 30px; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 140px; padding-bottom: 200px; }
  .hero__inner { flex-direction: column; align-items: stretch; }
  .hero__media { flex: 0 0 auto; align-self: center; max-width: 500px; width: 100%; }
}


/* ==========================================================================
   Секция «Что это за сервис?»
   ========================================================================== */
.section-what { padding: 80px 0 80px; }
.section-what__inner {
  display: flex; align-items: center; gap: 100px;
}
.section-what__photo { flex: 0 0 469px; }
.section-what__photo img { border-radius: 24px; width: 100%; }
.section-what__text { flex: 1 1 auto; max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.section-what__text h2 { margin-bottom: 16px; }

@media (max-width: 1024px) {
  .section-what__inner { gap: 60px; }
  .section-what__photo { flex-basis: 380px; }
}
@media (max-width: 768px) {
  .section-what { padding: 60px 0; }
  .section-what__inner { flex-direction: column; gap: 40px; }
  .section-what__photo { flex-basis: auto; max-width: 400px; align-self: center; width: 100%; }
}

/* ==========================================================================
   Секция «Онлайн-знакомства и общение»
   ========================================================================== */
.section-online {
  padding: 100px 0 120px;
  background: #F3EBFF;
  position: relative;
}
/* волнистый верх и низ — как Vector 2 в Figma */
.section-online::before, .section-online::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 80px;
  background: #fff;
  pointer-events: none;
}
.section-online::before { top: -1px;  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1920,0 L1920,40 C1500,90 1100,10 700,40 C400,65 100,30 0,55 Z' fill='%23000'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1920,0 L1920,40 C1500,90 1100,10 700,40 C400,65 100,30 0,55 Z' fill='%23000'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.section-online::after  { bottom: -1px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L1920,80 L1920,40 C1500,-10 1100,70 700,40 C400,15 100,50 0,25 Z' fill='%23000'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L1920,80 L1920,40 C1500,-10 1100,70 700,40 C400,15 100,50 0,25 Z' fill='%23000'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.section-online__inner { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.section-online__text { flex: 1 1 380px; max-width: 820px; display: flex; flex-direction: column; gap: 50px; }
.section-online__text h2 + p { margin-top: -18px; }
.section-online__media {
  flex: 0 0 auto;
  position: relative;
  width: 794px; height: 784px;
}
/* фиолетовые повёрнутые подложки за фото (Rectangle 4 и 5 из Figma) */
.section-online__bg5   { position: absolute; left: 0;   top: 0;  width: 361px; height: auto; z-index: 1; }
.section-online__bg4   { position: absolute; left: 176px; top: 44px; width: 618px; height: auto; z-index: 1; }
/* сами фото поверх */
.section-online__big   { position: absolute; left: 204px; top: 67px; width: 567px; height: auto; z-index: 2; }
.section-online__small { position: absolute; left: 25px;  top: 13px; width: 330px; height: auto; z-index: 3; }

@media (max-width: 1280px) {
  .section-online__media { width: 600px; height: 600px; }
  .section-online__bg5   { width: 270px; }
  .section-online__bg4   { left: 130px; top: 36px; width: 470px; }
  .section-online__big   { left: 152px; top: 50px; width: 430px; }
  .section-online__small { left: 18px;  top: 10px; width: 250px; }
}
@media (max-width: 768px) {
  .section-online__inner { gap: 40px; }
  .section-online__media { width: 100%; max-width: 600px; height: auto; aspect-ratio: 794/784; align-self: center; }
  .section-online__bg5   { width: 45%; }
  .section-online__bg4   { left: 22%; top: 6%; width: 78%; }
  .section-online__big   { left: 26%; top: 9%; width: 71%; }
  .section-online__small { left: 3%;  top: 2%; width: 42%; }
}
@media (max-width: 900px) {
  .section-online__inner { flex-direction: column; }
  .section-online__media { width: 100%; max-width: 600px; height: 660px; align-self: center; }
}

/* ==========================================================================
   Секция «Регистрируйся везде в один клик» + сетка платформ 3×3
   ========================================================================== */
.section-register { padding: 60px 0 80px; background: #fff; }
.section-register__head { margin-bottom: 40px; max-width: 540px; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.chip {
  font-weight: 600; font-size: 14px; line-height: 1.3;
  padding: 10px 20px; border-radius: 10px;
  background: #fff; color: #222337;
  border: 1px solid #E1E4E7;
}
.chip--active { background: #222337; color: #fff; border-color: #222337; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.pcard {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid #E1E4E7; border-radius: 20px;
  padding: 0;
  min-height: 150px;
}
.pcard__logo {
  flex: 0 0 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px 0 0 20px;
}
.pcard__logo--badoo { background: #E9D8FE; }
.pcard__logo--loveplanet { background: #FFE3EC; }
.pcard__logo img { max-width: 140px; max-height: 70px; }

.cards-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .cards-grid--two { grid-template-columns: 1fr; } }
.pcard__body  { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 24px 0; }
.pcard__body p { margin-bottom: 4px; }
.pcard__body .btn { align-self: flex-start; }

.cta-center { display: flex; justify-content: center; }

@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .pcard__logo { flex-basis: 110px; height: 110px; }
}

/* ==========================================================================
   Секция «Новости»
   ========================================================================== */
.section-news { padding: 100px 0 100px; }
.section-news h2 { margin-bottom: 40px; }
.section-news .cta-center { margin-top: 30px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.news-card { display: flex; flex-direction: column; gap: 16px; }
.news-card__img {
  width: 100%; aspect-ratio: 400/250;
  background: #E1E4E7;
  border-radius: 16px;
}
.news-card h3 { margin: 6px 0 4px; }
.news-card p  { margin-bottom: 16px; color: #6B6C79; }
.news-card .btn { align-self: flex-start; }

@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .news-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Секция FAQ
   ========================================================================== */
.section-faq { padding: 60px 0 100px; }
.section-faq h2 { margin-bottom: 30px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  align-items: start;
}
.faq-col { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  border-bottom: 1px solid #E1E4E7;
  padding: 12px 0;
}
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 700; font-size: 24px; line-height: 1; color: #222337;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; transform: rotate(180deg); }
.faq-item[open] summary .chev { transform: rotate(0deg); }
.faq-item__body {
  margin: 16px 0 0; color: #6B6C79;
  font-size: 14px; line-height: 1.4;
}

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Футер
   ========================================================================== */
.site-footer { background: #222337; color: #fff; padding: 56px 0 56px; min-height: 437px; display: flex; align-items: center; }
.site-footer .container { width: 100%; }
.site-footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}
.logo--lg { gap: 14px; }
.logo--lg .logo__img  { width: 73px; height: 73px; }
.logo--lg .logo__text { font-size: 54px; color: #fff; }
.site-footer .nav a   { color: #fff; }

.site-footer__mid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  font-size: 16px; line-height: 1.4; color: #fff;
}
.site-footer__cta { display: flex; gap: 12px; }

.site-footer__hr {
  border: 0; border-top: 1px solid rgba(255,255,255,.18);
  margin: 60px 0 20px;
}
.site-footer__bottom {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px;
  font-size: 16px; line-height: 1.4; color: #fff;
}
.site-footer__bottom .last { text-align: right; }
.site-footer__bottom .last span { display: block; white-space: nowrap; }

@media (max-width: 900px) {
  .site-footer__top, .site-footer__mid, .site-footer__bottom {
    flex-direction: column; align-items: flex-start;
  }
  .site-footer__bottom .last { text-align: left; }
}
/* ==========================================================================
   Hero страницы «О проекте» (центрированный текст на светло-фиолетовом)
   ========================================================================== */
.hero-about {
  background: #F3EBFF;
  margin-top: -109px;
  padding-top: 109px;
  padding-bottom: 0;
  text-align: center;
  min-height: 778px;
  display: flex;
  align-items: center;
}
.hero-about__inner {
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  max-width: 874px; margin: 0 auto;
  padding: 0 24px;            /* mobile gutters; .container padding убран */
}
.hero-about h1 { line-height: .9; width: 100%; }
.hero-about p  { max-width: 708px; }

@media (max-width: 900px) {
  .hero-about { min-height: auto; padding: 180px 0 120px; }
}
@media (max-width: 600px) {
  .hero-about { padding: 140px 0 80px; }
}

/* ==========================================================================
   Секция «Преимущества» — irregular grid 3×2
   ========================================================================== */
.section-advantages { padding: 80px 0; }
.section-advantages h2 { margin-bottom: 50px; }
@media (max-width: 600px) { .section-advantages { padding: 60px 0; } .section-advantages h2 { margin-bottom: 30px; } }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 20px;
}
.adv {
  border-radius: 30px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  overflow: hidden;
}
.adv h3 {
  font-weight: 700; font-size: 36px; line-height: 1; margin: 0;
  color: #222337;
}
.adv p {
  font-size: 18px; line-height: 1.4;
  color: #403D42;
  margin: 0;
}

.adv--purple { background: #F3EBFF; }
.adv--green  { background: #CEFD90; }
.adv--gray   { background: #FAFAFA; grid-column: span 2; }
.adv--ai {
  grid-column: 3; grid-row: 1 / span 2;
  background: #222337 url('img2/frame71_ai.png') center/cover no-repeat;
  color: #fff;
}
.adv--ai h3, .adv--ai p { color: #fff; }
.adv--ai h3 { font-size: 28px; }

@media (max-width: 1100px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 240px 240px auto;
  }
  .adv--ai   { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .adv--gray { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .adv-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .adv--ai, .adv--gray { grid-column: auto; }
  .adv h3 { font-size: 28px; }
}

/* ==========================================================================
   Секция «Как работает сервис»
   ========================================================================== */
.section-how { padding: 60px 0 80px; }
@media (max-width: 600px) { .section-how { padding: 40px 0 60px; } }
.section-how__inner {
  display: grid;
  grid-template-columns: 616px 1fr;
  gap: 80px;
  align-items: start;
}
.section-how__intro { display: flex; flex-direction: column; gap: 24px; max-width: 616px; }
.section-how__intro p { font-size: 20px; line-height: 1.4; color: #403D42; }
.section-how__intro .btn { align-self: flex-start; margin-top: 16px; }

.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  position: relative;
  border-radius: 0 30px 30px 30px;   /* top-left прямой — стыкуется с табом */
  padding: 40px;
  padding-top: 70px;                  /* запас под таб сверху-слева */
  display: flex; flex-direction: column; gap: 20px;
}
.step::before {
  content: '';
  position: absolute;
  top: -32px; left: 0;
  width: 234px; height: 32px;
  border-radius: 30px 30px 0 0;      /* округление как у карточки */
  background: inherit;
}
.step h3 {
  font-weight: 700; font-size: 36px; line-height: 1; margin: 0;
  color: #222337;
}
.step p {
  font-size: 18px; line-height: 1.4; color: #403D42; margin: 0;
}
.step--purple { background: #F3EBFF; }
.step--green  { background: #CEFD90; }
.step--peach  { background: #FFEFE8; }

@media (max-width: 1100px) {
  .section-how__inner { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 600px) {
  .step { padding: 32px 24px; padding-top: 56px; }
  .step h3 { font-size: 28px; }
}

/* ==========================================================================
   Секция «Ваши данные под защитой»
   ========================================================================== */
.section-data {
  background: #F3EBFF;
  padding: 120px 0;
  min-height: 800px;
  display: flex;
  align-items: center;
}
.section-data .container { width: 100%; }
.section-data__inner {
  display: flex; gap: 80px; align-items: center;
}
.section-data__text { flex: 1 1 50%; max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.section-data__text p { font-size: 20px; line-height: 1.4; color: #222337; }
.section-data__text .btn { align-self: flex-start; }
.section-data__media { flex: 0 0 auto; }
.section-data__media img { width: 700px; max-width: 100%; }

@media (max-width: 1100px) {
  .section-data { min-height: auto; padding: 80px 0; }
  .section-data__inner { flex-direction: column; gap: 40px; }
  .section-data__media img { width: 100%; max-width: 600px; }
}
@media (max-width: 600px) { .section-data { padding: 60px 0; } }

/* ==========================================================================
   Hero страницы about — header pill виден поверх фиолетового
   ========================================================================== */
.site-header--about .site-header__inner { background: #FAFAFA; }
