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

/* Custom scrollbar (Windows/Chrome/Edge) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.32); }
html { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }

:root {
  --black: #0D0D0D;
  --white: #FFFFFF;
  --pink:  #E8186D;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.15s;
}

main {
  flex: 1;
}

/* ── HEADER ── */
header {
  position: static;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--black);
  text-transform: uppercase;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-dot { color: var(--pink); }

/* Nav */
nav { display: flex; align-items: center; }

nav a {
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color .2s;
  padding: 0 18px;
  white-space: nowrap;
}
nav a:hover { color: var(--black); }


/* Lang switcher */
.header-right {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-current {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--black);
  cursor: auto;
  user-select: text;
  text-transform: uppercase;
}

.globe-btn {
  background: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
  color: var(--black);
}
.globe-btn:hover { border-color: var(--pink); }
.globe-btn svg { width: 18px; height: 18px; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  overflow: hidden;
  min-width: 130px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  visibility: hidden;
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.62);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.lang-dropdown button:hover {
  background: rgba(0,0,0,0.06);
  color: var(--black);
}
.lang-dropdown button.active {
  color: var(--pink);
  background: rgba(232,24,109,0.08);
}
.lang-flag { font-size: 16px; border-radius: 3px; flex-shrink: 0; line-height: 1; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 0 32px 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--black); }
.mobile-lang {
  display: flex;
  gap: 16px;
  padding-top: 20px;
}
.mobile-lang button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.65);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color .2s;
  padding: 0;
}
.mobile-lang button.active,
.mobile-lang button:hover { color: var(--pink); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 28px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-logo span { color: var(--pink); }
.footer-links { display: flex; align-items: center; gap: 12px; }
.footer-links a {
  color: rgba(0,0,0,0.58);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.3px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--black); }
.footer-sep { color: var(--pink); font-size: 10px; }
.footer-copy { color: rgba(0,0,0,0.58); font-size: 12px; }

/* ── SIDENAV ── */
.sidenav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sidenav.visible { opacity: 1; }

/* left column: unified SVG track */
.sidenav-track {
  line-height: 0; /* prevent inline gap under SVG */
}

/* arc is driven proportionally by scroll — no CSS transition needed */
.sn-arc {
  transition: none;
}

/* fill rect glow */
#snFillRect {
  filter: drop-shadow(0 0 3px rgba(232,24,109,0.5));
}

/* right column: labels */
.sidenav-labels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.sidenav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
  white-space: nowrap;
  line-height: 24px;
  transition: color .2s;
  cursor: pointer;
}
.sidenav-label.active { color: var(--black); }
.sidenav-label.done   { color: rgba(0,0,0,0.65); }
.sidenav-label:hover  { color: var(--black); }

.sidenav-bar { display: none; }

@media (max-width: 1100px) { .sidenav { display: none; } }

@media (min-width: 1101px) {
  body { padding-left: 160px; }

  /* header і footer — на повну ширину, компенсуємо padding-left */
  header, footer {
    margin-left: -160px;
    width: calc(100% + 160px);
  }

  /* остання секція (#form) — відступ перед футером */
  #form {
    padding-bottom: 180px;
  }
}

/* ── SHARED ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 100px 0;
}

section + section {
  border-top: 1px solid rgba(0,0,0,0.07);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  max-width: 640px;
}

.btn-cta {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity .2s, transform .15s;
}
.btn-cta:hover { opacity: .88; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--black);
  text-decoration: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

/* ── HERO ── */
#hero {
  padding-top: 100px;
  padding-bottom: 120px;
  border-top: none;
}
#hero .section-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
}
#hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
}
#hero h1 em {
  color: var(--pink);
  font-style: normal;
}
#hero p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  max-width: 600px;
}

/* ── WHY ── */
#why .section-inner {
  display: grid;
  gap: 64px;
}
#why .why-header { max-width: 700px; }
#why .why-intro {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  margin-top: 20px;
}
#why .why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
#why .why-card {
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  background: rgba(0,0,0,0.015);
}
#why .why-card:hover {
  border-color: rgba(232,24,109,0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  background: #fff;
}
#why .why-card--wide {
  grid-column: span 2;
}
.why-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(232,24,109,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pink);
}
.why-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#why .why-card strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
#why .why-card span {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(0,0,0,0.62);
}
#why .why-approach {
  border-left: 3px solid var(--pink);
  padding-left: 28px;
}
#why .why-approach h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
#why .why-approach p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(0,0,0,0.65);
}

