/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/


@font-face {
  font-family: 'Roboto Flex';
  src: url('/wp-content/themes/astra-child/assets/fonts/roboto-flex-variable.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}


/* =================================
   HEADER
   ================================= */

@media (min-width: 1440px){
  .main-header-menu{
  gap: 20px;
  }
}


@media (min-width: 922px) {
  .site-header-primary-section-center {
    position: static;
    left: auto;
  }

  .site-header-primary-section-center .main-header-bar-navigation {
    margin-left: 60px;
  }
}


 /* CAPS только для верхнего уровня меню (не для dropdown) */
.main-header-menu a{
  text-transform: uppercase;
  letter-spacing: 0.06em;

  position: relative;
  transition: color 0.2s ease;
}

.main-header-menu a:hover{
  color: #d6a800;
}


/* Выделение активного пункта: только верхний уровень */
.main-header-menu .current-menu-item > a{
  font-weight: 600;
  position: relative;
}

@media (min-width: 1148px) {
  .main-header-menu .current-menu-item > a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 2px;
    background-color: #FFC72C;
}

}

/* список языков */
#menu-language-switcher-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* убрать вертикальные отступы */
#menu-language-switcher-header li{
  margin: 0;
  padding: 0;
}

#menu-language-switcher-header a{
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 80, "wght" 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;

  text-decoration: none;
  color: #808892;

  white-space: nowrap;

  transition: color 0.2s ease, opacity 0.2s ease;
}

/* hover */
#menu-language-switcher-header a:hover{
  color: #AEB6BF;
}

/* активный язык */
#menu-language-switcher-header .current-lang a{
  color: #FFC72C;
}

#menu-language-switcher-header .current-lang a:hover{
  color: #FFC72C;
}

@media (min-width: 922px) and (max-width: 1176px) {
  .main-header-menu {
    font-size: 0.95rem;
  }
}

@media (min-width: 922px) and (max-width: 1147px) {
  .main-header-menu .menu-link {
    line-height: 2.1;
  }
}

/* MOBILE LANGUAGE ARROW */

@media (max-width: 921px){

  .ast-builder-menu-mobile .lang-item > a.menu-link::after,
  .ast-builder-menu-2 .lang-item > a.menu-link::after{
    content: " ›";
    margin-left: 8px;
    opacity: 0.7;
  }

}

.custom-logo {
    border-radius: 3px;
}


/* =================================
   HERO
   ================================= */

.hero-section{
  min-height: calc(100vh - 100px);

  position: relative;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before{
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    #292929 0%,
    rgba(42, 42, 42, 0.75) 20%,
    rgba(42, 42, 42, 0.3) 45%,
    rgba(42, 42, 42, 0.1) 75%,
    rgba(42, 42, 42, 0) 100%
  ),
 linear-gradient(
      to right,
      rgba(42, 42, 42, 0.7) 0%,
      rgba(42, 42, 42, 0.5) 30%,
      rgba(42, 42, 42, 0.2) 60%,
      rgba(42, 42, 42, 0) 100%
    );
  z-index: 1;
}


@media (max-width: 921px) {
  .hero-section::before {
    background: linear-gradient(
      to bottom,
      #2A2A2A 0%,
      rgba(42, 42, 42, 0.9) 12%,
      rgba(42, 42, 42, 0.75) 35%,
      rgba(42, 42, 42, 0.45) 65%,
      rgba(42, 42, 42, 0) 100%
    ),
    linear-gradient(
      135deg,
      rgba(42, 42, 42, 0.9) 0%,
      rgba(42, 42, 42, 0.65) 30%,
      rgba(42, 42, 42, 0.25) 60%,
      rgba(42, 42, 42, 0) 100%
    );

      z-index: 1;
  }
}


.hero-content{
  display: flex;
  position: relative;
  z-index: 2;

  margin-right: auto;

  margin-left: 0;
  
  text-align: left;

  min-height: inherit;


  align-items: center;
  transform: translateY(2%);

}

