/* ==================== PREMIUM COLOR PALETTE ==================== */
:root {
/* Благородная цветовая палитра */
--color-navy: #1E3A5F;           /* Глубокий темно-синий */
--color-navy-dark: #0F2744;       /* Очень темный синий */
--color-navy-light: #2C5282;      /* Светлее для hover */
--color-gold: #C9A961;            /* Золотой акцент */
--color-gold-light: #D4BC7C;      /* Светлое золото */
--color-charcoal: #2D2D2D;        /* Угольный вместо черного */
--color-cream: #FAF9F6;           /* Кремовый фон */
--color-warm-gray: #8B8680;       /* Теплый серый */
--color-light-gray: #E8E6E1;      /* Светло-серый */

/* Градиенты — сдержанные и благородные */
--gradient-premium: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
--gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
--gradient-subtle: linear-gradient(135deg, #FAF9F6 0%, #F5F3EF 100%);

/* Фоновые цвета */
--bg-light: var(--color-cream);
--bg-white: #FFFFFF;
--bg-warm: #F5F3EF;               /* Теплый бежевый */
--bg-gray: var(--color-light-gray);

/* Текстовые цвета */
--text-primary: var(--color-charcoal);
--text-secondary: var(--color-warm-gray);
--text-white: #FFFFFF;
--text-navy: var(--color-navy);
--text-gold: var(--color-gold);

/* Тени — мягкие и элегантные */
--shadow-sm: 0 1px 3px rgba(15, 39, 68, 0.08);
--shadow-md: 0 4px 12px rgba(15, 39, 68, 0.1);
--shadow-lg: 0 10px 30px rgba(15, 39, 68, 0.12);
--shadow-xl: 0 20px 40px rgba(15, 39, 68, 0.15);
--shadow-gold: 0 4px 12px rgba(201, 169, 97, 0.2);

/* Радиусы — меньше скругление для серьезности */
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-full: 9999px;

/* Отступы */
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--spacing-md: 1rem;
--spacing-lg: 1.5rem;
--spacing-xl: 2rem;
}

/* ==================== TAILWIND OVERRIDE ==================== */
.bg-blue-600 { background-color: var(--color-navy) !important; }
.text-blue-600 { color: var(--color-navy) !important; }
.from-blue-600 { background-image: var(--gradient-premium) !important; }
.to-indigo-700 { background-image: var(--gradient-premium) !important; }
.bg-gray-900 { background-color: var(--color-charcoal) !important; }
.border-blue-600 { border-color: var(--color-navy) !important; }
.hover\:bg-blue-700:hover { background-color: var(--color-navy-dark) !important; }
.bg-green-50 { background-color: #F0FDF4 !important; }
.text-green-700 { color: #15803D !important; }
.bg-red-50 { background-color: #FEF2F2 !important; }
.text-red-700 { color: #B91C1C !important; }

/* ==================== FONTS & BASE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-light);
color: var(--text-primary);
line-height: 1.6;
font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
font-family: 'Playfair Display', serif;
font-weight: 600;
color: var(--color-navy);
letter-spacing: -0.02em;
line-height: 1.3;
}

/* ==================== TYPOGRAPHY ==================== */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
margin-bottom: 1rem;
color: var(--text-secondary);
}

/* ==================== CAROUSEL PROPERTIES ==================== */
#carouselContainer {
-webkit-overflow-scrolling: touch;
margin-top: 2rem;
padding: 0 20px;
width: 100%;
}

#properties-carousel {
scroll-snap-type: x mandatory;
-ms-overflow-style: none;
scrollbar-width: none;
white-space: nowrap;
padding: 10px 0;
width: 100%;
}

#properties-carousel::-webkit-scrollbar {
display: none;
}

.slide {
scroll-snap-align: start;
min-width: 320px;
max-width: 400px;
margin: 0 12px;
display: inline-block;
flex-shrink: 0;
background: var(--bg-white);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid rgba(201, 169, 97, 0.15);
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide:hover {
box-shadow: var(--shadow-xl);
transform: translateY(-6px);
border-color: rgba(201, 169, 97, 0.3);
}

@media (max-width: 640px) {
.slide {
min-width: 280px;
max-width: 320px;
margin: 0 8px;
}
}

@media (min-width: 768px) {
.slide {
min-width: 350px;
max-width: 420px;
margin: 0 15px;
}
}

@media (min-width: 1024px) {
.slide {
min-width: 380px;
max-width: 450px;
}
}

/* ==================== FILTERS ==================== */
.filter-btn {
padding: 10px 24px;
border: 1.5px solid var(--color-navy);
border-radius: var(--radius-md);
background: var(--bg-white);
color: var(--color-navy);
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: var(--shadow-sm);
white-space: nowrap;
display: inline-block;
min-width: 80px;
text-align: center;
font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
background: var(--color-navy);
color: var(--color-gold);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}

.filter-btn.active {
background: var(--color-navy);
color: var(--color-gold);
box-shadow: var(--shadow-md);
border-color: var(--color-gold);
}

.flex-wrap {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
.filter-btn {
padding: 8px 18px;
font-size: 13px;
min-width: 70px;
}
.flex-wrap {
gap: 8px;
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 10px;
-webkit-overflow-scrolling: touch;
}
}

/* ==================== REVIEWS CAROUSEL ==================== */
#reviewsContainer {
-webkit-overflow-scrolling: touch;
margin-top: 2rem;
padding: 0 20px;
width: 100%;
}

#reviews-carousel {
scroll-snap-type: x mandatory;
-ms-overflow-style: none;
scrollbar-width: none;
white-space: nowrap;
padding: 10px 0;
width: 100%;
}

