@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue: #0876f2;
  --blue-deep: #006bff;
  --cyan: #12b8ff;
  --text: #0b2454;
  --muted: #5f7094;
  --line: #dbeafd;
  --card: rgba(255, 255, 255, .84);
  --shadow: 0 20px 55px rgba(13, 93, 196, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fbfdff;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.97)),
    url("assets/bg-pattern.svg") top center / 1120px auto repeat-y;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 12%, rgba(35,162,255,.14), transparent 30%),
    radial-gradient(circle at 7% 36%, rgba(0,140,255,.10), transparent 24%),
    radial-gradient(circle at 80% 75%, rgba(0,220,255,.08), transparent 22%);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 26px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 12px;
  z-index: 5;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}

nav a,
footer a {
  color: #17315f;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}

nav a:hover,
footer a:hover { color: var(--blue); }

.top-actions {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  border: 1px solid rgba(0,103,255,.22);
  text-decoration: none;
  font-weight: 850;
  font-size: 16px;
  transition: .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.btn-small {
  min-height: 44px;
  padding: 0 19px;
  font-size: 14px;
}

.btn-blue {
  color: #fff;
  background: linear-gradient(135deg, #0aa8ff, #006bff);
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(0,106,255,.24);
}

.btn-blue:hover,
.btn-light:hover { transform: translateY(-2px); }

.btn-light {
  color: var(--blue);
  background: #fff;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 590px;
  padding: 58px 36px 30px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #bcdcff;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255,255,255,.72);
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(0,107,255,.08);
}

.eyebrow img {
  width: 22px;
  height: 22px;
}

h1 {
  max-width: 670px;
  margin: 28px 0 18px;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #071f52;
}

h1 span { color: #0071ff; }

.hero-text p {
  max-width: 560px;
  margin: 0 0 24px;
  color: #2b406f;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.subnote {
  margin: 16px 0 0 36px;
  color: #7b8cab;
  font-size: 13px;
}

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 58px;
  max-width: 710px;
  background: rgba(255,255,255,.58);
  border-radius: 18px;
}

.quick-points div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 3px 14px;
  align-items: center;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}

.quick-points div:last-child { border-right: 0; }
.quick-points img {
  width: 48px;
  height: 48px;
  grid-row: span 2;
  object-fit: contain;
}

.quick-points b {
  color: var(--blue);
  font-size: 16px;
  line-height: 1.15;
}

.quick-points span {
  font-size: 13px;
  color: #5f7094;
  line-height: 1.35;
}

.hero-phone {
  position: relative;
  min-height: 560px;
}

.hero-phone::before {
  content: "";
  position: absolute;
  width: 490px;
  height: 490px;
  right: 78px;
  top: 64px;
  background: linear-gradient(135deg, rgba(0,126,255,.12), rgba(23,219,255,.06));
  border-radius: 50%;
}

.hero-phone img {
  position: absolute;
  right: 64px;
  top: -22px;
  width: min(445px, 100%);
  filter: drop-shadow(0 34px 45px rgba(36,91,180,.20));
  transform: rotate(4deg);
}

.features {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.features article {
  min-height: 175px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.features img { width: 58px; }
.features h3 {
  margin: 12px 0 8px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.22;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding-bottom: 24px;
}

h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  color: #071f52;
  font-size: 30px;
  letter-spacing: -0.02em;
}

h2::before,
h2::after {
  content: "✦";
  font-size: 18px;
  color: #2ca7ff;
}

.authors {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.65);
}

.wide {
  min-height: 146px;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 10px;
  border-radius: 18px;
  border: 1px solid #dcecff;
}

.wide img {
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.wide h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.wide p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.violet { background: linear-gradient(135deg, #fbf8ff, #f2edff); }
.blue { background: linear-gradient(135deg, #f8fcff, #ecf7ff); }
.mint { background: linear-gradient(135deg, #f7fffd, #e9fbf8); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.steps article {
  min-height: 122px;
  display: grid;
  grid-template-columns: 50px 86px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,105,220,.08);
  position: relative;
}

.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  width: 26px;
  border-top: 4px dotted #86bfff;
}

.steps span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #10a9ff, #006cff);
}

.steps img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: #637396;
  font-size: 13px;
  line-height: 1.42;
}

.lead {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto;
  min-height: 120px;
  display: grid;
  grid-template-columns: 150px minmax(260px, .92fr) minmax(360px, 1.2fr);
  gap: 22px;
  align-items: center;
  padding: 20px 28px;
  border: 2px solid rgba(0,112,255,.35);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,248,255,.72));
  box-shadow: var(--shadow);
}

.gift {
  width: 135px;
  height: 120px;
  object-fit: contain;
}

.lead h2 {
  justify-content: flex-start;
  margin: 0 0 10px;
  font-size: 38px;
  color: var(--blue);
}

.lead h2::before,
.lead h2::after { display: none; }

.messenger-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.messenger-buttons .btn {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
}

.lead form {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.lead input[type="email"],
.footer-contact input,
.footer-contact select,
.footer-contact textarea,
.admin-card input,
.admin-card select {
  border: 1px solid #cfe4ff;
  background: #fff;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  outline: none;
  color: var(--text);
}

.lead input[type="email"] { height: 48px; padding: 0 18px; }
.lead button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 14px;
}

.lead label {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #617294;
  font-size: 13px;
  line-height: 1.35;
}

.lead a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #617294;
  font-size: 13px;
  line-height: 1.35;
}

.form-status.ok { color: #087a41; }
.form-status.error { color: #d12f4c; }

.mini {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.mini div {
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px 14px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.mini div:last-child { border-right: 0; }
.mini img {
  width: 46px;
  grid-row: span 2;
}

.mini b { font-size: 15px; }
.mini span {
  color: #667798;
  font-size: 13px;
  line-height: 1.35;
}

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

.faq-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(0,105,220,.08);
}

.faq-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 32px 8px 0;
  display: grid;
  grid-template-columns: 2fr .9fr 1.05fr 1.45fr;
  gap: 34px;
  border-top: 1px solid var(--line);
}

.footer-logo {
  font-size: 28px;
}

.footer-logo img {
  width: 42px;
  height: 42px;
}

footer p {
  margin: 10px 0 16px;
  color: #607295;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.45;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials span {
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
}

footer h4 { margin: 0 0 12px; }
footer a {
  display: block;
  margin-bottom: 9px;
  color: #647493;
}

.footer-contact form {
  display: grid;
  gap: 9px;
}

.contact-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(0,105,220,.10);
}

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

.contact-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe4ff;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.footer-contact input,
.footer-contact select {
  height: 42px;
}

.footer-contact textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.footer-contact button {
  width: fit-content;
}

.captcha-box {
  display: grid;
  gap: 7px;
  color: #50658f;
  font-size: 13px;
  font-weight: 700;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.captcha-refresh {
  height: 42px;
  border: 1px solid #cfe4ff;
  border-radius: 12px;
  background: #f4f9ff;
  color: var(--blue);
  font-size: 20px;
  cursor: pointer;
}

.copy {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 18px;
  color: #7a89a5;
  font-size: 12px;
}

.copy a {
  margin: 0;
  font-size: 12px;
}

.legal-main,
.admin-main {
  width: min(980px, calc(100% - 32px));
  margin: 38px auto 56px;
}

.legal-card,
.admin-card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: 42px;
  max-width: none;
}

.legal-date {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 26px;
}

.legal-card h2 {
  display: block;
  margin: 28px 0 12px;
  font-size: 24px;
  text-align: left;
}

.legal-card h2::before,
.legal-card h2::after { display: none; }

.legal-card p,
.legal-card li {
  color: #31466f;
  font-size: 16px;
  line-height: 1.68;
}

.legal-card p { margin: 0 0 12px; }

.admin-grid {
  display: grid;
  gap: 22px;
}

.admin-login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-login-form .captcha-box,
.admin-login-form button,
.admin-login-form .form-status {
  grid-column: 1 / -1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-card input {
  height: 44px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  color: var(--blue);
  background: #f4f9ff;
}

.admin-table td {
  color: #31466f;
}

.admin-table .message-cell {
  max-width: 380px;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 16px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .top-actions { margin-left: auto; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 38px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h1 { font-size: 42px; }
  .subnote { margin-left: 0; }

  .quick-points {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 560px;
    background: transparent;
    gap: 10px;
  }

  .quick-points div {
    border-right: 0;
    text-align: left;
    background: rgba(255,255,255,.72);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
  }

  .hero-phone {
    min-height: 420px;
    display: grid;
    place-items: center;
  }

  .hero-phone::before {
    right: auto;
    top: 22px;
    width: 390px;
    height: 390px;
  }

  .hero-phone img {
    position: relative;
    right: auto;
    top: auto;
    width: 360px;
  }

  .features { grid-template-columns: repeat(2, 1fr); }
  .authors,
  .steps,
  .mini,
  .faq-grid,
  .lead,
  footer { grid-template-columns: 1fr; }

  .steps article:not(:last-child)::after { display: none; }
  .lead form { grid-template-columns: 1fr; }
  .messenger-buttons .btn { flex: 1; }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .logo { font-size: 26px; }
  h1 { font-size: 34px; }
  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }
  .cta-row { width: 100%; }
  .cta-row .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .wide { grid-template-columns: 90px 1fr; }
  .wide img {
    width: 92px;
    height: 92px;
  }
  .steps article { grid-template-columns: 44px 72px 1fr; }
  .steps img {
    width: 72px;
    height: 72px;
  }
  .lead {
    padding: 18px;
    text-align: center;
  }
  .gift { margin: 0 auto; }
  .lead h2 {
    justify-content: center;
    font-size: 34px;
  }
  .messenger-buttons .btn { width: 100%; }
  .copy {
    flex-direction: column;
    gap: 8px;
  }
  .legal-card,
  .admin-card { padding: 22px; }
  .legal-card h1 { font-size: 32px; }
}
