:root {
  --ink: #0f172a;
  --muted: #68749a;
  --purple: #6c4dff;
  --purple2: #7c5cff;
  --purple-light: #a788ff;
  --purple-bg: #ede9ff;
  --mint: #35d6b0;
  --mint-bg: #e6f9f4;
  --sky: #f3f6ff;
  --neutral: #e2e8f0;
  --line: #e2e8f0;
  --soft: #f7f9ff;
  --warn-bg: #fff4e8;
  --error-bg: #ffe9ec;
  --shadow: 0 10px 30px rgba(29, 43, 91, 0.07);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

/* Header */
.header {
  height: 72px;
  border-bottom: 1px solid #edf0f7;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 225px;
}

.logo-image {
  display: block;
  width: 210px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.menu {
  display: flex;
  gap: 22px;
  flex: 1;
  align-items: center;
}

.menu a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--purple);
}

.top-search {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 13px;
  color: #8d97b0;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.login {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 19px;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(108, 77, 255, 0.22);
  transition: 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 25px rgba(108, 77, 255, 0.28);
}

.btn.light {
  background: #f2efff;
  color: var(--purple);
  box-shadow: none;
}

.nav-toggle,
.icon-search {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 72px 0 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-panel {
  background: #fff;
  width: min(360px, 100%);
  margin-left: auto;
  height: 100%;
  padding: 24px;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(12px);
  transition: transform 0.2s ease;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer .menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.mobile-drawer .menu a {
  font-size: 16px;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* Hero */
.hero {
  background: linear-gradient(115deg, #fff 0%, #f8faff 48%, var(--sky) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 520px;
}

.hero-copy {
  padding: 54px 0 40px;
  position: relative;
  z-index: 3;
}

.badge {
  display: inline-block;
  background: var(--purple-bg);
  color: var(--purple);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: -2.5px;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero h1 .violet {
  color: var(--purple);
}

.lead {
  font-size: 16px;
  line-height: 1.4;
  color: #59668a;
  margin: 0 0 5px;
  max-width: 510px;
}

.hero-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5f3;
  border-radius: 15px;
  padding: 5px;
  margin-top: 20px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.hero-form input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 12px;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
}

.hero-form .btn {
  white-space: nowrap;
}

.hint {
  font-size: 11px;
  color: #8993ab;
  margin: 6px 0 0 12px;
  line-height: 1.3;
}

.hero-art {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
  position: relative;
}

.hero-art img {
  width: min(100%, 560px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right bottom;
}

/* Sections */
section.content {
  padding: 24px 0;
}

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

.section-title {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 800;
}

.section-link {
  font-size: 12px;
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cat {
  min-height: 83px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cat:hover {
  border-color: var(--purple-light);
  transform: translateY(-1px);
}

.cat-icon-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 36px;
}

.cat strong {
  font-size: 13px;
  line-height: 1.2;
  display: block;
}

.cat small {
  display: block;
  color: #7b86a4;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}

.extra {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.extra.open {
  display: grid;
}

/* Example */
.example {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(110deg, #fbfdff, #f7f4ff);
  padding: 14px;
}

.example-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.1fr;
  gap: 14px;
  align-items: center;
}

.ozon {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ozon-logo {
  width: 62px;
  height: 62px;
  border-radius: 13px;
  background: #1475ef;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  flex: none;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.example p {
  margin: 0;
  color: #7180a0;
  font-size: 12px;
  line-height: 1.35;
}

.chance {
  background: var(--mint-bg);
  border: 1px solid #c9f1e2;
  border-radius: 13px;
  padding: 14px;
}

.chance-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chance-art {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

.chance small {
  font-size: 11px;
  color: #7785a1;
}

.chance strong {
  display: block;
  color: #11ad7b;
  font-size: 20px;
  margin: 1px 0;
}

.criteria {
  font-size: 12px;
  line-height: 1.8;
  color: #667497;
}

.criteria div::before {
  content: "✓";
  color: var(--mint);
  font-weight: 900;
  margin-right: 7px;
}

/* Tariffs */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tariff {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  padding: 19px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.tariff.recommended {
  border: 1.5px solid var(--purple-light);
  box-shadow: 0 12px 30px rgba(108, 77, 255, 0.15);
}

.ribbon {
  position: absolute;
  left: 14px;
  top: -11px;
  background: var(--purple);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.tariff h3 {
  font-size: 16px;
  margin: 0 0 2px;
}

.tariff .sub {
  font-size: 12px;
  color: #7b86a4;
}

.price {
  font-size: 28px;
  font-weight: 800;
  margin: 13px 0 9px;
  letter-spacing: -1px;
}

.tariff ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  color: #5d698d;
  font-size: 12px;
  line-height: 1.75;
  flex: 1;
}

.tariff li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 900;
  margin-right: 7px;
}

.tariff .btn {
  width: 100%;
  margin-top: auto;
}

/* CTA / footer */
.cta {
  margin-top: 8px;
  border-radius: 18px;
  min-height: 138px;
  padding: 23px 28px;
  background: linear-gradient(105deg, var(--purple-bg), var(--sky));
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.cta h2 {
  font-size: 27px;
  line-height: 1.05;
  margin: 0 0 7px;
  letter-spacing: -1px;
}

.cta p {
  font-size: 13px;
  color: #657296;
  line-height: 1.4;
  max-width: 440px;
  margin: 0 0 12px;
}

.cta-art {
  width: 43%;
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
}

.cta-art img {
  height: 100%;
  width: auto;
  min-width: 280px;
  max-height: 180px;
  object-fit: cover;
  object-position: 70% 55%;
}

.footer {
  margin-top: 18px;
  padding: 25px 0 20px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 24px;
}

.footer-logo-image {
  display: block;
  width: 180px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 6px;
}

.footer h4 {
  font-size: 12px;
  margin: 0 0 8px;
}

.footer a,
.footer p {
  font-size: 12px;
  color: #7b86a4;
  line-height: 1.65;
  margin: 0;
  text-decoration: none;
  display: block;
}

.footer a:hover {
  color: var(--purple);
}

.copy {
  margin-top: 17px;
  font-size: 11px;
  color: #9aa3b7;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 60, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  position: relative;
  box-shadow: 0 30px 70px rgba(10, 20, 70, 0.25);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal.open .modal-card {
  transform: translateY(0);
}

.modal-card h2 {
  font-size: 22px;
  margin: 0 0 7px;
}

.modal-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.modal-card input,
.modal-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  margin: 5px 0;
  outline: none;
  font-size: 13px;
}

.modal-card textarea {
  min-height: 100px;
  resize: vertical;
}

.close {
  position: absolute;
  right: 12px;
  top: 9px;
  border: 0;
  background: none;
  font-size: 24px;
  color: #8993aa;
  cursor: pointer;
}

.success {
  display: none;
  color: #0da978;
  font-weight: 800;
  font-size: 13px;
  margin-top: 10px;
}

.success.show {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .menu,
  .top-search,
  .login,
  .nav > .btn {
    display: none;
  }

  .nav-toggle,
  .icon-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    gap: 8px;
  }

  .logo {
    min-width: 0;
    margin-right: auto;
  }

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

  .hero-copy {
    padding-bottom: 15px;
  }

  .hero-art {
    justify-content: center;
  }

  .hero-art img {
    width: min(100%, 650px);
  }

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

  .criteria {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
  }

  .header {
    height: 64px;
  }

  .mobile-drawer {
    inset: 64px 0 0;
  }

  .logo-image {
    width: 175px;
    height: 42px;
  }

  .footer-logo-image {
    width: 155px;
    height: 38px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -2.2px;
  }

  .lead {
    font-size: 14px;
  }

  .hero-form {
    display: block;
  }

  .hero-form input {
    width: 100%;
  }

  .hero-form .btn {
    width: 100%;
    margin-top: 4px;
  }

  .categories,
  .tariffs,
  .extra {
    grid-template-columns: 1fr 1fr;
  }

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

  .cta {
    display: block;
    padding: 22px;
  }

  .cta-art {
    display: none;
  }

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

@media (max-width: 430px) {
  .categories,
  .tariffs,
  .extra,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-art img {
    width: 100%;
  }
}
