:root {
  --bg-main: #eef8ff;
  --paper: #f7fcff;
  --surface: #ffffff;
  --surface-2: #edf7ff;
  --ink: #10243a;
  --ink-soft: #3d5f79;
  --line: #c9deee;
  --accent: #2d8fdc;
  --accent-2: #85d6f5;
  --accent-deep: #1f6fb2;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 40px rgba(17, 43, 66, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 0% 0%, rgba(194, 229, 248, 0.65), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(208, 236, 252, 0.55), transparent 34%),
    var(--bg-main);
}

h1,
h2,
h3,
h4,
.brand {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.theme-switcher {
  position: fixed;
  top: 88px;
  right: 14px;
  z-index: 1400;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(188, 215, 233, 0.9);
  border-radius: 999px;
  background: rgba(241, 250, 255, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(22, 65, 98, 0.2);
}

.theme-switcher__btn {
  border: 1px solid #c5deef;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #2a6da2;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-switcher__btn:hover {
  transform: translateY(-1px);
  border-color: #7fb8de;
}

.theme-switcher__btn.is-active {
  color: #ffffff;
  border-color: #2d8fdc;
  background: linear-gradient(140deg, #2d8fdc, #1f6fb2);
  box-shadow: 0 6px 14px rgba(31, 97, 150, 0.25);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background:
    radial-gradient(circle at 8% 18%, rgba(138, 219, 255, 0.48), transparent 30%),
    radial-gradient(circle at 92% 76%, rgba(178, 226, 255, 0.4), transparent 32%),
    linear-gradient(150deg, rgba(44, 138, 211, 0.96), rgba(24, 85, 145, 0.94));
  border-bottom: 1px solid rgba(227, 241, 250, 0.38);
  box-shadow: 0 12px 30px rgba(12, 46, 77, 0.3);
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #f3fbff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topnav a {
  color: rgba(236, 247, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topnav a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #eef9ff;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
}

.topbar-link span:first-child {
  font-size: 0.9rem;
  line-height: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 28px auto auto -120px;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 143, 220, 0.13), rgba(45, 143, 220, 0));
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  border-radius: 40px;
  transform: rotate(32deg);
  background: linear-gradient(180deg, rgba(133, 214, 245, 0.22), rgba(133, 214, 245, 0.02));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.12;
}

.hero-text {
  margin-top: 18px;
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.73);
  color: var(--accent-deep);
  border: 1px solid #c5dff2;
}

.btn-ghost:hover {
  background: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: var(--accent-deep);
}

.btn-light:hover {
  background: #eef6ff;
}

.hero-panel {
  padding: 30px;
  border: 1px solid #d1e5f5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 243, 0.92)),
    repeating-linear-gradient(45deg, rgba(45, 143, 220, 0.03) 0 10px, rgba(45, 143, 220, 0.01) 10px 20px);
  box-shadow: var(--shadow-soft);
}

.hero-panel h2 {
  font-size: 1.22rem;
  line-height: 1.35;
}

.hero-panel ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.hero-panel li + li {
  margin-top: 8px;
}

.hero-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  border: 1px solid #c3dbee;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1.1;
}

.hero-metrics span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.section {
  position: relative;
  padding: 84px 0;
}

.services-section {
  padding: 36px 0 58px;
}

.section h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.3rem);
  line-height: 1.2;
}

.section-lead {
  margin-top: 14px;
  max-width: 780px;
  color: var(--ink-soft);
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.title-with-icon.small {
  gap: 10px;
}

.brand-pro {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74em;
  letter-spacing: 0.08em;
  font-weight: 800;
  vertical-align: middle;
  color: #2c7ec2;
  background: linear-gradient(145deg, rgba(162, 221, 249, 0.88), rgba(208, 236, 252, 0.92));
  box-shadow: 0 2px 8px rgba(45, 143, 220, 0.18);
}

.icon-3d {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(20, 52, 80, 0.28));
}

.title-with-icon.small .icon-3d {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 85% 88%, rgba(188, 219, 239, 0.46), rgba(188, 219, 239, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 246, 253, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0 2px,
      rgba(188, 216, 236, 0.22) 2px 4px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.34) 0 12px,
      rgba(202, 227, 244, 0.34) 12px 24px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.2) 0 10px,
      rgba(188, 216, 236, 0.2) 10px 20px
    );
  background-size: auto, auto, auto, 14px 14px, 48px 48px, 20px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(171, 205, 232, 0.72);
  z-index: -1;
}

.services-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(153, 190, 222, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 190, 222, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 25% 30%, rgba(151, 190, 223, 0.28) 0 2px, transparent 2.5px),
    radial-gradient(circle at 72% 64%, rgba(151, 190, 223, 0.22) 0 2px, transparent 2.5px);
  background-size: 34px 34px, 34px 34px, 120px 120px, 140px 140px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.service-grid,