#reviews-carousel::-webkit-scrollbar {
display: none;
}

.review-slide {
scroll-snap-align: start;
width: 380px;
height: 420px;
margin: 0 15px;
flex-shrink: 0;
background: var(--bg-white);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid rgba(201, 169, 97, 0.15);
overflow: hidden;
transition: all 0.4s ease;
display: flex;
flex-direction: column;
white-space: normal;
}

.review-slide:hover {
box-shadow: var(--shadow-xl);
transform: translateY(-4px);
border-color: rgba(201, 169, 97, 0.3);
}

.review-slide > div:first-child {
flex-shrink: 0;
padding: 1.5rem;
border-bottom: 1px solid var(--bg-gray);
}

.review-slide p {
flex-grow: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 1.5rem;
line-height: 1.6;
font-size: 0.9rem;
white-space: normal;
word-wrap: break-word;
word-break: break-word;
hyphens: auto;
text-align: left;
margin: 0;
color: var(--text-secondary);
}

.review-slide p::-webkit-scrollbar {
width: 6px;
}

.review-slide p::-webkit-scrollbar-track {
background: var(--bg-gray);
border-radius: var(--radius-full);
}

.review-slide p::-webkit-scrollbar-thumb {
background: var(--color-gold);
border-radius: var(--radius-full);
}

@media (max-width: 640px) {
.review-slide {
width: 300px;
height: 380px;
margin: 0 10px;
}
.review-slide p {
font-size: 0.85rem;
padding: 1rem;
}
}

@media (min-width: 768px) {
.review-slide {
width: 350px;
height: 400px;
margin: 0 12px;
}
}

@media (min-width: 1024px) {
.review-slide {
width: 380px;
height: 420px;
margin: 0 15px;
}
}

/* ==================== SERVICES CAROUSEL ==================== */
.service-slide {
scroll-snap-align: start;
min-width: 420px;
max-width: 450px;
height: auto;
min-height: 480px;
margin: 0 15px;
flex-shrink: 0;
background: var(--bg-white);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid rgba(201, 169, 97, 0.15);
overflow: visible;
transition: all 0.4s ease;
display: flex;
flex-direction: column;
}

