:root {
  --bg-main: #f9f5ff;
  --bg-elevated: #ffffff;
  --bg-soft: #f3e8ff;
  --accent: #f973c2;
  --accent-soft: rgba(249, 115, 194, 0.18);
  --accent-2: #6366f1;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-soft: rgba(148, 163, 184, 0.35);
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ===== BODY + ФОН З ФОРМАМИ ===== */

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(120% 120% at 0% 0%, #fee2ff 0, transparent 55%),
    radial-gradient(120% 120% at 100% 0%, #e0f2fe 0, transparent 55%),
    radial-gradient(90% 90% at 0% 100%, #fef9c3 0, transparent 60%),
    linear-gradient(180deg, #f9f5ff 0, #eef2ff 40%, #fdf2ff 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 60% 40% 55% 45%;
  background: radial-gradient(circle at 30% 20%, #fb7185, transparent 60%);
  opacity: 0.18;
  filter: blur(2px);
}

body::before {
  top: -180px;
  left: -120px;
}

body::after {
  bottom: -220px;
  right: -160px;
  background: radial-gradient(circle at 60% 10%, #6366f1, transparent 60%);
  opacity: 0.2;
}

/* універсальні відступи */

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-soft {
  position: relative;
  padding: 80px 0;
}

.section-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(244, 114, 182, 0.12), transparent 60%),
    radial-gradient(120% 160% at 100% 40%, rgba(59, 130, 246, 0.12), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

/* ===== HEADER ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0.94),
    rgba(249, 250, 251, 0.88),
    rgba(249, 250, 251, 0)
  );
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    conic-gradient(
      from 170deg,
      #f973c2,
      #fb7185,
      #6366f1,
      #22cfd5,
      #f973c2
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.4);
  color: #f9fafb;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
}

.logo-text span {
  opacity: 0.7;
}

/* NAV */

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(148, 163, 184, 0.3);
}

.nav-cta {
  border-radius: 999px;
  background: linear-gradient(135deg, #f973c2, #6366f1);
  color: #f9fafb !important;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #fb7185, #4f46e5);
}

/* Burger (mobile) */

.burger {
  display: none;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO ===== */

.hero {
  padding: 80px 0 40px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
}

.hero::before {
  width: 420px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0, #f973c2, transparent 65%);
  top: -60px;
  left: 10%;
}

.hero::after {
  width: 520px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 80% 0, #6366f1, transparent 65%);
  top: -40px;
  right: -80px;
}

.hero-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}

/* left text */

.hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 42px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.accent-gradient {
  background: linear-gradient(120deg, #f973c2, #fb7185, #6366f1);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f973c2, #6366f1);
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(129, 140, 248, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  background: #ffffff;
}

/* hero meta */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
}

.hero-meta .meta-label {
  display: block;
  font-weight: 600;
}

.hero-meta .meta-caption {
  color: var(--text-muted);
}

/* RIGHT: картка + “деталі” */

.hero-media {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.45;
  filter: blur(18px);
  z-index: -1;
}

.hero-media::before {
  width: 260px;
  height: 40px;
  bottom: 10px;
  left: 15px;
}

.hero-media::after {
  width: 200px;
  height: 30px;
  bottom: -8px;
  right: 40px;
}

/* основна картка */

.hero-card {
  background: radial-gradient(circle at top left, rgba(249, 115, 194, 0.12), #ffffff);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 60%);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.hero-card-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-video-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-video-frame {
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 10%, #f97316, transparent 55%),
    radial-gradient(circle at 85% 0, #22cfd5, transparent 60%),
    radial-gradient(circle at 50% 120%, #6366f1, transparent 65%);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.12),
    rgba(15, 23, 42, 0)
  );
}

/* play */

.play-btn {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.88);
  color: #f9fafb;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.play-btn:hover {
  transform: scale(1.04);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.9);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-card-footer .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--text-muted);
}

/* маленькі картки */

.hero-side-cards {
  display: grid;
  gap: 12px;
}

.hero-card.small {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.9),
    rgba(224, 231, 255, 0.9)
  );
}

.small-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.small-value {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 16px;
}

.small-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== TRUST ===== */

.trust {
  padding: 20px 0 10px;
}

.trust-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.trust-logos span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.25);
}

/* ===== Section head ===== */

.section-head {
  max-width: 580px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== SERVICES ===== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top left, rgba(249, 115, 194, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  margin: 0;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.service-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.service-card li + li {
  margin-top: 4px;
}

.service-price {
  font-size: 13px;
  margin-top: 10px;
  font-weight: 600;
}

/* ===== WHY ===== */

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bullet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f973c2, #22cfd5);
  margin-top: 4px;
}

.bullet h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.bullet p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== PROCESS STEPS ===== */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps li {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.95);
  padding: 16px 18px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}

.step-number {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  padding: 6px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0e7ff, #fee2ff);
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* ===== PORTFOLIO ===== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-item {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.portfolio-thumb {
  height: 130px;
  background: linear-gradient(135deg, #f97316, #fb7185 25%, #6366f1 55%, #22cfd5);
  position: relative;
}

.portfolio-thumb .tag {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(248, 250, 252, 0.12);
  color: #f9fafb;
}

.portfolio-info {
  padding: 12px 14px 14px;
  font-size: 14px;
}

.portfolio-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.portfolio-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.portfolio-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== FAQ ===== */

.faq-list {
  max-width: 640px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-item {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
}

.faq-panel {
  display: none;
  padding: 0 18px 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.faq-panel.open {
  display: block;
}

/* ===== CONTACT ===== */

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 10px;
  font-size: 14px;
}

.contact-list li + li {
  margin-top: 6px;
}

.contact-label {
  display: inline-block;
  width: 72px;
  color: var(--text-muted);
}

.contact-list a {
  color: #111827;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-form {
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.98);
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
  color: #111827;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: #ffffff;
  color: #111827;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.5);
  background: #ffffff;
}

.form-submit {
  margin-top: 4px;
  width: 100%;
}

.form-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(255, 255, 255, 0.95);
  padding: 16px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-logo {
  font-weight: 500;
  color: #111827;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: #111827;
}

/* === ПЕРЕКЛЮЧАТЕЛЬ ТЕМИ === */

.theme-toggle {
  margin-left: 12px;
  width: 58px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.5);
}

.theme-toggle-icon {
  font-size: 13px;
  line-height: 1;
  z-index: 1;
  color: #4b5563;
}

.theme-toggle-thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #111827;
  left: 4px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.7);
  transition: transform 0.18s ease, background 0.18s ease;
}

.theme-toggle.is-dark .theme-toggle-thumb {
  transform: translateX(26px);
  background: #f9fafb;
}

.theme-toggle.is-dark .theme-toggle-icon-sun {
  opacity: 0.5;
}

.theme-toggle.is-dark .theme-toggle-icon-moon {
  opacity: 1;
}

.theme-toggle-icon-moon {
  opacity: 0.6;
}

.theme-toggle-icon-sun {
  opacity: 1;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    inset: 56px 16px auto 16px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 10px 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-soft);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    gap: 10px 20px;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .theme-toggle {
    margin-left: 8px;
  }
}

/* ===== ПРОСТА ТЕМНА ТЕМА (мінімум, але помітно) ===== */

body[data-theme="dark"] {
  background: #020617 !important;
  color: #e5e7eb;
}

body[data-theme="dark"] .header {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0)
  );
  border-bottom-color: rgba(15, 23, 42, 0.8);
}