/* ── TEAM ── */
#team .section-inner { display: flex; flex-direction: column; gap: 56px; }
#team .team-header { max-width: 600px; }

.team-leads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.team-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  isolation: isolate;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.team-card-photo {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: -1px;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.team-card:hover .team-card-photo img {
  transform: scale(1.05);
}
.team-card-photo-fade { display: none; }
.team-card-body {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.team-card--no-photo .team-card-body {
  padding-top: 24px;
}
.team-card-avatar-letter {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.team-card-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0;
}
.team-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.team-card-quote {
  font-size: 13px;
  font-style: italic;
  color: rgba(0,0,0,0.55);
  border-left: 2px solid var(--pink);
  padding-left: 12px;
  margin: 4px 0;
  line-height: 1.5;
}
.team-card-desc {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  line-height: 1.65;
  margin: 0;
}

#team .team-also { max-width: 800px; }
#team .team-also h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
#team .team-also > p {
  font-size: 15px;
  color: rgba(0,0,0,0.62);
  margin-bottom: 28px;
  line-height: 1.6;
}
#team .team-roles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#team .team-roles li {
  padding: 16px 0;
  font-size: 15px;
  color: rgba(0,0,0,0.65);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  line-height: 1.5;
}
#team .team-roles li::before {
  content: '→ ';
  color: var(--pink);
  font-weight: 700;
}

/* ── TRAFFIC ── */
#traffic .section-inner { display: flex; flex-direction: column; gap: 56px; }
#traffic .traffic-header { max-width: 600px; }
.traffic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.traffic-card-wrap {
  position: relative;
  padding-top: 24px;
}
.traffic-icons {
  position: absolute;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  z-index: 1;
}
.traffic-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  display: block;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}

/* Карточка 1 — FB+IG сверху справа */
.traffic-card-wrap:nth-child(1) .traffic-icons {
  top: -10px;
  right: 24px;
}
.traffic-card-wrap:nth-child(1) .traffic-icon--1 { transform: rotate(-10deg) translateY(6px); margin-right: 26px; border-radius: 20%; box-shadow: none; width: 60px; height: 60px; }
.traffic-card-wrap:nth-child(1) .traffic-icon--2 { transform: rotate(7deg); border-radius: 20%; box-shadow: none; width: 60px; height: 60px; }

/* Карточка 2 — TikTok снизу справа */
.traffic-card-wrap:nth-child(2) .traffic-icons {
  top: auto;
  bottom: 28px;
  right: -14px;
}
.traffic-card-wrap:nth-child(2) .traffic-icon--1 { transform: rotate(10deg); border-radius: 22%; box-shadow: none; width: 60px; height: 60px; }

