:root {
  --color-text: #f0f0f0;
  --shadow-color: #f63b4e;
  --shadow-color: #ba1c2c;
  --primary: #ba1c2c;
  --primary-dark: #8d1420;
  --bg: #ffffff;
  --text: #181c23;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  /* color: var(--color-text); */
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeueBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Bebas Regular';
  src: url('../fonts/BebasNeueRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #181c23, #2d2d2d, #3b3b3b, #181c23);
  background-size: 200% 200%;
  animation: gradientMove 4s ease-in-out infinite;
  transition: opacity 0.5s;
}

.preloader img {
  width: 50px;
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-symbol {
  font-size: 100px;
  color: #bfa14a;
  font-weight: 900;
  animation: pulse 1.2s infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Анимация появления элементов*/

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.23, 1.01, .32, 1), transform 0.8s cubic-bezier(.23, 1.01, .32, 1);
  will-change: opacity, transform;
  transition: 1s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация появления элементов*/

.menu-btn {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  background: #00000082;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  display: none;
}

.menu-btn div {
  height: 4px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.4s;
  position: relative;
}

/* Анимация крестика */
.menu-btn.active div:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-btn.active div:nth-child(2) {
  opacity: 0;
}

.menu-btn.active div:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Стили для меню */
.nav-ul {
  transition: 0.4s;
  /* ваши стили */
}

.shadow {
  width: 100%;
  height: 100%;
  position: absolute;
  background: var(--shadow-color);
  opacity: .6;
}

ul {
  list-style-type: none;
}

.ul-wrap {
  display: flex;
  justify-content: space-between;
}

.ul-wrap li {
  margin-left: 20px;
}

.box {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
}

section .box {
  padding: 100px 50px 50px 50px;
}

header {
  width: 100dvw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  background: var(--shadow-color);
}

.logo img {
  width: 50px;
  height: 50px;
}

nav ul {
  width: 100%;
  display: flex;
  padding: 25px 0;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
}

.ul-wrap a {
  color: var(--color-text);
  font-weight: 600;
}

.ul-wrap a:hover {
  opacity: .9;
}

/* Типографика */
h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  font-family: 'Proxima Nova', sans-serif;
}

h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  font-family: 'Proxima Nova', sans-serif;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  font-family: 'Proxima Nova', sans-serif;
}

p {
  color: var(--text);
}

small,
.muted {
  color: var(--muted);
}

.nav-wrap {
  display: flex;
}

.screen {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
}

.screen-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
  padding-top: 100px;
  position: absolute;
  z-index: 100;
}

.img-1 {
  width: calc(100% / 3);
  height: 100dvh;
  background: url(../img/obiekt.jpg) center center/cover no-repeat;
}

.img-2 {
  width: calc(100% / 3);
  height: 100dvh;
  background: url(../img/kryisha.jpg) center center/cover no-repeat;
}

.img-3 {
  width: calc(100% / 3);
  height: 100dvh;
  background: url(../img/portfolio-krisha.jpg) center center/cover no-repeat;
}

.screen-content h1 {
  max-width: 900px;
  color: var(--color-text);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  margin-bottom: 20px;
}

.screen .calc-form {
  max-width: 1060px;
}


/* ГАЛЕРЕЯ */