.service-slide p,
.service-slide ul {
white-space: normal !important;
word-wrap: break-word !important;
word-break: break-word !important;
hyphens: auto !important;
text-align: left !important;
overflow: visible !important;
height: auto !important;
max-height: none !important;
line-height: 1.6 !important;
padding: 0 !important;
margin: 0 !important;
}

.service-slide > div:first-child {
flex-shrink: 0;
padding: 1.5rem;
border-bottom: 1px solid var(--bg-gray);
}

.service-slide h3 {
height: auto !important;
overflow: hidden !important;
display: -webkit-box !important;
-webkit-line-clamp: 2 !important;
-webkit-box-orient: vertical !important;
font-size: 1.25rem !important;
margin-bottom: 0.75rem !important;
font-family: 'Playfair Display', serif;
}

.service-slide p {
padding: 1.5rem 1.5rem 1rem !important;
}

@media (max-width: 640px) {
.service-slide {
min-width: 300px !important;
max-width: 320px !important;
min-height: 450px !important;
}
}

@media (min-width: 768px) {
.service-slide {
min-width: 350px !important;
max-width: 400px !important;
}
}

@media (min-width: 1024px) {
.service-slide {
min-width: 420px !important;
max-width: 450px !important;
}
}

/* ==================== HAMBURGER MENU ==================== */
@media (max-width: 767px) {
.mobile-menu-btn {
position: fixed !important;
top: 50% !important;
right: 15px !important;
transform: translateY(-50%) !important;
z-index: 10000 !important;
background: var(--bg-white);
border-radius: var(--radius-full);
padding: 8px;
box-shadow: var(--shadow-lg);
cursor: pointer;
transition: all 0.3s ease;
border: 1.5px solid var(--color-gold);
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
}

.mobile-menu-btn svg {
width: 24px;
height: 24px;
color: var(--color-navy);
}

.mobile-menu-btn:hover {
background: var(--color-navy);
border-color: var(--color-navy);
transform: translateY(-50%) scale(1.05);
}

.mobile-menu-btn:hover svg {
color: var(--color-gold);
}

#mobile-menu {
position: fixed !important;
top: 50% !important;
transform: translateY(-50%) !important;
right: 75px !important;
left: auto !important;
width: auto !important;
max-width: 280px !important;
z-index: 9999 !important;
animation: slideFromRight 0.3s ease;
background: var(--bg-white);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-xl);
border: 1px solid rgba(201, 169, 97, 0.2);
}

@keyframes slideFromRight {
from {
opacity: 0;
transform: translateY(-50%) translateX(20px);
}
to {
opacity: 1;
transform: translateY(-50%) translateX(0);
}
}
}

@media (min-width: 768px) {
.mobile-menu-btn { display: none !important; }
#mobile-menu { display: none !important; }
}

/* ==================== PROPERTY MODAL ==================== */
#propertyModal {
display: none;
position: fixed;
inset: 0;
background: rgba(15, 39, 68, 0.6);
z-index: 50;
align-items: center;
justify-content: center;
}

#propertyModal:not(.hidden) {
display: flex;
}

#propertyModal button[onclick="closePropertyModal()"] {
position: sticky;
top: 0;
right: 0;
z-index: 10;
background: var(--bg-white);
border: 1.5px solid var(--color-gold);
width: 44px;
height: 44px;
border-radius: var(--radius-full);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 24px;
color: var(--color-navy);
box-shadow: var(--shadow-md);
transition: all 0.3s ease;
flex-shrink: 0;
}

#propertyModal button[onclick="closePropertyModal()"]:hover {
background: var(--color-navy);
color: var(--color-gold);
transform: rotate(90deg);
}

@media (max-width: 640px) {
#propertyModal {
align-items: flex-end;
margin: 0;
}

#propertyModal .bg-white.rounded-2xl,
#propertyModal > div {
max-height: 90vh;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
margin: 0;
width: 100%;
}

#propertyModal button[onclick="closePropertyModal()"] {
position: fixed !important;
top: 15px !important;
right: 15px !important;
width: 48px !important;
height: 48px !important;
background: var(--bg-white) !important;
box-shadow: var(--shadow-lg) !important;
z-index: 100 !important;
font-size: 28px !important;
border-radius: var(--radius-full) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
border: 1.5px solid var(--color-gold) !important;
}
}

