/* === Сброс стилей === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --background-color: #2c2c2c;
  --bg-accent-color: #272727;
  --text-color: #f0e9df;
  --accent-color: #b66e42;
  --decor-color: #e2d7c7;
  --margin-lr-1440: 150px;
  --decor-color-70: rgba(226, 215, 199, 0.3);
}

html {
  scroll-behavior: smooth;
}
@font-face {
  font-family: "Manrope";
  src:
    url("/assets/Manrope.woff2") format("woff2"),
    url("/assets/Manrope.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  background-color: var(--background-color);
  color: var(--text-color);
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* === Сброс стилей для form === */
/* Обнуление для самой формы */
form {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}

/* Обнуление для всех элементов формы */
input,
textarea,
select,
button,
fieldset,
legend,
label,
optgroup,
option {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  vertical-align: baseline;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  line-height: normal;
  letter-spacing: normal;
  word-spacing: normal;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding-box;
  background-clip: padding-box;
}

/* Специфичные reset для input элементов */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

/* Reset для checkbox и radio */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

/* Reset для select */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}

/* Убираем стрелку у select в IE */
select::-ms-expand {
  display: none;
}

/* Reset для textarea */
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  resize: none;
  overflow: auto;
  vertical-align: top;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
}

/* Reset для button */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

/* Reset для fieldset и legend */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  border: 0;
  padding: 0;
  white-space: normal;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: inherit;
  font-size: inherit;
  margin-bottom: 0;
}

/* Reset для label */
label {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Убираем автозаполнение стили */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: inherit !important;
  background-color: transparent !important;
  background-image: none !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Убираем поиск иконки в webkit */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Убираем спиннеры у number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Reset для file input */
input[type="file"] {
  background: transparent;
  border: none;
  outline: none;
}

/* Reset для range input */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

input[type="range"]::-webkit-slider-track {
  background: transparent;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  background: transparent;
  border: none;
}
/* === Цветовые переменные === */
.accent {
  color: var(--accent-color);
}

/* Первый экран */
.hero {
  position: relative;
  height: 100vh;
  max-height: 806px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.line {
  position: absolute;
  top: 50%; /* Располагаем по вертикали по центру */
  left: 136px; /* Отступ слева 136px */
  width: calc(100vw - 136px); /* Ширина: весь экран минус 136px */
  height: 1px;
  background: var(--accent-color);
  transform: scaleX(0); /* Начальное состояние (линия скрыта) */
  transform-origin: left center; /* Точка начала анимации */
  animation: lineGrowAndFade 2s ease-in-out forwards;
}

@keyframes lineGrowAndFade {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  50% {
    transform: scaleX(1); /* Линия полностью отрисована */
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0; /* Линия исчезает */
  }
}

.image-container {
  position: absolute;
  top: 50%;
  left: 136px; /* Фиксированный отступ слева */
  transform: translateY(-50%);
  width: calc(100vw - 136px);
  max-width: 1306px;
  height: 0;
  max-height: 806px; /* Ограничение по высоте */
  animation: imageReveal 1s ease-in-out 1s forwards;
  overflow: hidden; /* Обрезаем содержимое за пределами контейнера */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/images/First-photo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.64; /* Здесь задаете нужную прозрачность (от 0 до 1) */
  z-index: -1; /* Помещаем фон позади содержимого */
}

@keyframes imageReveal {
  0% {
    height: 0;
  }
  100% {
    height: 100vh; /* На всю высоту экрана */
    max-height: 820px; /* Но не более 820px */
  }
}
/* === Вертикальные линии === */
.vertical-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  z-index: 99;
  pointer-events: none;
  background-color: var(--decor-color);
  opacity: 0.1;
}

.line-1 {
  left: 135px;
}

.line-2 {
  left: 50%;
}

.line-3 {
  left: 66%;
}

.line-4 {
  right: 125px;
}
/* === Видеоплеер === */
.video-player {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 40px 0;
}

.video-wrapper {
  position: relative;
  max-width: 1440px;
  width: 100%;
}

.custom-video {
  width: 100%;
  height: auto;
  max-height: 438px;
  display: block;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 155px;
  left: 150px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 2;
  display: flex;
  flex-direction: column; /* Элементы идут сверху вниз */
  align-items: flex-start;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-caption {
  font-size: 22px;
  color: var(--text-color);
}

/* Скрыть кнопку при воспроизведении */
.custom-video.playing + .play-button {
  display: none;
}
/* === Основные секции === */
.btn {
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 10px 7px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}
.btn:hover {
  background-color: var(--bg-accent-color);
}
.hero-content {
  margin-right: 150px;
  width: 797px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  opacity: 0;
  transform: translateY(20px);
  animation: contentFadeIn 1s ease-in-out 2.5s forwards;
}

@keyframes contentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content,
.arrow-down,
.site-header {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-in-out 2.5s forwards; /* Начинается через 2.5 секунды */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 48px;
  text-align: right;
  font-weight: 500;
}
.hero-content p {
  font-size: 28px;
  margin-top: 5px;
  text-align: right;
}
.hero-content button {
  margin-top: 25px;
}
.angle-top-right,
.angle-bottom-right,
.angle-top-left {
  position: absolute;
  width: 70px;
  height: 70px;
}
.angle-top-right {
  border-top: 1px solid var(--decor-color-70);
  border-right: 1px solid var(--decor-color-70);
}
.angle-bottom-right {
  border-bottom: 1px solid var(--decor-color-70);
  border-right: 1px solid var(--decor-color-70);
}
.angle-top-left {
  border-top: 1px solid var(--decor-color-70);
  border-left: 1px solid var(--decor-color-70);
}
.hero .angle-top-right {
  top: 38px;
  right: 53px;
  z-index: 2;
}
.hero .angle-bottom-right {
  bottom: 35px;
  right: 53px;
  z-index: 2;
}

.sidebar-hero {
  opacity: 0;
  position: absolute;
  bottom: 112px;
  left: 60px;
  display: flex;
  flex-direction: column; /* теперь элементы идут сверху вниз */
  align-items: center;
  gap: 25px;
  transform: rotate(180deg); /* поворачиваем всё */
  animation: sidebarfadeInUp 0.8s ease-in-out 2.5s forwards;
}
@keyframes sidebarfadeInUp {
  to {
    opacity: 1;
  }
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  font-size: 18px;
  transform: none; /* убираем лишний поворот */
}

.line-decor {
  width: 1px;
  height: 70px;
  background-color: var(--decor-color);
  opacity: 0.5;
}
/* === Header === */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 0 150px 0 0; /* Отступы: 0 сверху, 150px справа, 0 снизу, 0 слева */
  height: 147px;
}
.site-header.scrolled {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 909;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 150px 0 0;
  overflow: hidden;
}

.site-header.scrolled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-color);
  transform: translateY(-100%);
  animation: backgroundFill 0.5s ease-out forwards;
  z-index: -1;
}