.hero-title{
  text-transform: uppercase;
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 1.15;
  font-variation-settings: "wdth" 120, "wght" 700;
}

.title-accent{
  color: #FFC72C;
}

.hero-content .hero-subtitle {
  max-width: 55ch;

  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 100, "wght" 420;
  
  color: #E1E5EA;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);

  margin-block: 0;
}


/* Добавить желтое подчеркивание ссылок на Главной*/

.entry-content .accent-link a {
  text-decoration: none;

  border-bottom: 2px solid #FFC72C;
  padding-bottom: 4px;
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
}

/* =========================
   MAIN SERVICES
========================= */

.main-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.15rem;
}

@media (max-width: 1919px) {
  .entry-content .main-services-grid.is-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .entry-content .main-services-grid.is-layout-grid {
    grid-template-columns: 1fr;
  }
}

.main-service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  min-height: 160px;
  padding: 2.25rem 2rem 2rem;

  position: relative;

  background: #FFFFFF;
  border: 1px solid #E3E3DF;
  border-radius: 6px;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.main-service-card:hover {
  border-color: #DDDDD6;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.main-service-card-icon-wrap {
  margin-bottom: 1.25rem;
}

.main-service-card-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffcd3a;
  border-radius: 4px;
}

.main-service-card-icon img,
.main-service-card-icon svg {
  display: block;
  width: 74px;
  height: 74px;
}

.main-service-card-icon img {
  object-fit: contain;
}

.main-service-card-title {
  margin: 0;

  font-family: "Roboto Flex", sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 550;
  color: #2A2A2A;

  text-wrap: balance;
}

.ast-single-post .entry-content .main-service-card-title a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   HOME FEATURED PROJECTS
========================= */

.home-featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.home-featured-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;

  background: #FFFFFF;
  border: 1px solid #E6e6e1;
  border-radius: 6px;
  overflow: hidden;

  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.home-featured-project-card:hover {
  border-color: #DDDDD6;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.home-featured-project-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-featured-project-card__content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 0.9rem;
  background: #FFFFFF;
  min-height: 142px;
}

.home-featured-project-card__service {
  display: inline-flex;
  align-items: center;

  margin-bottom: 0.9rem;
  padding: 0.35rem 0.62rem;

  background: #ffd54f;
  border-radius: 4px;

  font-family: "Roboto Flex", sans-serif;
  font-variation-settings: "wdth" 90, "wght" 480;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #2a2a2a;
  white-space: nowrap;
}

.home-featured-project-card__title {
  margin: 0;

  font-family: "Roboto Flex", sans-serif;
  font-weight: 520;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #2a2a2a;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-featured-project-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F5F5F2;
}

.home-featured-project-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.4s ease;
}

.home-featured-project-card:hover .home-featured-project-card__img {
  transform: scale(1.03);
}

.home-featured-project-card__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #F2F2EE 0%, #E9E9E4 100%);
}


@media (max-width: 1919px) {
  .entry-content .home-featured-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .entry-content .home-featured-projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .entry-content .home-featured-project-card__content {
    min-height: auto;
    padding: 0.9rem 0.9rem 0.85rem;
  }

  .entry-content .home-featured-project-card__service {
    font-size: 0.8rem;
    padding: 0.32rem 0.6rem;
    margin-bottom: 0.75rem;
  }

  .entry-content .home-featured-project-card__title {
    font-size: 1rem;
    line-height: 1.2;
  }
} 


/* ==============================
   Partners carousel
   ============================== */