/* ==================== MODAL CAROUSEL ==================== */
#modal-carousel-container {
-webkit-overflow-scrolling: touch;
width: 100%;
position: relative;
max-height: 400px;
}

#modal-carousel {
scroll-snap-type: x mandatory;
-ms-overflow-style: none;
scrollbar-width: none;
white-space: nowrap;
width: 100%;
height: 400px;
}

#modal-carousel::-webkit-scrollbar {
display: none;
}

.modal-carousel-slide {
scroll-snap-align: start;
min-width: 100%;
max-width: 100%;
height: 400px;
margin: 0;
display: inline-block;
flex-shrink: 0;
background: var(--bg-white);
border-radius: var(--radius-lg);
overflow: hidden;
position: relative;
}

.modal-carousel-slide img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.modal-carousel-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--color-light-gray);
transition: all 0.3s ease;
cursor: pointer;
border: 1px solid var(--color-gold);
}

.modal-carousel-indicator.active {
background: var(--color-gold);
transform: scale(1.3);
}

@media (max-width: 640px) {
#modal-carousel-container,
#modal-carousel,
.modal-carousel-slide {
height: 250px;
}
}

@media (min-width: 768px) {
#modal-carousel-container,
#modal-carousel,
.modal-carousel-slide {
height: 350px;
}
}

/* ==================== FORM VALIDATION ==================== */
input.border-red-500,
select.border-red-500,
textarea.border-red-500 {
border-color: #EF4444 !important;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

input[type="tel"]::placeholder {
color: var(--color-warm-gray);
font-size: 0.875rem;
}

/* ==================== LOGO ==================== */
.logo-icon {
border-radius: var(--radius-full);
object-fit: contain;
background: var(--bg-white);
padding: 4px;
border: 2px solid var(--color-gold);
}

@media (max-width: 767px) {
.logo-icon {
width: 36px !important;
height: 36px !important;
padding: 2px !important;
}
}

@media (min-width: 768px) and (max-width: 1024px) {
.logo-icon {
width: 44px !important;
height: 44px !important;
}
}

@media (min-width: 1025px) {
.logo-icon {
width: 56px !important;
height: 56px !important;
}
}

/* ==================== HERO SECTION ==================== */
section.bg-gradient-to-r {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
background: var(--gradient-subtle) !important;
}

section.bg-gradient-to-r h1 {
margin-bottom: 1rem !important;
font-size: 2.25rem !important;
color: var(--color-navy) !important;
}

section.bg-gradient-to-r p.text-xl {
margin-bottom: 1.5rem !important;
font-size: 1.05rem !important;
max-width: 800px !important;
color: var(--text-secondary) !important;
}

section.bg-gradient-to-r .flex.flex-col {
margin-top: 1.5rem !important;
gap: 0.75rem !important;
}

section.bg-gradient-to-r button {
padding: 1rem 2rem !important;
font-size: 0.9rem !important;
font-weight: 600 !important;
letter-spacing: 0.5px !important;
text-transform: uppercase !important;
border: 1.5px solid var(--color-gold) !important;
}

@media (max-width: 640px) {
section.bg-gradient-to-r {
padding-top: 2rem !important;
padding-bottom: 2rem !important;
}
section.bg-gradient-to-r h1 {
font-size: 1.75rem !important;
}
section.bg-gradient-to-r p.text-xl {
font-size: 0.95rem !important;
}
}

@media (min-width: 641px) and (max-width: 1024px) {
section.bg-gradient-to-r {
padding-top: 2.5rem !important;
padding-bottom: 2.5rem !important;
}
section.bg-gradient-to-r h1 {
font-size: 2rem !important;
}
}

/* ==================== ANIMATIONS ==================== */
.step-content {
animation: stepFadeIn 0.4s ease;
}

@keyframes stepFadeIn {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

/* ==================== PREMIUM BUTTONS ==================== */
.btn-primary {
background: var(--color-navy);
color: var(--color-gold);
font-weight: 600;
padding: 1rem 2.5rem;
border: 1.5px solid var(--color-gold);
border-radius: var(--radius-md);
transition: all 0.4s ease;
letter-spacing: 0.5px;
text-transform: uppercase;
font-size: 0.875rem;
cursor: pointer;
font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
background: var(--color-gold);
color: var(--color-navy);
border-color: var(--color-navy);
transform: translateY(-2px);
box-shadow: var(--shadow-gold);
}

.btn-secondary {
background: var(--bg-white);
color: var(--color-navy);
font-weight: 600;
padding: 1rem 2.5rem;
border: 1.5px solid var(--color-navy);
border-radius: var(--radius-md);
transition: all 0.4s ease;
letter-spacing: 0.5px;
text-transform: uppercase;
font-size: 0.875rem;
cursor: pointer;
font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
background: var(--color-navy);
color: var(--color-gold);
border-color: var(--color-gold);
transform: translateY(-2px);
}

/* ==================== CARDS & SECTIONS ==================== */
.section {
padding: 4rem 0;
}

.section-title {
font-size: 2rem;
font-weight: 600;
margin-bottom: 1rem;
text-align: center;
position: relative;
padding-bottom: 1.5rem;
font-family: 'Playfair Display', serif;
color: var(--color-navy);
}

.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: var(--color-gold);
}

.section-subtitle {
font-size: 1.05rem;
color: var(--text-secondary);
text-align: center;
max-width: 48rem;
margin: 0 auto 3rem;
line-height: 1.6;
}

/* ==================== FOOTER ==================== */
footer {
background: var(--color-navy-dark);
color: var(--color-cream);
padding: 3rem 0;
border-top: 3px solid var(--color-gold);
}

/* ==================== LINKS ==================== */
a {
color: var(--color-navy);
text-decoration: none;
position: relative;
transition: color 0.3s ease;
}

a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 1.5px;
background: var(--color-gold);
transition: width 0.3s ease;
}

