/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Переиспользуемые UI-компоненты и секции
   ═══════════════════════════════════════════════════════════════ */

/* ── 6. Cookie banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--primary);
  border: 2px solid var(--sand);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cookie-banner--hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.cookie-banner__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-banner__content * {
  color: var(--neutral);
}

.cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  width: 100%;
  padding: 12px 24px;
}

.breadcrumbs {
  margin-top: 40px;
  margin-bottom: 60px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs a {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6D7680;
}

.line {
  width: calc(var(--margin) * 2 + 100%);
  height: 1px;
  background-color: var(--sand);
  margin-left: calc(var(--margin) * -1);
}

@media (max-width: 1080px) {
  .cookie-banner__inner {
    padding: 0 20px;
    gap: 24px;
  }

  .breadcrumbs {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px 0;
  }

  .cookie-banner__inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }
}


.arrows {
  width: 100%;
  gap: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #737373;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sand);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.arrow:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--neutral);
}

.btn {
  width: 100%;
  max-width: 285px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-shadow: 0px 2px 6px 0px #0000004d;
  background-color: var(--secondary);
  color: var(--neutral);
  border: 1px solid var(--secondary);
  font-weight: 600;
  font-size: 16px;
  line-height: 125%;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn--white {
  background-color: var(--neutral);
  color: var(--color-text);
  border: 1px solid var(--secondary);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--secondary);
}

.btn--white:hover,
.btn--outline:hover {
  background-color: var(--secondary);
  color: var(--neutral);
  border-color: var(--secondary);
}

.pagination {
  display: flex;
  gap: 8px;
}

.pagination__item {
  border: 1px solid var(--sand);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
}

.pagination__item:hover {
  border-color: var(--primary);
}

.pagination__item--active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--neutral);
}

.pagination__separator {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #737373;
  font-size: 15px;
}

@media (max-width: 1080px) {
  .btn {
    height: 48px;
  }
}

/* ── Form fields ────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-error-msg {
  font-size: 14px;
  color: red;
  margin-top: 10px;
  display: block;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-font);
  letter-spacing: -0.01em;
}

.field__input {
  width: 100%;
  height: 51px;
  padding: 0 20px;
  background: var(--neutral);
  border: 1px solid var(--sand);
  font-size: 12px;
  color: var(--color-text);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 124, 123, 0.18);
}

.field__input--textarea {
  padding: 20px;
  min-height: 85px;
}

.field--select {
  position: relative;
}

.field__input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.96967 5.21967C3.26256 4.92678 3.73744 4.92678 4.03033 5.21967L8 9.18934L11.9697 5.21967C12.2626 4.92678 12.7374 4.92678 13.0303 5.21967C13.3232 5.51256 13.3232 5.98744 13.0303 6.28033L8.53033 10.7803C8.23744 11.0732 7.76256 11.0732 7.46967 10.7803L2.96967 6.28033C2.67678 5.98744 2.67678 5.51256 2.96967 5.21967Z" fill="%2321272A"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* ── Custom select ──────────────────────────────────────────── */
.field--select {
  position: relative;
}

.field--select select.field__input--select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  color: var(--primary-font);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.custom-select__trigger:focus {
  outline: none;
}
.custom-select.is-open .custom-select__trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 124, 123, 0.18);
}

.custom-select__chevron {
  flex: none;
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.96967 5.21967C3.26256 4.92678 3.73744 4.92678 4.03033 5.21967L8 9.18934L11.9697 5.21967C12.2626 4.92678 12.7374 4.92678 13.0303 5.21967C13.3232 5.51256 13.3232 5.98744 13.0303 6.28033L8.53033 10.7803C8.23744 11.0732 7.76256 11.0732 7.46967 10.7803L2.96967 6.28033C2.67678 5.98744 2.67678 5.51256 2.96967 5.21967Z" fill="%2321272A"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  z-index: 20;
  overflow: hidden;
}
.custom-select.is-open .custom-select__dropdown {
  display: block;
}

.custom-select__option {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--primary-font);
  cursor: pointer;
  transition: background 0.15s;
}
.custom-select__option:hover {
  background: var(--background-2);
}
.custom-select__option.is-selected {
  background: var(--background-2);
  color: var(--accent);
  font-weight: 500;
}
.custom-select__option[data-value=""] {
  color: var(--primary-dark);
}

/* ── Checkbox ───────────────────────────────────────────────── */
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check__mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 1px;
  background: var(--secondary);
  position: relative;
  transition:
    background 0.2s,
    opacity 0.2s;
  border: none;
}
.check__mark::after {
  content: "";
  position: absolute;
  background: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.9939 5.43558C20.3056 5.70834 20.3372 6.18216 20.0644 6.49389L9.56443 18.4939C9.42774 18.6501 9.23242 18.7427 9.02496 18.7496C8.8175 18.7565 8.61645 18.6771 8.46967 18.5303L3.96967 14.0303C3.67678 13.7374 3.67678 13.2626 3.96967 12.9697C4.26256 12.6768 4.73744 12.6768 5.03033 12.9697L8.96347 16.9028L18.9356 5.50613C19.2083 5.1944 19.6822 5.16282 19.9939 5.43558Z" fill="white"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  opacity: 1;
  transition: opacity 0.15s;
  transform: translate3d(-50%, -50%, 0);
}
.check__input:not(:checked) ~ .check__mark {
  background: transparent;
  border: 1px solid var(--sand);
}
.check__input:not(:checked) ~ .check__mark::after {
  opacity: 0;
}