/* Карточка 3 — Google Ads сверху слева */
.traffic-card-wrap:nth-child(3) .traffic-icons {
  top: -8px;
  left: 24px;
}
.traffic-card-wrap:nth-child(3) .traffic-icon--1 { transform: rotate(-6deg) translateY(4px); width: 60px; height: 60px; background: #fff; padding: 10px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }

/* Hover — иконки реагируют */
.traffic-card-wrap:hover .traffic-icon--1 {
  transform: rotate(-4deg) translateY(-6px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.traffic-card-wrap:nth-child(1):hover .traffic-icon--1,
.traffic-card-wrap:nth-child(1):hover .traffic-icon--2,
.traffic-card-wrap:nth-child(2):hover .traffic-icon--1 {
  box-shadow: none;
}
.traffic-card-wrap:hover .traffic-icon--2 {
  transform: rotate(3deg) translateY(-8px) scale(1.1);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.traffic-card {
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.traffic-card-wrap:hover .traffic-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  border-color: rgba(232,24,109,0.35);
}
.traffic-card h3 {
  font-size: 20px;
  font-weight: 700;
}
.traffic-card p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0,0,0,0.62);
  flex: 1;
}
.traffic-quote {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.62);
  font-style: italic;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* ── NICHES ── */
#niches .section-inner { display: flex; flex-direction: column; gap: 40px; }
#niches .niches-header { max-width: 600px; }
.niches-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}
.niches-list li {
  padding: 7px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  cursor: default;
  transition: border-color .2s, color .2s;
}
.niches-list li:hover { border-color: var(--pink); color: var(--black); }

.niches-extra {
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  font-style: italic;
  margin-top: 4px;
}

/* ── CASES ── */
#cases .section-inner { display: flex; flex-direction: column; gap: 40px; }
#cases .cases-header { max-width: 700px; }
.cases-placeholder {
  text-align: center;
  padding: 80px 40px;
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 16px;
  color: rgba(0,0,0,0.58);
  font-size: 15px;
}

/* ── Cases carousel ── */
.cases-carousel {
  position: relative;
}
.cases-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.cases-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.cases-track img {
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.07);
  display: block;
  user-select: none;
  pointer-events: none;
  aspect-ratio: 1122 / 1402;
  object-fit: fill;
}
.cases-controls {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.cases-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: 44px;
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s;
  margin: -12px;
}
.cases-arrow:focus { outline: none; }
.cases-arrow-svg {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}
.cases-arrow:hover .cases-arrow-bg { fill: var(--pink); }
.cases-arrow-bg { transition: fill .25s; }
.cases-arrow-svg { display: block; }
.cases-arrow.clicked {
  animation: arrowPress 0.25s ease;
}
@keyframes arrowPress {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@media (max-width: 600px) {
  .cases-arrow { width: 36px; height: 36px; font-size: 15px; }
}

/* ── REVIEWS ── */
.reviews-header { margin-bottom: 48px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .2s;
}
.review-card:hover { border-color: rgba(232,24,109,0.3); }

.review-stars { color: var(--pink); font-size: 16px; letter-spacing: 2px; }

.review-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
  flex: 1;
}

.review-sig {
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}
.review-sig strong {
  color: var(--black);
  font-weight: 600;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 14px; }
.review-author span   { display: block; font-size: 12px; color: rgba(0,0,0,0.62); margin-top: 2px; }

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

/* ── FACTS ── */
.facts-header { margin-bottom: 48px; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fact-card {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, transform .2s;
}
.fact-card:hover { border-color: rgba(232,24,109,0.3); transform: translateY(-4px); }
.fact-card--accent {
  border-color: rgba(232,24,109,0.4);
  background: rgba(232,24,109,0.06);
}

.fact-icon { font-size: 28px; margin-bottom: 4px; color: var(--pink); }
.fact-card--accent .fact-icon { color: var(--pink); }
.fact-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
}
.fact-name  { font-size: 15px; font-weight: 700; color: var(--black); }
.fact-desc  { font-size: 13px; line-height: 1.6; color: rgba(0,0,0,0.58); margin-top: 4px; }

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

/* ── PROCESS ── */
.process-header { margin-bottom: 56px; max-width: 640px; }
.process-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.58);
  margin-top: 12px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}

.process-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 28px 22px;
  position: relative;
  overflow: visible;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.process-card .process-num {
  max-width: 100%;
  right: 0;
  clip-path: inset(0);
}
.process-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,24,109,0.55) !important;
  box-shadow: 0 8px 24px rgba(232,24,109,0.12);
}
.process-card--start {
  border-color: rgba(232,24,109,0.15);
}
.process-card--final {
  border-color: rgba(232,24,109,0.45);
}

/* Progressive pink tint from step 01 → 08 (linear steps) */
.process-card[data-step="01"],
.process-card[data-step="02"],
.process-card[data-step="03"],
.process-card[data-step="04"],
.process-card[data-step="05"],
.process-card[data-step="06"],
.process-card[data-step="07"],
.process-card[data-step="08"] { background: rgba(232,24,109,0.03); border-color: rgba(232,24,109,0.12); }

.process-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.process-badge--start {
  background: rgba(232,24,109,0.1);
  color: var(--pink);
  border: 1px solid rgba(232,24,109,0.2);
}
.process-badge--result {
  background: rgba(232,24,109,0.15);
  color: var(--pink);
  border: 1px solid rgba(232,24,109,0.3);
}

.process-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,0,0,0.12);
  position: absolute;
  top: 8px; right: 12px;
  pointer-events: none;
  user-select: none;
}

.process-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  position: relative;
}
.process-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
  position: relative;
}