@keyframes backgroundFill {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.mobile-menu {
  display: none;
}
.site-header.scrolled .header-phone a {
  color: var(--accent-color);
}
.site-header.scrolled .header-phone svg path {
  fill: var(--accent-color);
}
.site-header.scrolled .logo-header {
  display: block;
}
.header-right {
  display: flex;
  align-items: center;
}
.logo-wrapper {
  width: 285px;
  height: 147px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
}
.mobile-header {
  display: none; /* Скрываем для десктопа */
}
.header-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: var(--text-color); /* обычный цвет */
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--accent-color); /* цвет при наведении */
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 49px;
}
.header-phone a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-phone:hover a {
  color: var(--accent-color);
}

.header-phone svg path {
  transition: fill 0.3s ease;
}

.header-phone:hover svg path {
  fill: var(--accent-color);
}
.arrow-down {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  animation:
    arrowAppear 0.5s ease-in-out 3s forwards,
    arrowPulse 3s ease-in-out 3s infinite; /* Подёргивание каждые 3 секунды */
}
.arrow-down.scrolled {
  animation: arrowAppear 0.5s ease-in-out 3s forwards;
}

.arrow-down.scrolled svg path:nth-child(1) {
  fill: #f0e9df;
}

.arrow-down.scrolled svg path:nth-child(2),
.arrow-down.scrolled svg path:nth-child(3) {
  fill: #b66e42;
}

