/*
 * Лендинг «Привет, коллега!» — брендбук 2025.
 * Палитра: коралл #F47252, розовый #F980F1, крем #F9EDD3, тёмный #14142A, белый #FFFFFF.
 * Заголовки — Nobile Bold uppercase, текст — Onest.
 */
:root {
  color-scheme: light;

  --pk-orange: #f47252;
  --pk-pink: #f980f1;
  --pk-cream: #f9edd3;
  --pk-ink: #14142a;
  --pk-white: #ffffff;

  --pk-bg: var(--pk-cream);
  --pk-surface: #fffdf6;
  --pk-text: var(--pk-ink);
  --pk-text-1: #3a374c;
  --pk-text-2: #5d5a70;
  --pk-border: rgba(20, 20, 42, 0.08);
  --pk-border-2: rgba(20, 20, 42, 0.14);
  --pk-card-shadow: 0 10px 24px -14px rgba(20, 20, 42, 0.18);
  --pk-cta-shadow: rgba(244, 114, 82, 0.45);
  --pk-accent-text: #c936bd;
  --pk-amber-text: #b4502f;

  --pk-hero-grad: linear-gradient(150deg, #1d1d36 0%, #14142a 60%, #121226 100%);

  --pk-font: 'Onest', system-ui, -apple-system, sans-serif;
  --pk-font-display: 'Nobile', 'Onest', system-ui, sans-serif;

  --pk-radius: 20px;
  --pk-safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--pk-bg);
  color: var(--pk-text);
  font-family: var(--pk-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--pk-font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
}

h3 {
  font-size: 17px;
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pk-ink);
  color: var(--pk-cream);
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pk-accent-text);
  margin-bottom: 10px;
}

section {
  padding: clamp(56px, 9vw, 104px) 0;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--pk-font);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--pk-pink);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--pk-orange);
  color: var(--pk-white);
  box-shadow: 0 10px 22px -8px var(--pk-cta-shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -8px var(--pk-cta-shadow);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 36px;
  font-size: 18px;
}

.cta-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--pk-text-2);
}

.cta-note-light {
  color: rgba(249, 237, 211, 0.75);
}

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 237, 211, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pk-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: var(--pk-font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--pk-text-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
}

.site-nav a:hover {
  color: var(--pk-orange);
}

.btn-header {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .btn-header {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .btn-header {
    display: none; /* на мобильном CTA закреплена снизу */
  }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(249, 128, 241, 0.4), rgba(249, 128, 241, 0) 70%);
}

.hero-shape-2 {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -260px;
  background: radial-gradient(circle at 60% 40%, rgba(244, 114, 82, 0.35), rgba(244, 114, 82, 0) 70%);
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--pk-text-1);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-facts li {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pk-text-1);
}

/* ---------- Блок 2. Проблема ---------- */
.problem {
  background: var(--pk-surface);
  border-block: 1px solid var(--pk-border);
}

.problem-inner {
  max-width: 760px;
}

.problem-text {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--pk-text-1);
}

.problem-highlight {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--pk-amber-text);
  border-left: 4px solid var(--pk-orange);
  padding-left: 18px;
  margin-top: 28px;
}

/* ---------- Блок 3. Карточки ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

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

.card {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  box-shadow: var(--pk-card-shadow);
  padding: 28px;
}

.card p {
  margin: 0;
  color: var(--pk-text-2);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 24px;
  margin-bottom: 16px;
}

.card-icon-orange {
  background: rgba(244, 114, 82, 0.14);
}

.card-icon-pink {
  background: rgba(249, 128, 241, 0.16);
}

/* ---------- Осмысленный подбор ---------- */
.matching {
  background: var(--pk-surface);
  border-block: 1px solid var(--pk-border);
}

.matching-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .matching-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.matching-text p {
  color: var(--pk-text-1);
}

.matching-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: mstep;
}

.matching-step {
  position: relative;
  background: var(--pk-bg);
  border: 1px solid var(--pk-border-2);
  border-radius: var(--pk-radius);
  padding: 20px 22px 20px 64px;
  counter-increment: mstep;
}

.matching-step::before {
  content: counter(mstep, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--pk-font-display);
  font-weight: 700;
  color: var(--pk-orange);
}

.matching-step + .matching-step {
  margin-top: 28px;
}

.matching-step + .matching-step::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: 16px;
  background: var(--pk-pink);
}