.main-partners-inner {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

@media (max-width: 921px) {
  .main-partners-inner {
    padding-top: 3.5rem;
    padding-bottom: 0
  }
}

.partners-carousel-wrap{
  position: relative;
  overflow: visible;
}

/* Track */
.partners-carousel{
  display: grid;
  grid-auto-flow: column;
  gap: 18px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  padding-bottom: 12px;
  scrollbar-gutter: stable;
}

/* ширина “карточки” на ПК: 4.5–4.7 в кадре */
@media (min-width: 922px){
  .partners-carousel{
    grid-auto-columns: 21.5%;
  }
}

@media (max-width: 921px){
  .partners-carousel{
    grid-auto-columns: 60%;
    gap: 0px;
    padding-left:12px;
  }
}

/* Items */
.partners-item{
  display: grid;
  place-items: center;
  height: 140px;
  border-radius: 6px;

  transition: transform 0.25s ease;
}
  
.partners-item:hover {
  transform: translateY(-3px);
}

.partners-img{
  max-width: 87%;
  max-height: 87%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partners-link{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.partners-item .partners-link {
  background: none;
  text-decoration: none;
}


/* Arrows */

  .partners-arrow{
    display: grid;
    place-items: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    padding: 0;
    border: none;
    background: transparent;
    color: rgba(0,0,0,0.35);

    cursor: pointer;
    z-index: 5;
  }

  .partners-arrow--left{ left: -35px; }
  .partners-arrow--right{ right: -35px; }

  .partners-arrow.is-hidden{
    opacity: 0;
    pointer-events: none;
  }

  .partners-arrow,
  .partners-arrow:hover,
  .partners-arrow:focus,
  .partners-arrow:active{
    outline: none;
    box-shadow: none;
  }

/* убрать скроллбар (но оставить возможность скроллить) */


  .partners-carousel{
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* старый Edge */
  }

  .partners-carousel::-webkit-scrollbar{
    display: none;              /* Chrome/Safari */
  }

/* =================================
   Заголовки и внутренние страницы
   ================================= */

h1, h2, h3{
  font-family: 'Roboto Flex', sans-serif;
}

.section-inner-left-right {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section-inner-top-bottom-3 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-inner-top-bottom-5 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-inner-top-bottom-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 921px) {
  .section-inner-left-right {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-inner-top-bottom-3,
  .section-inner-top-bottom-5,
  .section-inner-top-bottom-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.ai-note {
  text-transform: uppercase;
  letter-spacing: 0.2em;

  font-size: 0.75rem;
  color: #ccd3d9;
}

@media (max-width: 921px) {
.ai-note {
  letter-spacing: 0.1em;
}
}

/* Внутренние страницы: жёлтая линия под заголовком*/
.title-with-line {
  position: relative;
  padding-bottom: 12px;
  /*text-transform: uppercase;*/
}

.title-with-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 45px;
  height: 2px;

  background: #FFC72C;

  transition: width 0.25s ease;
}


.page-hero-section{
 border-bottom: 3px solid #E6B82E;
}

@media (min-width: 1440px) {
  .entry-content .page-hero-inner .wp-block-columns{
    margin-top: 4rem;
  }
}


.page-hero-inner .wp-block-columns {
  justify-content: space-between;
}

.page-hero-content {
  min-width: 0;
}

.page-hero-title{
  text-transform: uppercase;
  line-height: 1.15;
  font-variation-settings: "wdth" 120, "wght" 800;
  font-size: clamp(2.1rem, 3.5vw, 3.5rem);
}

.page-hero-title::after{
  display: none;
}

.page-hero-eyebrow{
  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #aaa;
}

.page-hero-eyebrow::before{
  content: "";
  display: block;

  width: 24px;
  height: 2px;
  background: #C9A84A;
}

.page-hero-subtitle-accent{
  color: #fafafa;
}

.page-hero-quote {

  margin-top: 2.5rem;

  /* лёгкое скругление (по желанию) */
  border-radius: 3px;

  /* чтобы не растягивалась слишком */
  max-width: 75ch;

  border-left: 3px solid #FFC72C;
}

.page-hero-quote p {

  font-size: clamp(1.25rem, 1.5vw, 1.45rem);
  line-height: 1.2;
  font-weight: 500;

}

.about-page-hero-subtitle {
  max-width: 75ch;
}

.page-hero-inner .page-hero-subtitle{
  margin-top: 1rem;
}

.section-title {

  text-transform: uppercase;

  line-height: 1.2;

  font-variation-settings:
    "wght" 800,
    "wdth" 120;
}


@media (max-width: 1439px) {
  .about-section-title {
  font-size: 1.65rem;
  }
}

.entry-content .about-section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;

  margin: 0 0 1.3rem 0;
  padding: 0;

  list-style: none;
}

.about-section-tags li {
  margin: 0;
  padding: 0.55rem 0.85rem;

  list-style: none;

  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3F3F3B;

  background-color: #F4F4F1;
  border: 1px solid #E3E3DF;
  border-radius: 2px;
}

.about-section-countries {
  background: #F4F4F1;

  padding: 1.5rem 2rem;
  padding-left: 2.5rem;

  position: relative;
  gap: 2rem;
}

.about-section-countries::before {
  content: "";
  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 2px;
  background: #FFC72C;
}

@media (max-width: 921px) {
  .entry-content .about-section-countries.is-layout-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content .about-section-countries.is-layout-flex > .about-section-country {
    min-width: 0;
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .entry-content .about-section-countries.is-layout-flex {
    grid-template-columns: 1fr;
  }
}

.about-section-country {
  gap: 0.3rem;
  padding-right: 2rem;
  border-right: 1px solid #D8DEE5;
}

.about-section-country:last-child {
  border-right: none;
  padding-right: 0;
}

.about-section-country-title {
  margin: 0;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 110, "wght" 550;
  font-size: 0.95rem;
  line-height: 1.2;


  text-transform: uppercase;
  letter-spacing: 0.05em;

  color: #2A2A2A;
}

.about-work-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-work-card {
  background: #FAFAFA;

  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  border: 1px solid #E8e8e4;

  box-shadow: 0 3px 6px rgba(0,0,0,0.03);
  
  transition: all 0.25s ease;
}


.about-work-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #E0E0DC;

  z-index: 2;
}

.about-work-card:hover .title-with-line::after {
  width: 80px;  /* увеличенная длина */
}

.about-work-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: #5A4A1F;
}

.about-work-card-title {
  margin: 0;
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 120, "wght" 700;
  font-size: 1.1rem;
  line-height: 1.3;
  text-transform: uppercase;

  color: #2B2B28;
}

.about-work-card-text {
  margin: 0;

  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #6A6A65;
}

.entry-content .about-work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;

  margin: 0;
  margin-top: auto;

  padding: 0;
  list-style: none;
}

.about-work-card-tags li {
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 80, "wght" 550;
  
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  padding: 0.3rem 0.55rem;

  background: rgba(255, 199, 44, 0.12);
  border: 1px solid rgba(184, 147, 32, 0.5); /* тёмно-жёлтый бордер */

  color: #5A4A1F;
}

.about-licenses {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  background: #F7F7F5;

  padding: 2rem 1.75rem 2.25rem 1.75rem;

  border-radius: 3px;
}

.about-licenses::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 2px;
  background: #FFC72C;
}

