@font-face {
  font-family: 'eUkraineHead';
  src: url('fonts/e-UkraineHead-LOGO.otf');
}

@font-face {
  font-family: 'eUkraine';
  src: url('fonts/e-UkraineHead-Medium.otf');
}

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

body {
  font-family: 'eUkraine', Arial, sans-serif;
  color: #111;
  background: #f6f6f3;
  padding-top: 80px;
}

/* HEADER */

.header {
  width: 100%;
  height: 80px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.logo {
  position: absolute;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  font-family: 'eUkraineHead', Arial, sans-serif;
  font-size: 18px;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: relative;
  left: 20px;
}

.logo span {
  font-size: 15px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.menu a {
  display: inline-block;
  font-family: 'eUkraine', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
  color: #f5b804;
  transform: scale(1.09);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10000;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-no-scroll {
  overflow: hidden;
}

/* HERO */

.hero {
  min-height: 620px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 520px 420px;
  gap: 120px;
  align-items: center;
  justify-content: center;
}

.label {
  font-size: 16px;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: 'eUkraineHead', Arial, sans-serif;
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: normal;
}

.subtitle {
  font-size: 20px;
  line-height: 1.35;
  max-width: 600px;
}

.buttons {
  display: none;
}

.hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1.3);
}

.hero-card img {
  width: 700px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ABOUT */

.about-section {
  background: #fff;
  padding: 200px 20px 220px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.about-image {
  width: 45%;
}

.about-image img {
  width: 100%;
  max-width: 520px;
  display: block;
}

.about-text {
  width: 50%;
  text-align: left;
}

.section-label {
  display: none !important;
}

.about-text h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  white-space: nowrap;
}

.about-text p {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #111;
}

/* VALUES */

.values-block {
  max-width: 1200px;
  margin: 200px auto 0;
  text-align: center;
}

.values-block h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

.yellow-line.center {
  margin: 0 auto 35px;
}

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

.value-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* GALLERY */

.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px;
}

.gallery h2 {
  font-family: 'eUkraineHead', Arial, sans-serif;
  font-size: 44px;
  margin-bottom: 10px;
  font-weight: normal;
}

.gallery > p {
  color: #333;
  margin-bottom: 35px;
}

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

.card {
  background: #f6f6f3;
  padding-bottom: 24px;
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #ddd;
  margin-bottom: 20px;
}

.card h3 {
  padding: 0 22px;
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  padding: 0 22px;
  color: #666;
}

/* FOOTER */

footer {
    position: relative;
    padding: 60px;
    padding-left: 500px;
    text-align: left;
    background: #111;
    color: #fff;
}

.footer-copy {
  position: relative;
  top: -10px;
  left: -120px;
}

.footer-links {
  position: absolute;
  left: 820px;
  top: 45px;
  display: flex;
  gap: 90px;
}

.footer-heading {
  margin-bottom: 12px;
}

.footer-emblem {
  float: right;
  margin-top: -40px;
  margin-right: 320px;
}

/* MOBILE */


.registry-section {
  background: #f6f6f3;
  padding: 180px 20px 120px;
}

.registry-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.registry-text {
  width: 600px;
  text-align: left;
  margin-left: 0;
}
.registry-text h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 35px;
}

.registry-text p {
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: #111;
  margin-bottom: 35px;
}

.registry-image {
  width: 520px;
  flex-shrink: 0;
  text-align: right;
}

.registry-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.registry-button {
  display: inline-block;
  margin-top: 10px;
  padding: 18px 42px;
  background: #f3b502;
  color: #111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 40px;
  transition: 0.3s ease;
}

.registry-button:hover {
  background: #e0a800;
  transform: translateY(-3px);
}
/* ABOUT PROJECT INFOGRAPHIC */

.about-project-section {
  background: #f2f6f5;
  padding: 100px 20px 130px;
}

.about-project-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.about-project-section h2 {
  font-family: 'eUkraine', Arial, sans-serif !important;
  font-size: 28px;
  font-weight: 800 !important;
  line-height: 1.1;
  color: #111 !important;
  margin-bottom: 25px;
}