@keyframes arrowAppear {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes arrowPulse {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  16.67% {
    transform: translateX(-50%) translateY(10px);
  }
  33.33% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}
.text-content,
.projects,
.workshop,
.advantages,
.technology,
.text-content {
  margin: 100px 150px 0 150px;
  width: calc(100% - 300px);
  position: relative;
}
.double-folded {
  margin: 50px 150px 0 150px;
  width: calc(100% - 300px);
  position: relative;
}
.text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 293px;
}
.text-content-wrapper {
  max-width: 857px;
  font-size: 22px;
}
.text-content .angle-top-left {
  top: 0px;
  left: 8px;
  z-index: 1;
}
.text-content .angle-bottom-right {
  bottom: 0px;
  right: 8px;
  z-index: 1;
}
h2 {
  font-size: 32px;
  margin-bottom: 25px;
}
.more {
  display: none;
}

.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  gap: 25px; /* Отступ между элементами */
}

.project-item {
  position: relative;
}

/* Опускаем правые картинки (2-й и 4-й элементы) на 90px */
.project-item:nth-child(even) {
  margin-top: 90px;
}
.project-item img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(0.97);
}
.photo-title {
  position: absolute;
  width: 224px;
  height: 93px;
  padding: 24px 20px 0 20px;
  left: 0px;
  background-color: var(--bg-accent-color);
  color: var(--text-color);
  font-size: 22px;
}
.project-item:nth-child(even) .photo-title {
  bottom: -24px;
}
.project-item:nth-child(odd) .photo-title {
  bottom: 66px;
}
.project-item.more .photo-title {
  bottom: -24px;
}
.projects .btn {
  display: block; /* Делаем блочным элементом */
  margin: 50px auto 0 auto;
  width: fit-content; /* Ширина по содержимому */
}
.workshop-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две равные колонки */
  gap: 40px; /* Расстояние между колонками */
  margin-top: 40px; /* Отступ сверху */
  align-items: center;
}

.workshop-description {
  text-align: left; /* Текст прижат влево */
  padding-right: 20px; /* Отступ от правого края */
  font-size: 16px;
}

.workshop-description p {
  margin-bottom: 20px; /* Отступ между абзацами */
}

.workshop-image {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирование изображения */
  justify-content: center;
  position: relative;
}

.workshop-image img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.workshop-image img:hover {
  transform: scale(0.97);
}

.workshop-image .photo-title {
  position: absolute;
  left: auto;
  bottom: 0;
  right: 30px;
  width: 248px;
  height: 56px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* Центрирование подписи */
  font-size: 16px;
  color: var(--text-color);
}
.workshop-frame {
  width: 100%;
  height: 100%;
  transform: scale(0.97);
  position: absolute;
  top: 20px;
  left: -15px;
  border: 1px solid var(--decor-color-70);
  z-index: -1;
}
.advantages {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.advantages-wrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.advantages-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.advantages-item img {
  width: 64px;
  height: 64px;
}
.advantages-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.request {
  background-color: var(--bg-accent-color);
  width: 100%;
  padding: 35px 150px;
}
.request-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две равные колонки */
  gap: 40px; /* Расстояние между колонками */
  align-items: flex-start;
}
.request-text p {
  font-size: 18px;
  margin-bottom: 18px; /* Отступ между абзацами */
}

.form-group {
  margin-bottom: 14px;
  width: 100%;
  background-color: var(--bg-accent-color);
}
.form-group input,
.form-group textarea {
  border: none;
  font-size: 22px;
  width: 100%;
  padding-bottom: 14px;
  background-color: var(--bg-accent-color);
  border-bottom: 1px solid var(--decor-color-70);
  color: var(--text-color);
  resize: none;
}
.request-form input,
.request-form textarea {
  color: var(--text-color);
}
.request-form input::placeholder,
.request-form textarea::placeholder {
  color: var(--decor-color-70); /* Цвет placeholder */
  opacity: 1; /* Для полной непрозрачности в Firefox */
  padding-bottom: 10px;
}
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}
.form-agree input[type="checkbox"] {
  -webkit-appearance: none; /* Отключаем стандартный вид */
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px; /* Фиксируем размер */
  border: 1px solid var(--decor-color);
  border-radius: 1px;
  cursor: pointer;
  position: relative;
  background-color: var(--bg-accent-color); /* Теперь сработает */
  margin-right: 10px; /* Отступ от текста */
}

/* Стиль для отмеченного чекбокса */
.form-agree input[type="checkbox"]:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Кастомная галочка */
.form-agree input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.form-agree label {
  font-size: 12px;
}
.request-form form {
  display: flex;
  flex-direction: column;
}

.request-form .btn {
  align-self: flex-end; /* Прижимаем кнопку вправо */
  margin-left: auto; /* Дополнительное выравнивание */
}

