:root {
  --purple: #6b2d7b;
  --magenta: #c0267a;
  --dark: #110818;
  --dark-soft: #1c1024;
  --light: #f4eef7;
  --white: #ffffff;
  --muted: #877896;
  --gold: #f0a500;
  --gradient: linear-gradient(135deg, var(--purple), var(--magenta));
  --shadow: 0 16px 48px rgba(17, 8, 24, 0.28);
  --radius: 14px;
  --font: "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a2030;
  background: var(--light);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--purple);
  text-underline-offset: 3px;
}

a:hover { color: var(--magenta); }

.container { width: min(1140px, 92vw); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 8, 24, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-family: var(--display);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a:hover { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(192, 38, 122, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(17, 8, 24, 0.9), rgba(107, 45, 123, 0.55), rgba(192, 38, 122, 0.45)),
    url("../images/hero-bg.jpg") center / cover no-repeat;
  background-color: var(--dark);
}

.hero-inner { position: relative; padding: 5rem 0 4rem; }

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
  max-width: 14ch;
  margin: 0 0 1rem;
}

.hero-lead {
  max-width: 640px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Sections */
section { padding: 4.5rem 0; }

.section-head { margin-bottom: 2rem; }

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--dark);
}

.section-head p { margin: 0; color: var(--muted); max-width: 680px; }

.section-alt { background: var(--white); }

.section-dark {
  background: var(--dark-soft);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark .section-head h2,
.section-dark h3 { color: var(--white); }

.section-dark .section-head p,
.section-dark p { color: rgba(255, 255, 255, 0.78); }

.section-dark a { color: #f0c4ff; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #ddd;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(17, 8, 24, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--purple);
}

.stat-card span { font-size: 0.85rem; color: var(--muted); }

/* Content */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(17, 8, 24, 0.07);
}

.content-card h3 {
  margin-top: 0;
  font-family: var(--display);
  color: var(--purple);
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #e8dce8, #cdb8d0);
  box-shadow: 0 8px 20px rgba(17, 8, 24, 0.1);
}

.photo-item img { width: 100%; height: 100%; object-fit: cover; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; background: var(--white); }

thead { background: var(--gradient); color: var(--white); }

th, td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid #ece4ef;
}

tbody tr:hover { background: #faf6fc; }

.table-caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.75rem;
}

.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.advantage-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.advantage-card h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.advantage-card p { margin: 0; font-size: 0.95rem; }

/* FAQ */
.faq-list { display: grid; gap: 1rem; max-width: 820px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(17, 8, 24, 0.06);
}

.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--purple); }
.faq-item p { margin: 0; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 { color: var(--white); margin: 0 0 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .about-grid, .content-grid, .tables-grid,
  .advantages-grid, .footer-grid { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1rem 4vw;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }
  .header-cta { display: none; }
}
