:root {
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --metal: #2a2a2a;
  --lime: #c6e000;
  --lime-2: #d4f24a;
  --line: #e4e4e2;
  --on-lime: #141414;
  --page: 1120px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --nav-h: 140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

h1,
h2,
h3,
.eyebrow,
.tag,
.stats strong,
.reasons span,
.steps span {
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
}

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

a {
  color: inherit;
}

/* Одна колонка по центру на любом мониторе */
.page-pad {
  padding-left: max(var(--gutter), calc(50% - var(--page) / 2), env(safe-area-inset-left));
  padding-right: max(var(--gutter), calc(50% - var(--page) / 2), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 30;
  background: var(--lime);
  padding: 8px 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
  padding-top: 10px;
  padding-bottom: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: max-content;
  max-width: min(230px, calc(100vw - 100px));
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand img {
  display: block;
  height: 104px;
  width: auto;
  max-width: min(230px, calc(100vw - 100px));
  object-fit: contain;
  object-position: center center;
}

.brand-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  gap: 5px;
  margin: 0;
  padding: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.brand-slogan::before,
.brand-slogan::after {
  content: "";
  height: 2px;
  flex: 1 1 6px;
  min-width: 6px;
}

.brand-slogan::before {
  background: linear-gradient(90deg, var(--lime), var(--ink));
}

.brand-slogan::after {
  background: linear-gradient(90deg, var(--ink), var(--lime));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(14px, 2vw, 28px);
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--on-lime) !important;
  background: var(--lime);
  padding: 10px 16px;
  letter-spacing: 0.08em !important;
}

.menu-btn {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 7px 0;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--on-lime);
  background: var(--lime);
  text-align: center;
  margin-top: 8px;
  padding: 14px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 88px);
  background: var(--ink);
  color: #f5f5f3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -38deg,
    transparent,
    transparent 42px,
    rgba(198, 224, 0, 0.06) 42px,
    rgba(198, 224, 0, 0.06) 43px
  );
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lime);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--lime);
}

.lede {
  max-width: 540px;
  margin: 24px 0 32px;
  font-weight: 300;
  color: #c8c8c4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  margin: 36px 0 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8a8a88;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
  border-color: var(--lime);
}

.btn-lime:hover {
  background: var(--lime-2);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 28px 16px;
  text-align: center;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.stats div:first-child {
  border-left: 0;
}

.stats strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.section-dark {
  background: var(--metal);
  color: #f3f3f1;
}

.section-dark .eyebrow {
  color: var(--lime);
}

.section-dark h2,
.section-dark h3,
.section-dark summary {
  color: #fff;
}

.section-dark p {
  color: #c5c5c2;
}

.section-lime {
  background: var(--paper-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.about-grid p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1px;
  background: rgba(198, 224, 0, 0.22);
  border: 1px solid rgba(198, 224, 0, 0.22);
}

.cards article {
  background: var(--metal);
  padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2vw, 24px);
  min-width: 0;
}

.cards-light {
  background: var(--line);
  border-color: var(--line);
}

.cards-light article {
  background: var(--paper);
}

.cards p {
  margin: 0;
}

/* 5 карточек: 3 сверху, 2 по центру снизу */
.cards-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cards-5 article {
  grid-column: span 2;
}

.cards-5 article:nth-child(4) {
  grid-column: 2 / span 2;
}

.cards-5 article:nth-child(5) {
  grid-column: 4 / span 2;
}

.cards-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-lead {
  margin: 14px 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-weight: 300;
}

.section-dark .section-lead {
  color: #c5c5c2;
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 28px) clamp(18px, 2vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--lime);
}

.case-tag {
  margin: 0 0 12px;
  font-family: Syne, Outfit, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.case h3 {
  margin-bottom: 14px;
  color: var(--ink);
}

.case p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.case p:last-of-type {
  margin-bottom: 0;
}

.case-facts {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.case-facts li {
  font-size: 13px;
  color: var(--muted);
}

.case-facts strong {
  display: block;
  color: var(--ink);
  font-family: Syne, Outfit, sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.reasons,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reasons li,
.steps li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.reasons span,
.steps span {
  color: var(--lime);
  font-size: 22px;
}

.reasons p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-family: Syne, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding-right: 28px;
}

.faq p {
  margin: 10px 0 0;
  max-width: 680px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: var(--paper-2);
}

.contact-copy p {
  color: var(--muted);
}

.messengers {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  overflow: visible;
  line-height: 0;
  transition: transform 0.2s ease;
}

.icon-link img {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
}

.icon-link:hover {
  transform: translateY(-4px) scale(1.06);
}

.contact-mail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
  font-size: 14px;
}

.contact-mail a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 28px);
  min-width: 0;
}

.form-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 0;
}

.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 1px solid var(--ink);
}

.form-submit {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  letter-spacing: 0.06em;
  white-space: normal;
  flex-shrink: 0;
}

.opt {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.form label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}

.check input {
  width: auto;
  max-width: none;
  margin-top: 3px;
  flex: 0 0 auto;
}

.check span {
  flex: 1 1 auto;
  min-width: 1px;
  white-space: normal;
  overflow-wrap: break-word;
}

.form-status {
  margin: 0;
  min-height: 1.3em;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.form-status.ok {
  color: #2f6a32;
}

.form-status.err {
  color: #9a2b2b;
}

.footer {
  padding-top: 36px;
  padding-bottom: max(88px, env(safe-area-inset-bottom));
  border-top: 3px solid var(--lime);
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  max-width: 560px;
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.soc svg {
  width: 15px;
  height: 15px;
  display: block;
}

.soc-ig:hover {
  background: #e4405f;
  border-color: #e4405f;
  color: #fff;
}

.soc-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.soc-in:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

.soc-x:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.soc-yt:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

/* ---- Планшет (вертикальный) и небольшие ноутбуки ---- */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .brand img {
    height: 96px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats div:nth-child(odd) {
    border-left: 0;
  }

  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .about-grid,
  .cards-6 {
    grid-template-columns: 1fr 1fr;
  }

  .cases {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

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

  .cards-5 article,
  .cards-5 article:nth-child(4),
  .cards-5 article:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }

  .cards-5 article:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 1px) / 2);
    justify-self: center;
  }
}

/* ---- Телефон ---- */
@media (max-width: 639px) {
  :root {
    --nav-h: 128px;
  }

  .brand {
    max-width: calc(100vw - 92px);
  }

  .brand img {
    height: 86px;
  }

  .about-grid,
  .cards-5,
  .cards-6,
  .cases,
  .contact {
    grid-template-columns: 1fr;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .cards-5 article,
  .cards-5 article:nth-child(4),
  .cards-5 article:nth-child(5),
  .cards-5 article:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .reasons li,
  .steps li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .tag {
    letter-spacing: 0.16em;
  }

  h2 br {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav-cta {
    padding: 8px 12px;
  }

  .stats strong {
    font-size: 22px;
  }
}

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9999;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  overflow: visible;
  animation: wa-bob 2.4s ease-in-out infinite;
}

.wa-float svg {
  width: 64px;
  height: 64px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.wa-float-pulse,
.wa-float-pulse-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

.wa-float-pulse-2 {
  animation-delay: 0.7s;
}

.wa-float:hover {
  animation: none;
  transform: scale(1.06);
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@keyframes wa-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float-pulse,
  .wa-float-pulse-2 {
    animation: none;
  }
}
