/*
 * 1ERP landing page — sits on top of `onefit.css`.
 * Mobile-first: defaults are phone-sized, then progressive @min-width breakpoints.
 */

/* ---------- nav (landing-specific) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--text);
}
.nav__logo .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.nav__links { display: none; }
.nav__cta { display: none; }

.nav__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (min-width: 720px) { .nav__tools { gap: 12px; } }
@media (min-width: 480px) { .nav__tools .nav__cta { display: inline-flex; } }

.nav.is-scrolled {
  box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
  background: rgba(255, 255, 255, .94);
}

@media (min-width: 720px) {
  .nav__inner { padding: 14px 32px; gap: 24px; }
  .nav__logo { font-size: 20px; }
  .nav__links {
    display: flex;
    gap: 28px;
    margin: 0;
  }
  .nav__links a {
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    transition: color .15s;
  }
  .nav__links a:hover { color: var(--text); text-decoration: none; }
}

/* ---------- dropdowns (lang + login) ---------- */
.lang-switch, .login-switch { position: relative; }
.lang-toggle, .login-switch > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font: 600 13px/1 var(--font-sans);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover, .login-switch > button:hover { border-color: var(--text); color: var(--text); }
.lang-toggle .chev, .login-switch .chev {
  font-size: 9px;
  transition: transform .2s var(--ease);
}
.lang-switch.is-open .lang-toggle .chev,
.login-switch.is-open .chev { transform: rotate(180deg); }

.lang-menu, .login-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  list-style: none;
  margin: 0; padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.lang-switch.is-open .lang-menu,
.login-switch.is-open .login-menu { display: block; }
.lang-menu form { margin: 0; }
.lang-menu button,
.login-menu a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text);
  font: 500 14px/1 var(--font-sans);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s;
}
.lang-menu button:hover, .login-menu a:hover {
  background: var(--hover);
  text-decoration: none;
}
.lang-menu button.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------- arrow micro-animation on CTA ---------- */
.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; }
}
.contact-text .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.contact-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.contact-lead { font-size: 16px; color: var(--text-2); margin-bottom: 24px; }
.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-points li {
  font-size: 15px;
  color: var(--text-2);
  display: flex; gap: 10px; align-items: center;
}
.contact-points a { color: var(--text); font-weight: 600; }
.contact-points a:hover { color: var(--accent); text-decoration: none; }

.contact-form { display: grid; gap: 14px; }
.contact-form .btn { margin-top: 4px; }
.cf-result {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
}
.cf-result.is-ok  { background: var(--success-soft); color: var(--success); border: 1px solid rgba(34, 197, 94, .3); }
.cf-result.is-err { background: var(--danger-soft);  color: var(--danger);  border: 1px solid rgba(239, 68, 68, .3); }
.cf-fineprint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- scroll-triggered reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s var(--ease) var(--reveal-delay, 0s),
    transform .7s var(--ease) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__orb { animation: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding: 56px 0 64px;
}
@media (min-width: 720px) { .hero { padding: 80px 0 96px; } }
@media (min-width: 1024px) { .hero { padding: 120px 0 140px; } }

