:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(220 20% 15%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(220 20% 15%);
  --primary: hsl(207 90% 40%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 30% 96%);
  --secondary-foreground: hsl(220 20% 15%);
  --muted: hsl(210 20% 96%);
  --muted-foreground: hsl(215 14% 50%);
  --accent: hsl(207 90% 95%);
  --accent-foreground: hsl(207 90% 30%);
  --border: hsl(214 30% 91%);
  --ring: hsl(207 90% 40%);
  --success: hsl(145 63% 42%);
  --danger: hsl(0 84% 60%);
  --radius: 0.75rem;
  --shadow-sm: 0 10px 20px rgba(12, 49, 94, 0.12);
  --shadow-md: 0 18px 40px rgba(12, 49, 94, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
}

button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 108, 200, 0.25);
  border-radius: 0.65rem;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.container-medium {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
}

.container-small {
  width: min(100% - 2rem, 36rem);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-secondary {
  background: var(--secondary);
}

.scroll-target {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.logo-main {
  color: var(--foreground);
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-sm {
  padding: 0.45rem 1rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-nav {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-hero {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-hero:hover,
.btn-nav:hover {
  background: rgba(19, 108, 200, 0.9);
  box-shadow: var(--shadow-md);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.success-section {
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.success-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.success-content {
  text-align: left;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.success-title {
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  color: hsl(207 90% 33%);
  text-wrap: balance;
  margin-bottom: 1rem;
}

.success-subtitle {
  max-width: 50ch;
  color: hsl(216 26% 34%);
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  line-height: 1.7;
  font-weight: 600;
  margin: 0 0 2rem;
}

.success-media {
  position: relative;
  flex: 0 1 34rem;
  min-width: 0;
  overflow: hidden;
}

.phone-shell.success-shell {
  width: min(100%, 34rem);
}

.success-image {
  border-radius: 1.6rem;
}

.success-media .hero-glow {
  right: auto;
  left: 50%;
  width: clamp(220px, 42vw, 340px);
  height: clamp(220px, 42vw, 340px);
  transform: translate(-50%, -50%);
}

.hero-media {
  position: relative;
  flex: 1;
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: -40px;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(19, 108, 200, 0.15);
  filter: blur(60px);
  z-index: 0;
}

.phone-shell {
  position: relative;
  width: min(400px, 100%);
  margin: 0 auto;
}

.phone-backdrop {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 110%;
  height: 110%;
  border-radius: 2rem;
  /* background: rgba(19, 108, 200, 0.1); */
}

.phone-image {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(19, 108, 200, 0.3);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.advantages-grid {
  display: grid;
  gap: 1.25rem;
}

.adv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  background: var(--card);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.adv-card-image {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.adv-card-column {
  justify-content: space-between;
}

.adv-card-column .adv-media {
  justify-content: center;
  margin-top: auto;
}

.adv-card> :not(.adv-media) {
  position: relative;
  z-index: 1;
}

.adv-card:hover {
  box-shadow: none;
  border-color: var(--border);
}

.adv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.adv-illustration {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.adv-media {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  z-index: 0;
}

.adv-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  filter: none;
}

.adv-image-lg {
  max-width: 420px;
}

.adv-slabs {
  display: flex;
  gap: 0.5rem;
}

.adv-slab {
  width: 96px;
  height: 40px;
  border-radius: 0.75rem;
  background: var(--muted);
  box-shadow: 0 10px 20px rgba(12, 49, 94, 0.08);
}

.adv-slab-wide {
  width: 200px;
}

.adv-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.adv-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 1.5rem;
}

.adv-bars span {
  width: 12px;
  border-radius: 6px 6px 0 0;
  background: rgba(19, 108, 200, 0.2);
}

.adv-bars span:nth-child(n + 7) {
  background: var(--primary);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  background: rgba(19, 108, 200, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
}

.icon-box-accent {
  background: var(--accent);
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-md {
  width: 28px;
  height: 28px;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.target-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(19, 108, 200, 0.05);
}

.target-circle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(19, 108, 200, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.arrow-icon {
  position: absolute;
  top: -4px;
  right: -4px;
  color: rgba(19, 108, 200, 0.4);
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.package-item {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.package-item:hover {
  transform: translateY(-2px);
}

.package-glow {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(19, 108, 200, 0.05);
  transition: transform 0.4s ease;
}

.package-item:hover .package-glow {
  transform: scale(1.4);
}

.form-card {
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.input {
  width: 100%;
  height: 48px;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: var(--muted-foreground);
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(19, 108, 200, 0.2);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--background);
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  font-weight: 700;
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.footer-strong {
  font-weight: 700;
  color: var(--foreground);
}

#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}

.toast {
  min-width: 240px;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-8px);
  animation: toast-in 0.25s forwards;
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--danger);
}

.toast.hide {
  animation: toast-out 0.25s forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: inline-flex;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .package-span-7 {
    grid-column: span 7;
  }

  .package-span-5 {
    grid-column: span 5;
  }

  .package-span-4 {
    grid-column: span 4;
  }

  .package-span-6 {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .hero-grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
  }

  .hero-content {
    text-align: left;
    flex: 1;
  }

  .hero-subtitle {
    margin-left: 0;
  }

  .phone-shell {
    width: 50vw;
    max-width: 640px;
  }

  .advantages-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .adv-span-5 {
    grid-column: span 5;
  }

  .adv-span-7 {
    grid-column: span 7;
  }

  .adv-span-4 {
    grid-column: span 4;
  }

  .adv-span-3 {
    grid-column: span 3;
  }

  .adv-row-2 {
    grid-row: span 2;
    min-height: 360px;
  }

  .adv-card-image:not(.adv-card-column) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
    align-items: center;
    gap: 1.5rem;
  }

  .adv-card-image:not(.adv-card-column) .adv-media {
    position: static;
    width: 100%;
    margin: 0;
    justify-content: center;
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .adv-card-image:not(.adv-card-column) .adv-image {
    width: 100%;
    max-height: 240px;
  }

  .adv-card-large:not(.adv-card-column) {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 48%);
  }

  .adv-card-wide:not(.adv-card-column) {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 45%);
  }

  .adv-card-compact:not(.adv-card-column) {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 40%);
  }

  .adv-card-tight:not(.adv-card-column) {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 38%);
  }

  .adv-card-column .adv-image {
    max-width: 100%;
    max-height: 260px;
  }

  .adv-card-large.adv-card-column .adv-image {
    max-height: 300px;
  }

  .adv-card-tight.adv-card-column .adv-image {
    max-height: 220px;
  }
}

@media (max-width: 900px) {
  .success-section {
    min-height: auto;
  }

  .success-grid {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
  }

  .success-content {
    width: 100%;
    text-align: center;
    flex: 0 1 auto;
  }

  .success-subtitle {
    max-width: 42ch;
    margin: 0 auto 1.75rem;
  }

  .success-media {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
  }

  .phone-shell.success-shell {
    width: min(100%, 26rem);
  }

  .success-media .hero-glow {
    width: clamp(180px, 54vw, 300px);
    height: clamp(180px, 54vw, 300px);
  }
}

@media (max-width: 640px) {
  #toast-container {
    left: 1rem;
    right: 1rem;
  }

  .toast {
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .package-item {
    transition: none;
  }

  .toast {
    animation: none;
    opacity: 1;
    transform: none;
  }
}