/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #070707;
  --text: #e0e0e0;
  --text-bright: #fff;
  --text-muted: #999;
  --accent: #ff2d78;
  --accent-75: rgba(255, 45, 120, 0.75);
  --accent-50: rgba(255, 45, 120, 0.5);
  --accent-25: rgba(255, 45, 120, 0.25);
  --font-main: 'Rubik', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --max-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-75);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 100px;
}

main {
  flex: 1;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero__image {
  width: 280px;
  aspect-ratio: 0.7457;
  object-fit: cover;
  margin: 0 auto 24px;
}

.hero__title {
  font-family: var(--font-main);
  font-size: 64px;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-25);
  border: 1px solid #222;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-50);
  border-color: var(--accent-50);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--accent-50);
}

.btn--outline:hover {
  background: var(--accent-25);
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: var(--accent-50);
  border: none;
  margin: 0;
}

/* ===== Features Grid ===== */
.features {
  padding: 60px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature__icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.feature__text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--accent-50);
  padding: 24px 0 32px;
  text-align: center;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 14px;
  color: var(--accent-75);
}

/* ===== Page Content (rules, privacy, contacts) ===== */
.page-content {
  padding: 80px 0;
}

.page-content__title {
  font-family: var(--font-main);
  font-size: 48px;
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 48px;
  line-height: 1.2;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content ul {
  list-style: none;
  margin-bottom: 12px;
  padding-left: 0;
}

.page-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  line-height: 1.7;
}

.page-content ul li::before {
  content: '—';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ===== Contacts Page ===== */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacts-list__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-list__label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}

.contacts-list__link {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .container {
    padding: 0 50px;
  }

  .hero__title {
    font-size: 52px;
  }
}

@media (max-width: 810px) {
  .container {
    padding: 0 24px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero__image {
    width: 220px;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .features {
    padding: 48px 0;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .feature__icon img {
    width: 80px;
    height: 80px;
  }

  .page-content {
    padding: 60px 0;
  }

  .page-content__title {
    font-size: 36px;
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__image {
    width: 200px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .btn {
    padding: 12px 32px;
    font-size: 16px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature__icon img {
    width: 64px;
    height: 64px;
  }

  .feature__text {
    font-size: 15px;
  }

  .page-content {
    padding: 40px 0 60px;
  }

  .page-content__title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .page-content h2 {
    font-size: 20px;
    margin-top: 32px;
  }

  .footer__nav {
    gap: 16px;
  }

  .contacts-list__label,
  .contacts-list__link {
    font-size: 16px;
  }
}
