:root {
  --surface: #f3f7ff;
  --surface-muted: #ffffff;
  --hero-start: #1e3a8a;
  --hero-end: #2563eb;
  --text-main: #111827;
  --text-muted: #64748b;
  --stroke: #e2e8f0;
  --layout-content-max: 1360px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(3.25rem, 12vw, 4.25rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  overflow-x: clip;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.62;
  text-wrap: pretty;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.hero-section {
  background: radial-gradient(1200px 550px at 15% -10%, #60a5fa 0%, transparent 45%),
    radial-gradient(900px 480px at 95% 0%, #3b82f6 0%, transparent 45%),
    linear-gradient(120deg, var(--hero-start), var(--hero-end));
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.saas-ui > header.hero-section > .container.section-padding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(22rem, 62vh, 680px);
  padding-top: clamp(2.85rem, 5.5vw, 5.25rem) !important;
  padding-bottom: clamp(2.85rem, 5.5vw, 5.25rem) !important;
}

body.saas-ui > header.hero-section > .container.section-padding > .row {
  width: 100%;
  align-items: center;
}

.section-padding {
  padding-top: clamp(3.75rem, 6.2vw, 6.5rem);
  padding-bottom: clamp(3.75rem, 6.2vw, 6.5rem);
}

.section-muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section-lead {
  max-width: 56rem;
  margin-bottom: 2rem;
  color: var(--text-muted) !important;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-kicker-light {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #eff6ff;
}

.feature-card {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

@media (hover: hover) {
  .feature-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.14);
  }
}

.feature-card .card-body {
  padding: 1.55rem 1.45rem;
}

#modules .feature-card .card-body {
  text-align: left;
  align-items: flex-start;
}

#modules .feature-card h3,
#modules .feature-card p,
#modules .feature-card ul {
  width: 100%;
  margin-left: 0;
  text-align: left;
}

#modules .feature-card ul {
  padding-left: 1.2rem;
}

.pricing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pricing-header {
  text-align: center;
}

.pricing-title {
  margin-bottom: 0.9rem;
}

.pricing-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #334155;
}

.pricing-radio input {
  transform: translateY(-1px);
}

.pricing-discount {
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-card {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

@media (hover: hover) {
  .pricing-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.14);
  }
}

