/* ========================================================
   АНО «Светлое Будущее» — Main Stylesheet
   ======================================================== */

:root {
  --color-navy:   #1a1b4b;
  --color-orange: #f5821f;
  --color-blue:   #4b6cb7;
  --color-green:  #4caf50;
  --color-white:  #ffffff;
  --color-light:  #f5f6fa;
  --color-text:   #2c2c3e;
  --color-muted:  #6b7280;
  --color-border: #e5e7eb;

  --font-main: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --max-width: 1100px;
  --section-py: 80px;
  --nav-h: 72px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-orange);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { opacity: 0.8; }

ul { list-style: none; }

/* ── Container ─────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Heading ───────────────────────────────────── */

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-orange);
  border-radius: 2px;
  margin-top: 10px;
}

.section-note {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 640px;
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #d96e10;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 130, 31, 0.4);
  color: var(--color-white);
  opacity: 1;
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  opacity: 1;
}

/* ========================================================
   NAVBAR
   ======================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--color-navy);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 1px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ========================================================
   HERO
   ======================================================== */

.hero {
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--color-navy) 0%, #2d3994 50%, var(--color-blue) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,130,31,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(76,175,80,0.08) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {}

.hero-badge {
  display: inline-block;
  background: rgba(245,130,31,0.2);
  color: var(--color-orange);
  border: 1px solid rgba(245,130,31,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(245,130,31,0.2);
}

.hero-logo-wrap img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========================================================
   ABOUT
   ======================================================== */

.about {
  padding: var(--section-py) 0;
  background: var(--color-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--color-text);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stat-box {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--color-orange);
}

.about-stat-box .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.about-stat-box .stat-value {
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 500;
  line-height: 1.5;
}

.about-fullname {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(26, 27, 75, 0.04);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.about-fullname p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-fullname strong {
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ========================================================
   PROJECTS
   ======================================================== */

.projects {
  padding: var(--section-py) 0;
  background: var(--color-light);
}

.projects-header {
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card--1 {
  border-top: 4px solid var(--color-orange);
}

.project-card--2 {
  border-top: 4px solid var(--color-green);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.04;
}

.project-card--1::before { background: var(--color-orange); transform: translate(30px, -30px); }
.project-card--2::before { background: var(--color-green);  transform: translate(30px, -30px); }

.project-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.project-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.project-card p:not(.project-subtitle) {
  color: var(--color-text);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ========================================================
   PARTNERS
   ======================================================== */

.partners {
  padding: var(--section-py) 0;
  background: var(--color-white);
}

.partners-header {
  margin-bottom: 48px;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.partner-item {
  padding: 14px 24px;
  background: var(--color-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: background var(--transition), border-color var(--transition);
}

.partner-item a {
  color: var(--color-navy);
  text-decoration: none;
}

.partner-item:hover {
  background: rgba(26,27,75,0.06);
  border-color: var(--color-blue);
}

.partners-empty {
  padding: 48px 40px;
  background: var(--color-light);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px dashed var(--color-border);
}

.partners-empty p {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ========================================================
   REPORTS
   ======================================================== */

.reports {
  padding: var(--section-py) 0;
  background: var(--color-light);
}

.reports-header {
  margin-bottom: 48px;
}

.reports-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.report-row:hover {
  border-color: var(--color-orange);
  box-shadow: var(--shadow);
}

.report-year {
  min-width: 56px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange);
  background: rgba(245,130,31,0.1);
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
}

.report-title {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-navy);
  font-weight: 500;
}

.report-title a {
  color: var(--color-navy);
}

.report-title a:hover {
  color: var(--color-orange);
  opacity: 1;
}

.report-download {
  font-size: 1.2rem;
  opacity: 0.5;
}

.reports-empty {
  padding: 48px 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px dashed var(--color-border);
}

.reports-empty p {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ========================================================
   CONTACTS
   ======================================================== */

.contacts {
  padding: var(--section-py) 0;
  background: var(--color-white);
}

.contacts-header {
  margin-bottom: 48px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius);
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-body {}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 500;
}

.contact-value a {
  color: var(--color-navy);
}

.contact-value a:hover {
  color: var(--color-orange);
  opacity: 1;
}

.contacts-map {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.map-placeholder .map-icon {
  font-size: 3rem;
}

.map-placeholder p {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 1rem;
}

.map-placeholder .btn {
  margin-top: 8px;
}

/* ========================================================
   FOOTER
   ======================================================== */

.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

.footer-org {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  display: block;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-nav a:hover {
  color: var(--color-white);
  opacity: 1;
}

/* ========================================================
   RESPONSIVE — Tablet (≤ 900px)
   ======================================================== */

@media (max-width: 900px) {
  :root {
    --section-py: 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-wrap { width: 200px; height: 200px; }
  .hero-logo-wrap img { width: 170px; height: 170px; }

  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   RESPONSIVE — Mobile (≤ 640px)
   ======================================================== */

@media (max-width: 640px) {
  :root {
    --section-py: 48px;
    --nav-h: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-logo-sub { display: none; }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-title { font-size: 1.7rem; }

  .btn { padding: 11px 24px; font-size: 0.95rem; }

  .section-title { font-size: 1.5rem; }

  .project-card { padding: 28px 24px; }

  .contacts-grid { grid-template-columns: 1fr; }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ========================================================
   UTILITIES
   ======================================================== */

.note {
  color: var(--color-muted);
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
