:root {
  --cream: #F3E9E2;
  --near-black: #0B0E14;
  --surface: #11151E;
  --surface-2: #171C27;
  --accent: #E8916B;
  --accent-2: #C99BC2;
  --border: rgba(243, 233, 226, 0.1);
  --muted: rgba(243, 233, 226, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--near-black);
  color: var(--cream);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

body {
  background-image:
    radial-gradient(60% 50% at 20% -10%, rgba(201, 155, 194, 0.08), transparent 60%),
    radial-gradient(50% 40% at 90% 0%, rgba(232, 145, 107, 0.07), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.brand-mark {
  color: var(--accent);
  font-size: 1.05rem;
}

.brand-dim {
  color: var(--muted);
  font-weight: 600;
}

.brand-tagline {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 12px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.ig-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.ig-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- toolbar ---------- */

.section-reels,
.section-formats,
.section-request {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-formats {
  border-top: 1px solid var(--border);
}

.section-request {
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px;
}

.section-reels {
  scroll-margin-top: 70px;
  padding-bottom: 20px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 560px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--near-black);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 20px 56px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
}

.hero-stats .stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stats .stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
}

@media (max-width: 760px) {
  .hero {
    padding: 48px 16px 40px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- formats ---------- */

.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.format-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.format-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.format-card .btn {
  align-self: flex-start;
}

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

/* ---------- request form ---------- */

.request-inner {
  max-width: 560px;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--cream);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.request-form .btn {
  align-self: flex-start;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--cream);
  border-color: var(--border);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--near-black);
}

.count-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 145, 107, 0.4);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--surface-2);
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.65);
  backdrop-filter: blur(4px);
  color: var(--accent-2);
}

.card-views {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(11, 14, 20, 0.65);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-phrase {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- contacts ---------- */

.partners-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(11, 14, 20, 0.6);
  color: var(--cream);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.modal-media {
  flex: 0 0 42%;
  background: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.modal-phrase {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-caption {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: pre-line;
}

.modal-stats {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-stats li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.modal-stats .stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-stats .stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.modal-open-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--near-black);
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
}

.modal-open-link:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .modal {
    flex-direction: column;
    max-height: 92vh;
  }
  .modal-media {
    flex: 0 0 auto;
    max-height: 48vh;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner {
    padding: 14px 16px;
  }
  .section-reels,
  .section-formats,
  .section-request {
    padding: 36px 16px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}