body[data-theme="dark"] .nav a {
  color: #9ca3af;
}

body[data-theme="dark"] .nav a:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.9);
}

body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .hero-card.small,
body[data-theme="dark"] .service-card,
body[data-theme="dark"] .steps li,
body[data-theme="dark"] .portfolio-item,
body[data-theme="dark"] .faq-list,
body[data-theme="dark"] .contact-form,
body[data-theme="dark"] .trust-logos span {
  background: #020617;
  border-color: #1f2937;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

body[data-theme="dark"] .hero-sub,
body[data-theme="dark"] .section-head p,
body[data-theme="dark"] .bullet p,
body[data-theme="dark"] .steps p,
body[data-theme="dark"] .portfolio-info p,
body[data-theme="dark"] .contact-hint,
body[data-theme="dark"] .portfolio-note {
  color: #9ca3af;
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: #6b7280;
}

body[data-theme="dark"] .footer {
  background: #020617;
  border-top-color: #1f2937;
}

body[data-theme="dark"] .footer-logo {
  color: #e5e7eb;
}

body[data-theme="dark"] .footer-inner {
  color: #9ca3af;
}

body[data-theme="dark"] .theme-toggle {
  background: #020617;
  border-color: #4b5563;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
}

body[data-theme="dark"] .theme-toggle-icon {
  color: #e5e7eb;
}

/* ==== ФІКС FAQ У ТЕМНІЙ ТЕМІ ==== */

body[data-theme="dark"] .faq-list {
  background: #020617;
  border-color: #1f2937;
}

body[data-theme="dark"] .faq-item {
  background: transparent;
  color: #e5e7eb;
  border-bottom-color: #1f2937;
}

body[data-theme="dark"] .faq-item:hover {
  background: #020617;
}

body[data-theme="dark"] .faq-icon {
  color: #9ca3af;
}

body[data-theme="dark"] .faq-panel {
  color: #9ca3af;
}

/* ==== КНОПКИ В ТЕМНІЙ ТЕМІ ==== */

body[data-theme="dark"] .btn-primary {
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.7);
}

body[data-theme="dark"] .btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: #4b5563;
}

