/*
 * Табло Landing Page Styles (static)
 * Правила: CSS-only layout, без JS для компоновки.
 */

 :root {
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-text-dark: #1f2937;
  --color-text-light: #f9fafb;
  --color-bg-dark: #0a1931;
  --color-bg-light: #f5f7fa;
  --color-bg-card: #ffffff;
  --border-radius: 12px;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
  --transition: all 0.25s ease;
  --header-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  height: 100%; 
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text-dark);
  line-height: 1.6;
  background: #fff;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}



.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;

  /* dark glass */
  background: rgba(6, 10, 20, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  /* subtle separation */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

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

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

.brand__name {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.01em;
}

/* Navbar logo must be monochrome white for stable contrast */
.navbar .brand__logo {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Legacy logo class support */
.logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo__img {
  height: 340px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.navbar .logo__img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.nav-cta {
  padding: 0.55rem 1.05rem;
  border-radius: 12px;

  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);

  transition: var(--transition);
  font-weight: 650;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1e3a8a 100%);
  color: var(--color-text-light);
  margin: 0;
  padding: 72px 0 56px;
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 56px;
}

/* Единственный контейнер hero */
.hero__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 64px;
  min-height: 100vh;   /* fallback */
  min-height: 100svh;  /* modern */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  /* gap: 64px; */
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero__content {
  text-align: left;
  max-width: 560px;
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__content h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero__subtitle {
  font-size: 1.05rem;
  margin: 0 0 22px;
  opacity: 0.88;
  line-height: 1.5;
  max-width: 56ch;
}

.hero__content p {
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero__form {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.hero__input {
  min-width: 260px;
  flex: 1 1 260px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.hero__input::placeholder {
  color: rgba(255,255,255,0.55);
}

.hero__form input {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text-dark);
  transition: var(--transition);
}

.hero__form input::placeholder { color: #9ca3af; }

.hero__form input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.hero__cta,
.hero__form button {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.hero__form button:hover,
.hero__cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.hero__note {
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0.85;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  opacity: 0.9;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}

.hero__dot {
  opacity: 0.55;
}

.hero__caption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: rgba(249, 250, 251, 0.70);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.phones {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
}

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.phone__img {
  width: auto;
  height: 430px;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 42px rgba(0,0,0,0.35));
}

.phone--client {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.phone--client .phone__img {
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.phone__cap {
  font-size: 13px;
  opacity: 0.75;
}

.hero__visual img {
  position: relative;
  z-index: 2;
  width: min(380px, 100%);
  max-height: min(760px, 72svh);
  object-fit: contain;
}

/* SECTIONS (do not apply padding to hero) */

/* Fix: ensure non-hero sections are not visually covered by hero overlays */
.how-it-works,
.benefits-masters,
.benefits-clients,
.pricing,
.footer {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

.how-it-works,
.benefits-masters,
.benefits-clients,
.pricing {
  padding: 64px 0;
}

/* First section after hero: must always be light */
#how-it-works.how-it-works {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* Global section typography */

.how-it-works h2,
.benefits-masters h2,
.benefits-clients h2,
.pricing h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 28px;
  text-align: center;
  font-weight: 800;
  color: var(--color-text-dark);
}

/* HOW IT WORKS grid */
.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.how-subtitle {
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 750;
}

.how-steps {
  padding-left: 1.25rem;
  margin: 0;
}

.how-steps li {
  margin: 10px 0;
}

.how-caption {
  margin-top: 14px;
  color: rgba(31, 41, 55, 0.75);
}

/* Mock phone card */
.image-placeholder {
  display: flex;
  justify-content: center;
}

.mock-phone {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.10);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mock-phone-top {
  padding: 14px 16px;
  font-weight: 700;
  background: #f3f4f6;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.mock-card {
  padding: 16px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mock-title {
  font-weight: 800;
}

.mock-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.mock-pill-work {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.mock-meta {
  color: rgba(31, 41, 55, 0.78);
  margin: 6px 0;
}

.mock-divider {
  height: 1px;
  background: rgba(31, 41, 55, 0.08);
  margin: 14px 0;
}

.mock-small {
  color: rgba(31, 41, 55, 0.65);
  font-size: 0.9rem;
}

.mock-hint {
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  color: rgba(31, 41, 55, 0.70);
  font-size: 0.9rem;
}

/* BENEFITS */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-list li {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.benefit-list-muted li {
  background: rgba(255, 255, 255, 0.92);
}

/* PRICING */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing .card {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.pricing .card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing .price {
  font-size: 2rem;
  font-weight: 900;
  margin: 6px 0 0;
}

.pricing .subtitle {
  color: rgba(31, 41, 55, 0.70);
  margin-bottom: 14px;
}

.pricing .card ul {
  list-style: none;
  margin-top: 12px;
}

.pricing .card ul li {
  margin: 8px 0;
  color: rgba(31, 41, 55, 0.85);
}

.pro-badge {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 700;
}

.pricing-note {
  margin-top: 16px;
  text-align: center;
  color: rgba(31, 41, 55, 0.70);
}

/* Responsive for non-hero sections */
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

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

.footer {
  background: #0b1220;
  color: var(--color-text-light);
  text-align: center;
  padding: 24px 0;
  font-size: 0.875rem;
}

.hero__visual::before,
.hero__visual::after {
  content: none !important;
}

.hero__visual img {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Responsive for hero */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 32px;
  }

  .hero__visual {
    margin-top: 32px;
  }

  .phones {
    gap: 16px;
  }

  .phone__img {
    height: auto;
    width: min(280px, 45vw);
    max-height: 420px;
  }

  .phone--client {
    padding: 10px;
    border-radius: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .hero__wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 20px;
    min-height: 100vh;  /* fallback */
    min-height: 100svh;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 28px;
  }

  .hero__visual {
    margin-top: 28px;
  }

  .hero__content { max-width: 100%; }

  .hero__title,
  .hero__content h1 { font-size: 1.75rem; }

  .phones {
    flex-direction: row;
    gap: 12px;
  }

  .phone__img {
    height: auto;
    width: min(240px, 42vw);
    max-height: 380px;
  }

  .phone--client {
    padding: 8px;
    border-radius: 18px;
  }

  .hero__visual img {
    width: min(300px, 100%);
    max-height: min(560px, 58svh);
  }
}

/* Small mobile */
@media (max-width: 560px) {
  .hero__form {
    flex-direction: column;
  }

  .hero__form input,
  .hero__form button,
  .hero__input,
  .hero__cta {
    width: 100%;
  }

  .phones {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .phone__img {
    width: min(280px, 75vw);
    max-height: 360px;
  }

  .phone--client {
    padding: 10px;
  }
}