.review-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.22rem;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.features article {
  background: linear-gradient(160deg, #f0f8ff, #e9f3fb);
  border: 1px solid #c8deef;
  border-radius: var(--radius-md);
  padding: 22px;
}

.features span {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
  color: #8eb7d5;
  font-weight: 700;
}

.features h4 {
  margin-top: 8px;
  font-size: 1.03rem;
}

.features p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.calculator-section {
  overflow: hidden;
  color: #f2faff;
}

.calculator-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(170, 230, 255, 0.5), transparent 38%),
    radial-gradient(circle at 86% 84%, rgba(178, 225, 255, 0.38), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(132, 214, 255, 0.24), transparent 36%),
    linear-gradient(140deg, #3a9ee3 0%, #2e7ec0 55%, #266fa8 100%);
  z-index: -1;
}

.calculator-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(217, 241, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 241, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.28;
  z-index: -1;
  pointer-events: none;
}

.calc-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.calc-intro {
  font-weight: 700;
  color: #edf8ff;
}

.lead-form {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(224, 242, 253, 0.36);
  background: rgba(18, 60, 96, 0.3);
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 40px rgba(14, 45, 75, 0.35);
  display: grid;
  gap: 14px;
}

.lead-form--calculator {
  max-width: none;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.calc-col {
  display: grid;
  gap: 14px;
}

.calc-side {
  align-content: start;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f9ff;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(227, 243, 252, 0.48);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  color: #1b2a21;
  font: inherit;
  padding: 12px 13px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: #9dd5f5;
  box-shadow: 0 0 0 3px rgba(155, 211, 247, 0.35);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
}

.switch {
  position: relative;
  width: 74px;
  height: 40px;
  flex: 0 0 74px;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(228, 242, 252, 0.45);
  transition: background-color 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: #a5daf7;
}

.switch input:checked + .slider::before {
  transform: translateX(34px);
}

.calc-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: min(420px, 100%);
  background: linear-gradient(140deg, #5bb5e8, #3f91df);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 108, 163, 0.3);
}

.calc-submit:hover {
  background: linear-gradient(140deg, #72c4f0, #4b9ce2);
}

.reviews-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    linear-gradient(150deg, rgba(191, 220, 241, 0.2), rgba(255, 255, 255, 0));
}

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

.review {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.96));
  border: 1px solid #c6ddef;
}

.review::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -26px;
  width: 128px;
  height: 128px;
  border-radius: 24px;
  transform: rotate(28deg);
  background: linear-gradient(145deg, rgba(152, 216, 249, 0.32), rgba(152, 216, 249, 0));
}

.review-stamp {
  position: absolute;
  left: -26px;
  top: 52px;
  z-index: 2;
  width: 176px;
  text-align: center;
  padding: 7px 0;
  border-radius: 999px;
  border: 2px solid rgba(46, 126, 198, 0.62);
  color: rgba(35, 99, 154, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-45deg);
  transform-origin: top left;
  background: rgba(234, 247, 255, 0.9);
  backdrop-filter: blur(1px);
  box-shadow: 0 6px 14px rgba(30, 86, 136, 0.18);
  pointer-events: none;
}

.review p {
  color: var(--ink-soft);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)),
    linear-gradient(155deg, #4fa8e6, #2d74b7);
  box-shadow: 0 8px 16px rgba(25, 66, 108, 0.26);
}

.review h3 {
  font-size: 1.07rem;
  line-height: 1.3;
}

.review-company {
  margin-top: 3px;
  font-size: 0.88rem;
  color: #4f7694;
}

.review-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2d81c5;
  background: rgba(155, 216, 248, 0.24);
  border: 1px solid rgba(123, 187, 232, 0.45);
}

.video-section {
  background: #eff7ff;
}

.video-placeholder {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed #9ec2db;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 245, 253, 0.92));
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: var(--ink-soft);
}

.problem-section {
  color: #eef7ff;
  background:
    radial-gradient(circle at 8% 12%, rgba(124, 209, 255, 0.5), transparent 34%),
    radial-gradient(circle at 92% 84%, rgba(171, 218, 251, 0.42), transparent 30%),
    linear-gradient(155deg, #2f88cc 0%, #2b6faa 55%, #1f5f92 100%);
}

.problem-section .section-lead {
  color: rgba(238, 247, 255, 0.88);
}

.problem-section .icon-3d {
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 10px 18px rgba(9, 33, 57, 0.35);
}

.cta {
  padding-top: 14px;
  padding-bottom: 12px;
  background:
    radial-gradient(circle at 10% 18%, rgba(132, 205, 247, 0.22), rgba(132, 205, 247, 0) 34%),
    radial-gradient(circle at 90% 82%, rgba(175, 213, 244, 0.2), rgba(175, 213, 244, 0) 32%),
    linear-gradient(145deg, rgba(49, 129, 198, 0.18), rgba(133, 214, 245, 0.16)),
    #eaf6ff;
}

.cta .container {
  width: min(100%, calc(100vw - 28px));
  max-width: none;
}

.cta-card {
  position: relative;
  overflow: visible;
  padding: clamp(16px, 2.2vw, 24px) clamp(22px, 3vw, 34px) clamp(16px, 2.2vw, 24px)
    clamp(156px, 18vw, 228px);
  color: var(--ink);
}

.cta-coin {
  position: absolute;
  left: clamp(12px, 1.8vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 13vw, 186px);
  height: auto;
  pointer-events: none;
}

.cta-kicker {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f7fc1;
  font-size: 0.82rem;
}

.cta-card h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3.05rem);
  line-height: 1.15;
  color: #1f6fb2;
}