.pricing-card-popular {
  border-color: #60a5fa;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

@media (hover: hover) {
  .pricing-card-popular:hover {
    border-color: #3b82f6;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
  }
}

.pricing-popular-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-card-body {
  padding: 1.35rem 1.25rem 1.1rem;
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.pricing-desc,
.pricing-month,
.pricing-specs,
.pricing-extra {
  color: #4b5563;
}

.pricing-desc {
  font-size: 0.82rem;
  min-height: 2.35rem;
  line-height: 1.28;
  margin-bottom: 0.5rem;
}

.pricing-month {
  font-size: 0.95rem;
}

.pricing-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.pricing-specs li span {
  color: #374151;
}

.pricing-specs li strong {
  font-weight: 600;
  color: #111827;
  text-align: right;
  margin-left: auto;
}

.pricing-extra {
  border-top: 1px solid #e5e7eb;
}

.pricing-extra ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

.pricing-extra li {
  margin-bottom: 0.2rem;
}

.pricing-extra li::before {
  content: "- ";
}

.audience-list {
  text-align: left;
  list-style-position: outside;
  padding-left: 1.2rem;
  margin-left: 0;
}

.audience-list li {
  padding-left: 0.1rem;
  margin-bottom: 0.28rem;
}

.ui-card {
  overflow: hidden;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.ui-card-img {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-top: -1px;
  display: block;
}

.ui-card .card-body {
  padding-top: 1.2rem;
}

.app-list {
  list-style-position: outside;
  padding-left: 1.2rem;
}

.app-list li {
  margin-bottom: 0.45rem;
}

.mobile-app-wrap {
  max-width: none;
  margin: 0 auto;
}

.mobile-app-section::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.mobile-app-copy {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-app-section .app-list li::marker {
  color: #bfdbfe;
}

.app-mockups {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 390px;
}

.phone-mockup {
  position: relative;
  width: min(230px, 36vw);
  border-radius: 1.65rem;
  padding: 0.5rem 0.42rem 0.55rem;
  background: linear-gradient(160deg, #0f172a, #334155);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.3);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 22%;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #1e293b;
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  border-radius: 1.25rem;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  background: #cbd5e1;
}

.phone-mockup-main {
  transform: translateY(-0.4rem);
  z-index: 2;
}

.phone-mockup-secondary {
  margin-left: -1.3rem;
  transform: translateY(1rem);
  z-index: 1;
}

.app-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease-out, color 0.2s ease-out, background-color 0.2s ease-out;
}

.store-badge:hover {
  border-color: #ffffff;
  color: #1e3a8a;
  background: #ffffff;
}

.consultation-wrap {
  border: 1px solid var(--stroke);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: clamp(1.2rem, 2vw, 2rem);
}

.consultation-form .form-label {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.consultation-form .form-control {
  border-radius: 0.7rem;
  border-color: #cbd5e1;
  min-height: 2.75rem;
}

.consultation-form .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.22rem rgba(59, 130, 246, 0.15);
}

.consultation-form .form-check-label {
  color: #475569;
  font-size: 0.9rem;
}

.consultation-form .form-check-label a {
  color: #1d4ed8;
}

.spam-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767.98px) {
  .feature-card .card-body,
  .pricing-card-body,
  .timeline-item {
    padding: 1.1rem 1rem;
  }

  .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    margin-left: 0;
    margin-right: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .pricing-grid > [class*="col-"] {
    flex: 0 0 86%;
    max-width: 86%;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  .app-mockups {
    min-height: 330px;
  }
}

.timeline-item {
  padding: 1.35rem;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.timeline-item h3 {
  color: #1e3a8a;
}

.navbar .nav-link {
  white-space: nowrap;
  color: #334155;
  font-weight: 500;
}

.nav-auth-actions .btn {
  white-space: nowrap;
}

.navbar .nav-link:hover {
  color: #1d4ed8;
}

.navbar {
  backdrop-filter: saturate(140%) blur(7px);
  background: rgba(255, 255, 255, 0.9) !important;
}

.navbar .container.navbar-main {
  max-width: var(--layout-content-max);
}

@media (min-width: 992px) {
  body.saas-ui main > section > .container,
  body.saas-ui main > .container,
  body.saas-ui > header.hero-section > .container,
  body.saas-ui .site-footer > .container {
    max-width: var(--layout-content-max);
  }

  .navbar-main {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .nav-desktop-layout {
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
  }

  .nav-desktop-center .navbar-nav {
    flex-direction: row;
    gap: 0.5rem;
  }

  .navbar-compact {
    min-height: 50px;
    height: 50px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar-compact > .container {
    min-height: 50px;
    align-items: center;
  }

  .navbar-compact .navbar-brand {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .navbar-compact .navbar-nav .nav-link {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    font-size: 0.9rem;
  }

  .navbar-compact .btn-register {
    padding: 0.28rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.25;
    width: auto;
  }

  .navbar-compact .btn-login {
    padding: 0.28rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.25;
  }

  /* Ноутбук на всю правую колонку — правый край с контейнером навигации */
  body.saas-ui > header.hero-section .hero-laptop {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }

  body.saas-ui > header.hero-section .hero-img {
    max-height: min(60vh, 580px);
  }

  body.saas-ui > header.hero-section > .container.section-padding {
    min-height: clamp(24rem, 58vh, 760px);
  }
}

.hero-media {
  line-height: 0;
  width: 100%;
}

.hero-laptop {
  max-width: min(36rem, 100%);
  margin-inline: auto;
}

.hero-laptop-shell {
  filter: drop-shadow(0 1.25rem 2.75rem rgba(15, 23, 42, 0.42));
}

.hero-laptop-bezel {
  border-radius: 0.95rem 0.95rem 0.2rem 0.2rem;
  padding: 0.5rem 0.55rem 0.22rem;
  background: linear-gradient(160deg, #334155, #1e293b 42%, #0f172a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.hero-laptop-screen {
  border-radius: 0.4rem;
  overflow: hidden;
  background: #0f172a;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.hero-laptop-hinge {
  height: 0.24rem;
  margin: 0 10%;
  border-radius: 0 0 0.2rem 0.2rem;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-laptop-base {
  height: 0.85rem;
  margin: -0.06rem -3.5% 0;
  border-radius: 0 0 0.85rem 0.85rem;
  background: linear-gradient(180deg, #273549, #0f172a);
  box-shadow:
    0 0.5rem 1.25rem rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(48vh, 400px);
  height: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
}

.hero-utp {
  max-width: 100%;
}

.hero-utp-line {
  display: block;
}

.partners-hero-title {
  line-height: 1.12;
}

.hero-pills {
  max-width: 42rem;
  margin-bottom: 2rem !important;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
  backdrop-filter: blur(5px);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.hero-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(147, 197, 253, 0.18);
  flex: 0 0 auto;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta .btn {
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
}

.hero-cta .btn-light {
  color: #1e3a8a;
  background: #ffffff;
  border-color: #ffffff;
}

.hero-cta .btn-light:hover {
  background: #eff6ff;
  border-color: #eff6ff;
}

.hero-cta .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.04);
}

.hero-cta .btn-outline-light:hover {
  color: #1e3a8a;
  background: #ffffff;
  border-color: #ffffff;
}

.btn {
  border-radius: 0.7rem;
  font-weight: 600;
}

p,
li {
  font-weight: 400;
}

.lead {
  font-weight: 400;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.36);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  color: #1e3a8a;
  background: #fff;
  border-color: #fff;
}

footer {
  border-top: 1px solid var(--stroke) !important;
}

.site-footer {
  font-size: 0.9rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.footer-nav li {
  margin-bottom: 0.45rem;
}

.footer-nav li:last-child {
  margin-bottom: 0;
}

.footer-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-nav a:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  border-color: var(--stroke) !important;
}

.footer-copy {
  font-size: 0.82rem;
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .navbar .btn {
    width: 100%;
  }

  .navbar .navbar-nav .nav-link {
    white-space: normal;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    line-height: 1.35;
  }
}

@media (min-width: 992px) {
  .hero-utp {
    white-space: normal;
    /* Две nowrap-строки должны помещаться в col-lg-6 */
    font-size: clamp(1.2rem, 1.05rem + 1.35vw, 2.35rem);
    line-height: 1.1;
  }

  body.saas-ui > header.hero-section .hero-utp-line {
    white-space: nowrap;
  }

  .partners-hero-title {
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding-top: clamp(3.1rem, 9vw, 4.25rem);
    padding-bottom: clamp(3.1rem, 9vw, 4.25rem);
  }

  main .row.g-3,
  main .row.g-4 {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 1.35rem;
  }

  .section-lead {
    margin-bottom: 2.35rem;
  }

  .section-kicker {
    margin-bottom: 0.85rem;
  }

  h2.h1,
  .h1.mb-3 {
    margin-bottom: 1.15rem !important;
  }

  .pricing-header.mb-4 {
    margin-bottom: 1.75rem !important;
  }

  .feature-card .card-body {
    padding: 1.4rem 1.2rem;
  }

  .ui-card .card-body {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .site-footer {
    padding-top: 3.5rem !important;
    padding-bottom: max(3.5rem, calc(env(safe-area-inset-bottom, 0px) + 2rem)) !important;
  }

  .footer-col-title {
    margin-bottom: 0.95rem;
  }

  .footer-nav li {
    margin-bottom: 0.55rem;
  }

  .footer-bottom {
    margin-top: 2rem !important;
    padding-top: 1.75rem !important;
  }

  .lead.mb-4 {
    margin-bottom: 1.35rem !important;
  }

  .hero-pills.mb-4 {
    margin-bottom: 1.35rem !important;
  }

  .timeline-item {
    padding: 1.25rem 1.1rem;
  }

  h1.display-5 {
    font-size: clamp(1.95rem, 9vw, 2.35rem);
  }

  .hero-utp {
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem !important;
  }

  .partners-hero-title {
    font-size: clamp(1.2rem, 5.3vw, 1.55rem) !important;
    letter-spacing: -0.015em;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-cta .btn {
    font-size: 0.86rem;
    padding: 0.5rem 0.85rem;
  }

  .section-kicker {
    font-size: 0.68rem;
    padding: 0.22rem 0.58rem;
    margin-bottom: 0.6rem;
  }

  .hero-pill {
    font-size: 0.79rem;
    line-height: 1.25;
    padding: 0.35rem 0.62rem;
  }

  .hero-pills {
    gap: 0.45rem !important;
  }

  .hero-laptop {
    max-width: 100%;
  }

  .hero-laptop-bezel {
    border-radius: 0.75rem 0.75rem 0.15rem 0.15rem;
    padding: 0.4rem 0.45rem 0.16rem;
  }

  .hero-laptop-screen {
    border-radius: 0.3rem;
  }

  .hero-laptop-base {
    height: 0.7rem;
    margin-top: -0.05rem;
    border-radius: 0 0 0.65rem 0.65rem;
  }

  .hero-img {
    max-height: min(42vh, 320px);
  }

  .pricing-switch {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    column-gap: 0.55rem;
    font-size: 0.86rem;
  }

  .pricing-title {
    text-align: left;
    font-size: 1.52rem;
  }

  .pricing-header {
    text-align: left;
  }

  .app-mockups {
    min-height: 360px;
  }

  .phone-mockup {
    width: min(210px, 64vw);
  }

  .phone-mockup-secondary {
    margin-left: -1.15rem;
    transform: translateY(0.75rem);
  }

  .app-downloads {
    gap: 0.45rem;
  }

  .store-badge {
    font-size: 0.82rem;
    min-height: 2.15rem;
    padding: 0.45rem 0.7rem;
    width: 100%;
  }

  .consultation-wrap {
    padding: 1.35rem 1.15rem;
    border-radius: 0.95rem;
  }

  .consultation-form .form-check-label {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .h1,
  h2.h1 {
    font-size: clamp(1.45rem, 6.6vw, 1.85rem);
    line-height: 1.2;
  }

  .h4 {
    font-size: 1.22rem;
    line-height: 1.28;
  }

  .h5,
  h3.h5 {
    font-size: 1.05rem;
    line-height: 1.32;
  }

  .section-lead,
  .text-secondary {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .pricing-desc,
  .pricing-month,
  .pricing-specs li,
  .pricing-extra,
  .small {
    font-size: 0.88rem !important;
    line-height: 1.45;
  }
}

@media (max-width: 991.98px) {
  :root {
    /* Одинаковый отступ слева и справа: берём максимум из safe-area, чтобы выровнять поля */
    --mobile-content-inline: max(
      1.15rem,
      env(safe-area-inset-left, 0px),
      env(safe-area-inset-right, 0px)
    );
  }

  body.saas-ui .container {
    padding-left: var(--mobile-content-inline);
    padding-right: var(--mobile-content-inline);
  }

  .navbar-compact {
    min-height: 40px;
    height: auto;
  }

  .navbar.sticky-top {
    z-index: 1200;
  }

  .navbar {
    /* Убираем конфликт контекстов наложения на мобильных */
    backdrop-filter: none;
  }

  .navbar-compact > .container {
    min-height: 40px;
    padding-top: 0.16rem !important;
    padding-bottom: 0.16rem !important;
    align-items: center;
  }

  .navbar-compact .navbar-brand {
    font-size: 0.98rem;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
  }

  .navbar-compact .navbar-toggler {
    padding: 0.14rem 0.38rem;
    font-size: 0.9rem;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-compact .navbar-toggler-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .navbar-compact .offcanvas {
    width: min(86vw, 360px);
    border-left: 1px solid var(--stroke);
    background: #ffffff;
    z-index: 2000;
  }

  .offcanvas-backdrop.show {
    z-index: 1990;
  }

  .navbar-compact .offcanvas-header {
    padding: 0.85rem 1rem 0.7rem;
    border-bottom: 1px solid var(--stroke);
  }

  .navbar-compact .offcanvas-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
  }

  .navbar-compact .offcanvas-body {
    padding: 0.75rem 1rem 1rem;
  }

  .navbar-compact .offcanvas-body .navbar-nav {
    margin-bottom: 0.65rem !important;
  }

  .navbar-compact .offcanvas-body .nav-link {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .nav-auth-actions {
    display: grid !important;
    gap: 0.5rem !important;
  }

  .nav-auth-actions .btn {
    width: 100%;
    min-height: 2.65rem;
  }

  body.saas-ui > header.hero-section > .container.section-padding {
    min-height: clamp(18rem, 56vh, 32rem);
    padding-top: clamp(2.35rem, 5vw, 3.75rem) !important;
    padding-bottom: clamp(2.35rem, 5vw, 3.75rem) !important;
    padding-inline: var(--mobile-content-inline) !important;
  }

  body.saas-ui > header.hero-section .hero-laptop-base {
    margin-left: 0;
    margin-right: 0;
  }

  /* Фиксируем симметрию полей внутри hero на мобильных */
  body.saas-ui > header.hero-section > .container.section-padding > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Колонки грида не сжимаются ниже ширины контента — убираем горизонтальный переполнение */
  body.saas-ui > header.hero-section > .container.section-padding > .row > [class*="col-"] {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.saas-ui > header.hero-section > .container.section-padding > .row.align-items-center {
    align-items: stretch;
  }

  /* Заголовок hero всегда в 2 строки на мобильных */
  body.saas-ui > header.hero-section .hero-utp {
    font-size: clamp(1.4rem, 6.3vw, 2.25rem) !important;
    line-height: 1.08;
    letter-spacing: -0.018em;
  }

  body.saas-ui > header.hero-section .hero-utp-line {
    white-space: nowrap;
  }

  .hero-section .display-5 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-pills {
    max-width: 100%;
    column-gap: 0.65rem !important;
    row-gap: 0.65rem !important;
  }

  /* На главной: одинаковый вертикальный ритм
     (подзаголовок -> пилсы и пилсы -> ноутбук) */
  header.hero-section .hero-pills.hero-pills-main.mb-4 {
    margin-bottom: 0 !important;
  }

  header.hero-section .hero-pills.hero-pills-main + .hero-cta {
    margin-top: var(--bs-gutter-y, 1.5rem);
  }

  /* Пилсы на мобильной: естественная ширина по тексту, без сетки */
  header.hero-section .hero-pills .hero-pill {
    flex: 0 0 auto;
    max-width: none;
    min-width: auto;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  /* Главная: порядок пилсов на мобильной по ТЗ */
  header.hero-section .hero-pills-main .hero-pill:nth-child(1) { order: 1; }
  header.hero-section .hero-pills-main .hero-pill:nth-child(3) { order: 2; }
  header.hero-section .hero-pills-main .hero-pill:nth-child(4) { order: 3; }
  header.hero-section .hero-pills-main .hero-pill:nth-child(5) { order: 4; }
  header.hero-section .hero-pills-main .hero-pill:nth-child(2) { order: 5; }
}

@media (max-width: 390px) {
  .pricing-grid > [class*="col-"] {
    flex: 0 0 92%;
    max-width: 92%;
  }

  .pricing-specs li {
    font-size: 0.88rem;
    gap: 0.5rem;
  }

  .pricing-card-body {
    padding: 1rem 0.9rem;
  }

  .phone-mockup {
    width: min(188px, 66vw);
    padding: 0.45rem 0.36rem 0.5rem;
  }

  .phone-mockup-secondary {
    margin-left: -0.8rem;
  }

  .hero-cta .btn,
  .btn-lg {
    min-height: 2.85rem;
  }

  header.hero-section .hero-pills.hero-pills-main + .hero-cta {
    margin-top: var(--bs-gutter-y, 1.5rem);
  }
}

@media (max-width: 360px) {
  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .lead {
    font-size: 0.96rem;
  }

  .consultation-form .form-label {
    font-size: 0.84rem;
  }

  .consultation-form .form-control {
    min-height: 2.55rem;
  }

  .partners-hero-title {
    font-size: clamp(1.08rem, 4.95vw, 1.35rem) !important;
  }
}

@media (max-width: 320px) {
  .hero-cta .btn,
  .store-badge,
  .nav-auth-actions .btn {
    font-size: 0.78rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .hero-section .display-5 {
    font-size: 1.32rem;
  }

  .partners-hero-title {
    font-size: 0.98rem !important;
    line-height: 1.16;
  }

  .hero-img {
    max-height: min(38vh, 280px);
  }
}
