
:root {
    --primary: #3B6EA8;
    --primary-dark: #2F5584;
    --primary-light: #5A8FD1;
    --accent-blue: #4A7FCC;
    --muted-blue: #6B8FB8;
    --bg-main: #FFFFFF;
    --bg-alt: #EEF2F6;
    --bg-dark: #1E1F23;
    --text-primary: #1C1C1C;
    --text-secondary: #6F7680;
    --text-inverse: #FFFFFF;
    --border-light: #E3E6EA;
    --shadow-soft: 0 10px 24px rgba(31, 56, 88, 0.08);
    --shadow-soft-hover: 0 14px 30px rgba(31, 56, 88, 0.14);
    --radius-lg: 16px;
    --radius-pill: 999px;
    --container: 1200px;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
  }

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

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

  .container {
    width: min(100% - 112px, var(--container));
    margin: 0 auto;
  }

  .section {
    padding: 64px 0;
  }

  .navbar {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
  }

  .navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    padding: 12px 0;
    font-weight: 700;
    color: var(--primary-dark);
  }

  .brand img {
    width: 120px;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-secondary);
  }

  .menu {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
  }

  .menu a:hover {
    color: var(--primary);
  }

  .hero {
    padding: 0 56px;
    position: relative;
    margin-bottom: 56px;
  }

  .hero-shell {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
  }

  .hero-img {
    width: 100%;
    height: auto;
    max-height: 700px; /* На десктопе высота задается изображением, с разумным ограничением */
    object-fit: cover;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(11, 42, 68, 0.75), rgba(11, 42, 68, 0.35) 55%, rgba(11, 42, 68, 0.12));
    pointer-events: none;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--text-inverse);
  }
  
  .logo-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 150px;
    z-index: 9111;
    animation: logo-spin-in 1.1s ease-out;
  }

  .logo-circle img {
    width: 100%;
    object-fit: contain;
  }

  @keyframes logo-spin-in {
    from {
      transform: translate(-50%, 50%) rotate(180deg);
      opacity: 0.8;
    }
    to {
      transform: translate(-50%, 50%) rotate(0deg);
      opacity: 1;
    }
  }

  h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 56px);
    line-height: 1.2;
    font-weight: 700;
  }

  .hero p {
    margin: 0 0 28px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
  }

  .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn {
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    min-height: 40px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-primary {
    background: var(--primary);
    color: #fff;
  }

  .btn-primary:hover {
    filter: brightness(1.08);
  }

  .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
  }

  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .split {
    background: var(--bg-main);
  }
  .scroll-reveal.in-view {
    z-index: 1111;
  }
  .split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.3;
    font-weight: 700;
  }

  .text-muted {
    color: var(--text-secondary);
    margin-bottom: 20px;
  }

  .split-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

  .features {
    background: var(--bg-main);
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .feature-card {
    position: relative;
    min-height: 50px;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  }

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

  .feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .feature-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 30, 44, 0.84), rgba(20, 30, 44, 0.22));
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: var(--text-inverse);
  }

  .feature-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
  }

  .cta-block {
    background: var(--primary);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    color: var(--text-inverse);
    box-shadow: var(--shadow-soft);
  }

  .cta-block p {
    max-width: 760px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, 0.94);
  }

  .cta-section {
    padding: 64px 56px;
  }

  .events {
    background: var(--bg-main);
  }

  .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .event-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  }

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

  .event-card img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
  }

  .event-content {
    padding: 16px;
  }

  .event-date {
    color: var(--accent-blue);
    font-size: 13px;
    margin: 0 0 8px;
    font-weight: 600;
  }

  .event-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
  }

  .footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 48px 0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .footer h3,
  .footer h4 {
    margin: 0 0 12px;
  }

  .footer h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.8);
  }

  .footer p,
  .footer a {
    margin: 0 0 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
  }

  .footer .brand {
    color: #fff;
  }

  .volunteer-section {
    padding: 56px;
  }

  .volunteer-shell {
    border-radius: 24px;
    overflow: hidden;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    background-image: url("bg-volontier.svg");
    background-size: cover;
    background-position: center;
    color: #0B2A44;
  }

  .volunteer-shell h2 {
    margin: 0 0 16px;
    color: #0B2A44;
  }

  .volunteer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 22px;
  }

  .volunteer-card {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31, 56, 88, 0.06);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  }

  .volunteer-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .volunteer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(31, 56, 88, 0.12);
  }

  .volunteer-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #0B2A44;
  }

  .volunteer-card p {
    margin: 0;
    color: rgba(11, 42, 68, 0.75);
    font-size: 14px;
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
  }

  .scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.in-view {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  @media (max-width: 1024px) {
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .events-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {

    .cta-section {
      padding: 48px 0;
    }

    .menu {
      display: none;
    }

    .hero-media {
      height: 100svh;
    }

    .hero-img {
      height: 100%;
      max-height: none;
      object-fit: cover;
    }

    .hero-overlay {
      padding: 28px 20px;
      align-items: flex-start;
    }

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

    .feature-grid,
    .events-grid,
    .footer-grid {
      grid-template-columns: 1fr;
    }

    .cta-block {
      padding: 28px 20px;
    }

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

  @media (max-width: 480px) {

    .cta-section {
      padding: 32px 0;
    }

    .container {
      width: min(100% - 24px, var(--container));
    }
  }