:root {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --surface: #0f2744;
  --surface-light: #163a63;
  --accent: #00a3c9;
  --accent-hover: #0088ab;
  --accent-soft: rgba(0, 163, 201, 0.12);
  --gold: #c9a227;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --border: #dde5f0;
  --shadow: 0 18px 50px rgba(15, 39, 68, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --font: "Manrope", system-ui, sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(15, 39, 68, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__wordmark {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo__data {
  display: flex;
  align-items: center;
  padding: 7px 8px;
  background: #fff;
  color: var(--surface);
}

.logo__doc {
  display: flex;
  align-items: center;
  padding: 7px 8px;
  background: var(--surface);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.header__phone {
  font-weight: 700;
  color: var(--surface);
  white-space: nowrap;
  line-height: 1.2;
}

.messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.messenger {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.messenger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.messenger:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.messenger--viber {
  background: #7360f2;
}

.messenger--telegram {
  background: #26a5e4;
}

.messenger--whatsapp {
  background: #25d366;
}

.messengers--contact {
  gap: 8px;
  flex-wrap: wrap;
}

.messengers--contact .messenger {
  width: auto;
  height: auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--surface);
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 88px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 163, 201, 0.18), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(201, 162, 39, 0.12), transparent 30%),
    linear-gradient(180deg, #eaf1fb 0%, var(--bg) 100%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.08);
  color: var(--surface-light);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--surface);
}

.hero__lead {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__lead a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 163, 201, 0.35);
}

.hero__lead a:hover {
  border-bottom-color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--surface);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--full {
  width: 100%;
}

.hero__stats {
  display: grid;
  gap: 16px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.stat-card__value {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--surface);
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 24px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.step__num {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface), var(--accent));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.step__body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.step__body p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.step__body p:last-child {
  margin-bottom: 0;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.about__text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.about__text p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.about__list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.about__list li {
  margin-bottom: 8px;
}

.about__list a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 163, 201, 0.35);
}

.about__list a:hover {
  border-bottom-color: var(--accent);
}

.about__visual {
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.about__panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about__panel--accent {
  background: linear-gradient(135deg, var(--surface), var(--surface-light));
  color: #fff;
  border: 0;
}

.about__panel h3 {
  margin: 0 0 10px;
}

.about__panel p {
  margin: 0;
  opacity: 0.9;
}

.about__panel--accent .clients-grid {
  margin-top: 20px;
  width: 100%;
}

.clients-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  box-sizing: border-box;
  transition: transform var(--transition), box-shadow var(--transition);
}

.client-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.client-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.92;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.client-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

.client-logo--text {
  padding: 8px;
}

.client-logo__label {
  display: block;
  max-width: 100%;
  color: var(--surface);
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .client-logo {
    max-width: 100px;
    padding: 12px;
    justify-self: start;
  }
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.pricing-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pricing-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.pricing-card__class {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card__price {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--surface);
}

.pricing-card__price span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: #f8fafc;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table td:not(:first-child) {
  text-align: center;
  font-weight: 700;
  width: 110px;
}

.pricing-table .yes {
  color: #15803d;
}

.pricing-table .no {
  color: #b91c1c;
}

.pricing-table .partial {
  color: var(--gold);
}

.pricing-note {
  margin: 16px 0 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.excluded {
  padding: 24px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px dashed var(--border);
}

.excluded h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.excluded ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.excluded li {
  margin-bottom: 6px;
}

/* CTA / Contact */
.cta {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #eaf1fb 100%);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cta__content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta__content > p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

a.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-item__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-item--messengers .contact-item__label {
  margin-bottom: 4px;
}

.contact-item__value {
  font-weight: 700;
  color: var(--surface);
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-form label span {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  margin: 14px 0 0;
  color: #15803d;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 36px 0;
  background: var(--surface);
  color: rgba(255, 255, 255, 0.82);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer__brand p {
  margin: 10px 0 0;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer .logo__wordmark {
  border-color: #fff;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner,
  .about,
  .cta__inner {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards--3,
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    margin-inline: auto;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
  }

  .header__contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero__stats,
  .cards--3,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step__num {
    width: 56px;
    height: 56px;
  }
}