.hero__container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 720px) {
  .hero__container { padding: 0 32px; }
}
@media (min-width: 1024px) {
  .hero__container { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  animation: orbFloat 22s ease-in-out infinite;
}
.hero__orb--1 {
  width: 360px; height: 360px;
  background: var(--accent-tint);
  top: -120px; right: -80px;
}
.hero__orb--2 {
  width: 320px; height: 320px;
  background: var(--indigo-light);
  bottom: -80px; left: -100px;
  animation-delay: -7s;
}
.hero__orb--3 {
  width: 240px; height: 240px;
  background: var(--orange-tint);
  top: 40%; left: 35%;
  animation-delay: -14s;
}
@media (min-width: 720px) {
  .hero__orb--1 { width: 600px; height: 600px; top: -220px; right: -120px; }
  .hero__orb--2 { width: 460px; height: 460px; bottom: -160px; left: -120px; }
  .hero__orb--3 { width: 320px; height: 320px; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.05); }
  66%      { transform: translate(-50px, 40px) scale(.95); }
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 28px;
  line-height: 1.5;
}
@media (min-width: 720px) {
  .hero__lead { font-size: 19px; line-height: 1.55; }
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cta .btn--lg { width: 100%; }
@media (min-width: 480px) {
  .hero__cta .btn--lg { width: auto; }
}

/* ---------- mockup ---------- */
.mockup {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  transform: none;
  transition: transform .5s var(--ease);
}
@media (min-width: 1024px) {
  .mockup {
    border-radius: 20px;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  }
  .mockup:hover {
    transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
  }
}
.mockup__bar {
  height: 32px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) { .mockup__bar { height: 36px; padding: 0 14px; } }
.mockup__bar i {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #FF5F57;
}
@media (min-width: 720px) { .mockup__bar i { width: 11px; height: 11px; } }
.mockup__bar i:nth-child(2) { background: #FFBD2E; }
.mockup__bar i:nth-child(3) { background: #28C840; }
.mockup__bar span {
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--surface);
  font-size: 10px;
  color: var(--text-3);
  border: 1px solid var(--border);
}
@media (min-width: 720px) {
  .mockup__bar span { margin-left: 14px; padding: 4px 12px; font-size: 11px; }
}
.mockup__body {
  padding: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) { .mockup__body { padding: 18px; gap: 12px; } }
.mockup__kpi {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
@media (min-width: 720px) { .mockup__kpi { border-radius: 12px; padding: 14px 16px; } }
.mockup__kpi .v { font-size: 18px; font-weight: 800; }
@media (min-width: 720px) { .mockup__kpi .v { font-size: 22px; } }
.mockup__kpi .l {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}
@media (min-width: 720px) { .mockup__kpi .l { font-size: 11px; } }
.mockup__chart {
  grid-column: 1 / -1;
  height: 100px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: end;
  gap: 5px;
}
@media (min-width: 720px) { .mockup__chart { height: 120px; padding: 14px 16px; gap: 6px; border-radius: 12px; } }
.mockup__chart i {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), var(--orange));
  border-radius: 4px 4px 0 0;
}
.mockup__list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}
.mockup__row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
@media (min-width: 720px) { .mockup__row { padding: 10px 14px; } }
.mockup__row .dot { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); flex-shrink: 0; }
@media (min-width: 720px) { .mockup__row .dot { width: 28px; height: 28px; } }
.mockup__row .ttl { font-size: 12px; font-weight: 600; }
@media (min-width: 720px) { .mockup__row .ttl { font-size: 13px; } }
.mockup__row .sub { font-size: 10px; color: var(--text-3); }
@media (min-width: 720px) { .mockup__row .sub { font-size: 11px; } }

/* ---------- sections ---------- */
section {
  padding: 56px 0;
}
@media (min-width: 720px) { section { padding: 80px 0; } }
@media (min-width: 1024px) { section { padding: 120px 0; } }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .section { padding: 0 32px; } }