@keyframes checkPulse {
  0%   { transform: translate3d(-50%, -50%, 0) scale(0.8); }
  50%  { transform: translate3d(-50%, -50%, 0) scale(1.1); }
  100% { transform: translate3d(-50%, -50%, 0) scale(1); }
}
.check__input:checked ~ .check__mark {
  animation: checkPulse 0.3s ease;
}
.check__label {
  font-size: 12px;
  color: var(--primary-dark);
  line-height: 1.4;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header .section-caption {
  margin-bottom: 20px;
}

.section-header .text-l {
  margin-top: 40px;
}

.section-header--left {
  align-items: flex-start;
  text-align: left;
}

.main-content {
  display: flex;
  flex-direction: column;
  padding: 140px 0;
  gap: 140px;
}

@media (max-width: 1080px) {
  .section-header .section-caption {
    margin-bottom: 10px;
  }

  .section-header .text-l {
    margin-top: 20px;
  }

  .main-content {
    padding: 100px 0;
    gap: 100px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 60px 0;
    gap: 60px;
  }
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: #2F353B99;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 670px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.modal__body {
  position: relative;
  z-index: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-size: cover;
  background-position: center;
}

.modal__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.modal__title {
  color: var(--primary-font);
  text-wrap: balance;
}

.modal__lead {
  font-size: 16px;
  color: var(--primary-font);
  line-height: 1.45;
}

.modal .section-header * {
  color: var(--neutral);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: var(--neutral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  cursor: pointer;
}
.modal__close:hover {
  background: #fff;
}
.modal__submit {
  margin-top: 8px;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 640px) {
  .modal__body {
    padding: 10px;
  }
}

.hww__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hww__grid {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hww__grid::-webkit-scrollbar {
  display: none;
}

.hww__item {
  width: 100%;
  max-width: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hww__item-number {
  color: #2E6EA680;
}

.hww__item-img {
  height: 127px;
  width: 100%;
}

.hww__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hww__item-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1080px) {
  .hww__item {
    width: 285px;
    flex-shrink: 0;
    scroll-snap-align: start;
  } 

  .hww__grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 20px;
  }
}

.list-item {
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.list-item::before {
  display: block;
  position: absolute;
  content: '';
  width: 20px;
  height: 20px;
  background-color: var(--secondary);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}



.main-projects__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.main-projects__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
}

.main-project {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main-project__img {
  width: 100%;
  height: 243px;
}

.main-project__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-project__content {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0px 2px 2px 0px #00000040;
background-color: var(--primary);
height: 100%;
}

.main-project__content * {
  color: var(--neutral);
}

.main-project__btn {
  margin-top: auto;
  color: var(--neutral);
  max-width: 100%;
}

.main-projects__arrows {
  display: none;
}

@media (max-width: 1080px) {
  .main-projects__arrows {
    display: flex;
  }

  .main-projects__grid {
    display: grid;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .main-project {
    scroll-snap-align: start;
    width: 386px;
    flex-shrink: 0;
  }

  .main-projects__grid::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-projects__inner {
    gap: 20px;
  }  
}

@media (max-width: 560px) {
  .main-project {
    width: calc(100vw - 20px);
    min-width: calc(100vw - 20px);
  }
}

.callback {
  position: relative;
  padding: 40px 0;
}

.callback__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.callback__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.callback .section-header {
  align-self: center;
}

.callback .section-header * {
  color: var(--neutral);
}

.callback__form {
  background-color: var(--neutral-border);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callback__submit {
  max-width: 100%;
}

@media (max-width: 1080px) {
  .callback__form {
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .callback__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.contacts-block {
  padding: 60px 0;
}

.contacts-block__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.contacts-block__inner > span {
  width: 1px;
  background-color: var(--sand);
  display: block;
}

.contacts-block__map {
  height: 300px;
  width: 100%;
  max-width: 713px;
}

.contacts-block__map iframe {
  width: 100%;
  height: 100%;
}

.contacts-block__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-block__contact {
  display: grid;
  gap: 12px 10px;
  grid-template-columns: auto 1fr;
}

.contacts-block__contact svg {
  grid-row: 1 / 3;
  align-self: center;
}

.contacts-block__socials {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .contacts-block__inner span {
    display: none;
  }

  .contacts-block__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contacts-block__social svg {
    width: 44px;
    height: 44px;
  }
}

.product-card {
  background-color: #DCE9F4;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.product-card__img {
  height: 285px;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__content {
  padding: 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__btn {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  cursor: pointer;
}

.product-card__btn--active {
  background-color: var(--secondary);
}

@media (max-width: 768px) {
  .product-card__btn {
    width: 120px;
  }
}