.about-license {
  padding: 1rem 0;

  position: relative;
}

.about-license::after {
  content: "";
  position: absolute;

  left: 0;
  right: 0;
  bottom: -0.5rem;

  width: 220px;
  height: 1px;
  background: #E8E8E4;
}

.about-license:last-child::after {
  display: none;
}

.about-license:last-child {
  padding-bottom: 0;
}

.about-license:first-child {
  padding-top: 0;
}

.about-license-title {
  margin: 0;
  
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 110, "wght" 550;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #2A2A2A;
}

.about-license-note-accent {
  color: #1F1F1C;
}

.about-license-note {
  margin: 0;

  font-size: 0.91rem;
  line-height: 1.5;
  color: #6A6A65;
}


.page-slogan-section {
  border-top: 3px solid #E6B82E;
  border-bottom: 2px solid #E6B82E;
}

@media (max-width: 921px) {
  .page-slogan-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.page-slogan-title {
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 120, "wght" 800;

  font-size: 2.5rem;
  line-height: 1.15;
  color: #E6E8EB;
  text-transform: uppercase;
}

@media (max-width: 1439px) {
  .page-slogan-title {
    font-size: 2.25rem;
    letter-spacing: 0.02em;
  }
}


.page-slogan-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.page-slogan-list li{
  position: relative;
  padding-left: 14px;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.page-slogan-list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0.7em;

  width: 16px;
  height: 2px;

  background: #E6B82E;
  opacity: 0.8;
}

.services-slogan-list li:last-child {
  margin-top: 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;

  font-size: 0.75rem;

  position: relative;
  padding-left: 14px;

  opacity: 0.85;
}

.services-slogan-list li:last-child::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -1px;

  width: 18px;
  height: 18px;

  background-color: #E6B82E;
  opacity: 0.8;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c3 3 3 15 0 18'/%3E%3Cpath d='M12 3c-3 3 -3 15 0 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c3 3 3 15 0 18'/%3E%3Cpath d='M12 3c-3 3 -3 15 0 18'/%3E%3C/svg%3E");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* =================================
   service-cards
   ================================= */

.service-cards-grid.wp-block-group.is-layout-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .service-cards-grid.wp-block-group.is-layout-grid {
  grid-template-columns: repeat(1, 1fr);

  padding-left: 1rem;
  padding-right: 1rem;
}
}

