:root {
  --bg-deep: #1a0a2e;
  --bg-mid: #2d1b4e;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.88);
  --text: #1a1025;
  --muted: #5c4d6b;
  --accent: #ff2d95;
  --accent-2: #7c3aed;
  --accent-3: #fbbf24;
  --accent-teal: #06b6d4;
  --line: rgba(124, 58, 237, 0.2);
  --radius: 18px;
  --shadow: 0 16px 48px rgba(26, 10, 46, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(255, 45, 149, 0.35), transparent 50%),
    radial-gradient(ellipse 90% 70% at 95% 10%, rgba(124, 58, 237, 0.4), transparent 45%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(6, 182, 212, 0.25), transparent 40%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #1e1035 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.06' d='M0 40h80M40 0v80'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23fbbf24' fill-opacity='0.12'/%3E%3C/svg%3E");
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.header {
  background: rgba(26, 10, 46, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.logo {
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.logo-main {
  font-weight: 800;
  font-size: clamp(14px, 2.5vw, 17px);
}

.logo-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.logo span.accent {
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 45, 149, 0.35);
}

.header-contacts {
  border-top: 1px solid rgba(124, 58, 237, 0.25);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.header-contacts a {
  color: var(--accent-3);
  text-decoration: none;
}

.header-contacts a:hover {
  text-decoration: underline;
}

.header-contacts-row {
  line-height: 1.45;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e11d8c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 149, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(255, 45, 149, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-2), #5b21b6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-secondary:hover {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
}

.hero {
  padding: 42px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.hero-visual {
  position: absolute;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  right: -8%;
  top: -12%;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.25), rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.15));
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.panel--hero {
  overflow: visible;
}

.panel--hero .hero-inner {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.badge {
  font-size: 13px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, #faf5ff, #fdf4ff);
  color: #5b21b6;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section {
  padding: 38px 0;
}

.section-title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.section-title .muted {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

.card {
  background: var(--surface-soft);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  padding: 22px 20px 24px;
  backdrop-filter: blur(8px);
}

.card h3 {
  color: var(--accent-2);
  margin-bottom: 14px;
}

.card [itemprop="acceptedAnswer"] p {
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 22px;
}

.step {
  background: var(--surface);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 16px;
  padding: 22px 18px 20px;
  text-align: left;
}

.step b {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-3), #f59e0b);
  color: #1a1025;
  margin-bottom: 14px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.step p strong {
  display: inline;
  margin-right: 0.25em;
}

.agency-strip {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(91, 33, 182, 0.98));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: var(--shadow);
}

.agency-strip h2 {
  margin-bottom: 16px;
}

.agency-strip p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.65;
}

.production {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  border-left: 5px solid var(--accent-teal);
  box-shadow: var(--shadow);
}

.production h2 {
  margin-bottom: 16px;
}

.production p {
  margin: 0;
  line-height: 1.65;
}

.portfolio-carousel {
  position: relative;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.carousel-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.carousel-viewport {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-viewport:focus {
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  box-sizing: border-box;
}

.carousel-slide {
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-slide.portfolio-item {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.carousel-slide.portfolio-item img {
  max-width: 100%;
}

.carousel-slide.portfolio-item figcaption {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: rgba(26, 10, 46, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-btn:hover {
  background: rgba(124, 58, 237, 0.92);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn--prev {
  left: 10px;
}

.carousel-btn--next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 12px 6px;
  min-height: 32px;
  position: relative;
  z-index: 4;
}

.carousel-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(26, 10, 46, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.88);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
}

.carousel-dot--active {
  background: var(--accent-3);
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
}

@media (max-width: 520px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .carousel-btn--prev {
    left: 6px;
  }

  .carousel-btn--next {
    right: 6px;
  }
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.15), rgba(255, 45, 149, 0.12)),
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255, 255, 255, 0.04) 12px, rgba(255, 255, 255, 0.04) 24px);
  border: 2px dashed rgba(124, 58, 237, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.portfolio-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-item figcaption {
  padding: 12px 14px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, rgba(26, 10, 46, 0.5), rgba(26, 10, 46, 0.92));
}

label {
  font-size: 14px;
  font-weight: 600;
}

.form-telegram-hint {
  margin: -2px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-left: 4px solid var(--accent-teal);
  background: linear-gradient(135deg, #ecfeff, #fae8ff);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #0e7490;
}

.form-telegram-hint a {
  color: #0891b2;
  font-weight: 700;
  text-decoration: none;
}

.form-telegram-hint a:hover {
  text-decoration: underline;
}

.form-telegram-voice {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: #0f766e;
}

.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 4px 0 10px;
}

.consent input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #d4c4e8;
  border-radius: 12px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

.ok {
  color: #15803d;
  font-weight: 700;
  display: none;
}

.err {
  color: #b91c1c;
  font-weight: 700;
  display: none;
}

.cta {
  background: linear-gradient(135deg, #c026d3, var(--accent-2), #2563eb);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.35);
}

.cta h2 {
  color: #fff;
  margin-bottom: 0;
}

.cta p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.55;
}

.cta > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer {
  margin-top: 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.3);
  padding: 24px 0 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer a {
  color: var(--accent-3);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .steps,
  .cta {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 22px;
  }

  .hero-visual {
    display: none;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

}
