.first-header {
  padding: calc(11.25rem - clamp(3.125rem, 1.5396rem + 6.5041vw, 8.125rem)) 0 clamp(7.5rem, 3.9329rem + 14.6341vw, 18.75rem);
  background-image: url(/wp-content/uploads/2025/02/first.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: var(--main-margin);
}

h1.title {
  color: var(--White);
  font-size: clamp(1.74rem, 1.2847rem + 1.5336vw, 3.125rem);
  font-weight: 700;
  line-height: 150%;
  max-width: 1110px;
  margin: 0 auto clamp(1.25rem, 1.0446rem + 0.6920vw, 1.875rem);
  text-align: center;
}

p.first-descr {
  color: #fff;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto clamp(1.875rem, 1.6696rem + 0.6920vw, 2.5rem);
  font-size: clamp(1rem, 0.8356rem + 0.5536vw, 1.5rem);
}

.first-description ul {
  padding: 0;
  margin: 0;
}

li.first-descr {
  font-size: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  color: var(--White);
  font-weight: 400;
  line-height: 160%;
  margin-bottom: clamp(1rem, 0.8415rem + 0.6504vw, 1.5rem);
}

li.first-descr:last-child {
  margin-bottom: 0;
}

.news {
  margin-bottom: var(--main-margin);
}

div#news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  margin-bottom: 30px;
}

h2.block-title,
h1.page-title {
  font-size: clamp(1.625rem, 1.2683rem + 1.4634vw, 2.75rem);
  font-weight: 700;
  line-height: normal;
  margin-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
  text-transform: uppercase;
}

a.news-link {
  border-radius: clamp(0.625rem, 0.4268rem + 0.8130vw, 1.25rem);
  overflow: hidden;
  display: block;
}

.news-item-content {
  padding: 20px;
  border-right: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
  border-left: 1px solid #CCC;
  border-radius: 0 0 clamp(0.625rem, 0.4268rem + 0.8130vw, 1.25rem) clamp(0.625rem, 0.4268rem + 0.8130vw, 1.25rem);
}

.post-thumbnail {
  display: flex;
}

h2.single-title.post-cart-title {
  font-size: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  font-weight: 700;
  line-height: normal;
  margin-bottom: 15px;
}

.entry-excerpt {
  color: var(--Text);
  font-size: clamp(0.875rem, 0.8354rem + 0.1626vw, 1rem);
  font-weight: 300;
  line-height: 160%;
  margin-bottom: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
}

span.news-date {
  color: var(--Black);
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
}

a.page_btn {
  color: #000000;
  background-color: var(--Accent);
  width: 320px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
  text-transform: uppercase;
  margin: 0 auto;
  column-gap: 8px;
}

a.page_btn path {
  fill: #000000;
}

.page-top {
  padding-top: clamp(3.125rem, 2.7287rem + 1.6260vw, 4.375rem);
  margin-bottom: var(--main-margin);
}

