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

:root {
  --bg: #070707;
  --bg-card: #0f0f0f;
  --text: #c8c8c8;
  --text-bright: #fafafa;
  --text-muted: #999;
  --accent: #d81f26;
  --accent-75: rgba(216, 31, 38, 0.75);
  --accent-50: rgba(216, 31, 38, 0.5);
  --link: #d81f26;
  --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-main);
  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 40px;
}

main {
  flex: 1;
}

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

.hero__title {
  font-size: 64px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 24px;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 40px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: rgba(216, 31, 38, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.btn--secondary {
  border-color: var(--accent-50);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(216, 31, 38, 0.1);
}


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

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

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

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

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

.feature__icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

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

.footer__copy a {
  color: var(--accent-75);
}

.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, etc.) ===== */
.page-content {
  padding: 60px 0 80px;
}

.page-content__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.2;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent-50);
}

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

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

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

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

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

.page-content a {
  color: var(--accent);
}

.page-content a.btn,
.page-content a.btn:hover {
  color: #fff;
}

/* ===== Contacts Page ===== */
.contacts-list {
  margin-bottom: 48px;
}

.contacts-list__item {
  margin-bottom: 32px;
}

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

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

.about-section {
  margin-top: 48px;
}

.about-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.about-section p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== Copyright Page ===== */
.copyright-notice {
  margin-bottom: 48px;
}

.copyright-notice__heading {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-align: center;
}

.copyright-notice p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.copyright-notice ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.copyright-notice ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

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

.copyright-notice .meta-line {
  color: var(--text-muted);
  font-size: 15px;
}

.copyright-notice .signature {
  font-family: var(--font-secondary);
  color: var(--text-muted);
  font-size: 14px;
  word-break: break-all;
}

.btn--download {
  margin-top: 16px;
}

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

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

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

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

  .hero__title {
    font-size: 44px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .features {
    padding: 60px 0;
  }

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

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

  .page-content h2 {
    font-size: 22px;
  }

  .copyright-notice__heading {
    font-size: 24px;
  }
}

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

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

  .hero__title {
    font-size: 32px;
  }

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

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .features {
    padding: 48px 0;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .feature__icon {
    width: 56px;
    height: 56px;
  }

  .feature__icon svg {
    width: 48px;
    height: 48px;
  }

  .feature__text {
    font-size: 15px;
  }

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

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

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

  .footer__nav {
    gap: 16px;
  }

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

  .copyright-notice__heading {
    font-size: 20px;
  }
}