.section--alt { background: var(--surface); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
@media (min-width: 720px) { .section-header { margin-bottom: 56px; } }

.section-header .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
@media (min-width: 720px) {
  .section-header .tag { font-size: 13px; margin-bottom: 18px; }
}
.section-header h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.section-header p {
  font-size: 16px;
  max-width: 56ch;
  margin: 14px auto 0;
  color: var(--text-2);
}
@media (min-width: 720px) {
  .section-header p { font-size: 18px; margin-top: 16px; }
}

/* ---------- how-it-works ---------- */
.how {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.how__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
}
@media (min-width: 720px) { .how__step { padding: 28px; } }
.how__step .num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.how__step h3 { margin-bottom: 8px; font-size: 20px; }
@media (min-width: 720px) { .how__step h3 { font-size: 22px; } }

/* ---------- features ---------- */
.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .features { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1020px) { .features { grid-template-columns: 1fr 1fr 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (min-width: 720px) { .feature { padding: 28px; } }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
@media (min-width: 720px) {
  .feature .icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 18px; }
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
@media (min-width: 720px) { .feature h3 { font-size: 20px; margin-bottom: 8px; } }
.feature p { font-size: 14.5px; }
@media (min-width: 720px) { .feature p { font-size: 15px; } }

/* ---------- white-label showcase ---------- */
.wl {
  background: var(--text);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) { .wl { border-radius: var(--r-2xl); padding: 56px 48px; } }
@media (min-width: 1024px) { .wl { padding: 72px; } }
.wl h2 {
  color: #fff;
  max-width: 18ch;
  font-size: clamp(26px, 4vw, 48px);
}
.wl > p {
  color: rgba(255, 255, 255, .75);
  max-width: 56ch;
  margin-top: 16px;
  font-size: 16px;
}
@media (min-width: 720px) { .wl > p { font-size: 18px; } }
.wl__brands {
  margin-top: 32px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
  .wl__brands { margin-top: 48px; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
.wl__chip {
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--p, #FF385C), var(--a, #F97316));
  box-shadow: var(--shadow-lg);
  font-size: 15px;
}
@media (min-width: 720px) {
  .wl__chip { border-radius: 18px; padding: 20px; font-size: 16px; }
}
.wl__chip .dom {
  font-size: 11px;
  opacity: .8;
  font-weight: 500;
  margin-top: 4px;
}
@media (min-width: 720px) { .wl__chip .dom { font-size: 12px; } }

/* ---------- pricing ---------- */
.pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 720px) { .plan { padding: 32px; gap: 20px; } }
.plan--featured {
  border-color: var(--text);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.plan--featured::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.plan h3 { font-size: 18px; }
.plan .price {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.03em;
}
@media (min-width: 720px) { .plan .price { font-size: 40px; } }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text-3); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan li {
  padding-left: 26px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-2);
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- faq ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
@media (min-width: 720px) { .faq { gap: 12px; } }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: box-shadow .15s;
}
@media (min-width: 720px) { details { padding: 18px 22px; } }
details[open] { box-shadow: var(--shadow-md); }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
@media (min-width: 720px) { summary { font-size: 17px; } }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-3);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px 20px;
}
@media (min-width: 720px) { .final-cta { border-radius: var(--r-2xl); padding: 72px 32px; } }
.final-cta h2 {
  color: #fff;
  margin: 0 auto 14px;
  max-width: 18ch;
  font-size: clamp(28px, 5vw, 48px);
}
.final-cta > p {
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 auto 28px;
}
@media (min-width: 720px) { .final-cta > p { font-size: 18px; margin-bottom: 32px; } }
.final-cta .btn { background: #fff; color: var(--text); }
.final-cta .btn:hover { filter: none; transform: translateY(-1px); }

/* ---------- footer ---------- */
.foot-wrap {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
@media (min-width: 720px) { .foot-wrap { padding: 56px 0 32px; } }
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
  .foot { padding: 0 32px; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.foot__brand { grid-column: 1 / -1; }
@media (min-width: 720px) { .foot__brand { grid-column: auto; } }
.foot h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin: 0 0 12px;
  font-weight: 700;
}
@media (min-width: 720px) { .foot h4 { font-size: 12px; margin-bottom: 14px; } }
.foot a {
  display: block;
  color: var(--text-2);
  padding: 4px 0;
  font-size: 14px;
}
.foot a:hover { color: var(--text); }
.foot__brand p {
  font-size: 14px;
  max-width: 36ch;
  margin-top: 12px;
}
.foot__bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 20px 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}
@media (min-width: 720px) {
  .foot__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 24px 32px 0;
    gap: 12px;
  }
}