.service-card {
  position: relative;

  padding: 3rem 2.5rem;
}

.service-card {
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.25s ease;
}


.service-card:hover {
  background-color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);

  z-index: 2;
}

.service-card:hover::before {
  background-color: #E5E5E5;
}

.service-card::after {
  content: "01";

  position: absolute;
  top: 6px;
  right: 2.25rem;

  font-family: 'Roboto Flex', sans-serif;
  font-size: 90px;
  font-variation-settings: "wdth" 60, "wght" 700;

  color: rgba(0, 0, 0, 0.035); /* светлая */
}

@media (max-width: 1439px) {
  .service-card::after {
    font-size: 84px;
  }
}

@media (max-width: 767px) {
  .service-card::after {
    font-size: 68px;
    top: 12px;
    color: rgba(0, 0, 0, 0.025); /* светлая */
  }
}

.service-card-02::after { content: "02"; }
.service-card-03::after { content: "03"; }
.service-card-04::after { content: "04"; }
.service-card-05::after { content: "05"; }
.service-card-06::after { content: "06"; }
.service-card-07::after { content: ""; }
/*.service-card-07::after { content: "07"; }*/

.service-card:hover::after {
  color: rgba(0, 0, 0, 0.06);
}

.service-card-title{
  margin-bottom: 30px;
  max-width: 35ch;

  font-size: 1.75rem;
}

@media (max-width: 767px) {
  .service-card-title{
    font-size: 1.3rem;
    line-height: 1.4;
  }
}

@media (min-width: 1440px) {
  .service-card-title{
    font-size: 1.9rem;
  }
}


.service-card .title-with-line::after {
  /*width: 48px;*/
  bottom: -6px;
}

.service-card-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-card-list li{
  position: relative;
  padding-left: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-card-list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0.7em;

  width: 16px;
  height: 2px;

  background: #c9d0d5;
  opacity: 0.8;
}

.service-card-list ul {
  list-style: none;
}

.service-card-list ul li {
  padding-left: 10px;
}

.service-card-list ul li::before {
  width: 14px;
}

.service-card-list ul li:first-child {
  margin-top: 0.75rem;
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  background: #FFC72C;
  border-radius: 6px;


  margin-bottom: 6px;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: #2A2A2A;
}

.entry-content .service-card-07 {
  margin-top: 2.5rem;
  padding-top: 4rem;
}


/* =================================
   BUTTONS
   ================================= */

.wp-block-button .wp-block-button__link{
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 85, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-button {
  transition: all 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-1px);
}


/* ===============================
  PROJECTS
   =============================== */