.double-folded h2 {
  text-align: center;
}
.double-folded-wrapper {
  display: grid;
  grid-template-columns: repeat(
    3,
    1fr
  ); /* Три колонки с равным распределением */
  gap: 20px; /* Отступ между колонками */
  width: 100%;
}
.checkmark {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  margin-right: 14px;
  position: relative;
}
.double-folded h3 {
  font-size: 22px;
  margin-bottom: 5px;
}
.double-folded-item li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.line-animation {
  width: 83px;
  height: 1px;
  background-color: var(--text-color);
  position: relative;
  margin-bottom: 20px;
  transition: width 0.4s ease-in-out;
}
.double-folded-item:hover .line-animation {
  width: 100%; /* Расширяется до 100% при наведении */
}
.request,
.reviews {
  margin-top: 100px;
}
.reviews-wrapper {
  position: relative;
}
.review-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: absolute;
  bottom: -76px;
  right: 150px;
  width: 448px;
  height: 427px;
  background-color: var(--bg-accent-color);
}
.review-author {
  width: 100%;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.review-author h4 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 5px;
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 50px;
  justify-content: center;
}
.review-author .angle-top-left {
  top: 28px;
  left: 28px;
  z-index: 1;
}
.review-author .angle-bottom-right {
  bottom: 0px;
  right: 28px;
  z-index: 1;
}
.review-text {
  width: 400px;
}
footer {
  margin-top: 170px;
  background-color: var(--bg-accent-color);
  padding: 50px 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  font-size: 18px;
}
.footer-content h3 {
  font-size: 22px;
}
.footer-content img {
  width: 374px;
  height: auto;
  align-self: center;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 241px;
}
.footer-contact a:hover {
  color: var(--accent-color);
}
.footer-request {
  display: flex;
  flex-direction: column;
  width: 402px;
  gap: 13px;
}
.footer-messengers {
  display: flex;
  align-items: center;
  gap: 13px;
}
.footer-socials {
  display: flex;
  gap: 13px;
}
.footer-social a:hover svg path {
  fill: var(
    --accent-color
  ); /* Меняем цвет заливки SVG на --accent-color (#b66e42) при наведении */
}
.footer-bottom {
  margin: 25px 150px 5px 150px;
  width: calc(100% - 300px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
}
.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.footer-request .btn {
  width: 173px;
  align-self: flex-end; /* Прижимаем кнопку влево */
  margin-left: auto;
}
section {
  scroll-margin-top: 170px; /* подстраивается под высоту header */
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(246, 246, 246, 1);
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--background-color);
}

.cookie-banner__inner p {
  margin-bottom: 10px;
}

.cookie-banner__link {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--accent-color); /* Замените на ваш цвет */
  text-decoration: underline;
}

.cookie-banner__buttons .btn {
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  margin-right: 10px;
}
/* ============================================= Модальное окно */
/* Запрещаем прокрутку body, когда модальное окно открыто */
body.modal-open {
  overflow: hidden;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  overflow-y: auto; /* Разрешаем прокрутку модального окна */
}

/* Ограничиваем высоту содержимого модального окна */
.modal__content {
  position: relative;
  max-width: 526px;
  max-height: calc(100vh - 50px); /* Ограничиваем высоту с учетом отступов */
  margin: 25px auto;
  background: var(--text-color);
  overflow-y: auto; /* Включаем прокрутку внутри модального окна */
  padding-bottom: 25px; /* Дополнительный отступ для удобства */
}
.modal__close-btn {
  position: absolute; /* Было sticky */
  top: 33px; /* 25px (margin .modal__content) + 8px (отступ от верха .modal__content) */
  right: calc(50% - 251px);
  z-index: 1000;

  width: 32px;
  height: 32px;
  padding: 6px;
  background-color: var(--text-color);
  border: none;
  cursor: pointer;
  float: none; /* Было float: right — УБРАТЬ */
}

.request-modal-form {
  display: flex;
  flex-direction: column;
  padding: 0 28px 25px 28px;
  border: none;
  background-color: var(--text-color);
}
.request-modal-form .form-group {
  background-color: var(--text-color);
}