a:hover {
color: var(--color-gold);
}

a:hover::after {
width: 100%;
}

/* ==================== FORMS ==================== */
input, textarea, select {
border: 1.5px solid rgba(201, 169, 97, 0.3);
border-radius: var(--radius-md);
padding: 0.875rem 1rem;
background: var(--bg-warm);
font-family: 'Inter', sans-serif;
transition: all 0.3s ease;
width: 100%;
}

input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--color-gold);
box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
background: var(--bg-white);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
.section {
padding: 2.5rem 0;
}
.section-title {
font-size: 1.75rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
}

@media (min-width: 768px) {
.container {
max-width: 48rem;
margin-left: auto;
margin-right: auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}

@media (min-width: 1024px) {
.container {
max-width: 64rem;
}
}

@media (min-width: 1280px) {
.container {
max-width: 80rem;
}
}

/* ==================== SMOOTH TRANSITIONS ==================== */
* {
transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
/* ==================== ФОНОВОЕ ИЗОБРАЖЕНИЕ ==================== */
/* Фоновое изображение для всего сайта */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  background-image: url('city-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

/* Полупрозрачный оверлей для читаемости текста */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 249, 246, 0.85);
  z-index: -1;
  pointer-events: none;
}

/* Делаем ВСЕ секции прозрачными на 20% (opacity: 0.2) */
header,
footer,
section {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px) !important;
}

/* Hero секция - 20% прозрачности */
section.bg-gradient-to-r {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px) !important;
}

/* Карточки объектов - чуть более непрозрачные для читаемости */
.slide {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(5px) !important;
}

/* Карточки услуг и отзывов */
.review-slide,
.service-slide {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(5px) !important;
}

/* Модальные окна - почти непрозрачные */
#propertyModal > div,
#modalValuation > div {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(5px) !important;
}

/* Мобильное меню */
#mobile-menu {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(5px) !important;
}