.about-project-subtitle {
  max-width: 760px;
  margin: 0 auto 60px;
  font-size: 20px;
  line-height: 1.5;
  color: #111;
}

.about-infographic {
  position: relative;
  max-width: 1200px;
  min-height: 520px;
  margin: 0 auto 70px;
}

.about-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: #f3b502;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  border: 14px solid #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-center::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 6px dashed rgba(0,0,0,0.25);
    border-radius: 50%;
    z-index: -1;
    animation: spin 30s linear infinite;
}

.about-center img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 10px;
}

.about-center h3 {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.about-center p {
  max-width: 210px;
  font-size: 12px;
  line-height: 1.4;
}

.about-card {
  position: absolute;
  width: 390px;
  height: 200px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 30px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  text-align: left;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.about-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 16px;
  line-height: 1.55;
  color: #333;
}

.about-icon {
  width: 86px;
  height: 86px;
  min-width: 86px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-top: 6px;
}

.card-left-top {
  left: 0;
  top: 60px;
}

.card-right-top {
  right: 0;
  top: 60px;
}

.card-left-bottom {
  left: 0;
  bottom: 30px;
}

.card-right-bottom {
  right: 0;
  bottom: 30px;
}

.about-belief {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 45px;
}


.about-points {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 10px 20px;
}

.point-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: #fff4ce;
  color: #f3b502;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.about-point h4 {
  font-size: 18px;
  font-weight: 800;
  margin-top: -15px;
  margin-bottom: 10px;
}

.about-point p {
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}
.move-up-text {
  transform: translateY(-15px);
}
.point-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.footer-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mon {
    right: 90px;
    bottom: 20px;
}

.gerb {
    right: 30px;
    bottom: 20px;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 38px;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content p {
    line-height: 1.7;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
}
footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #f5b804;
}
.registry-page {
  background: #fff;
  padding: 140px 60px;
  min-height: 100vh;
}

.registry-page h1 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.registry-table th,
.registry-table td {
  padding: 18px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.registry-table th {
  background: #f6f6f3;
  font-weight: 800;
}

.cert-btn {
  border: none;
  background: #f3b502;
  color: #111;
  padding: 11px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  margin-left: -20px;
}
.registry-table td:nth-child(4),
.registry-table td:nth-child(5) {
    text-align: left;
}

.cert-btn:hover {
  background: #e0a800;
}
.search-box {
  width: 520px;
  max-width: 90%;
  margin: 25px auto 30px;
  position: relative;
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.55;
}

.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 52px;
  border: 2px solid #f5b804;
  border-radius: 18px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.search-box input:focus {
  border-color: #111;
  box-shadow: 0 12px 35px rgba(245,184,4,0.25);
}
.application-form-box {
  max-width: 620px;
  width: 90%;
  padding: 34px 36px;
  border-radius: 24px;
}

.application-form-box h2 {
  margin-bottom: 22px;
  font-size: 26px;
  text-align: center;
}

.application-form-box form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.application-form-box input,
.application-form-box select,
.application-form-box textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  box-sizing: border-box;
  outline: none;
  background: #fff;
}

.application-form-box input:focus,
.application-form-box select:focus,
.application-form-box textarea:focus {
  border-color: #f5b804;
  box-shadow: 0 0 0 3px rgba(245, 184, 4, 0.18);
}

.application-form-box textarea {
  min-height: 110px;
  resize: vertical;
}

.application-form-box button {
  margin-top: 8px;
  padding: 15px 22px;
  border: none;
  border-radius: 40px;
  background: #f5b804;
  color: #111;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
}

.application-form-box button:hover {
  background: #e0a900;
  transform: translateY(-2px);
}
.contact-popup-box {
    margin-top: 10px;
}

.contact-popup-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f7f7;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 15px;
}

.contact-item span {
    font-size: 22px;
}

