/* Сброс стилей и базовые настройки */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	color: #333;
	line-height: 1.6;
}

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

/* Шапка */
header {
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	padding: 15px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: 0;
}

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	color: #2c3e50;
	text-decoration: none;
	display: flex;
	align-items: baseline;
}

.logo span {
	color: #3498db;
}

.logo img{
	
width: 60px;
	
margin-right: 9px;
}

nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: space-around;
}

nav ul li {
	margin-left: 25px;
}
nav ul li:first-child{
	margin:0;
}
nav ul li a {
	text-decoration: none;
	color: #2c3e50;
	font-weight: 500;
	transition: color 0.3s;
}

nav ul li a:hover {
	color: #3498db;
}

/* Герой секция */
.hero {
	background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://placeholder.com/1920x800') no-repeat center center/cover;
	color: #fff;
	padding: 100px 0;
	text-align: center;
}

.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 20px;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.search-box {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	max-width: 800px;
	margin: 0 auto;
}

.search-input {
	flex: 1 1 200px;
	margin: 10px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.search-btn {
	flex: 1 1 200px;
	margin: 10px;
	padding: 12px;
	background: #3498db;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.3s;
}

.search-btn:hover {
	background: #2980b9;
}

/* Секция популярных районов */
.districts {
	padding: 60px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
	font-size: 2rem;
	color: #2c3e50;
}

.district-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.district-card {
	background: #f8f9fa;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s;
	cursor: pointer;
}

.district-card:hover {
	transform: translateY(-5px);
}

.district-img {
	height: 150px;
	background-color: #ddd; /* Заглушка для изображения */
	background-size: cover;
	background-position: center;
}

.district-info {
	padding: 15px;
}

.district-info h3 {
	margin-bottom: 10px;
}

/* Секция каталога квартир */
.apartments {
	padding: 60px 0;
	background: #f8f9fa;
}

.apartment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
}

.apartment-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.apartment-img {
	height: 200px;
	background-color: #ccc; /* Заглушка для изображения */
	background-size: cover;
	background-position: center;
}

.apartment-info {
	padding: 20px;
}

.apartment-info h3 {
	margin-bottom: 10px;
}

.apartment-price {
	font-size: 1.3rem;
	color: #3498db;
	font-weight: bold;
	margin: 10px 0;
}

.apartment-meta {
	color: #7f8c8d;
	font-size: 0.9rem;
	display: flex;
	justify-content: space-between;
	margin-top: 15px;
}

/* Секция преимуществ */
.advantages {
	padding: 60px 0;
}

.advantages-grid {
	display: flex;
	text-align: center;
	flex-wrap: wrap;
	justify-content: space-around;
}

.advantage-item {
	padding: 20px;
	background: #2474be;
	margin: 20px 5px;
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.advantage-item p{
	color:white;
	margin-bottom: 0;
}
.advantage-item h3 {
	color: white;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 20px;
	width: 100%;
	border-bottom: 3px solid;
	height: 35px;
}

/* Призыв к действию */
.cta {
	background: #3498db;
	color: white;
	text-align: center;
	padding: 80px 0;
}

.cta h2 {
	font-size: 2.2rem;
	margin-bottom: 20px;
}

.cta-btn {
	display: inline-block;
	background: #fff;
	color: #3498db;
	padding: 15px 30px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	margin-top: 20px;
	transition: transform 0.3s;
}

.cta-btn:hover {
	transform: scale(1.05);
}

/* Футер */
footer {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

.footer-column h3 {
	margin-bottom: 20px;
	font-size: 1.2rem;
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 10px;
}

.footer-column ul li a {
	color: #bdc3c7;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-column ul li a:hover {
	color: #3498db;
}

.copyright {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #3c546c;
	color: #bdc3c7;
}
#page-body{
    padding: 0;
}
.banner{
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}
.poisk{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.poisk .flex-center{width: 90%;max-width: 600px;}
.poisk #title-search-input{
	font-size: 20px;
	padding: 5px 8px;
	color: #2474bf;
}
.poisk input[type=submit]{
	padding: 12px 40px;
	font-size: 16px;
	text-transform: uppercase;
	font-weight: 600;
	background: #3498db;
	border: none;
	cursor: pointer;
	color: white;
}
.poisk input[type=submit]:hover{
	background: #2474bf;
}
.poisk button{height: 45px;border-radius: 0;}
hr, .hr{
    border: none;
    display: none;
}

/*Карточка объявления*/
    .apartment-detail {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 15px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        color: #333;
        line-height: 1.5;
    }

    .back-link {
        text-decoration: none;
        font-size: 14px;
        margin-bottom: 10px;
        display: inline-block;
        text-transform: uppercase;
        font-weight: 600;
        background: #2773ba;
        color: white !important;
        padding: 5px 10px;
    }
    .back-link:hover {
        background: #3498db;
    }	

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

    .apartment-title {
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 8px 0;
        color: #222;
    }

    .apartment-price {
        font-size: 24px;
        font-weight: 700;
        color: #e74c3c;
        text-align: center;
        width: 100%;
        max-width: 260px;
    }

    .apartment-gallery {
        margin-bottom: 30px;
        border-radius: 8px;
        overflow: hidden;
        /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
        width: 96%;
        margin: 0 auto;
        max-width: 600px;
    }

    .apartment-content {
        display: flex;
        width: 96%;
        max-width: 600px;
    }

    .info-section {
        margin-bottom: 30px;
    }

    .info-section h2 {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 16px 0;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .info-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .info-item .label {
        color: #666;
    }

    .info-item .value {
        font-weight: 500;
    }

    .description {
        line-height: 1.6;
    }

    .contact-card {
        background: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
        position: sticky;
        top: 20px;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
	.apartment-sidebar{
		width: 100%;
		max-width: 600px;
	}

    .phone-link {
        display: block;
        font-size: 18px;
        font-weight: 600;
        color: #0066cc;
        text-decoration: none;
        text-align: center;
        margin-bottom: 16px;
        padding: 12px;
        background: white;
        border-radius: 6px;
    }

    .contact-button {
        display: block;
        width: 100%;
        padding: 12px;
        margin-bottom: 10px;
        background: #0066cc;
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
    }

    .contact-button:hover {
        background: #0052a3;
    }

    .contact-button.secondary {
        background: transparent;
        color: #0066cc;
        border: 1px solid #0066cc;
    }

    .contact-button.secondary:hover {
        background: #f0f7ff;
    }

    @media (max-width: 768px) {
        .apartment-content {
            grid-template-columns: 1fr;
        }
        
        .info-grid {
            grid-template-columns: 1fr;
        }
    }
.cartochka{
    display: flex;
    flex-wrap: wrap;
}
.contact-phone{
    width: 100%;
    max-width: 300px;
}