.projects-heading-section-inner {
  padding-top: 5rem;
}

@media (max-width: 1439px) {
  .projects-heading-section-inner {
    padding-top: 3rem;
  }

  .entry-content .projects-heading-section {
    padding-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .projects-heading-section-inner {
    padding-top: 2rem;
  }

   .entry-content .projects-heading-section {
    padding-bottom: 0;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.projects-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #E3E3DF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.projects-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

  border-color: #E0E0DC;
}

.projects-card:hover .projects-card__img {
  transform: scale(1.02);
}

.projects-card__image {
  background: #F5F5F2;
  position: relative;
  overflow: hidden;
}

.projects-card__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.projects-card__image-placeholder {
  aspect-ratio: 16 / 9;
  background: #F0F0ED;
}

.projects-card__image::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.05) 8%,
    rgba(0, 0, 0, 0) 36%,
    rgba(0, 0, 0, 0) 62%,
    rgba(0, 0, 0, 0.20) 83%,
    rgba(0, 0, 0, 0.48) 100%
  );

  pointer-events: none;
}

.projects-card__content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.projects-card__meta-top,
.projects-card__meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.projects-card__meta-top {

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 2;

  color: #4F5B66;
  font-size: 0.95rem;
  line-height: 1.4;

}

.projects-card__divider {
  height: 1px;
  background: #ECEDEA;
}

.projects-card__meta-bottom {
  padding-bottom: 1rem;
  line-height: 1.4;
}

.projects-card__service,
.projects-card__client {
  min-width: 0;
}

.projects-card__service {
  padding: 0.35rem 0.65rem;
  background: #ffce3a;
  border-radius: 3px;
  color: #1F1F1C;

  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 80, "wght" 500;
  
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 479px) {
  .projects-card__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
  }

  .projects-card__meta-top {
    padding: 0.5rem 0.8rem;
    bottom: 0;
  }
}


.projects-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  text-align: right;
  color: #ffffff;
  font-size: 0.9rem;
}

.projects-card__location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #FFC72C;
}

.projects-card__location-text {
  min-width: 0;
}

.projects-card__client {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  color: #8a8f98;
}

.projects-card__year {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
  font-size: 0.9rem;
  color: #8a8f98;
}

.projects-card__capacity {
  padding: 0 1.25rem 1.25rem;
  color: #4F5B66;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 1439px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 921px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .projects-card__meta-top,
  .projects-card__meta-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .projects-card__meta-bottom--year-only {
    align-items: flex-end;
  }

  .projects-card__location,
  .projects-card__year {
    text-align: left;
  }
}

.projects-pagination {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}

.projects-pagination a.page-numbers,
.projects-pagination a.prev,
.projects-pagination a.next {
  text-decoration: none;
}

.projects-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  text-decoration: none;
  color: #1F1F1C;
  background: #fff;
  
  transition: border-color 0.2s ease;
}

.projects-pagination a.page-numbers:hover,
.projects-pagination a.prev:hover,
.projects-pagination a.next:hover {
  border-color: #F7C21F;
}

.projects-pagination .page-numbers.current {
  border-color: #FFC72C;
  background: #FFC72C;
  color: #1F1F1C;
}

/* =================================
   contact-cards
   ================================= */

.contacts-subtitle {
  padding-bottom: 1.75rem;
}

.contacts-section {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.contacts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    /* радиальный — теперь смещён вправо */
    radial-gradient(
      circle at 40% 35%,
      rgba(255,255,255,0.99) 0%,
      rgba(255,255,255,0.92) 30%,
      rgba(255,255,255,0.75) 50%,
      rgba(255,255,255,0.4) 70%,
      rgba(255,255,255,0) 85%
    ),

    /* линейный — усиливаем белый */
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.85) 40%,
      rgba(255,255,255,0.7) 70%,
      rgba(255,255,255,0.9) 100%
    );
}

.contacts-section > .wp-block-group {
  position: relative;
  z-index: 2;
}

