/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px !important;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    zoom: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    background-color: #2d2319;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    zoom: 1;
}

.u-sheet {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box; /* Добавляем для правильного расчета */
}

.u-section-1 .u-sheet-1,
.u-section-2 .u-sheet-1,
.u-section-3 .u-sheet-1,
.u-section-4 .u-sheet-1,
.u-section-5 .u-sheet-1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Анимации для второй секции */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Элементы текста во второй секции изначально скрыты */
.u-section-2 .text-content-wrapper h3,
.u-section-2 .text-content-wrapper p {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

/* Когда элемент виден, применяем анимацию */
.u-section-2 .text-content-wrapper h3.animate-in,
.u-section-2 .text-content-wrapper p.animate-in {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Задержки для последовательного появления */
.u-section-2 .text-content-wrapper h3.animate-in {
    animation-delay: 0.2s;
}

.u-section-2 .text-content-wrapper p.animate-in {
    animation-delay: 0.4s;
}


/* ===== ХЕДЕР ===== */
.header {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(67, 50, 35, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Навигация для десктопа */
.navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover {
    color: #db9f68;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #db9f68;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Бургер-меню для десктопа - скрываем */
.menu-toggle {
    display: none;
}

/* ===== СЕКЦИЯ 1 - HERO ===== */
.u-section-1 {
  background-image: url('images/ai-main.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Добавляем центрирование */
}

.u-section-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.u-section-1 .u-sheet-1 {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px; /* Более узкий контейнер для текста */
  padding: 100px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
  width: 100%; /* Добавляем */
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.hero-title {
  font-family: 'Optima Cyr', Sans-serif, serif !important;
  font-size: 38px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 5px !important;
  text-align: center !important;
  padding: 50px 0 0 0 !important;
  margin: 0 0 16px !important;
  line-height: 1.5 !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4) !important;
}

.hero-subtitle {
  font-size: 18px !important;
  font-weight: 300 !important;
  font-family: 'Lato', sans-serif !important;
  line-height: 1.7;
  margin: 0 0 48px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.hero-button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.02em;
}

.hero-button-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border: none;
}

.hero-button-primary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-button-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ===== СЕКЦИЯ 2 - ABOUT ME ===== */
.u-section-2 {
  background-image: url('images/section-2-5.png');
  background-position: 30% 0%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.u-section-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(219, 159, 104, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.u-section-2 .u-sheet-1 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.text-content-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}

/* ОБНОВЛЕННЫЕ СТИЛИ ТЕКСТА */
.u-section-2 .u-text-3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  max-width: none;
}

.u-section-2 .u-text-4 {
  font-family: 'Lato', sans-serif !important;
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-weight: 300;
  width: 100%;
  margin: 0 auto;
}

/* ===== СЕКЦИЯ 3 - SERVICES ===== */
.u-section-3 {
  padding: 60px 20px 100px;
  background: url('images/back-2.jpg') center/cover;
  color: #fff;
  position: relative;
}

.u-section-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.u-section-3 .u-sheet-1,
.services-container,
.service-column {
  position: relative;
  z-index: 2;
}

.u-section-3 .u-text-1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.u-section-3 .u-text-2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 80px;
  font-weight: 300;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.service-column {
  background: transparent;
  padding: 60px 50px;
  border-radius: 0;
  text-align: center;
  position: relative;
  border: 2px solid rgba(219, 159, 104, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 600px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.service-column:hover {
  border-color: #db9f68;
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-column:nth-child(1) .service-icon path,
.service-column:nth-child(2) .service-icon path {
  fill: #db9f68;
}

.service-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.service-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: #db9f68;
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.5;
}

.service-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  text-align: left;
}

.service-step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: #db9f68;
  color: #2c3e50;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.service-note {
  margin-top: 25px;
  padding: 15px;
  background: rgba(219, 159, 104, 0.1);
  text-align: left;
  width: 100%;
  align-self: flex-start;
}

.service-note p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: left;
}

.service-note strong {
  color: #db9f68;
}

/* ===== СЕКЦИЯ 4 - ПОРТФОЛИО ОТЕЛЕЙ ===== */
.u-section-4 {
  background-image: url('images/thai-2.jpg');
  background-position: center 70%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 20px;
}

.u-section-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(67, 50, 35, 0.75);
  z-index: 1;
}

.u-section-4 .u-sheet-1 {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 15px;
}

.portfolio-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 60px;
  font-weight: 300;
}

.portfolio-grid {
  display: flex;
  gap: 30px;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(219, 159, 104, 0.5) transparent;
}

.portfolio-grid::-webkit-scrollbar {
  height: 8px;
}

.portfolio-grid::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio-grid::-webkit-scrollbar-thumb {
  background: rgba(219, 159, 104, 0.5);
  border-radius: 4px;
}

.portfolio-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(219, 159, 104, 0.7);
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(219, 159, 104, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(219, 159, 104, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-image-wrapper {
  width: 100%;
  height: 286px;
  overflow: hidden;
  position: relative;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.3s ease;
}

.portfolio-image-center {
  object-position: center center;
}

.portfolio-image-fit {
  object-fit: contain;
  object-position: center center;
  background: rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-location {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #db9f68;
  margin: 0 0 15px 0;
}

.portfolio-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.portfolio-features li {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.portfolio-features li::before {
  content: '•';
  color: #db9f68;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.portfolio-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(219, 159, 104, 0.2);
}

.price-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #db9f68;
}

.price-period {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== СЕКЦИЯ 5 - CONTACT FORM ===== */
.u-section-5 {
  background-image: url('images/collage.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 20px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Мобильная версия - другой фон */
@media (max-width: 767px) {
  .u-section-5 {
    background-image: url('images/cape-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }
  
  .u-section-5::before {
    background: rgba(45, 35, 25, 0.8);
  }
}

.u-section-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 35, 25, 0.75);
  z-index: 1;
}

.u-section-5 .u-sheet-1 {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.u-section-5 .u-layout-wrap-1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.u-section-5 .u-layout-cell-1 {
  flex: 0 0 70%;
  max-width: 600px;
}

.u-section-5 .u-container-layout-1 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 35px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.u-section-5 .u-text-2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin-bottom: 35px;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Форма */
.u-form-1 {
  text-align: left;
}

.u-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.u-form-group {
  margin-bottom: 0;
}

.u-form-group.u-form-message {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.u-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.u-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #2c3e50;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.u-input:focus {
  outline: none;
  border-color: #db9f68;
  background: white;
  box-shadow: 0 0 0 2px rgba(219, 159, 104, 0.3);
}

.u-input::placeholder {
  color: #7f8c8d;
  font-size: 0.85rem;
}

textarea.u-input {
  resize: vertical;
  min-height: 80px;
}

.u-btn-submit {
  background: #db9f68;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 180px;
  margin-top: 5px;
}

.u-btn-submit:hover {
  background: #c58a5a;
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(219, 159, 104, 0.3);
}

.u-btn-submit:disabled {
  background: #db9f68;
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.u-btn-submit:disabled:hover {
  background: #db9f68;
  transform: none;
  box-shadow: none;
}

#form-message {
  margin-top: 15px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 6px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-out;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#form-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для разных состояний сообщения */
#form-message.success {
  background-color: #db9f68;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(219, 159, 104, 0.3);
}

#form-message.error {
  background-color: #c55a3a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(197, 90, 58, 0.3);
}

#form-message.loading {
  background-color: #db9f68;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(219, 159, 104, 0.3);
}

/* Чекбокс */
.u-form-group.u-form-checkbox {
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.service-type-selector {
  margin-bottom: 0;
  text-align: left;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.checkbox-label:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Когда чекбокс отмечен - текст оранжевый */
.checkbox-label:has(.service-checkbox:checked) {
  color: #db9f68;
}

/* Fallback для старых браузеров - используем JavaScript класс */
.checkbox-label.checked {
  color: #db9f68;
}

.service-checkbox {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #db9f68;
  border-radius: 3px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.service-checkbox:checked + .checkmark {
  background: #db9f68;
  border-color: #db9f68;
}

.service-checkbox:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991px) {
  /* Дополнительная защита от overscroll на мобильных */
  html {
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
    /* Убеждаемся, что нет лишних отступов */
    margin: 0;
    padding: 0;
  }
  
  /* Предотвращаем overscroll для секций */
  section {
    overscroll-behavior: contain;
  }

  /* Мобильное меню */
  .menu-toggle {
      display: flex;
      flex-direction: column;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
      gap: 4px;
      z-index: 1001;
  }

  .menu-toggle-line {
      width: 25px;
      height: 2px;
      background: #fff;
      transition: all 0.3s ease;
  }

  /* Меню на всю ширину, но компактное по высоте */
  .nav-menu {
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      background: rgba(45, 35, 25, 0.98);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      flex-direction: column;
      padding: 0;
      gap: 0;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: all 0.3s ease;
      z-index: 1000;
      border-top: 1px solid rgba(219, 159, 104, 0.2);
  }

  .nav-menu.active {
      max-height: 180px;
      opacity: 1;
      padding: 12px 0;
  }

  .nav-item {
      margin: 0;
      opacity: 0;
      transform: translateY(-5px);
      transition: all 0.3s ease;
  }

  .nav-menu.active .nav-item {
      opacity: 1;
      transform: translateY(0);
  }

  .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }

  .nav-link {
      display: block;
      padding: 14px 20px;
      font-size: 16px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.9);
      border-bottom: 1px solid rgba(219, 159, 104, 0.1);
      transition: all 0.3s ease;
      text-align: center;
      font-family: 'Montserrat', sans-serif;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      outline: none;
      -webkit-tap-highlight-color: transparent;
  }

  .nav-link:last-child {
      border-bottom: none;
  }

  .nav-link:hover,
  .nav-link:active,
  .nav-link:focus {
      color: #db9f68;
      background: rgba(219, 159, 104, 0.15);
      padding-left: 25px;
      outline: none;
  }

  .menu-toggle.active .menu-toggle-line:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
      background: #db9f68;
  }

  .menu-toggle.active .menu-toggle-line:nth-child(2) {
      opacity: 0;
  }

  .menu-toggle.active .menu-toggle-line:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
      background: #db9f68;
  }

  .menu-toggle:hover .menu-toggle-line {
      background: #db9f68;
  }

  .header.scrolled {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
  }

    /* Services адаптивность */
    .services-container {
        gap: 40px;
    }

    .service-column {
        padding: 50px 40px;
        min-height: 550px;
    }

    /* Contact адаптивность */
    .u-section-5 .u-layout-cell-1 {
        flex: 0 0 80%;
    }

    .u-section-5 .u-container-layout-1 {
        padding: 35px 30px;
    }
}

@media (max-width: 767px) {
    .header-container {
        padding: 0 15px;
    }

    .logo-image {
        height: 78px;
        width: auto;
        object-fit: contain;
    }

    .u-sheet {
        padding: 0 15px;
    }

    /* Hero адаптивность */
    .u-section-1 {
        background-attachment: scroll;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .u-section-1 .u-sheet-1 {
        padding: 80px 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 28px !important;
        letter-spacing: 3px !important;
        padding: 30px 0 0 0 !important;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 36px;
    }

    .hero-button {
        width: 100%;
        padding: 12px 24px;
    }

    /* About адаптивность */
    .u-section-2 {
        background-attachment: scroll;
        background-size: cover;
        background-position: 30% 0%;
        min-height: auto;
    }

    .text-content-wrapper {
        max-width: 95%;
        padding: 20px 10px;
    }

    .u-section-2 .u-text-3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .u-section-2 .u-text-4 {
        font-size: 1rem;
    }

    /* Services адаптивность */
    .services-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-column {
        padding: 40px 30px;
        min-height: auto;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .u-section-3 .u-text-1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .u-section-3 .u-text-2 {
        font-size: 1rem !important;
        margin-bottom: 60px;
    }

    /* Портфолио адаптивность */
    .u-section-4 {
        background-attachment: scroll;
        padding: 60px 15px;
    }

    .portfolio-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .portfolio-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        gap: 20px;
        padding: 10px 0 15px 0;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .portfolio-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }

    .portfolio-image-wrapper {
        height: 260px;
    }

    .portfolio-content {
        padding: 18px;
    }

    .portfolio-location {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .portfolio-features li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .price-value {
        font-size: 1.3rem;
    }

    /* Contact адаптивность - оптимизированная форма */
    .u-section-5 {
        padding: 80px 15px !important;
        background-attachment: scroll;
        min-height: auto !important;
        display: flex;
        align-items: flex-start;
    }

    .u-section-5 .u-sheet-1 {
        padding: 0;
        max-width: 100%;
    }

    .u-section-5 .u-layout-wrap-1 {
        padding: 0;
    }

    .u-section-5 .u-layout-cell-1 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .u-section-5 .u-container-layout-1 {
        padding: 25px 20px;
        border-radius: 10px;
        margin: 0 auto;
        max-width: 100%;
    }

    .u-section-5 .u-text-2 {
        font-size: 1.1rem;
        margin-bottom: 25px;
        line-height: 1.5;
        letter-spacing: 0.2px;
    }

    /* Оптимизация формы */
    .u-form-1 {
        margin-top: 0;
    }

    .u-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .u-form-group {
        margin-bottom: 0;
    }

    .u-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .u-input {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    textarea.u-input {
        min-height: 70px;
        resize: vertical;
    }

    .u-form-group.u-form-message {
        margin-bottom: 12px;
    }

    .u-form-group.u-form-checkbox {
        justify-content: flex-start;
        margin-top: 8px;
        margin-bottom: 0;
    }

    .service-type-selector {
        text-align: left;
    }

    .checkbox-label {
        font-size: 0.8rem;
        padding: 0;
    }

    .u-btn-submit {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    #form-message {
        margin-top: 12px;
        margin-bottom: 0;
        padding: 12px 14px;
        font-size: 0.85rem;
        line-height: 1.4;
        border-radius: 6px;
    }
}

/* Исправление для больших iPhone (15, 17) и других touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .u-section-2 {
        background-attachment: scroll;
        background-position: 30% 0%;
    }
}

@media (max-width: 575px) {
    .u-section-1 {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
    }

    .u-section-1 .u-sheet-1 {
        padding: 60px 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 24px !important;
        letter-spacing: 2px !important;
        padding: 20px 0 0 0 !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
    }

    .hero-buttons {
        margin-top: 32px;
    }

    .u-section-5 {
        padding: 70px 12px !important;
        min-height: auto !important;
        display: flex;
        align-items: center;
    }

    .u-section-5 .u-layout-cell-1 {
        padding: 0 8px;
    }

    .u-section-5 .u-container-layout-1 {
        padding: 20px 15px;
    }

    .u-section-5 .u-text-2 {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.4;
        letter-spacing: 0.1px;
    }

    .u-form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .u-label {
        font-size: 0.7rem;
    }

    .u-input {
        padding: 9px 10px;
        font-size: 0.85rem;
    }

    textarea.u-input {
        min-height: 60px;
    }

    .u-btn-submit {
        padding: 11px 18px;
        font-size: 0.85rem;
    }

    /* Services мобильная версия */
    .u-section-3 {
        padding: 60px 15px;
    }

    .service-column {
        padding: 30px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .u-section-3 .u-text-1 {
        font-size: 1.6rem !important;
    }

    .u-section-3 .u-text-2 {
        font-size: 0.95rem !important;
        margin-bottom: 50px;
    }

    .u-section-4 {
        background-attachment: scroll;
        padding: 50px 10px;
    }

    .portfolio-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }

    .portfolio-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .portfolio-grid {
        gap: 15px;
        padding: 10px 0 15px 0;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .portfolio-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .portfolio-image-wrapper {
        height: 234px;
    }

    .portfolio-content {
        padding: 15px;
    }

    .portfolio-location {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .portfolio-features li {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .price-value {
        font-size: 1.2rem;
    }
}

/* ===== ФУТЕР ===== */
.footer {
    background: rgba(45, 35, 25, 0.95);
    color: rgba(255, 255, 255, 0.9);
    padding: 30px 20px 15px;
    margin: 0;
    opacity: 1;
    transform: none;
    transition: none;
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-description {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 600px;
}

/* ГОРИЗОНТАЛЬНОЕ МЕНЮ В ФУТЕРЕ */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px; /* Расстояние между ссылками */
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.footer-link:hover {
    color: #db9f68;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #db9f68;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

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

.footer-copyright {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-telegram {
    margin-top: 10px;
    margin-bottom: 0;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    color: #db9f68;
    transform: translateY(-1px);
}

.telegram-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.telegram-link:hover .telegram-icon {
    transform: scale(1.1);
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer {
        padding: 25px 15px 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }

    .footer-description {
        font-size: 0.85rem;
        line-height: 1.4;
        max-width: 100%;
        text-align: center;
    }

    .footer-links {
        display: none;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 12px;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .telegram-link {
        font-size: 0.8rem;
    }

    .telegram-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 12px 10px;
    }

    .footer-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link {
        font-size: 0.8rem;
        padding: 4px 0;
    }

    .footer-description {
        font-size: 0.8rem;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }

    .telegram-link {
        font-size: 0.75rem;
    }

    .telegram-icon {
        width: 15px;
        height: 15px;
    }
}