.cta-lead {
  margin-top: 16px;
  margin-bottom: 28px;
  max-width: 760px;
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.cta-btn {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(36, 94, 146, 0.2);
}

.cta-btn:hover {
  background: var(--accent-deep);
  color: #ffffff;
}

.footer {
  overflow: hidden;
  padding-top: 16px;
  padding-bottom: 12px;
  background:
    radial-gradient(circle at 8% 12%, rgba(103, 191, 242, 0.42), transparent 34%),
    radial-gradient(circle at 92% 84%, rgba(166, 210, 246, 0.36), transparent 30%),
    linear-gradient(155deg, #2b76b6 0%, #1a4f82 55%, #123754 100%);
  border-top: 1px solid rgba(210, 228, 244, 0.18);
}

.footer .container {
  width: min(1280px, 96vw);
}

.footer::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.footer-card {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 2.4vw, 28px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  grid-template-areas: "brand nav contacts";
  gap: 26px;
}

.footer-brand {
  grid-area: brand;
}

.footer-nav {
  grid-area: nav;
}

.footer-col h3.title-with-icon.small {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-col h3.title-with-icon.small span {
  line-height: 1;
}

.footer-col h3.title-with-icon.small .icon-3d {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  transform: none;
}

.footer-contacts {
  grid-area: contacts;
}

.footer-title {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  color: #ffffff;
}

.footer-col h3 {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1rem;
  color: #e7f1fb;
}

.footer-text {
  margin-top: 10px;
  color: rgba(236, 245, 240, 0.82);
  max-width: 320px;
}

.footer h2 {
  color: #ffffff;
}

.footer .icon-3d {
  box-shadow: none;
}

.contacts-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contacts-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #f1f8ff;
  transition: color 0.2s ease;
}

.contacts-list a:hover {
  color: #ffffff;
}

.contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.contact-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.contacts-list a:hover .contact-icon {
  background: rgba(255, 255, 255, 0.24);
}

.footer-links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-nav .footer-links {
  padding-left: 54px;
}

.footer-links a {
  color: rgba(241, 247, 243, 0.92);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(235, 243, 238, 0.88);
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.callback-modal[hidden] {
  display: none;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 39, 63, 0.58);
  backdrop-filter: blur(2px);
}

.callback-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(171, 209, 235, 0.72);
  background:
    radial-gradient(circle at 15% 12%, rgba(224, 243, 255, 0.92), rgba(224, 243, 255, 0) 36%),
    linear-gradient(155deg, #f2f9ff, #e8f3ff);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 24px 48px rgba(17, 53, 86, 0.24);
}

.callback-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  color: #245f95;
  background: rgba(41, 84, 127, 0.12);
  cursor: pointer;
}

.callback-modal h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  color: #1d619a;
}

.callback-modal p {
  margin: 10px 0 0;
  color: #456b88;
}

.callback-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.callback-form label {
  display: grid;
  gap: 6px;
  font-size: 0.93rem;
  color: #355f84;
  font-weight: 700;
}

.callback-form input {
  width: 100%;
  border: 1px solid #bed7ea;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #193956;
  background: rgba(255, 255, 255, 0.92);
}

.callback-form input:focus {
  outline: none;
  border-color: #5aa7de;
  box-shadow: 0 0 0 3px rgba(93, 165, 222, 0.22);
}

.callback-form__submit {
  width: fit-content;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .review-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .section {
    padding: 68px 0;
  }

  .cta-card {
    padding: 18px 18px 20px;
  }

  .cta-coin {
    position: static;
    transform: none;
    display: block;
    width: 112px;
    margin: 0 0 10px;
  }

  .footer {
    padding-top: 74px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "nav contacts";
  }

  .topnav {
    display: none;
  }

  .theme-switcher {
    top: auto;
    bottom: 12px;
    right: 10px;
    left: 10px;
    justify-content: center;
    border-radius: 14px;
  }

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

  .callback-form__submit {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 64px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .topbar-link {
    font-size: 0.86rem;
    padding: 7px 11px;
  }

  .hero-panel,
  .card,
  .lead-form {
    padding: 20px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "contacts";
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-switcher {
    gap: 6px;
    padding: 6px;
  }

  .theme-switcher__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 8px;
    font-size: 0.68rem;
  }

}
