:root {
  --bg-main: #ffffff;
  --bg-soft: #f7f5f1;
  --bg-light: #faf8f3;

  --green: #3e4a34;
  --brown: #b38b59;
  --text: #555;
  --title: #2f2f2f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--beige);
  color: var(--text);
}

h2 {
  font-family: "Playfair Display", serif;
  color: var(--green);
  font-size: 2.4rem;
  margin-bottom: 40px; /* ← ВАЖНО (отступ вниз) */
  text-align: center;
}

.service-column,
.clinic,
.reviews-strip,
.registration-strip {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  background: rgba(243, 241, 235, 0.85);
  backdrop-filter: blur(10px);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.logo-icon i {
  color: white;
  font-size: 28px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
  margin: 0;
  letter-spacing: 0.3px;
  letter-spacing: 1.5px;
}

.logo-subtitle {
  font-size: 1rem;
  color: #777;
  margin: 2px 0 0;
  letter-spacing: 0.5px;
  letter-spacing: 1.8px;
}

/* Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links .active-link a {
    color: #c89b6d;
    background-color: rgba(200,155,109,0.1); /* такой же лёгкий hover как в dropdown */
}

.active-link a {
  color: #c89b6d;
  font-weight: 500;
}

/* Dropdown Menu */
.services-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-soft);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 5px 0;
    width: 180px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 999;
}

.dropdown-menu.show-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 8px 15px;
    font-size: 1rem; 
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: #c89b6d;
    background-color: rgba(200,155,109,0.1);
}

/* ABOUT */
.about-me {
  margin-top: 85px;
  background: #e9e4d8;
}

.about-container {
  width: 80%;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-radius: 25px;
}

.about-image {
  flex: 0 0 320px; 
}

.about-image img {
  width: 100%;
  height: 380px; 
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
}

.about-text {
  flex: 1;
  padding: 10px 0;
  background: transparent; 
}

#section-label {
  color: #b08968; 
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 600;
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  color: #3e4730;
  margin-bottom: 10px;
  text-align: left;
}

.subtitle {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 12px;
  color: #555;
  font-size: 0.95rem;
  text-align: justify;
}

/* SERVICES */
.services {
  background: var(--bg-soft);
  padding: 40px 0;
  text-align: center;
}

.services h2 {
  font-family: "Playfair Display", serif;
  color: var(--green);
  margin-bottom: 40px;
}

.services-grid {
  width: 80%;
  margin: auto;
  display: flex;
  gap: 30px;
}

.service-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  flex: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.service-card h3 {
  color: var(--green);
  margin-bottom: 10px;
  color: #b08968;;
}

.service-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: #666;
}

/* REGISTRATIONS */
.registrations {
  background: #e9e4d8;
  padding: 40px 0;
  text-align: center;
}

.registration-grid {
  display: flex;
  gap: 20px;
  width: 80%;
  margin: auto;
}

.registration-card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.registration-card img {
  height: 60px;
  margin-bottom: 10px;
}

/* CLINICS */
.clinics {
  padding: 40px 0;
  background-color: #ffffff;
}

.clinics h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #4a5936;
  margin-bottom: 30px;
  font-family: "Playfair Display", serif;
}

.clinics-grid {
  width: 80%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.clinic-card {
  display: flex;
  gap: 35px;
  background: #f8f7f2;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.clinic-card:hover{
  transform: translateY(-5px);
  transition: 0.3s;
}

.clinic-left,
.clinic-right {
  flex: 1;
}

.clinic-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.clinic-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clinic-right h3 {
  font-size: 1.5rem;
  color: #3e4730;
  margin-bottom: 5px;
  font-weight: 500;
}

.clinic-right p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.clinic-right a {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #c89b6d;
  text-decoration: none;
  font-weight: 500;
}

.clinic-right a:hover {
  text-decoration: underline;
}

.clinic-right iframe {
  width: 100%;
  height: 110px;
  border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .clinics-grid{
    grid-template-columns: 1fr;
  }
  .clinic-card {
    flex-direction: column;
  }

  .clinic-left img {
    height: 200px;
  }

  .clinic-right iframe {
    max-width: 100%;
  }
}

/* REVIEWS */
.reviews {
  background: var(--bg-soft);
  padding: 40px 0;
  text-align: center;
}

.reviews-grid {
  width: 80%;
  margin: auto;
  display: flex;
  gap: 20px;
}

.reviews-grid img {
  width: 50%;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);

}

