/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #fefaf5;
    font-family: 'Inter', sans-serif;
    color: #2c2b28;
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0e9df;
}

::-webkit-scrollbar-thumb {
    background: #c4a962;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8843a;
}

/* --- Header --- */
.header {
    background-image: url(main/fasad1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 40%;
    position: relative;
    height: 85vh;
    min-height: 600px;
    margin-bottom: 80px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.headerLine {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 30px 0;
}

/* Navigation */
.nav {
    display: flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 10px 28px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navitem {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
}

.navitem:hover {
    color: #e6c87a;
}

/* Phone Block */
.phone {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 24px;
}

.phone-holder {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.phone-img img {
    width: 22px;
    filter: brightness(0) invert(1);
}

.num {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.2s;
}

.num:hover {
    color: #e6c87a;
}

.text1 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.3;
    max-width: 150px;
}

.nav-button {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
}

.but-in-img {
    width: 28px;
    filter: brightness(0) invert(1);
}

/* Hero Content */
.hero {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
}

/* Main Content */
.main-BLOCK {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px 60px;
}

.button-rent {
    text-align: center;
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #c4a15b 0%, #d4b87a 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 42px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(196, 161, 91, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(196, 161, 91, 0.4);
    background: linear-gradient(135deg, #d4b87a 0%, #c4a15b 100%);
}

/* Section Header */
.section-first {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #c4a15b;
    display: inline-block;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: #2c2b28;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #c4a15b, #e6c87a);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Cards */
.section-second {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.block1, .block2, .block3, .block4 {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(196, 161, 91, 0.15);
    transition: transform 0.3s ease;
}

.block1:hover, .block2:hover, .block3:hover, .block4:hover {
    transform: translateY(-5px);
}

.block-image {
    flex: 1;
}

.block-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.15);
}

.block-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #5a5854;
}

.block-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #c4a15b;
    margin-bottom: 15px;
    font-weight: 600;
}

.block2, .block4 {
    flex-direction: row-reverse;
}

/* Map Section */
.Map {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 30px;
}

.text8 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    color: #2c2b28;
}

.map {
    width: 100%;
    height: 450px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9e2d4;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8f3ec 0%, #fefaf5 100%);
    border-top: 1px solid rgba(196, 161, 91, 0.2);
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.last-zag {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(196, 161, 91, 0.2);
}

.last-zag h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #2c2b28;
    margin-bottom: 30px;
    font-weight: 600;
}

.footerLine {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    padding-bottom: 40px;
}

.sec-nav ul, .third-nav ul {
    list-style: none;
}

.sec-nav ul {
    padding: 0;
}

.sec-nav ul li, .third-nav div {
    margin-bottom: 12px;
}

.foot-zag, .foot-zag-sec {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #c4a15b;
    margin-bottom: 20px;
    font-weight: 600;
}

.navitem2, .foot-num, .foot-mail {
    color: #5a5854;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.navitem2:hover, .foot-num:hover, .foot-mail:hover {
    color: #c4a15b;
}

.adres p {
    color: #5a5854;
    line-height: 1.6;
    margin-top: 8px;
    font-size: 15px;
}

.text-adres {
    font-weight: 600;
    color: #c4a15b;
    margin-bottom: 6px;
    font-size: 15px;
}

.text-foot1, .text-mail {
    margin-top: 18px;
    color: #5a5854;
    font-size: 15px;
}

.text-foot1 span, .text-mail span {
    font-weight: 500;
    color: #c4a15b;
}

.text-foot1 a, .text-mail a {
    margin-left: 8px;
}

.copyright {
    text-align: center;
    padding: 25px 0 35px;
    border-top: 1px solid rgba(196, 161, 91, 0.15);
    color: #8a857a;
    font-size: 13px;
}

/* --- ВСЕ МЕДИА-ЗАПРОСЫ ПЕРЕНОСИМ СЮДА (из media.css) --- */
@media (max-width: 1280px) {
    .main-BLOCK { padding: 0 20px 50px; }
    .map { height: 400px; }
    .Map { padding: 0 20px; }
}

@media (max-width: 1200px) {
    .headerLine { justify-content: flex-end; }
    .nav { display: none; }
    .nav-button { display: block; }
    .phone { display: none; }
    .hero-title { font-size: 38px; }
    .section-title { font-size: 42px; }
    .block1, .block2, .block3, .block4 { flex-direction: column; text-align: center; padding: 30px; }
    .block-text { text-align: center; }
    .text8 { font-size: 36px; }
    .map { height: 400px; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 34px; }
    .section-title { font-size: 38px; }
    .section-title::after { width: 60px; }
    .block-title { font-size: 24px; }
    .text8 { font-size: 32px; }
    .map { height: 380px; }
    .last-zag h2 { font-size: 30px; }
}

@media (max-width: 768px) {
    .header { height: 60vh; min-height: 500px; margin-bottom: 50px; }
    .hero-title { font-size: 28px; }
    .main-BLOCK { padding: 0 15px 40px; }
    .button-rent { margin-bottom: 40px; }
    .btn-primary { padding: 12px 32px; font-size: 14px; }
    .section-title { font-size: 32px; }
    .block1, .block2, .block3, .block4 { padding: 25px; }
    .block-title { font-size: 22px; }
    .text8 { font-size: 28px; margin-bottom: 30px; }
    .map { height: 320px; }
    .footer { padding: 40px 0 0; }
    .last-zag h2 { font-size: 24px; }
    .footerLine { flex-direction: column; gap: 35px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 24px; }
    .section-title { font-size: 28px; }
    .block1, .block2, .block3, .block4 { padding: 20px; }
    .block-title { font-size: 20px; }
    .text8 { font-size: 24px; }
    .map { height: 280px; }
    .last-zag h2 { font-size: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 20px; }
    .section-title { font-size: 26px; }
    .text8 { font-size: 22px; }
    .map { height: 250px; }
}

/* Стили для открытого меню */
@media (min-width: 1201px) {
    .nav-button { display: none; }
}

/* Горизонтальная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .header { height: 85vh; min-height: 400px; }
    .hero-title { font-size: 28px; }
    .map { height: 280px; }
}

/* Большие экраны */
@media (min-width: 1920px) {
    .main-BLOCK { max-width: 1400px; }
    .hero-title { font-size: 64px; }
    .section-title { font-size: 68px; }
    .block-title { font-size: 32px; }
    .text8 { font-size: 52px; }
    .map { height: 550px; }
}