@charset "UTF-8";
/* Estimate Modal */
#estimateOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#estimateOverlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#estimateOverlay.closing {
  opacity: 0;
  pointer-events: none;
}

#estimateOverlay .estimate-modal {
  transform: translateY(40px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

#estimateOverlay.active .estimate-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#estimateOverlay.closing .estimate-modal {
  transform: translateY(40px) scale(0.95);
  opacity: 0;
}

.estimate-modal {
  background: white;
  width: 90%;
  max-width: 900px;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
}

.estimate-modal-content {
  display: flex;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.estimate-close {
  position: absolute;
  top: 9px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.estimate-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
}

.estimate-close span:first-child {
  transform: rotate(45deg);
}

.estimate-close span:last-child {
  transform: rotate(-45deg);
}

.estimate-close:hover,
.estimate-close:focus-visible {
  background: rgba(16, 185, 129, 0.15);
  transform: scale(1.05);
  outline: none;
}

.estimate-image {
  width: 45%;
  display: none;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.estimate-image__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1);
  animation: estimateZoomMedia 18s ease-in-out infinite alternate;
}

.estimate-form-container {
  padding: 32px;
  width: 100%;
  position: relative;
  overflow-y: auto;
}

.estimate-form-container h2 {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--dark);
}

.estimate-form-container .form-group {
  margin-bottom: 12px;
}

.estimate-form-container label {
  display: block;
  margin-bottom: 4px;
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  color: var(--text-light);
}

.estimate-form-container input,
.estimate-form-container select,
.estimate-form-container textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-alt);
  transition: all 0.3s ease;
  font-family: inherit;
}

.estimate-form-container textarea {
  resize: vertical;
  min-height: 80px;
}

.estimate-form-container input:focus,
.estimate-form-container select:focus,
.estimate-form-container textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(112, 198, 212, 0.1);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.estimate-form-container select {
  appearance: none;
  cursor: pointer;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 14px;
  font-size: 16px;
}

.form-consent {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 768px) {
  .estimate-image {
    display: block;
  }

  .estimate-form-container {
    width: 55%;
  }
}

@keyframes estimateZoomMedia {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* Single news page */
body.single,
body.single-bis_news {
  background: var(--bg-alt);
}

.news-single {
  padding-top: 120px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .news-single {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

.news-single__container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.news-single__intro {
  margin-bottom: 32px;
}

.news-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-light);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.news-single__back:hover {
  color: var(--primary);
}

.news-single__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(112, 198, 212, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.news-single__title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 20px;
}

.news-single__lead {
  font-size: 20px;
  color: var(--dark);
  margin-top: 12px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.homepage-news {
  padding: 120px 0;
  background: var(--bg);
}

@media (max-width: 768px) {
  .homepage-news {
    padding: 80px 0;
  }
}

.homepage-news__container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.homepage-news__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.homepage-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.news-card--home {
  border-radius: 18px;
  box-shadow: 0 25px 55px -45px rgba(15, 23, 42, 0.4);
}

.news-card--home .news-card__body {
  padding: 20px;
}

.news-card--home .news-card__title {
  font-size: 18px;
}

.news-card--home .news-card__excerpt {
  font-size: 15px;
}

.homepage-news__cta {
  margin-top: 32px;
  text-align: center;
}

.news-single__cover {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 48px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 55px -35px rgba(15, 23, 42, 0.6);
}

.news-single__cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.news-single__content {
  background: var(--bg);
  padding: clamp(24px, 5vw, 56px);
  border-radius: 32px;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.4);
}

.news-single__content>*+* {
  margin-top: 1.5em;
}

.news-single__content h2,
.news-single__content h3,
.news-single__content h4 {
  margin-top: 1.8em;
}

.news-single__content img {
  width: 100%;
  border-radius: 24px;
  margin: 24px 0;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.4);
}

.news-single__content figure {
  margin: 24px 0;
}

.news-single__content iframe,
.news-single__content video {
  width: 100%;
  min-height: 360px;
  border-radius: 24px;
  border: none;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .news-single__content {
    padding: 24px;
    border-radius: 20px;
  }

  .news-single__cover {
    border-radius: 20px;
    margin-bottom: 32px;
  }

  .news-single__lead {
    font-size: 18px;
  }

  .news-single__content iframe,
  .news-single__content video {
    min-height: 240px;
  }
}

/* News archive page */
body.post-type-archive-bis_news {
  background: var(--bg-alt);
}

.news-archive {
  padding-top: 120px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .news-archive {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

.news-archive__container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.news-archive__intro {
  text-align: center;
  margin-bottom: 48px;
}

.news-archive__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(112, 198, 212, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.news-archive__title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.news-archive__description {
  color: var(--text-light);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
}

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

.news-card {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -45px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px -45px rgba(15, 23, 42, 0.45);
}

.news-card__image {
  display: block;
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.news-card__image img,
.news-card__image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
}

.news-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__meta {
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.news-card__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.news-card__title a {
  text-decoration: none;
  color: inherit;
}

.news-card__excerpt {
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
}

.news-card__link {
  align-self: flex-start;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-card__link::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.news-card__link:hover::after {
  transform: translateX(4px);
}

.news-archive__pagination {
  margin-top: 48px;
  text-align: center;
}

.news-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  margin: 0 6px;
  color: var(--dark);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.4);
}

.news-archive__pagination .page-numbers.current,
.news-archive__pagination .page-numbers:hover {
  background: var(--primary);
  color: white;
}

/* News redesign */
body.post-type-archive-bis_news {
  background: var(--bg);
}

.homepage-news {
  padding: 120px 0;
  background: var(--bg);
}

.homepage-news__container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.homepage-news__cta {
  margin-top: 24px;
  text-align: left;
}

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

.news-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item__image {
  display: block;
  overflow: hidden;
  background: #f1f5f9;
}

.news-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
  aspect-ratio: 16 / 9;
}

.news-item__image:hover img,
.news-item__image:focus-visible img {
  transform: scale(1.05);
}

.news-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.news-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.news-item__date {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.45);
}

.news-item__delimiter {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.35);
  user-select: none;
}

.news-item__category {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.news-item__category:hover,
.news-item__category:focus-visible {
  color: #2563eb;
  text-decoration: underline;
}

.news-item__title {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: var(--font-weight-semibold);
}

.news-item__title a {
  color: var(--dark);
  text-decoration: none;
}

.news-item__excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  margin: auto 0 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding-top: 82px; /* Учет высоты хедера для центрирования */
}

.news-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}

