*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff00ff;
  text-decoration: none;
}

a:hover {
  color: #deb200;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Lora, Georgia, serif;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.container {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #ff00ff;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: #deb200;
  color: #000;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 58px;
  width: auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > ul > li {
  position: relative;
}

.nav > ul > li > a {
  display: block;
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav > ul > li.active > a,
.nav > ul > li:hover > a {
  color: #ff00ff;
}

.nav .has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 20;
}

.has-sub:hover > .dropdown,
.has-sub:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  color: #555;
  font-size: 14px;
}

.dropdown a:hover {
  background: #ff00ff;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    url("../images/blagodaru/img_head_main.jpg") center / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  padding: 140px 0 160px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
}

.hero p {
  margin: 0 0 28px;
  color: #fff;
  font-size: 16px;
  max-width: 560px;
}

.section {
  padding: 80px 0;
}

.section-soft {
  background: #e3eeff;
}

.section-title {
  margin: 0 0 16px;
  font-size: 32px;
}

.section-lead {
  margin: 0 0 36px;
  max-width: 640px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.stat-kicker {
  margin: 0 0 8px;
  font-size: 22px;
  color: #222;
}

.stat-sum {
  margin: 0;
  font-size: 72px;
  line-height: 1;
  color: #ff00ff;
  font-family: Lora, Georgia, serif;
}

.stat-note {
  margin: 16px 0 28px;
  font-size: 15px;
}

.pie-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pie {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(#3071ff 0 12%, #d6e6ff 12% 100%);
  position: relative;
  flex-shrink: 0;
}

.pie::after {
  content: "";
  position: absolute;
  inset: 15px;
  background: #fff;
  border-radius: 50%;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}

.legend li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend .glazov::before {
  background: #3071ff;
}

.legend .udm::before {
  background: #d6e6ff;
  border: 1px solid #bcd3f5;
}

.quote-title {
  font-size: 28px;
  margin: 0 0 20px;
}

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.way {
  text-align: center;
}

.way img {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.way h3 {
  margin: 0 0 10px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 20px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-list {
  margin: 16px 0 28px;
  padding-left: 20px;
}

.about-list li {
  margin: 8px 0;
}

.about-photo {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(48, 113, 255, 0.15), rgba(255, 0, 255, 0.2)),
    url("../images/blagodaru/gallery/1.jpg") center / cover no-repeat;
}

.events-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 20px 18px 24px;
}

.card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  min-height: 54px;
}

.card h3 a {
  color: #222;
}

.card h3 a:hover {
  color: #ff00ff;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.meta b {
  display: block;
  color: #222;
  font-size: 15px;
}

.progress {
  height: 8px;
  background: #eee;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: #ff00ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  display: block;
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #222;
  background: rgba(255, 208, 18, 0.9);
  opacity: 0;
  transition: 0.25s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.person {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.person-info {
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}

.person-info h3 {
  margin: 0 0 4px;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 20px;
}

.person-info p {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.partners img {
  height: 56px;
  width: auto;
  filter: grayscale(0.2);
  opacity: 0.9;
}

.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: #ff00ff url("../images/blagodaru/img_head_main.jpg") center / cover;
  background-blend-mode: multiply;
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 42px;
}

.crumbs {
  margin: 10px 0 0;
  color: #fff;
  font-size: 13px;
}

.crumbs a {
  color: #fff;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-item h3 {
  margin: 0 0 6px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff00ff;
}

.contact-item p {
  margin: 0 0 22px;
  color: #222;
}

.campaign {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.campaign img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.facts {
  background: #e3eeff;
  padding: 24px;
}

.facts p {
  margin: 8px 0;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-tile {
  padding: 22px;
  background: #fff;
  border-left: 4px solid #ff00ff;
  box-shadow: 0 6px 18px rgba(20, 40, 80, 0.06);
  color: #222;
}

.counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
  margin-top: 40px;
}

.counters b {
  display: block;
  font-size: 36px;
  color: #ff00ff;
  font-family: Lora, Georgia, serif;
}

.footer {
  padding: 28px 0;
  background: #1b1b1b;
  color: #aaa;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.video-card {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.video-card span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .cards,
  .gallery-grid,
  .people,
  .counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .about-layout,
  .campaign,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1b1b1b;
    padding: 12px 0 20px;
  }

  .nav-toggle:checked ~ .nav {
    display: block;
  }

  .nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #111;
    display: none;
  }

  .has-sub:hover > .dropdown,
  .has-sub:focus-within > .dropdown {
    display: block;
  }

  .dropdown a {
    color: #ddd;
  }

  .hero {
    clip-path: none;
    min-height: 80vh;
    padding: 120px 0 80px;
  }

  .stat-sum {
    font-size: 52px;
  }

  .ways,
  .cards,
  .gallery-grid,
  .people,
  .projects,
  .video-grid,
  .counters {
    grid-template-columns: 1fr;
  }
}
