:root {
  --general-bg: #f6f6f6;
  --accent-text: #1e1e1e;
  --accent-color: #ffd700;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

h1,
h2 {
  font-family: "Palui SP Demo", "Arial", sans-serif;
  color: var(--general-text);
}

p {
  font-family: "Jost-Regular", "Arial", sans-serif;
  color: var(--general-text);
}

body {
  font-family: "Jost-Regular", "Arial", sans-serif;
  background: var(--general-bg);
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

  /* Стили для бургер-меню */
  .burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
  }
  
  .burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

.wrapper {
  flex: 1 0 auto;
  width: 100%;
}

.footer {
  flex-shrink: 0;
}

.footer .container {
  height: auto;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
}

.logo span {
  color: #ffd700;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffd700;
}

.contact-header {
  display: flex;
  align-items: center;
}

.phone {
  font-weight: 700;
  margin-right: 20px;
  color: #333333;
}

.city-selector {
  position: relative;
  cursor: pointer;
  margin-right: 20px;
  color: #333333;
}

.city-selector span {
  display: flex;
  align-items: center;
}

.city-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 10px;
  width: 200px;
  z-index: 100;
}

.city-dropdown.active {
  display: block;
}

.city-dropdown div {
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.city-dropdown div:hover {
  background: #f5f5f5;
}

.btn {
  background-color: #ffd700;
  color: #333333;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ffc400;
}

.hero__btn {
    width: 270px;
    max-width: 350px;
}
    
.hero__btn-accent:hover {
  background-color: #ffc400;
  color: var(--accent-text);
  border: 1px solid var(--accent-color);
}

/* Герой секция */
.hero {
  color: white;
  margin-top: 60px;
  background: #141414;
}

.hero__text-right--mobile {
  display: none;
}

.hero__bg img {
  width: 100%;
  border-radius: 20px;
}

.hero-text {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero__title {
  color: var(--general-bg);
  max-width: 750px;
}

.hero__title span {
  color: var(--accent-color);
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 40px;
}

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
}

.hero__subtitle-accent {
  display: flex;
  color: var(--accent-text);
  background: var(--accent-color);
  border-radius: 20px;
  padding: 0 10px 5px;
}

.hero__text-descr {
  font-family: "Jost-Regular";
  padding-top: 10px;
  font-size: 24px;
}

.hero__icons-text {
  font-family: "Jost-Regular";
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero__icons-text:not(:last-child) {
  margin-bottom: 20px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero__btn {
  font-size: 20px;
}

.hero__icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 30px;
}

.hero__icons-text::before {
  content: "";
  display: flex;
  width: 8px;
  height: 9px;
  border-radius: 100%;
  background: var(--accent-color);
}

.hero__block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hero__icons-title {
  font-size: 18px;
}

.hero__block-icon {
  position: absolute;
  width: 65px;
  height: 65px;
}

.hero__btn-accent {
  background: transparent;
  border: 1px solid var(--general-bg);
  border-radius: 10px;
  color: var(--general-bg);
  margin-left: 30px;
}

/* Секции */
section {
  padding: 100px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333333;
}

/* Услуги */
.services {
  background-color: #ffffff;
}

.services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border: 1px solid #f0f0f0;
  
  display:flex;
  flex-direction:row-reverse;
}

.service-card:hover {
  transform: translateY(-5px);
}

.services__img {
  width: 400px;
  height: auto;
  border-radius: 0 10px 10px 0;
  object-position: center center;
  object-fit: cover;
}

.services__title {
  font-size: 24px;
  color: var(--accent-text);
  margin-bottom: 20px;
  max-width:400px;
}

.services__text {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 110%;
}

.services__card-list {
  margin-top: 20px;
}

.services__card-item {
  margin-bottom: 5px;
  font-size: 18px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.services__card-item::before {
  content: "";
  display: flex;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--accent-text);
}

.service-content {
  padding: 40px;
}

.services-content-bottom {
    display:flex;
    flex-direction:column-reverse;
    gap: 20px;
    margin-top: 35px;
}

.services__price {
    font-size: 20px;
    font-weight: 600;
}

.services__btn {
    width:50%;
  font-size: 20px;
}

/* Проекты */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid #f0f0f0;
}