.contacts-contacts {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  background: #Fafaf8;

  padding: 2.25rem 1.75rem 2.25rem 1.75rem;

  border-radius: 3px;
}

.contacts-contacts::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 2px;
  background: #FFC72C;
  opacity: 0.8;
}

.contacts-contact {
  padding: 1.25rem 0;

  position: relative;
}

.contacts-contact::after {
  content: "";
  position: absolute;

  left: 0;
  right: 0;
  bottom: -0.5rem;

  width: 220px;
  height: 1px;
  background: #E8E8E4;
}

.contacts-contact:last-child::after {
  display: none;
}

.contacts-contact:last-child {
  padding-bottom: 0;
}

.contacts-contact:first-child {
  padding-top: 0;
}

.entry-content .contacts-contact-title {
  margin-bottom: 0.5rem;
  
  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 110, "wght" 550;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #2A2A2A;
}

.contacts-contacts .contacts-contact .site-phone,
.contacts-contacts .contacts-contact .site-messenger-link,
.contacts-contacts .contacts-contact .site-email,
.contacts-contacts .contacts-contact .site-address {
  
  font-family: 'Roboto Flex', sans-serif;
  
  text-decoration: none;

  margin: 0;

  font-size: 1.05rem;
  line-height: 1.5;
  color: #6A6A65;
}

.contacts-contacts .contacts-contact .site-address {
  font-variation-settings: "wdth" 95, "wght" 320;
}

.contacts-contacts .contacts-contact .site-phone,
.contacts-contacts .contacts-contact .site-messenger-link,
.contacts-contacts .contacts-contact .site-email {
  font-variation-settings: "wdth" 95, "wght" 400;
}

.contacts-contacts .contacts-contact .site-phone:hover,
.contacts-contacts .contacts-contact .site-messenger-link:hover,
.contacts-contacts .contacts-contact .site-email:hover {
  
  color: #f5b800;
}


/* Контакты: телефон + иконки в одной строке */
.site-contacts-inline{
  display:flex;
  align-items:center;
  gap: 8px;
  
}

.site-contacts-inline,
.cta-contact-popover__inner.site-email{
font-family: 'Roboto Flex', sans-serif;
}

.site-contacts-inline a,
a.site-email{
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
  transform-origin: center;
}

.site-contacts-inline a:hover,
a.site-email:hover{
  color: #E6C15A;
} 

/* блок иконок */
.site-contacts-inline__messengers{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left: 18px;
}

/* ссылки */
.site-messenger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

/* SVG иконки */
.site-messenger svg{
  width:24px;
  height:24px;
  transition: all 0.2s ease;
}

/* обычный цвет */
.site-messenger svg{
  stroke:#2A2A2A;
}

/* цвет в футере */
.site-footer .site-messenger svg{
  stroke:#d6a800;
}

.site-messenger:hover svg{
  stroke: #FFC72C;
  opacity: 1;
  transform: scale(1.06);
}

/* =================================
   FOOTER
   ================================= */


.site-above-footer-wrap .ast-builder-grid-row-container-inner{
  padding-left: var(--ast-container-default-lg-padding);
  padding-right: var(--ast-container-default-lg-padding);
}

/* CAPS только для первого пункта меню (как заголовок колонки) */
.site-footer .widget_nav_menu ul.menu > li:first-child > a{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: 0.9rem;
  
}

.site-footer .widget_nav_menu ul.menu > li:first-child{ /*отступ вниз для первого заглавного пункта меню*/
  margin-bottom: 14px;
}

/*исключаем капс у меню Услуги 2*/
.site-footer .wp-block-column:nth-child(2) .widget_nav_menu ul.menu > li:first-child > a {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: inherit;
}

.site-footer .wp-block-column:nth-child(2) .widget_nav_menu ul.menu > li:first-child {
  margin-bottom: 0.5rem;
}


/*двигаем вниз меню Услуги 2 (кроме мобилы)*/