.process-arrow {
  position: absolute;
  bottom: 14px; right: 16px;
  font-size: 20px;
  color: var(--pink);
  opacity: 0.75;
  font-weight: 700;
}
.process-arrow--down {
  bottom: 14px;
  right: 16px;
  top: auto;
  font-size: 20px;
  font-weight: 700;
  opacity: 0.75;
}

@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process-grid { grid-template-columns: 1fr; } .process-arrow { display: none; } }

/* ── FORM ── */
#form .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
#form .form-left h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
#form .form-left p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.62);
}

#leadForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#leadForm input,
#leadForm select {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--black);
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
#leadForm input:focus,
#leadForm select:focus { border-color: var(--pink); }
#leadForm select option { background: #F5F5F5; }

/* ── MESSENGER CHIPS ── */
.messenger-chips-wrap { display: flex; flex-direction: column; gap: 8px; }

.messenger-chips-label {
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}

.messenger-chips {
  display: flex;
  gap: 10px;
}

.messenger-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  background: rgba(0,0,0,0.04);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.65);
  outline: none;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.messenger-chip:hover {
  border-color: rgba(0,0,0,0.22);
  color: var(--black);
  background: rgba(0,0,0,0.06);
}
.messenger-chip.active {
  border-color: var(--pink);
  color: var(--black);
  background: rgba(232,24,109,0.06);
}

/* ── PHONE + USERNAME FIELDS ── */
.phone-fields {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.phone-fields-row {
  display: flex;
  gap: 10px;
  position: relative;
}
.phone-fields select { display: none; }

/* Custom phone code picker */
.phone-code-picker {
  position: relative;
  flex-shrink: 0;
}
.phone-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 48px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  transition: border-color .2s;
}
.phone-code-btn:hover { border-color: rgba(232,24,109,0.4); }
.phone-code-flag {
  font-size: 18px;
  border-radius: 3px;
  line-height: 1;
}
.phone-code-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  padding: 6px;
  min-width: 140px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  scrollbar-width: thin;
}
.phone-code-list.open { display: block; }
.phone-code-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  transition: background .15s;
}
.phone-code-list li:hover { background: rgba(0,0,0,0.05); }
.phone-code-list li.selected { background: rgba(232,24,109,0.08); color: var(--pink); }
.phone-code-list li .fi {
  font-size: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}
.phone-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.phone-fields .phone-input {
  flex: 1;
  width: 100%;
  padding-right: 42px !important;
}
.phone-status {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.phone-status.valid   { opacity: 1; background: #22c55e; color: #fff; }
.phone-status.invalid { opacity: 1; background: #ef4444; color: #fff; }

/* E.164 preview badge */
.phone-preview {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.phone-preview.show-valid {
  display: flex;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #16a34a;
}
.phone-preview.show-invalid {
  display: flex;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  color: #dc2626;
}
.phone-preview-icon { font-size: 15px; flex-shrink: 0; }
.phone-preview-text { flex: 1; }
.phone-preview-e164 { font-weight: 700; font-family: monospace; }

/* Colored border on phone input */
#fieldPhone.valid   { border-color: #22c55e !important; }
#fieldPhone.invalid { border-color: #ef4444 !important; }

.contact-or-divider {
  text-align: center;
  font-size: 13px;
  color: rgba(0,0,0,0.62);
  position: relative;
}
.contact-or-divider::before,
.contact-or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.contact-or-divider::before { left: 0; }
.contact-or-divider::after  { right: 0; }

#usernameWrap { position: relative; }
#usernameWrap.field-disabled input {
  opacity: 0.4;
  cursor: not-allowed;
}
#usernameWrap.field-disabled::after {
  content: 'Недоступно для Viber';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(0,0,0,0.62);
  pointer-events: none;
}

#formSuccess { color: #4ade80; font-size: 14px; }
#formError   { color: #f87171; font-size: 14px; }

/* ── SUCCESS MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform .25s;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.62);
  margin-bottom: 28px;
}
.modal-close {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav, .header-right { display: none; }
  .burger { display: flex; }
  .traffic-cards { grid-template-columns: 1fr; }
  #form .section-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .section-inner { padding: 0 20px; }
  #hero { padding-top: 120px; }
  .team-leads { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