.request-modal-form h2 {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  color: var(--background-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.request-modal-form p {
  font-size: 16px;
  text-align: center;
  color: var(--background-color);
  margin-bottom: 25px;
}

.request-modal-form input::placeholder,
.request-modal-form textarea::placeholder {
  color: rgba(44, 44, 44, 0.4);
  opacity: 1;
  padding-bottom: 14px;
  font-size: 22px;
  font-weight: 400;
}

.request-modal-form .form-group input,
.request-modal-form .form-group textarea {
  border: none; /* Убираем все границы */
  border-bottom: 1px solid rgba(44, 44, 44, 0.4); /* Добавляем только нижнюю */
  font-size: 22px;
  width: 100%;
  padding-bottom: 14px;
  background-color: var(--text-color);
  color: var(--background-color);
  font-weight: 200;
  resize: none;
  outline: none; /* Убираем outline при фокусе */
  box-sizing: border-box; /* Важно для правильного расчета размеров */
}

/* Специфичные стили для textarea */
.request-modal-form textarea#comment {
  height: 40px;
  line-height: 1.1;
  overflow: hidden;
  resize: none;
  white-space: nowrap;
  /* Дополнительный сброс границ для textarea */
  border: none !important;
  border-bottom: 1px solid rgba(44, 44, 44, 0.4) !important;
  vertical-align: top; /* Выравнивание по верху */
}

.request-modal-form .form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
  background-color: var(--text-color);
  color: var(--background-color);
}

.request-modal-form .form-agree input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--decor-color);
  border-radius: 1px;
  cursor: pointer;
  background-color: var(--text-color);
  margin-right: 10px;
}
.request-modal-form .form-agree input[type="checkbox"]:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Кастомная галочка */
.request-modal-form .form-agree input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.request-modal-form button {
  margin-left: auto;
  display: block;
}
.trigger,
.trigger-pro {
  cursor: pointer;
}
.modal-pro {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  overflow-y: auto; /* Разрешаем прокрутку модального окна */
}
.modal-pro .modal__content {
  position: relative;
  width: 100%;
  max-width: calc(100vw - 200px);
  max-height: calc(100vh - 50px);
  margin: 25px auto;
  padding: 25px 15px 90px 15px;

  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color, var(--text-color));

  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-gutter: auto;
}
.modal-pro .modal__close-btn {
  top: 33px; /* 25px (margin-top .modal__content) + 8px (отступ от верха .modal__content) */
  right: calc(
    50% - (100vw - 200px) / 2 + 15px + 8px
  ); /* Центрируем относительно .modal__content: половина max-width + padding-right (15px) + 8px отступ */
}
.modal-pro h2 {
  font-size: 22px;
}
.modal-pro .modal__close-btn {
  background-color: var(--background-color);
}
.project-modal-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две равные колонки */
  gap: 15px;
}
.container {
  color: var(--background-color);
  padding: 20px;
}
.before-425 {
  display: block;
}
.after-425 {
  display: none;
}
/* === Адаптивность (mobile-first) === */