.matching-step-label {
  display: block;
  font-family: var(--pk-font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.matching-step p {
  margin: 0;
  font-size: 15px;
  color: var(--pk-text-2);
}

/* ---------- Блок 4. Как это работает ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 36px;
  align-items: center;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-num {
  font-family: var(--pk-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pk-orange);
  min-width: 44px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--pk-text-2);
}

/* Макет сообщения бота — иллюстрация, не скриншот */
.phone-mock {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border-2);
  border-radius: 28px;
  box-shadow: var(--pk-card-shadow);
  padding: 24px;
  max-width: 360px;
  margin-inline: auto;
}

.phone-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pk-font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pk-border);
  margin-bottom: 16px;
}

.phone-mock-bubble {
  background: var(--pk-bg);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  font-size: 15px;
  max-width: 85%;
}

.phone-mock-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
}

.phone-mock-btn {
  border: 1.5px solid var(--pk-border-2);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 600;
}

.phone-mock-btn-yes {
  background: var(--pk-orange);
  border-color: var(--pk-orange);
  color: var(--pk-white);
}

.phone-mock-bubble-reply {
  opacity: 0.75;
}

/* ---------- Блок 5. Для кого ---------- */
.who {
  background: var(--pk-surface);
  border-block: 1px solid var(--pk-border);
  text-align: center;
}

.who-lead {
  max-width: 560px;
  margin-inline: auto;
  color: var(--pk-text-1);
}

.who-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 28px 0 20px;
  padding: 0;
}

.who-tags li {
  background: rgba(244, 114, 82, 0.12);
  border: 1px solid rgba(244, 114, 82, 0.3);
  color: var(--pk-amber-text);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
}

.who-note {
  color: var(--pk-text-2);
  font-size: 15px;
  margin: 0;
}

/* ---------- Блок 6. FAQ ---------- */
.faq-inner {
  max-width: 760px;
}

.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: 16px;
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 28px 18px 0;
  position: relative;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-family: var(--pk-font-display);
  font-size: 22px;
  color: var(--pk-orange);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--pk-pink);
  outline-offset: 2px;
  border-radius: 8px;
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--pk-text-2);
}

/* ---------- Блок 7. Финальный CTA ---------- */
.final-cta {
  background: var(--pk-hero-grad);
  color: var(--pk-cream);
  text-align: center;
}

.final-cta-inner {
  max-width: 680px;
}

.final-cta h2 {
  color: var(--pk-cream);
}

.final-cta p {
  color: rgba(249, 237, 211, 0.85);
}

.final-cta .section-cta {
  margin-top: 32px;
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--pk-ink);
  color: rgba(249, 237, 211, 0.8);
  padding: 36px 0 calc(36px + var(--pk-safe-bottom));
  border-top: 1px solid rgba(249, 237, 211, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer .brand-name {
  color: var(--pk-cream);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a,
.footer-legal a {
  color: rgba(249, 237, 211, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--pk-pink);
}

.footer-legal {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  align-items: center;
}

@media (max-width: 720px) {
  .footer-legal {
    margin-left: 0;
  }
}

/* ---------- Мобильная фиксированная CTA ---------- */
.mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 12px 16px calc(12px + var(--pk-safe-bottom));
    background: rgba(249, 237, 211, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--pk-border);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  /* контент не перекрывается фиксированной кнопкой */
  body {
    padding-bottom: calc(84px + var(--pk-safe-bottom));
  }
}

/* ---------- Модальное окно выбора мессенджера ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 20, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--pk-surface);
  border-radius: 24px;
  padding: 36px 32px 28px;
  width: min(440px, 100%);
  box-shadow: 0 24px 60px -20px rgba(20, 20, 42, 0.5);
}

.modal-title {
  font-size: 22px;
  margin: 0 0 24px;
  padding-right: 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--pk-text-2);
  cursor: pointer;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(20, 20, 42, 0.06);
}

.modal-close:focus-visible {
  outline: 3px solid var(--pk-pink);
  outline-offset: 2px;
}

.modal-actions {
  display: grid;
  gap: 12px;
}

.btn-messenger {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.btn-max {
  background: var(--pk-orange);
  color: var(--pk-white);
  box-shadow: 0 10px 22px -8px var(--pk-cta-shadow);
}

.btn-telegram {
  background: var(--pk-ink);
  color: var(--pk-cream);
}

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

.modal-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--pk-text-2);
  text-align: center;
}

/* Bottom sheet на мобильном */
@media (max-width: 720px) {
  .modal-backdrop {
    place-items: end stretch;
    padding: 0;
  }

  .modal {
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(28px + var(--pk-safe-bottom));
  }
}
