:root {
  --dark: #151515;
  --dark-2: #232323;
  --accent-red: #b21233;
  --accent-red-2: #df2e53;
  --grey: #585858;
  --grey-light: #9c9c9c;
  --bg-light: #fafafa;
  --bg-alt: #f3f3f3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-family: "Geologica", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--dark-2);
  background: var(--white);
  line-height: 1.6;
  font-family: "Segoe UI", "Geologica", Arial, sans-serif;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--dark);
}

h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--accent-red);
  margin: 14px auto 0;
  border-radius: 2px;
}

p {
  color: var(--grey);
  margin: 0 0 16px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  max-width: 260px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--dark-2);
  transition: color 0.2s ease;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 32px;
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero .accent {
  color: #ff7b96;
}

.hero-subtitle {
  color: #d9d9d9;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-red-2);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-red);
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 70px 0;
}

.alt-bg {
  background: var(--bg-alt);
}

.about p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.symbol-block {
  margin-top: 32px;
  padding: 28px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-red);
  border-radius: 8px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.symbol-block h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.founders-spoiler {
  margin: 20px auto 0;
  padding: 20px 28px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-red);
  border-radius: 8px;
  max-width: 820px;
}

.founders-spoiler summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--dark);
  list-style: none;
}

.founders-spoiler summary::-webkit-details-marker {
  display: none;
}

.founders-spoiler summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent-red);
  transition: transform 0.2s ease;
}

.founders-spoiler[open] summary::before {
  transform: rotate(90deg);
}

.founders-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.founders-list li {
  padding: 8px 0;
  border-top: 1px solid #e6e6e6;
  color: var(--grey);
  font-size: 15px;
}

.founders-list li:first-child {
  border-top: none;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 19px;
  color: var(--accent-red);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  margin: 0;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.gallery-more {
  text-align: center;
}

/* NEWS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-card p {
  padding: 18px 20px;
  font-size: 14.5px;
  margin: 0;
  color: var(--grey);
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--accent-red);
  color: var(--white);
}

/* DOCS */

.docs-list {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 640px;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s ease;
}

.doc-link:hover {
  background: #eee;
}

.doc-icon {
  font-size: 32px;
}

.consent-block {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-red);
  border-radius: 8px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent-red);
}

.consent-label span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--grey);
}

.requisites {
  text-align: center;
  color: var(--grey);
}

/* FEEDBACK FORM */
.feedback-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.feedback-form button {
  border: none;
  cursor: pointer;
}

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-item h3 {
  color: var(--accent-red);
  font-size: 18px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background: var(--accent-red);
  color: var(--white);
}

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: #d9d9d9;
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  color: #d9d9d9;
  margin: 4px 0;
}

.footer-req {
  font-size: 14px;
  color: var(--grey-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }
  .main-nav {
    gap: 16px;
    justify-content: center;
  }
  .hero {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 26px;
  }
  .section {
    padding: 50px 0;
  }
  .donate-inner {
    flex-direction: column;
    text-align: center;
  }
  .donate-text {
    text-align: center;
  }
}

/* HERO ACTIONS */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* NAV DONATE HIGHLIGHT */
.nav-donate {
  background: var(--accent-red-2);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 20px;
  border-bottom: none !important;
}

.nav-donate:hover {
  background: var(--accent-red) !important;
  color: var(--white) !important;
}

/* DONATE */
.donate-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.donate-text {
  max-width: 480px;
}

.donate-text h2 {
  text-align: left;
  margin-bottom: 16px;
}

.donate-text h2::after {
  margin: 14px 0 0;
}

.donate-qr {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.donate-qr img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}

.qr-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--grey-light);
}

/* LEGAL DOCUMENTS (/privacy, /offer) */
.legal-doc {
  padding: 60px 0 80px;
}

.legal-container {
  max-width: 860px;
}

.legal-approval {
  text-align: right;
  max-width: 320px;
  margin-left: auto;
  margin-bottom: 40px;
  color: var(--dark-2);
  line-height: 1.6;
}

.legal-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.legal-subtitle {
  text-align: center;
  color: var(--grey);
  max-width: 100%;
  margin-bottom: 8px;
}

.legal-doc h2 {
  font-size: 22px;
  text-align: left;
  margin: 40px 0 16px;
}

.legal-doc h2::after {
  margin: 10px 0 0;
}

.legal-doc h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.legal-doc p,
.legal-doc li {
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
}

.legal-doc ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #e2e2e2;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-alt);
  font-weight: 600;
}

.legal-appendix {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-red);
  border-radius: 8px;
}

.legal-appendix-label {
  text-align: right;
  color: var(--grey-light);
  font-size: 13px;
  margin-bottom: 8px;
}

/* DONATE CONSENT GATE */
.donate-consent {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donate-consent .consent-label {
  gap: 10px;
}

.donate-consent .consent-label span {
  font-size: 13px;
  color: var(--grey);
}

.donate-consent .consent-checkbox {
  width: 16px;
  height: 16px;
}

.qr-unlocked {
  display: none;
}

.qr-locked-hint {
  margin: 0;
  font-size: 13px;
  color: var(--grey-light);
  max-width: 180px;
}

.donate-inner:has(#consent-privacy:checked):has(#consent-offer:checked) .qr-locked {
  display: none;
}

.donate-inner:has(#consent-privacy:checked):has(#consent-offer:checked) .qr-unlocked {
  display: block;
}

/* LEGAL PDF EMBED */
.legal-pdf-block {
  margin: 24px 0 40px;
}

.legal-pdf-heading {
  font-size: 16px;
  text-align: left;
  margin: 0 0 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-pdf-frame {
  width: 100%;
  height: 85vh;
  min-height: 500px;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.legal-pdf-fallback {
  font-size: 13px;
  color: var(--grey-light);
  margin: 10px 0 0;
}

/* LEGAL DOC — PDF ONLY PAGES */
.legal-pdf-only {
  padding: 24px 0 40px;
}

.legal-pdf-only-container {
  max-width: 1000px;
}

.legal-pdf-frame-full {
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 600px;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