@media (max-width: 1200px) {
  .line {
    left: 92px; /* Отступ слева 92px */
    width: calc(100vw - 92px); /* Ширина: весь экран минус 92px */
  }
  .image-container {
    left: 92px; /* Фиксированный отступ слева */
    width: calc(100vw - 92px);
  }
  .play-button {
    top: 200px;
    left: 100px;
  }
  .line-1 {
    left: 92px;
  }

  .line-2 {
    left: 59%;
  }

  .line-3 {
    left: 70%;
  }

  .line-4 {
    right: 49px;
  }
  .hero-content {
    margin-right: 100px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .hero-content p {
    font-size: 22px;
  }
  .site-header {
    top: 0;
    left: 0;
    font-size: 16px;
    padding: 0 100px 0 0;
  }
  .site-header.scrolled {
    top: 0;
    padding: 0 100px 0 0;
  }
  .sidebar-hero {
    bottom: 115px;
    left: 38px;
  }
  .footer-content img {
    width: 262px;
  }
  .footer-request {
    font-size: 14px;
    width: 288px;
  }
  footer {
    margin-top: 170px;
    padding: 16px 100px;
  }
  .text-content,
  .projects,
  .workshop,
  .advantages,
  .technology,
  .text-content {
    margin: 100px 100px 0 100px;
    width: calc(100% - 200px);
  }
  .double-folded {
    margin: 50px 100px 0 100px;
    width: calc(100% - 200px);
  }
  .btn {
    font-size: 16px;
    padding: 10px;
  }
  .footer-bottom {
    font-size: 14px;
    margin: 25px 100px 5px 100px;
    width: calc(100% - 200px);
  }
  .custom-video {
    width: 100%;
    height: 438px;
    max-height: 438px;
    display: block;
    object-fit: cover;
  }
}
@media (max-width: 1023px) {
  .site-header.scrolled {
    display: none;
  }
  .mobile-header {
    display: block; /* Показываем для мобильных устройств */
  }
  .header-nav {
    display: none; /* Скрываем навигацию для мобильных устройств */
  }
  .logo-for-mobile {
    width: 30%;
    height: auto;
    max-height: 66px; /* Ограничиваем высоту логотипа */
  }
  .logo-for-mobile img {
    width: 100%;
    height: auto;
    max-height: 66px; /* Ограничиваем высоту логотипа */
  }
  .header-phone {
    margin: 0;
  }
  .site-header {
    position: fixed;
    height: 68px;
    padding: 0 20px; /* Уменьшаем отступы */
    animation: none;
    opacity: 1;
    transform: none;
    top: 0;
    background-color: var(--background-color);
    justify-content: space-between;
  }
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .mobile-menu {
    position: absolute;
    top: 68px;
    right: 0;
    width: 283px;
    height: 700px;
    background-color: var(--background-color);
    padding: 57px 0 0 32px;
    z-index: 999;
    display: none; /* Скрыто по умолчанию */
  }
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Вертикальное расположение */
    gap: 20px; /* Отступы между пунктами */
    margin-bottom: 20px;
  }
  .mobile-menu.active {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-in-out;
    z-index: 9999;
  }

  @keyframes slideIn {
    from {
      transform: translateY(-10px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  .hero {
    margin-top: 68px;
  }
  .line {
    left: 0px; /* Отступ слева 0px */
    width: calc(100vw); /* Ширина: весь экран минус 0px */
  }
  .image-container {
    left: 0px; /* Фиксированный отступ слева */
    width: calc(100vw);
  }

  .line-1 {
    left: 12px;
  }

  .line-2 {
    left: 59%;
  }

  .line-3 {
    left: 70%;
  }

  .line-4 {
    right: 12px;
  }
  .hero-content {
    margin-right: 20px;
    margin-left: 20px;
  }
  .hero-content h1 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .sidebar-hero,
  .logo-wrapper,
  .arrow-down,
  .hero .angle-top-right,
  .hero .angle-bottom-right,
  .workshop-frame,
  .header-right {
    display: none;
  }

  .text-content,
  .projects,
  .workshop,
  .advantages,
  .technology,
  .text-content {
    margin: 50px 20px 0 20px;
    width: calc(100% - 40px);
  }
  .double-folded {
    margin: 50px 20px 0 20px;
    width: calc(100% - 40px);
  }
  .projects-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка */
    gap: 37px; /* Отступ между элементами */
  }
  .project-item:nth-child(even) {
    margin-top: 0px;
  }
  .photo-title {
    position: absolute;
    width: 224px;
    height: 93px;
    padding: auto;
    left: 0px;
    background-color: var(--bg-accent-color);
    color: var(--text-color);
    font-size: 22px;
  }
  .project-item:nth-child(even) .photo-title {
    bottom: -27px;
  }
  .project-item:nth-child(odd) .photo-title {
    bottom: -27px;
  }
  .project-item.more .photo-title {
    bottom: -27px;
  }
  .projects .btn {
    margin: 37px auto 0 auto;
  }
  h2 {
    font-size: 28px;
  }
  .btn {
    padding: 10px 7px;
  }
  .workshop-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 25px; /* Расстояние между колонками */
  }
  .workshop-description {
    order: 2; /* Отображается второй */
  }

  .workshop-image {
    order: 1; /* Отображается первый */
    width: 100vw;
    margin: 0 -20px;
  }
  .workshop-image .photo-title {
    bottom: -15px;
    right: 20px;
  }
  .advantages-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки */
    column-gap: 62px;
    row-gap: 37px; /* Отступы между колонками и строками */
  }
  .advantages-wrapper > :nth-child(5) {
    grid-column: span 2; /* Занимает обе колонки */
    justify-self: center; /* Центрируется по горизонтали */
  }
  .advantages-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .advantages-item img {
    width: 45px;
    height: 45px;
  }
  .request {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--background-color);
    padding: 0 20px;
    gap: 25px; /* Отступ между элементами */
  }
  .request h2 {
    text-align: center;
  }
  .request-wrapper {
    display: flex;
    flex-direction: column; /* Одна колонка */
    gap: 25px; /* Отступ между элементами */
  }
  .request,
  .reviews {
    margin-top: 50px;
  }
  .request-form .btn {
    align-self: flex-start; /* Прижимаем кнопку вправо */
    margin-left: 0;
    margin-right: auto;
  }
  .request-text p {
    font-size: 14px;
  }
  .form-group {
    background-color: var(--background-color);
  }
  .form-group input,
  .form-group textarea,
  .form-group label {
    font-size: 14px;
    background-color: var(--background-color);
  }
  .double-folded-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 15px; /* Отступ между элементами */
  }
  .double-folded-item li {
    margin-bottom: 10px;
  }
  .double-folded-item h3 {
    font-size: 18px;
  }
  .text-content {
    height: auto;
    padding: 10px 0;
  }
  .text-content-wrapper {
    font-size: 18px;
  }
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 20px; /* Отступ между колонками */
    width: 100%;
    font-size: 14px;
  }
  .footer-content > :first-child {
    grid-column: span 2; /* Занимает обе колонки */
    justify-self: center; /* Центрируется по горизонтали */
    max-width: 250px; /* Ограничиваем ширину */
    height: auto;
    object-fit: contain;
  }

  .footer-content h3 {
    font-size: 16px;
  }
  footer {
    margin-top: 50px;
    padding: 16px 20px;
    max-width: 100vw;
  }
  .footer-request .btn {
    align-self: flex-start; /* Центрируем кнопку */
    margin-left: 0;
    padding: 10px 7px;
  }
  .review-item {
    width: 310px;
    height: 310px;
    bottom: 40px;
    right: 20px;
  }
  .review-item h4 {
    font-size: 16px;
    margin-top: 10px;
  }
  .review-stars {
    margin-bottom: 10px;
  }
  .review-stars img {
    width: 16px;
    height: 16px;
  }
  .review-text {
    font-size: 14px;
    width: 290px;
  }
  .review-author .angle-bottom-right,
  .review-author .angle-top-left {
    width: 30px;
    height: 30px;
  }
  .review-author .angle-top-left {
    top: 11px;
    left: 11px;
  }
  .review-author .angle-bottom-right {
    bottom: 11px;
    right: 11px;
  }
  .request-modal-form label {
    background-color: var(--text-color);
    color: var(--background-color);
  }
  .request-modal-form .btn {
    margin-right: 0;
    margin-left: auto;
    display: block;
  }
}
@media (max-width: 960px) {
  .footer-bottom {
    flex-direction: column; /* Меняем направление на колонку */
    align-items: center; /* Центрируем элементы по горизонтали */
    gap: 5px;
    margin: 0;
    padding: 25px 20px 5px 20px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .text-content .angle-top-left {
    top: 0px;
    left: 0px;
  }
  .text-content .angle-bottom-right {
    bottom: 0px;
    right: 0px;
  }
  .footer-bottom {
    font-size: 12px;
  }
  .footer-social a svg {
    width: 28px;
    height: 28px;
  }
  .footer-contact {
    width: 176px;
  }
  .footer-request {
    width: 200px;
  }
  .footer-desktop {
    display: none; /* Скрываем для мобильных устройств */
  }
  .play-button {
    top: 20px;
    left: 20px;
    flex-direction: row;
    align-items: center;
  }

  .play-button:hover {
    transform: scale(1.1);
  }

  .play-button svg {
    width: 53px;
    height: 53px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }

  .video-caption {
    font-size: 16px;
    color: var(--text-color);
  }

  .project-modal-wrapper {
    grid-template-columns: 1fr; /* Две равные колонки */
  }

  .modal__content {
    position: relative;
    max-width: 402px;
    /* max-height: calc(100vh - 50px);  */
    margin: 20px auto;

    padding: 10px 0 25px 0; /* Дополнительный отступ для удобства */
  }
  .modal__close-btn {
    top: 28px; /* 20px (margin .modal__content) + 8px (отступ от верха .modal__content) */
    right: calc(50% - 189px);
  }
  .modal-pro .modal__content {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 50px);
    margin: 25px auto;
    padding: 15px 5px 15px 5px;

    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color, var(--text-color));

    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-gutter: auto;
  }
  .modal-pro .modal__close-btn {
    top: 33px; /* 25px (margin-top .modal__content) + 8px (отступ от верха .modal__content) */
    right: calc(
      50% - (100vw - 40px) / 2 + 5px + 8px
    ); /* Центрируем: половина max-width + padding-right (5px) + 8px отступ */
  }
}
@media (max-width: 480px) {
  .request-modal-form .form-group {
    height: 30px;
  }
  /* .modal__close-btn {
    right: 0px;
  } */
  .request-modal img {
    height: 209px;
    width: 100%;
    contain: content;
  }
  .request-modal button {
    font-size: 14px;
    padding: 6px;
  }
  .request-modal-form .btn {
    margin: 0 auto;
  }
  .request-modal-form {
    padding: 0 30px 0px 30px;
  }

  .request-modal-form h2 {
    font-size: 22px;
    margin-top: 15px;
    margin-bottom: 0;
  }

  .request-modal-form p {
    font-size: 16px;
    text-align: center;
    color: var(--background-color);
    margin-bottom: 15px;
    width: 100%;
  }

  .request-modal-form input::placeholder,
  .request-modal-form textarea::placeholder {
    color: rgba(44, 44, 44, 0.4);
    opacity: 1;
    padding-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
  }

  .request-modal-form .form-group input,
  .request-modal-form .form-group textarea {
    border: none; /* Убираем все границы */
    border-bottom: 1px solid rgba(44, 44, 44, 0.4); /* Добавляем только нижнюю */
    font-size: 14px;
    height: 30px;
    width: 100%;
    padding-bottom: 8px;
    background-color: var(--text-color);
    color: var(--background-color);
    font-weight: 200;
    resize: none;
    outline: none; /* Убираем outline при фокусе */
    box-sizing: border-box; /* Важно для правильного расчета размеров */
  }
  .request-modal-form .form-group label {
    font-size: 10px;
    line-height: 1;
  }
  /* Специфичные стили для textarea */
  .request-modal-form textarea#comment {
    height: 40px;
    line-height: 1.1;
    overflow: hidden;
    resize: none;
    white-space: nowrap;
    /* Дополнительный сброс границ для textarea */
    border: none !important;
    border-bottom: 1px solid rgba(44, 44, 44, 0.4) !important;
    vertical-align: top; /* Выравнивание по верху */
  }

  .request-modal-form .form-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    background-color: var(--text-color);
    color: var(--background-color);
  }

  .request-modal-form .form-agree input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid var(--decor-color);
    border-radius: 1px;
    cursor: pointer;
    background-color: var(--text-color);
    margin-right: 10px;
  }
  .request-modal-form .form-agree input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
  }

  /* Кастомная галочка */
  .request-modal-form .form-agree input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .image-container::before {
    opacity: 0.75;
  }
}
@media (max-width: 425px) {
  .before-425 {
    display: none;
  }
  .after-425 {
    display: block;
  }
  .image-container::before {
    background-image: url("/images/photo-first2.png");
  }
  .footer-content {
    grid-template-columns: 1fr; /* Две колонки */
  }
  .footer-content > :first-child {
    grid-column: span 1; /* Занимает обе колонки */
  }
  .footer-info {
    flex-direction: column; /* Меняем направление на колонку */
    align-items: center; /* Центрируем элементы по горизонтали */
    gap: 5px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
  }
  .review-item {
    width: 310px;
    height: 310px;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%); /* Центрируем по горизонтали */
  }
  .play-button p {
    width: 220px;
    white-space: normal; /* Разрешаем перенос строк */
    word-wrap: break-word; /* Для длинных слов */
    overflow-wrap: break-word; /* Современный стандарт */
    text-align: start;
  }
  .request-modal-form h2 {
    font-size: 16px;
    font-weight: 500;
    margin-top: 12px;
  }

  .request-modal-form p {
    font-size: 12px;
  }
  .modal__content {
    position: relative;
    max-width: (100%-40px);
    /* max-height: calc(100vh - 50px);  */
    margin: 20px 20px;

    padding: 0px 0 19px 0; /* Дополнительный отступ для удобства */
  }
  .modal__close-btn {
    top: 28px; /* 20px (margin-top .modal__content) + 8px (отступ от верха .modal__content) */
    right: 28px; /* 20px (margin-right .modal__content) + 8px (отступ от правой границы .modal__content) */
  }
  .request-modal picture {
    display: flex;
    flex-direction: column; /* важный момент */
    align-items: flex-start;
    width: 100%;
  }

  .request-modal img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 0;
    vertical-align: top; /* ключевой момент */
  }
}
