:root {
  --bg: #f3f5f9;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #182033;
  --muted: #5f6c85;
  --primary: #2b64f5;
  --primary-hover: #1d4ed8;
  --border: #e3e8f1;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
  --success: #22c55e;
  --danger: #ef4444;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #111a2b;
  --card: #121d31;
  --text: #e8eefc;
  --muted: #9fb0d1;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: #233250;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-soft) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu {
  display: flex;
  gap: 1.2rem;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  min-height: 75vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.subtitle,
.section-subtitle {
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 1rem;
}

label {
  display: block;
  margin: 0.6rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
}

.small {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-soft);
}

.btn-ghost {
  color: #fff;
  background: #1d4ed8;
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
}

.offers {
  padding: 2rem 0 3.2rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.offer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow);
}

.offer-card h3 {
  margin-top: 0;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.service-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px;
}

.offer-card p,
.offer-card li {
  color: var(--muted);
}

.offer-card strong {
  display: block;
  margin: 0.8rem 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card h3 {
  margin: 0;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(43, 100, 245, 0.14);
}

.plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.65rem 0 0.8rem;
}

.plan-card ul {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
}

.plan-card li {
  padding: 0.25rem 0;
  color: var(--muted);
}

.plan-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-service {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.admin-plan input {
  margin-bottom: 0.45rem;
}

.offer-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.about {
  padding: 2rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about article {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.contact {
  padding: 2rem 0 3rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.form-message {
  margin: 0.4rem 0 0;
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--muted);
  background: var(--bg-soft);
}

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

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

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

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

@media (max-width: 700px) {
  .menu {
    display: none;
  }

  .offers-grid,
  .plans-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }
}