/* FOOTER */
.footer {
  position: relative;
  background: linear-gradient(
    180deg,
    #7a8c5a 0%,
    #5e7045 35%,
    #3f4f2f 70%,
    #2b3620 100% 
  );
  color: white;
  padding: 50px 0 20px;
  overflow: hidden;
}

/* Листья */
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 550px;
  height: 380px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35; 
  pointer-events: none;
  mix-blend-mode: multiply;
  bottom: -70px;
}

/* Левый */
.footer::before {
  left: 0;
  background-image: url('../img/leaves-left-dark.png');
}

/* Правый */
.footer::after {
  right: 0;
  transform: translateX(50%);
  background-image: url('../img/leaves-right-dark.png');
}

/* Контейнер */
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 60px 30px;
  flex-wrap: wrap;
}

/* Колонки */
.footer-column {
  max-width: 300px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-column p {
  font-size: 0.9rem;
  color: #e0e0e0;
  margin: 5px 0;
}

/* Ссылки */
.footer a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #c89b6d;
}

/* Нижняя часть */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links a {
  margin-left: 15px;
}

/* =========================
   ABOUT PAGE
========================= */
#about-page{
  background: #e9e4d8;
}

.about {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  width: 80%;
  margin: 120px auto 0;
}

.about-txt {
  flex: 80%;
  padding: 10px 0;
  width: 100%;
  height: auto;
}

.about-txt h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
  color: #3e4730;
  font-family: "Playfair Display", serif;
}

.about-txt p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
  text-align: justify;
}

.about-photos {
  flex: 20%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  padding: 85px 0 30px;
}

.about-photos img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 250px;
  width: 80%;
  background-position: top;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12); /* сильнее */
  transition: 0.3s;
  object-position: top;
}

/* =========================
   GENERAL PAGE
========================= */
#general-page{
  background-color: #e9e4d8
}

.section-container {
  width: 100%;
  margin: 130px auto 0;
  text-align: center;
}

.section-container > h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 0;
  color: #3e4730;
  font-family: "Playfair Display", serif;
}

.page-container{
  width: 100%;
  justify-content: center;
  padding: 10px 0 0 0;
}

.section-block{
  width: 100%;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-block:nth-child(odd) {
  background-color: #e9e4d8;
}

.section-block:nth-child(even) {
  background-color: var(--bg-soft);
}

h3{
  color: #b08968; 
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-family: "Playfair Display", serif;
}

.info-box {
  width: 80%;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.info-text, .img-box {
  flex: 1;
}

.img-box {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start; 
}

.info-img {
  width: calc(50% - 10px); 
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.info-img:hover {
  transform: translateY(-5px);
}

.info-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
  text-align: justify;
}

/* =========================
   VOLUNTEERIN PAGE
========================= */
.vol-reviews{
  width: 80%;
  padding: 20px 0;
}

.vol-reviews p{
  padding-bottom: 20px;
}

.info-text h4, .vol-reviews h4{
  color: #b08968;
}

.info-text ul{
  padding-bottom: 20px;
  padding-left: 20px;
}

.vol-reviews .reviews-grid{
  width: 100%;
}

/* =========================
   CERTIFICATES PAGE
========================= */
.ser{
  width: 80%;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: auto;
  padding: 50px 0;
  align-items: stretch;
}

.certificate {
  background: var(--bg-soft);
  padding: 25px;
  border-radius: 15px;
  flex: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
  text-align: center;
}

.certificate:hover {
  transform: translateY(-5px);
}

.certificate img{
  height: 100px;
  width: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  }

.cert-info {
  margin-top: 10px;
}

.certificate h4{
  margin: 15px 0 10px;
  display: flex;
  align-items: start;
  justify-content: center;
  text-align: center;

  min-height: 40px;
  line-height: 1.3;
}

.cert-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 3px 0;
}  

.certificate a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #c89b6d;
  text-decoration: none;
  font-weight: 500;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {

  .about-container,
  .services-grid,
  .clinics-grid,
  .registration-grid,
  .footer-grid,
  .reviews-grid {
    flex-direction: column;
  }

  .navbar {
    padding: 15px 20px;
  }

   .about {
    flex-direction: column;
    width: 90%;
    gap: 30px;
  }

  .about-photos {
    flex-direction: row;
    overflow-x: auto;
  }

  .about-photos img {
    width: 200px;
    flex-shrink: 0;
  }
}