.gallery-wrap {
  max-width: 1440px;
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.gallery {
  width: 425px;
  height: 300px;
}

.gallery-slider-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.gallery-slider-overlay.active {
  display: flex;
}

.gallery-slider-image {
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-slider-close {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1001;
  background: none;
  border: 2px solid #bfa14a;
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-slider-prev,
.gallery-slider-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  border: 2px solid #bfa14a;
  background: none;
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-slider-prev {
  left: 10px;
}

.gallery-slider-next {
  right: 10px;
}

/* ГАЛЕРЕЯ */

/* ФОРМА */

.calc-form {
  background: var(--bg);
  color: var(--text) !important;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.checkbox-label {
  color: var(--text) !important;
}

.calc-content {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 10px;
}

.form-group label,
.center-col,
.right-col input,
.right-col button {
  display: block;
}

.left-col,
.center-col,
.right-col,
.calc-header {
  padding: 20px;
}

.center-col .form-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.calc-title {
  font-weight: 800;
  letter-spacing: .06em;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.right-col input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.right-col button {
  margin-top: 10px;
  border: none;
  background: var(--primary);
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.right-col button:hover {
  background: var(--primary-dark);
}

.file-input {
  display: none;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.file-label:hover {
  background: rgba(186, 28, 44, .06);
}

.personal-data {
  margin-bottom: 10px;
}

.personal-data input {
  float: left;
  margin-top: 4px;
  margin-right: 4px;
}

/* ФОРМА */

/* УСЛУГИ */

.komers {
  display: flex;
  align-items: center;
  margin: 25px 0;
  padding: 15px;
  gap: 30px;
  color: var(--color-text);
  background: var(--shadow-color);
}

.komers img {
  width: 50px;
}

.komers-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.komers-wrap .item {
  position: relative;
  width: calc(50% - 15px);
  height: 300px;
  cursor: pointer;
  overflow: hidden;
}

.last-item {
  min-width: 100%;
  min-height: 350px;
}

.komers-wrap .item a {
  bottom: 10px;
  left: 10px;
  position: absolute;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  font-weight: 600;
  padding: 10px 30px;
  z-index: 2;
}

.komers-wrap .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05));
  z-index: 1;
}

.item-title {
  display: flex;
  position: relative;
  z-index: 2;
}

.item-title h2,
.item-title p {
  font-weight: 600;
  text-transform: uppercase;
  line-height: 60px;
  padding: 0 10px;
  color: var(--color-text);
  background: var(--shadow-color);
}

.triangle {
  width: 0;
  height: 0;
  border-top: 60px solid var(--shadow-color);
  border-right: 60px solid transparent;
}

/* УСЛУГИ */


/* О НАС */

.section-title {
  display: inline-block;
  gap: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #181c23;
  margin-bottom: 25px;
  align-items: center;
}

.section-title h2 {
  float: left;
}

.section-h3 {
  margin: 20px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #181c23;
  display: inline-block;
}

.section-title button {
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 20px;
  color: var(--color-text);
  background: var(--shadow-color);
}

.section-title button:hover {
  background: var(--primary-dark);
}

/* Универсальные кнопки */
.btn {
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: var(--color-text);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(186, 28, 44, .06);
}

.o-nas-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.o-nas-wrap .img {
  min-width: 50%;
  height: 400px;
}

.our-team {
  flex-wrap: nowrap;
}

.our-team img {
  width: 80%;
  position: absolute;
  right: -15px;
  bottom: 0;
}

.our-team .item {
  width: 50%;
}

.our-team-text {
  max-width: 1440px;
  margin: 30px auto;
  display: flex;
  justify-content: space-between;
}

.our-team-text .img {
  width: 30%;
  min-height: 100%;
}

.our-team-text .text {
  width: 50%;
  padding: 0 50px;
}

/* О НАС */

/* ЭТАПЫ РАБОТ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px 32px;
  /* border-radius: 8px; */
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  padding: 10px 0;
  position: relative;
  align-items: center;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e5e7eb;
}

.step-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-number {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-slash {
  color: var(--primary);
  font-size: 50px;
  font-weight: 700;
}

.step-digit {
  color: var(--primary);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.step-description {
  font-size: 16px;
  color: #374151;
  margin-left: 100px;
}

/* ЭТАПЫ РАБОТ */

/* ПРЕИМУЩЕСТВА */
#preimushestva {
  width: 100dvw;
  background: var(--primary);
}

#preimushestva h2 {
  color: var(--bg);
  padding-bottom: 50px;
}

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

.for-img-block {
  margin: 0 auto;
  margin-bottom: 10px;
  width: 76px;
  height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #DFDFDF;
  border-radius: 50px;
  margin-top: 10px;
}

.adv-item {
  text-align: center;
  background: #f7f7f7;
  padding: 20px;
}

.adv-item h3 {
  margin-bottom: 8px;
}

/* ОТЗЫВЫ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 8px;
}

.review span {
  display: block;
  margin-top: 10px;
  color: #666;
}

/* FAQ */
.faq details {
  background: #f7f7f7;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details[open] {
  background: #f0f0f0;
}

.faq summary::marker {
  content: '';
}

.faq summary::after {
  content: '+';
  float: right;
  font-weight: 800;
}

.faq details[open] summary::after {
  content: '-';
}

/* НОВОСТИ */

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

.news-item {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 8px;
}

.news-item .img{
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

.news-item button {
  border-radius: 10px;
}

.news-item h4, .news-item p {
  margin: 20px 0;
}

/* НАШИ РАБОТЫ */

.work-wrap {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.work-wrap .item {
  width: 48%;
  padding: 20px;
  margin-bottom: 50px;
  border: 2px solid var(--primary);
  border-radius: 30px;
}

.work-wrap .item h2 {
  margin: 20px 0;
}

.img-address {
  position: relative;
}

.img-address .address {  
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 10px;
  color: var(--color-text);
  border-radius: 300px;
  display: inline-block;
  background: var(--primary);
}

.img-address .img {
  border-radius: 10px;
  height: 300px;
}

.work-descr {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-descr button {
  border-radius: 10px;
}

.bold {
  font-weight: 900;
}

/* НАШИ РАБОТЫ */

/* ПОДВАЛ */
footer,
footer a,
footer p {
  background: #111;
  color: var(--color-text);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 0;
}

.footer-col h4 {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 0 24px;
  text-align: center;
}

.messengers {
  display: flex;
  gap: 12px;
}

.icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  border-radius: 50%;
  background: #333;
}

.icon.viber {
  background: #7360f2;
}

.icon.telegram {
  background: #229ed9;
}

.icon.whatsapp {
  background: #25d366;
}

@media (max-width: 768px) {
  .img-1 {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
  }

  .ul-wrap a {
    font-size: 11px;
  }

  section .box {
    padding: 100px 20px 50px 20px;
  }

  .screen {
    height: 1000px;
    background-position-y: -500px;
  }

  .screen-content {
    padding: 0 10px;
    padding-top: 13px;
    position: fixed;
  }

  .nav-ul {
    position: fixed;
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  }

  .menu-btn {
    display: flex;
    z-index: 100;
  }

  .item-title h2 {
    font-size: 11px;
  }

  .nav-ul {
    /* flex-direction: column; */
    padding: 20px;
    display: none;
    z-index: -1;
    bottom: auto;
    /* top: 150px; */
  }

  .nav-ul.active {
    left: 0;
    display: flex;
    z-index: 999;
  }

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .calc-content {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 14px;
  }

  h3 {
    font-size: 18px;
  }

  .ul-wrap {
    margin-top: 10px;
  }

  .menu-btn {
    top: 110px;
  }

  .step {
    flex-wrap: wrap;
  }

  .work-wrap .item {
    width: 100%;
  }

  .nav-ul.active {
    display: block;
  }

  .ul-wrap li {
    margin: 0;
    margin-right: 0;
  }

  .komers-wrap .item {
    width: 100%;
  }

  .advantages {
    display: flex;
    flex-direction: column;
  }

  .faq summary {
    font-size: 15px;
  }

  .work-descr {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-descr div {
    margin-bottom: 10px;
  }
}

@media (max-width: 1024px) {
  .advantages {
    grid-template-columns: 1fr 1fr;
  }
}