.news-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.35));
}

.news-hero__overlay {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 120px 0;
}

.news-hero__title {
  font-size: clamp(36px, 6vw, 40px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.news-hero__text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 18px;
}

.news-hero__contact {
  color: #fff;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.news-hero__contact:hover {
  text-decoration: underline;
}

.news-hero--single {
  min-height: 50vh;
}

.news-hero--single .news-hero__text {
  font-size: clamp(16px, 1.25vw, 18px);
  max-width: 860px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 14px;
  margin-bottom: 0;
  line-height: 1.6;
}

.news-list {
  padding: 32px 8vw 128px 8vw;
  background: var(--bg);
}

.news-list__container {
  max-width: 1400px;
  margin: 0 auto;
}

.news-filter {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
  border-radius: 8px;
  background: #fff;
}

.news-filter__form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) auto auto;
  gap: 12px;
  align-items: end;
}

.news-filter__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.news-filter__field span {
  color: var(--text-light);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-filter__field input,
.news-filter__field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--dark);
  font: inherit;
  padding: 11px 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.news-filter__field input:focus,
.news-filter__field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(112, 198, 212, 0.16);
}

.news-filter__submit {
  min-height: 48px;
  white-space: nowrap;
}

.news-filter__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.news-filter__reset:hover,
.news-filter__reset:focus-visible {
  border-color: var(--primary);
  color: var(--dark);
  background: rgba(112, 198, 212, 0.08);
  outline: none;
}

.news-filter__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start !important;
}

.news-filter__category {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--text-light);
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.news-filter__category:hover,
.news-filter__category:focus-visible {
  color: var(--primary) !important;
  border-color: var(--primary);
  outline: none;
}

.news-filter__category.is-active {
  color: #fff !important;
  background: var(--primary);
  border-color: var(--primary);
}

.news-pagination {
  margin-top: 32px;
  text-align: center;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  margin: 0 6px;
  color: var(--dark);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.2);
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  background: var(--primary);
  color: #fff;
}

.news-article {
  padding: 64px 8vw 0 8vw;
  background: var(--bg);
}


.news-article__meta {
  display: flex;
  justify-content: flex-end;
  color: var(--text-light);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
}

.news-article__lead {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--dark);
}

.news-article__content {
  text-align: justify;
  min-width: 100%;
  line-height: 1.8;
  color: #111827;
}

.news-article__content>*+* {
  margin-top: 1.4em;
}

.news-article__content a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-article__content a:hover,
.news-article__content a:focus-visible {
  color: var(--primary);
}

.news-tags-section {
  padding: 24px 8vw 0;
  background: var(--bg);
}

.news-tags-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    gap: 24px;
    padding: 24px;
    background: #fff;
}

.news-tags-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.news-tags {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-light);
  background: #fff;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-tag::before {
  content: '#';
  color: var(--primary);
  margin-right: 2px;
}

.news-tag:hover,
.news-tag:focus-visible {
  color: var(--dark);
  border-color: var(--primary);
  transform: translateY(-1px);
  outline: none;
}

.news-tags-panel__cta {
  flex: 0 0 auto;
  min-width: min(100%, 260px);
  justify-content: center;
  white-space: nowrap;
}

.news-related {
  padding: 64px 8vw;
  background: var(--bg);
}

.news-related__container .section-title {
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .news-hero {
    padding-top: 76px;
  }

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

  .news-hero__overlay {
    padding: 100px 0;
  }

  .projects-page .news-hero__overlay {
    padding: 100px 8vw;
  }
}

@media (max-width: 768px) {
  .homepage-news {
    padding: 80px 0;
  }

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

  .news-hero__overlay {
    width: min(100%, calc(100% - 40px));
    padding: 80px 0;
    text-align: center;
  }

  .news-hero__title {
    font-size: clamp(28px, 8vw, 32px);
  }

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

  .news-filter__submit,
  .news-filter__reset {
    width: 100%;
    min-width: 100%;
  }

  .news-tags-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .news-tags-panel__cta {
    width: 100%;
  }

  .news-related {
    padding: 50px 8%;
  }
}