.contact-item a,
.contact-item p {
    margin: 0;
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.contact-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #f5b804;
    color: #111 !important;
    text-decoration: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.contact-button:hover {
    background: #e5ab00;
    transform: translateY(-2px);
}

#popup .popup-content {
    max-width: 550px;
}
.contact-popup-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-popup-intro {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

.contact-item {
    background: #f6f6f6;
    padding: 15px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item a {
    color: #111;
    font-weight: 800;
    text-decoration: none;
}

.contact-button {
    margin-top: 8px;
    display: block;
    text-align: center;
    background: #f5b804;
    color: #111;
    padding: 15px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
}
#popup .popup-content {
  max-width: 820px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
}

.contact-left h3,
.contact-right h3 {
  margin-bottom: 18px;
}

.contact-left p {
  margin-bottom: 15px;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form button {
  padding: 14px;
  border: none;
  border-radius: 30px;
  background: #f5b804;
  color: #111;
  font-weight: 800;
  cursor: pointer;
}
.map-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.ukraine-map-box {
  background: #f6f6f3;
  border-radius: 30px;
  padding: 35px;
  text-align: center;
}

.ukraine-map-box h2 {
  margin-bottom: 25px;
}

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

.region-grid button {
  border: none;
  background: #fff;
  padding: 14px 10px;
  border-radius: 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.region-grid button:hover {
  background: #f5b804;
  transform: translateY(-2px);
}

.region-result-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  min-height: 300px;
}

.region-result-box h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.region-result-box p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.school-list {
  list-style: none;
  padding: 0;
}

.school-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
@media (max-width: 900px) {
  .header {
    padding: 0 24px;
    justify-content: flex-end;
  }

  .logo {
    left: 24px;
  }

  .logo img {
    width: 45px;
    height: 45px;
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 80px;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 26px;
    padding: 40px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .menu.menu-open {
    transform: translateX(0);
  }

  .menu a {
    font-size: 16px;
  }

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

  .hero h1 {
    font-size: 44px;
  }

  .hero-card {
    transform: none;
  }

  .about-container {
    flex-direction: column;
    gap: 35px;
  }

  .about-image,
  .about-text {
    width: 100%;
  }

  .about-text h2 {
    font-size: 26px;
    white-space: normal;
  }

  .values-block {
    padding: 0 20px;
  }

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

  .value-card {
    min-width: 0;
    padding: 25px 18px;
  }

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

  footer {
    padding: 40px 24px 90px;
    text-align: center;
  }

  .footer-copy {
    position: static;
  }

  .footer-links {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
  }

  .footer-emblem {
    float: none;
    margin: 20px 0 0;
  }

  .registry-section {
    padding: 120px 20px 80px;
  }

  .registry-container {
    flex-direction: column;
    gap: 40px;
  }

  .registry-text,
  .registry-image {
    width: 100%;
  }

  .about-project-section {
    padding: 70px 20px 90px;
  }

  .about-infographic {
    position: static;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .about-center {
    position: static;
    transform: none;
    width: 220px;
    height: 220px;
  }

  .about-center::before {
    display: none;
  }

  .about-card {
    position: static;
    width: 100%;
    max-width: 420px;
    height: auto;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .registry-page {
    padding: 110px 20px 60px;
  }

  .registry-table,
  .registry-table thead,
  .registry-table tbody,
  .registry-table tr,
  .registry-table td {
    display: block;
    width: 100%;
  }

  .registry-table {
    min-width: 0;
  }

  .registry-table thead {
    display: none;
  }

  .registry-table tr {
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 8px 16px;
  }

  .registry-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    white-space: normal;
    text-align: right;
  }

  .registry-table td:last-child {
    border-bottom: none;
  }

  .registry-table td:nth-child(1)::before {
    content: "№";
    font-weight: 700;
    color: #888;
  }

  .registry-table td:nth-child(2)::before {
    content: "Ім'я";
    font-weight: 700;
    color: #888;
  }

  .registry-table td:nth-child(3)::before {
    content: "Населений пункт";
    font-weight: 700;
    color: #888;
  }

  .registry-table td:nth-child(4),
  .registry-table td:nth-child(5) {
    display: block;
    text-align: center;
    padding: 10px 0;
  }

  .cert-btn {
    width: 100%;
    margin-left: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

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

  .popup-content {
    padding: 24px 20px;
    border-radius: 20px;
  }
}