body[data-theme="dark"] .btn-ghost:hover {
  background: #111827;
}

/* ===== КОНТАКТИ: зробити текст читабельним ===== */

/* Лейбли "Telegram:" / "E-mail:" */
.contact-list {
  color: var(--text-main);
}

.contact-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.contact-label {
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.9; /* було десь ~0.4–0.5, тому не читалось */
}

/* Посилання праворуч (@diona_agency, hello@...) */
.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Пояснювальний текст під контактами */
.contact-hint {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== ПОЛЯ ФОРМИ: текст та плейсхолдери ===== */

.contact-form input,
.contact-form textarea {
  color: var(--text-main);
}

/* Плейсхолдери, щоб не були занадто блідими */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

/* Трошки підсвітити рамку при фокусі */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-soft-border, #b37cff);
  box-shadow: 0 0 0 1px var(--accent-soft-border, #b37cff33);
}

/* ========= CONTACT / FORM – СПІЛЬНЕ ========= */

.contact-grid {
  gap: 48px;
  align-items: flex-start;
}

.contact-form {
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(24px);
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-width: 1px;
  border-style: solid;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  opacity: 1;
}

.form-note {
  margin-top: 10px;
  font-size: 0.78rem;
}

/* ========= LIGHT THEME ========= */

body[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body[data-theme="light"] .contact-form label {
  color: #111827; /* темний текст */
}

body[data-theme="light"] .contact-form input,
body[data-theme="light"] .contact-form textarea {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #111827;
}

body[data-theme="light"] .contact-form input::placeholder,
body[data-theme="light"] .contact-form textarea::placeholder {
  color: #6b7280; /* сірий, але видимий */
}

body[data-theme="light"] .contact-form input:focus,
body[data-theme="light"] .contact-form textarea:focus {
  border-color: #c084fc; /* фіолетовий */
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.35);
}

body[data-theme="light"] .form-note {
  color: #6b7280;
}

/* ========= DARK THEME ========= */

body[data-theme="dark"] .section#contact {
  /* трішки підсвітимо фон блоку */
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
}

body[data-theme="dark"] .contact-form {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

body[data-theme="dark"] .contact-form label {
  color: #e5e7eb; /* майже білий */
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: #f9fafb;
}

body[data-theme="dark"] .contact-form input::placeholder,
body[data-theme="dark"] .contact-form textarea::placeholder {
  color: #9ca3af; /* світло-сірий, читається на темному */
}

body[data-theme="dark"] .contact-form input:focus,
body[data-theme="dark"] .contact-form textarea:focus {
  border-color: #e879f9;
  box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.55);
}

body[data-theme="dark"] .form-note {
  color: #9ca3af;
}

/* ========= CONTACT TEXT LEFT (щоб обидві теми були чіткі) ========= */

.contact-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.contact-label {
  font-weight: 500;
}

body[data-theme="light"] .contact-label {
  color: #111827;
}

body[data-theme="dark"] .contact-label {
  color: #e5e7eb;
}

body[data-theme="light"] .contact-list a {
  color: #ec4899; /* рожевий */
}

body[data-theme="dark"] .contact-list a {
  color: #f472b6;
}

.contact-hint {
  margin-top: 10px;
}

body[data-theme="light"] .contact-hint {
  color: #6b7280;
}

body[data-theme="dark"] .contact-hint {
  color: #9ca3af;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-btn {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
  transition: opacity 0.2s;
}

.project-card:hover .more-btn {
  opacity: 0.8;
}

/* Контейнер для обмеження ширини контенту проекту */
.project-content-wrapper {
    max-width: 900px; /* Або 800px, якщо хочете ще менше */
    margin: 0 auto;   /* Центрування */
    padding: 0 20px;
}

/* Стиль для великих скріншотів */
.project-img-large {
    width: 100%;
    max-width: 850px; /* Обмежуємо ширину конкретно для великих фото */
    height: auto;
    display: block;
    margin: 30px auto; /* Відступи зверху/знизу та центрування */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Стиль для мобільних скріншотів (щоб вони не були гігантськими) */
.project-img-mobile {
    max-width: 300px; /* Мобільні фото будуть компактними */
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ПЕРЕМЕННЫЕ ДЛЯ КЕЙСОВ ===== */
:root {
  /* Существующие переменные... */
  
  /* Добавляем переменные для кейсов (светлая тема) */
  --case-bg-soft: #f9f5ff;
  --case-border-soft: rgba(148, 163, 184, 0.35);
  --case-shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --case-radius-lg: 20px;
  --case-radius-xl: 26px;
}

body[data-theme="dark"] {
  /* Существующие настройки тёмной темы... */
  
  /* Добавляем переменные для кейсов (тёмная тема) */
  --case-bg-soft: #0f172a;
  --case-border-soft: rgba(71, 85, 105, 0.5);
  --case-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.4);
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ КЕЙСА BGL ===== */
.case-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.case-card-visual {
  background: var(--case-bg-soft);
  border-radius: var(--case-radius-xl);
  padding: 60px;
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  border: 1px solid var(--case-border-soft);
  transition: background 0.3s ease;
}

.project-img-large {
  width: 100%;
  max-width: 850px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--case-radius-lg);
  box-shadow: var(--case-shadow-soft);
  transition: transform 0.3s ease;
}

.project-img-large:hover {
  transform: scale(1.01);
}

.overlap-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin: 80px 0;
}

