:root {
  --bg: #eef4fb;
  --bg-2: #f7fafc;
  --card: #ffffff;
  --card-hover: #ffffff;
  --line: rgba(30, 58, 110, 0.12);
  --text: #10243f;
  --muted: #5b6f8c;
  --sky: #1f6feb;
  --sky-deep: #0b4fbf;
  --sky-soft: rgba(31, 111, 235, 0.12);
  --teal: #0f9f8a;
  --teal-soft: rgba(15, 159, 138, 0.12);
  --magenta: #c23a8b;
  --danger: #d6455d;
  --danger-soft: rgba(214, 69, 93, 0.12);
  --ok: #148f5c;
  --ok-soft: rgba(20, 143, 92, 0.12);
  --shadow: 0 18px 40px rgba(24, 55, 105, 0.1);
  --radius: 22px;
  --sidebar: #f8fbff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 111, 235, 0.16), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(15, 159, 138, 0.12), transparent 30%),
    linear-gradient(180deg, #f5f9ff 0%, var(--bg) 45%, #e8f1fa 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 111, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 235, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  z-index: 0;
}

.sidebar,
.app {
  position: relative;
  z-index: 1;
}

.sidebar {
  flex: 0 0 300px;
  width: 300px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--sidebar) 100%);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(24, 55, 105, 0.04);
  overflow-y: auto;
  z-index: 30;
}

.sidebar-top {
  flex: 1;
}

.sidebar .brand {
  display: block;
  margin: 0 0 18px;
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(24, 55, 105, 0.06);
}

.sidebar .brand img {
  display: block;
  width: 100%;
  height: auto;
}

.powered-by {
  margin-top: 24px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(24, 55, 105, 0.05);
}

.powered-by span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.powered-by img {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-label {
  margin: 18px 8px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(24, 55, 105, 0.06);
}

.sidebar-link.sky.active {
  border-color: rgba(31, 111, 235, 0.35);
  background: linear-gradient(135deg, #f3f8ff, #fff);
}

.sidebar-link.teal.active {
  border-color: rgba(15, 159, 138, 0.35);
  background: linear-gradient(135deg, #f0fbf8, #fff);
}

.sidebar-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(16, 36, 63, 0.06);
  color: var(--muted);
}

.sidebar-link.sky .sidebar-icon {
  background: var(--sky-soft);
  color: var(--sky);
}

.sidebar-link.teal .sidebar-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.sidebar-link strong {
  display: block;
  font-size: 0.92rem;
}

.sidebar-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.app {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}

.nav-toggle,
.nav-backdrop {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.header-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 159, 138, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

.site-footer {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero {
  padding: 18px 0 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--sky-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 10px;
  max-width: 14ch;
  font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  background: linear-gradient(120deg, #0d2b57 10%, #1f6feb 55%, #0f9f8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
  margin-top: 18px;
}

.wave span {
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #1f6feb, #0f9f8a);
  animation: wave 1.1s ease-in-out infinite;
}

.wave span:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}
.wave span:nth-child(2) {
  height: 12px;
  animation-delay: 0.1s;
}
.wave span:nth-child(3) {
  height: 18px;
  animation-delay: 0.2s;
}
.wave span:nth-child(4) {
  height: 10px;
  animation-delay: 0.3s;
}
.wave span:nth-child(5) {
  height: 15px;
  animation-delay: 0.4s;
}
.wave span:nth-child(6) {
  height: 8px;
  animation-delay: 0.5s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 64px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.card.sky::after {
  background: radial-gradient(circle, rgba(31, 111, 235, 0.22), transparent 70%);
}

.card.teal::after {
  background: radial-gradient(circle, rgba(15, 159, 138, 0.22), transparent 70%);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(24, 55, 105, 0.14);
}

.card.sky {
  border-color: rgba(31, 111, 235, 0.22);
}

.card.teal {
  border-color: rgba(15, 159, 138, 0.22);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 36, 63, 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon-pill {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.sky .icon-pill {
  background: linear-gradient(145deg, #e8f1ff, #d7e8ff);
  color: var(--sky);
}

.teal .icon-pill {
  background: linear-gradient(145deg, #e6faf5, #d4f3ec);
  color: var(--teal);
}

.card h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sky .cta {
  color: var(--sky);
}

.teal .cta {
  color: var(--teal);
}

.call-shell {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.call-card {
  position: relative;
  overflow: visible;
  background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.call-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
}

.call-card.sky::before {
  background: linear-gradient(90deg, #1f6feb, #5aa2ff);
}

.call-card.teal::before {
  background: linear-gradient(90deg, #0f9f8a, #45c4ae);
}

.call-card.sky {
  border-color: rgba(31, 111, 235, 0.2);
}

.call-card.teal {
  border-color: rgba(15, 159, 138, 0.2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.call-card.sky .kicker {
  color: var(--sky);
}

.call-card.teal .kicker {
  color: var(--teal);
}

.call-card h1 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.call-card .lead {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.phone-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  align-items: start;
  position: relative;
  z-index: 5;
}

.country-picker {
  position: relative;
  z-index: 6;
}

.country-trigger {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.country-trigger .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 36, 63, 0.08);
}

.country-trigger .dial {
  flex: 1;
  text-align: left;
}

.country-trigger .chevron {
  color: var(--muted);
  font-size: 0.75rem;
}

.country-picker.open .country-trigger {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.country-menu {
  position: fixed;
  z-index: 1000;
  display: none;
  width: min(340px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 55, 105, 0.18);
}

.country-menu.open {
  display: block;
}

.country-search {
  width: 100%;
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 0 14px;
  background: #f7faff;
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: none;
}

.country-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.country-section {
  padding: 10px 10px 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-option {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option.active {
  background: #eef5ff;
}

.country-option img {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.country-option .name {
  font-size: 0.9rem;
  font-weight: 600;
}

.country-option .code {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.country-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

select,
input[type="tel"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

select:focus,
input[type="tel"]:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

button[type="submit"] {
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.call-card.sky button[type="submit"] {
  background: linear-gradient(135deg, #1f6feb, #0b4fbf);
}

.call-card.teal button[type="submit"] {
  background: linear-gradient(135deg, #0f9f8a, #0a7d6d);
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.status.show {
  display: block;
}

.status.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.status.err {
  background: var(--danger-soft);
  color: var(--danger);
}

.status.info {
  background: var(--sky-soft);
  color: var(--sky-deep);
}

.missing {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  body {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    min-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .app {
    min-height: 100vh;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 40;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 36, 63, 0.35);
    z-index: 25;
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  .wrap,
  .call-shell {
    padding-top: 56px;
  }
}

@media (max-width: 760px) {
  .cards,
  .phone-row {
    grid-template-columns: 1fr;
  }

  .header-note {
    display: none;
  }

  .call-card {
    padding: 24px 18px;
  }
}