.project-img {
  height: 250px;
  background-color: #444444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 3rem;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51, 51, 51, 0.9);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

/* Отзывы */
.reviews {
  background-color: #f9f9f9;
}

.reviews-slider {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 0;
  scrollbar-width: thin;
  margin: 0 50px;
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.review-card {
  flex: 0 0 calc(33.333% - 20px);
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;

  display: flex;
  align-items: center;

    -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.review-card img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.reviews-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.reviews-arrow {
  position: static;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin: 0 10px;
}

.reviews-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reviews-arrow svg {
  width: 20px;
  height: 20px;
  color: #333;
}

/* Альтернативный вариант с абсолютным позиционированием вне контейнера */
.reviews-arrow.reviews-arrow-prev {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
}

.reviews-arrow.reviews-arrow-next {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .reviews-arrow {
    width: 32px;
    height: 32px;
    margin: 0 5px;
  }

  .reviews-arrow.reviews-arrow-prev {
    left: -35px;
  }

  .reviews-arrow.reviews-arrow-next {
    right: -35px;
  }
}

@media (max-width: 480px) {
  .reviews-arrow {
    width: 28px;
    height: 28px;
  }

  .reviews-arrow.reviews-arrow-prev {
    left: -25px;
  }

  .reviews-arrow.reviews-arrow-next {
    right: -25px;
  }
}

/* Контакты  */

.contact {
  padding: 0 0 100px 0;
}

.contact__inner {
  display: flex;
  justify-content: center;
  align-items:center;
  gap: 50px;
}

.contact__social {
  position: relative;
  background: var(--accent-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 50px 10px 50px;
  border-radius: 10px;
  max-width: 450px;
  width: 100%;
}

.contact__social::before {
  content: "";
  position: absolute;
  background: var(--accent-text);
  border-radius: 10px 10px 20px 20px;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  z-index: 1;
}

.contact__social-title {
  color: var(--general-bg);
  z-index: 2;
  font-size: 32px;
  font-weight: 500;
}

.contact__social-info {
  z-index: 2;
  color: var(--general-bg);
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 100px;
  margin-bottom:50px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact__link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 20px;
  width: 40px;
  height: 40px;
}

.contact__link:hover {
  background: var(--accent-text);
}

.contact__link:hover svg path {
  fill: var(--accent-color);
}

.contact__form {
  max-width: 550px;
  width: 100%;
  margin-top: 25px;
}

.contact__form-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 30px;
}

.form-name {
  margin-bottom: 40px;
}

.form-tel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 20px;
  margin-bottom: 20px;
}

.form-group input {
  padding: 10px 15px;
  border-radius: 5px;
  color: var(--accent-text);

  font-size: 18px;
}

.form-btn {
  font-size: 20px;
}

/* Футер */
footer {
  background-color: #333333;
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer__nav {
  display: flex;
  gap: 50px;
  font-size: 18px;
}

.footer__nav li {
  transition: all .3s;
}

.footer__nav li:hover {
  color: var(--accent-color);
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer__logo {
  color: var(--general-bg);
}

.footer-column h3 {
  margin-bottom: 15px;
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}

.modal-project {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.modal-caption {
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border: none;
  z-index: 1001;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Стили для слайдера (больше 6 элементов) */
.projects-grid.slider-mode {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
  scroll-behavior: smooth;
}

.projects-grid.slider-mode::-webkit-scrollbar {
  display: none;
}

.projects-grid.slider-mode .project-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: calc(33.333% - 20px);
  margin: 0 10px;
  scroll-snap-align: start;
}

/* Стили для мобильных устройств в режиме слайдера */
@media (max-width: 992px) {
  .projects-grid.slider-mode .project-card {
    flex: 0 0 calc(50% - 20px);
    min-width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .projects-grid.slider-mode .project-card {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
  }
}

/* Навигация слайдера */
.slider-nav {
  display: none;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.slider-nav.active {
  display: flex;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dot.active {
  background: #333;
}

.slider-arrows {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.slider-arrows.active {
  display: flex;
}

.arrow {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: all;
  transition: all 0.3s ease;
  border: none;
}

.arrow:hover {
  background: white;
  transform: scale(1.1);
}

.arrow.prev-arrow {
  left: -25px;
}

.arrow.next-arrow {
  right: -25px;
}

/* Адаптивность для стрелок */
@media (max-width: 768px) {
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .arrow.prev-arrow {
    left: -15px;
  }

  .arrow.next-arrow {
    right: -15px;
  }
}

.drag-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.drag-indicator.visible {
  opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.modal-header {
    background: #141414;
    color: #ffd700;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 200%;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ffeb3b;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.privacy-content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.privacy-content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.privacy-content li {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #ddd;
}

.btn-accept, .btn-close {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-accept {
    background-color: #141414;
    color: #ffd700;
    font-weight: bold;
}

.btn-accept:hover {
    opacity: .8;
}

.btn-close {
    background-color: transparent;
    color: #141414;
    border: 1px solid #141414;
}

.btn-close:hover {
    background-color: #141414;
    color: #ffd700;
    border: 1px solid #ffd700;
}

.btn-close:hover {
    background-color: #5a6268;
}

.privacy-policy-link {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s;
}

.privacy-policy-link:hover {
    color: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 10px 15px;
        flex-direction: column;
    }
    
    .btn-accept, .btn-close {
        width: 100%;
    }
}