h1.page-title.header-title {
  font-size: clamp(1.625rem, 1.1890rem + 1.7886vw, 3rem);
  font-weight: 700;
  line-height: normal;
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-single-container {
  max-width: 780px;
  margin: 0 auto var(--main-margin);
}

.news-single-container img {
  display: flex;
  border-radius: clamp(0.75rem, 0.5915rem + 0.6504vw, 1.25rem);
  margin-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
}

h1.entry-title {
  font-size: clamp(1.625rem, 1.2683rem + 1.4634vw, 2.75rem);
  font-weight: 700;
  line-height: normal;
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
}

.entry-meta {
  font-size: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  font-weight: 400;
  line-height: normal;
  margin-bottom: 30px;
}

.entry-content p {
  font-weight: 300;
}

.entry-content p:last-child,
.entry-content p:only-child {
  margin-bottom: 0;
}

.news-single-container article {
  margin-bottom: 30px;
}

.share-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

span.share-text {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 140%;
  color: var(--Black);
}

.share-icons {
  display: flex;
  align-items: center;
  column-gap: 40px;
}

.entry-content h2 {
  font-size: clamp(1.625rem, 1.5457rem + 0.3252vw, 1.875rem);
  font-weight: 600;
  line-height: 120%;
  margin: 30px 0;
}

.entry-content h3,
.entry-content h4,
.entry-content h5 {
  font-size: 26px;
  font-weight: 600;
  line-height: 130%;
  margin: 30px 0;
}

.entry-content h5 {
  font-size: 20px;
  font-weight: 500;
}

.entry-content blockquote {
  font-size: clamp(1.25rem, 1.1311rem + 0.4878vw, 1.625rem);
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid #060632;
  border-bottom: 1px solid #060632;
}

.entry-content blockquote p {
  font-weight: 600;
  line-height: 130%;
  color: var(--Black);
}

.entry-content ul,
.entry-content ol {
  padding-left: 15px;
  margin-bottom: 20px;
  font-weight: 300;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 16px;
}

.entry-content ul li:last-child,
.entry-content ol li:last-child {
  margin-bottom: 0;
}

.entry-content ul li ul,
.entry-content ol li ul {
  margin-top: 16px;
  margin-bottom: 0;
}

.about-block {
  display: flex;
  align-items: center;
  margin-bottom: clamp(3.75rem, 3.3419rem + 1.3746vw, 5rem);
  gap: 20px 40px;
}

.flex {
  flex: 1;
}

.about-block-item img {
  border-radius: clamp(0.625rem, 0.4196rem + 0.6920vw, 1.25rem);
}

.about-block-item h2.block-title {
  margin-bottom: clamp(1.25rem, 1.0446rem + 0.6920vw, 1.875rem);
}

p.about-descr.fir {
  margin-bottom: 40px;
}

h3.block-subtitle {
  font-size: clamp(1.25rem, 1.0035rem + 0.8304vw, 2rem);
  text-transform: uppercase;
  line-height: normal;
  margin-bottom: 20px;
}

p.about-descr {
  font-size: clamp(1rem, 0.8356rem + 0.5536vw, 1.5rem);
}

.yellow_block {
  background-color: #FFFAE9;
  border-radius: clamp(0.625rem, -0.1968rem + 2.7682vw, 3.125rem);
  padding: clamp(1.875rem, 0.8478rem + 3.4602vw, 5rem) clamp(1.25rem, 0.0173rem + 4.1522vw, 5rem);
  margin-bottom: var(--main-margin);
}

.mission-item-inner {
  display: flex;
  align-items: flex-start;
  column-gap: 40px;
}

.mission-item.border-bottom {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #BCBCBC;
}

h3.mission-title {
  font-size: clamp(1.375rem, 1.1696rem + 0.6920vw, 2rem);
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 20px;
}

p.mission-desc {
  font-size: clamp(1rem, 0.9178rem + 0.2768vw, 1.25rem);
}

.category {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: var(--main-margin);
}

.category h2.block-title {
  margin: 0;
}

.categ-col-item {
  display: flex;
  align-items: center;
  column-gap: clamp(0.875rem, 0.7517rem + 0.4152vw, 1.25rem);
}

.categ-col-item img {
  width: clamp(3.75rem, 3.3391rem + 1.3841vw, 5rem);
  height: clamp(3.75rem, 3.3391rem + 1.3841vw, 5rem);
}

.category-item.flex.categ-col {
  display: flex;
  flex-direction: column;
  row-gap: clamp(1.875rem, 1.2587rem + 2.0761vw, 3.75rem);
}

.categ-col-item h4 {
  font-size: clamp(1.25rem, 1.0035rem + 0.8304vw, 2rem);
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: clamp(0.875rem, 0.7517rem + 0.4152vw, 1.25rem);
}

.categ-col-item span {
  font-size: clamp(1rem, 0.9178rem + 0.2768vw, 1.25rem);
  line-height: 140%;
}

.people .about-block {
  margin: 0;
}

h3.block-title {
  font-size: clamp(1.375rem, 1.1696rem + 0.6920vw, 2rem);
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.people p.about-descr {
  margin-bottom: clamp(1.25rem, 0.8391rem + 1.3841vw, 2.5rem);
}

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

.people .about-block-item img {
  display: flex;
  margin-bottom: 30px;
}

/* ///////// */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  /* Компенсация отступов */
  width: 100%;
}

/* Masonry требует явного указания ширины */
.gallery-item {
  width: calc(33.333% - 10px);
  /* Три колонки, можно менять */
  margin-left: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item a {
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .gallery-item {
    width: calc(50% - 10px);
    /* Две колонки */
  }
}

@media (max-width: 768px) {
  .gallery-item {
    width: 100%;
    /* Одна колонка на мобильных */
  }
}

.gallery {
  margin-bottom: var(--main-margin);
}

.sectificate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 30px;
}

:target {
  scroll-margin-top: 100px;
  /* Учитывает высоту хедера */
}

html {
  scroll-behavior: smooth;
}

.about {
  display: flex;
  align-items: center;
  gap: 30px 100px;
}
.about-inner {
  flex: 1;
}
.about-inner iframe {
  border-radius: clamp(0.625rem, 0.4196rem + 0.6920vw, 1.25rem);
  height: clamp(12.688rem, 7.6136rem + 17.0929vw, 28.125rem);
}
h1.page-title {
  margin-bottom: clamp(2.5rem, 2.2946rem + 0.6920vw, 3.125rem);
}
.contacts-block a.footer-contacts__link {
  font-size: clamp(0.938rem, 0.8354rem + 0.3455vw, 1.25rem);
  color: var(--Black);
  line-height: normal;
  margin-bottom: clamp(1.875rem, 1.4641rem + 1.3841vw, 3.125rem);
}
.contacts-block a.footer-contacts__link:last-child {
  margin-bottom: clamp(2.5rem, 2.2946rem + 0.6920vw, 3.125rem);
}
span.social-title {
  display: block;
  font-size: clamp(1.125rem, 1.0839rem + 0.1384vw, 1.25rem);
  font-weight: 700;
  line-height: 130%;
  margin-bottom: clamp(1.25rem, 1.1678rem + 0.2768vw, 1.5rem);
}
 


@media (max-width: 768px) {
  span.social-title {
    max-width: 59%;
  }
  .about {
    flex-direction: column;
  }
  .popup-content.mob-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .mob-menu-logo {
    align-self: flex-start;
  }

  .mob-content a.page_btn {
    width: 236px;
    height: 50px;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
  }

  ul#mob-menu a {
    text-transform: uppercase;
    line-height: 120%;
    color: var(--Black);
  }

  :target {
    scroll-margin-top: 60px;
    /* Учитывает высоту хедера */
  }

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

  .category h2.block-title {
    max-width: 300px;
    line-height: 130%;
  }

  .category {
    flex-direction: column;
  }

  .mission-item-inner-block.last {
    padding: 0;
    margin: 0;
    border: none;
  }

  .mission-item-inner-block {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #BCBCBC;
  }

  .mission-item-inner {
    flex-direction: column;
  }

  .mission-item.border-bottom {
    padding: 0;
    margin: 0;
    border: none;
  }

  .about-block {
    flex-direction: column;
  }

  h1.title,
  p.first-descr {
    text-align: left;
  }

  div#mob-menu span.close-popup {
    right: calc(clamp(1rem, -1.1348rem + 8.7582vw, 9.375rem) - 6px);
    top: 12px;
  }

  div#mob-menu svg.close path {
    fill: var(--Accent);
  }

  div#mob-menu {
    width: 100%;
    top: 0;
    padding: 5px clamp(1rem, -1.1348rem + 8.7582vw, 9.375rem) 30px;
  }

  a.page_btn.z-btn {
    width: 100%;
    height: 48px;
  }

  .zaynjat-block {
    grid-template-columns: repeat(1, 1fr);
  }

  .logo_block.mobile {
    display: none;
  }

  .block_form .container {
    flex-direction: column;
  }

  .about {
    flex-direction: column;
  }

  .share-block {
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
  }

  h1.entry-title,
  .entry-meta {
    text-align: center;
  }

  ul#mob-menu,
  ul.sub-menu {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  ul#mob-menu {
    display: flex;
    flex-direction: column;
    row-gap: 34px;
    margin: 60px 0;
  }


}