.mobile-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 80px 0;
  padding: 60px 40px;
  background: var(--case-bg-soft);
  border-radius: var(--case-radius-xl);
  border: 1px solid var(--case-border-soft);
}

.mobile-screen {
  width: 100%;
  border-radius: 24px;
  border: 8px solid var(--border-soft);
  transition: border-color 0.3s ease;
}

/* Исправляем рамку мобильных экранов для тёмной темы */
body[data-theme="dark"] .mobile-screen {
  border-color: #334155;
}

.case-footer {
  text-align: center;
  padding: 100px 20px;
  background: var(--case-bg-soft);
  border-radius: var(--case-radius-xl);
  border: 1px solid var(--case-border-soft);
}

/* Адаптивность для мобильных */
@media (max-width: 900px) {
  .overlap-section {
    grid-template-columns: 1fr;
  }
  
  .mobile-showcase {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  
  .case-card-visual {
    padding: 30px 20px;
  }
  
  .case-footer {
    padding: 60px 20px;
  }
}

/* Улучшаем читаемость текста в тёмной теме */
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] .hero-kicker,
body[data-theme="dark"] .logo-text {
  color: #f1f5f9;
}

body[data-theme="dark"] p {
  color: #cbd5e1;
}

/* Исправляем кнопку "Назад" */
.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border-color: var(--border-soft);
}

body[data-theme="dark"] .btn-ghost {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-color: #475569;
}

body[data-theme="dark"] .btn-ghost:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #64748b;
}

/* Исправляем футер кейса */
body[data-theme="dark"] .case-footer h2 {
  color: #f8fafc;
}

body[data-theme="dark"] .case-footer {
  background: rgba(15, 23, 42, 0.9);
}

/* Дополнительные стили для кейса */
.text-center {
  text-align: center;
}

.case-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 24px;
}

.case-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.overlap-content {
  padding-right: 20px;
}

.overlap-content h2 {
  font-size: 32px;
  margin: 15px 0;
  color: var(--text-main);
}

.overlap-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}

.case-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--case-shadow-soft);
}

.mobile-section h2 {
  color: var(--text-main);
  font-size: 32px;
  margin: 15px 0;
}

.middle-screen {
  transform: translateY(-20px);
}

@media (max-width: 768px) {
  .middle-screen {
    transform: none;
  }
  
  .case-title {
    font-size: clamp(32px, 6vw, 48px);
  }
  
  .case-subtitle {
    font-size: 16px;
    padding: 0 15px;
  }
}

/* Універсальний контейнер-посилання для карток */
.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Ефект при наведенні на всю картку */
.portfolio-card-link:hover {
    transform: translateY(-10px); /* Підняття картки */
}

/* Додатковий ефект тіні для внутрішнього article */
.portfolio-card-link:hover .portfolio-item {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Плавність для самої картки */
.portfolio-item {
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%; /* Щоб всі були однакової висоти */
}

/* Фоновий шар модалки */
.v-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.85); /* Колір вашого сайту з прозорістю */
    backdrop-filter: blur(10px); /* Ефект розмиття фону */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.v-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контейнер картки */
.v-modal-content {
    background: #0f172a;
    width: 90%;
    max-width: 650px;
    padding: 60px 40px;
    border-radius: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: translateY(30px);
    transition: 0.4s ease;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.v-modal-overlay.active .v-modal-content {
    transform: translateY(0);
}

/* Кнопка закриття */
.v-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}
.v-close-btn:hover { opacity: 1; }

/* Елементи дизайну */
.v-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ec78c4, #7e7cf2);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.v-title {
    color: white;
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.v-subtitle {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.v-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.v-list-title {
    color: #ec78c4;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.v-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.v-item {
    color: #e2e8f0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v-item::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #7e7cf2;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Головна кнопка дії */
.v-main-btn {
    display: inline-block;
    background: linear-gradient(90deg, #ec78c4, #7e7cf2);
    color: white !important;
    text-decoration: none !important;
    padding: 18px 45px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(236, 120, 196, 0.3);
    transition: 0.3s;
}

.v-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(126, 124, 242, 0.4);
}

.v-footer-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .v-grid { grid-template-columns: 1fr; }
    .v-modal-content { padding: 40px 20px; }
}