@media (min-width: 782px) { /*брейкпойнт проверен вручную*/
  .site-footer .wp-block-columns > .wp-block-column:nth-child(2) .widget_nav_menu {
    padding-top: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .site-footer .footer-nav-columns {
    gap: 2.25rem;
  }
}

@media (max-width: 921px) {
  .site-footer .footer-nav-columns {
    gap: 0;
  }

  .site-footer .footer-nav-column-1,
  .site-footer .footer-nav-column-2 {
    margin: 0;
  }

  .site-footer .footer-nav-columns > .footer-nav-column-1 {
    margin-bottom: 0;
    padding-top: 1.5rem;
  }

  .site-footer .footer-nav-column-2 .widget_nav_menu ul.menu > li:first-child {
    margin-top: 0;
  }
}

.site-footer .menu-item{
  margin-bottom: 0.5rem;
}

@media (min-width: 922px) and (max-width: 1439px) {
  .site-footer .widget_nav_menu .menu-link,
  .site-footer .widget_nav_menu a {
    font-size: 0.92rem;
  }

  .site-footer .footer-nav-column-2 .widget_nav_menu ul.menu > li:first-child {
    font-size: 0.92rem;
  }
}

.footer-contact-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.footer-contact-icons__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-contact-icons__icon svg {
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.footer-contact-icons__link:hover {
  transform: scale(1.06);
}

/* Footer CTA */

/* CTA TITLE */

.cta-title{
  margin: 0 0 0.75rem;

  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 120, "wght" 800;

  font-size: 1.75rem;
  line-height: 1.25;

  color: #E6E8EB;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CTA SUBTITLE */

.cta-subtitle{
  margin: 0 0 1.25rem;

  font-size: 0.95rem;
  line-height: 1.5;

  color: #E6E8EB;
  opacity: 0.8;
}

/* Popover Contact us */

.cta-contact-wrap{
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.cta-contact-toggle{
  background: #E6B82E;
  border-radius: 3px;
  overflow: hidden;
}

.cta-contact-toggle:hover {
  filter: brightness(1.06);
}

.cta-contact-toggle .cta-contact-link{
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.95rem 1.25rem;

  font-family: 'Roboto Flex', sans-serif;
  font-variation-settings: "wdth" 85, "wght" 550;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;

  color: #1F1F1F;
}

.cta-contact-toggle .cta-contact-link a{
  outline: none;
}

.cta-contact-wrap.is-open .cta-contact-toggle{

  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  border: 1px solid #E6C15A;
  border-bottom: none;
}

.cta-contact-wrap.is-open a.cta-contact-link{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cta-contact-popover{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 30;

  background: #34373D;
  border: 1px solid #E6C15A;
  border-top: none;
  border-radius: 0 0 3px 3px;

  font-family: 'Roboto Flex', sans-serif;
}

.cta-contact-wrap.is-open .cta-contact-toggle{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cta-contact-wrap.is-open .cta-contact-popover{
  display: block;
  margin-top: 0;
  padding: 1.75rem 1.25rem 1.75rem;
}

.cta-contact-popover a{
  text-decoration: none;
  border-bottom: none;
  box-shadow: none;
  color: #E6E8EB;
  white-space: nowrap;
}

.cta-contact-popover a:hover{
  color: #E6B82E;
}

.cta-contact-popover .site-contacts-inline{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.cta-contact-popover .site-contacts-inline a{
  letter-spacing: 0.02em;
  font-variation-settings: "wdth" 90, "wght" 500;
}

.cta-contact-popover .site-contacts-inline__messengers{
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.cta-contact-popover .site-messenger svg{
  stroke:#E6C15A;
  opacity: 0.85;
}

.cta-contact-popover .site-messenger:hover svg{
  stroke:#FFC72C;
  opacity: 1;
}

.cta-contact-popover .site-email{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
} 

.entry-content .cta-contact-popover .site-email{
  font-variation-settings: "wdth" 80, "wght" 500;
}
