* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Segoe UI', Arial, sans-serif;
background-color: #f0f4f8;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 16px 12px 30px;
}

.header {
width: 100%;
max-width: 1000px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
padding: 0 16px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 78px;
transition: box-shadow 0.3s;
position: relative;
z-index: 10;
}
.header:hover {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
text-decoration: none;
font-size: 29px;
font-weight: 700;
color: #1e2a3a;
white-space: nowrap;
}
.logo svg {
height: 52px;
width: auto;
fill: #2e7d32;
display: block;
}
.logo .highlight {
color: #2e7d32;
}
.logo .text {
display: inline-block;
letter-spacing: 0.4px;
line-height: 1;
vertical-align: middle;
}

.nav {
display: flex;
align-items: center;
gap: 8px;
}
.nav a {
text-decoration: none;
color: #333;
font-weight: 500;
font-size: 18px;
padding: 6px 16px;
border-radius: 30px;
transition: all 0.25s ease;
position: relative;
white-space: nowrap;
}
.nav a::after {
content: '';
position: absolute;
bottom: 2px;
left: 50%;
width: 0;
height: 2px;
background: #2e7d32;
transition: all 0.3s ease;
transform: translateX(-50%);
border-radius: 2px;
}
.nav a:hover {
color: #2e7d32;
background: rgba(46, 125, 50, 0.06);
}
.nav a:hover::after {
width: 60%;
}

.burger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
padding: 5px;
background: none;
border: none;
z-index: 20;
}
.burger span {
display: block;
width: 29px;
height: 3px;
background: #2e7d32;
border-radius: 4px;
transition: all 0.3s ease;
}
.burger.active span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
opacity: 0;
}
.burger.active span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
.city-gallery {
width: 100%;
max-width: 1000px;
margin-bottom: 28px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
}

.city-card {
position: relative;
border-radius: 18px;
overflow: hidden;
height: 160px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1), box-shadow 0.4s ease;
cursor: pointer;
text-decoration: none;
color: #fff;
background: #2e7d32;
will-change: transform;
}
.city-card:hover {
transform: translateY(-6px) scale(1.01);
box-shadow: 0 16px 32px rgba(46, 125, 50, 0.18);
}
.city-card img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.city-card:hover img {
transform: scale(1.04);
}
.city-card .city-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 18px 14px 14px;
background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
pointer-events: none;
}
.city-card .city-name {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.3px;
text-shadow: 0 2px 8px rgba(0,0,0,0.3);
display: flex;
align-items: center;
gap: 6px;
}

.city-badge {
position: absolute;
top: 10px;
right: 10px;
z-index: 2;
background: linear-gradient(135deg, #ffd700, #ff8c00);
color: #fff;
font-size: 11px;
font-weight: 700;
padding: 4px 10px;
border-radius: 6px;
display: flex;
align-items: center;
gap: 4px;
box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
animation: pulse-glow 2s infinite;
letter-spacing: 0.2px;
white-space: nowrap;
}
.city-badge svg {
width: 12px;
height: 12px;
fill: #fff;
stroke: none;
}

@keyframes pulse-glow {
0% { box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3); }
50% { box-shadow: 0 2px 14px rgba(255, 215, 0, 0.7); }
100% { box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3); }
}
.page-title {
width: 100%;
max-width: 1000px;
margin-bottom: 20px;
text-align: center;
}
.page-title h1 {
font-size: 32px;
font-weight: 700;
color: #1e2a3a;
line-height: 1.2;
}
.page-title h1 span {
color: #2e7d32;
}
.page-title .subtitle {
font-size: 16px;
color: #6b7a8f;
margin-top: 6px;
font-weight: 400;
}
.main-container {
width: 100%;
max-width: 1000px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
justify-content: center;
}
.nomain-text {
width: 100%;
max-width: 1000px;
display: grid;

justify-content: center;
}

.ad-card {
width: 100%;
aspect-ratio: 1 / 1;
max-width: 320px;
margin: 0 auto;
border: 1px solid #ddd;
border-radius: 10px;
position: relative;
overflow: hidden;
background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
transition: transform 0.2s, box-shadow 0.2s;
font-family: Arial, sans-serif;
}
.ad-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.slider-container {
width: 100%;
height: 82%;
position: relative;
overflow: hidden;
background: #f0f0f0;
cursor: pointer;
}
.slides-wrapper {
display: flex;
width: 100%;
height: 100%;
transition: transform 0.2s ease;
}
.slide {
flex: 0 0 100%;
height: 100%;
}
.slide img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
pointer-events: none;
}

.recommend-badge {
position: absolute;
top: 6px;
right: 6px;
z-index: 2;
background: linear-gradient(135deg, #ffd700, #ff8c00);
color: #fff;
font-size: 9px;
font-weight: 700;
padding: 2px 7px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 3px;
box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
animation: pulse-glow 2s infinite;
}
.recommend-badge svg {
width: 10px;
height: 10px;
fill: #fff;
stroke: none;
}
@keyframes pulse-glow {
0% { box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3); }
50% { box-shadow: 0 2px 12px rgba(255, 215, 0, 0.7); }
100% { box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3); }
}

.ad-info {
position: absolute;
bottom: 8px;
left: 8px;
right: 8px;
z-index: 2;
color: #fff;
text-shadow: 0 1px 4px rgba(0,0,0,0.7);
pointer-events: none;
}
.ad-info .price {
font-size: 16px;
font-weight: 700;
color: #ffd700;
margin-bottom: 1px;
}
.ad-info .address {
font-size: 12px;
opacity: 0.9;
font-weight: 400;
margin-bottom: 3px;
}
.ad-info .amenities {
display: flex;
gap: 3px;
flex-wrap: nowrap;
overflow: hidden;
}
.ad-info .amenities span {
background: rgba(0,0,0,0.45);
padding: 1px 4px;
border-radius: 3px;
font-size: 9px;
display: inline-flex;
align-items: center;
gap: 2px;
backdrop-filter: blur(2px);
white-space: nowrap;
}
.ad-info .amenities span img {
width: 10px;
height: 10px;
display: block;
filter: brightness(0) invert(1);
}

.book-btn {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 18%;
min-height: 44px;
background: #2e7d32;
color: #fff;
border: none;
font-size: clamp(14px, 2.5vw, 18px);
font-weight: 700;
cursor: pointer;
transition: background 0.2s;
z-index: 2;
font-family: inherit;
}
.book-btn:hover {
background: #1b5e20;
}

.phone-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.82);
display: none;
justify-content: center;
align-items: center;
flex-direction: column;
z-index: 3;
color: #fff;
font-size: clamp(18px, 4vw, 24px);
font-weight: 700;
text-align: center;
padding: 12px;
box-sizing: border-box;
animation: fadeIn 0.3s ease;
cursor: pointer;
}
.phone-overlay.show {
display: flex;
}
.phone-overlay small {
font-size: clamp(11px, 2vw, 14px);
font-weight: 400;
margin-top: 6px;
opacity: 0.8;
}
.phone-overlay a {
color: #fff;
text-decoration: none;
font-weight: 700;
transition: color 0.2s;
}
.phone-overlay a:hover {
color: #ffd700;
 }
@keyframes fadeIn {
0% { opacity: 0; transform: scale(0.95); }
100% { opacity: 1; transform: scale(1); }
}

.slider-container::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
  to right,
  transparent 0px,
  transparent 46.66px,
  rgba(255,255,255,0.04) 46.66px,
  rgba(255,255,255,0.04) 46.67px
);
pointer-events: none;
z-index: 1;
}

/* ---------- БЛОК "ПОЧЕМУ МЫ" ---------- */
.why-block {
width: 100%;
max-width: 1000px;
margin-top: 40px;
padding: 30px 24px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.why-title {
text-align: center;
font-size: 26px;
font-weight: 700;
color: #1e2a3a;
margin-bottom: 8px;
}
.why-title span {
color: #2e7d32;
}
.why-subtitle {
text-align: center;
color: #6b7a8f;
font-size: 16px;
margin-bottom: 28px;
}
.why-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.why-item {
text-align: center;
padding: 16px 12px;
border-radius: 12px;
background: #f8fafc;
transition: transform 0.25s, box-shadow 0.25s;
}
.why-item:hover {
transform: translateY(-4px);
box-shadow: 0 6px 16px rgba(46, 125, 50, 0.08);
}
.why-item .icon {
font-size: 40px;
display: block;
margin-bottom: 10px;
}
.why-item h4 {
font-size: 16px;
font-weight: 600;
color: #1e2a3a;
margin-bottom: 4px;
}
.why-item p {
font-size: 14px;
color: #6b7a8f;
line-height: 1.4;
}

/* ---------- БЛОК "ВОПРОС-ОТВЕТ" ---------- */
.faq-block {
width: 100%;
max-width: 1000px;
margin-top: 30px;
padding: 30px 24px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.faq-header {
text-align: center;
margin-bottom: 28px;
}
.faq-title {
font-size: 26px;
font-weight: 700;
color: #1e2a3a;
margin-bottom: 8px;
}
.faq-title span {
color: #2e7d32;
}
.faq-subtitle {
color: #6b7a8f;
font-size: 16px;
}
.faq-grid {
display: flex;
flex-direction: column;
gap: 12px;
}
.faq-item {
border: 1px solid #e8edf3;
border-radius: 12px;
background: #fafbfc;
overflow: hidden;
transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
border-color: #c8d6e5;
}
.faq-item.active {
border-color: #2e7d32;
box-shadow: 0 2px 12px rgba(46, 125, 50, 0.06);
}
.faq-question {
width: 100%;
background: none;
border: none;
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 17px;
font-weight: 600;
color: #1e2a3a;
cursor: pointer;
transition: color 0.2s, background 0.2s;
font-family: inherit;
text-align: left;
gap: 16px;
}
.faq-question:hover {
color: #2e7d32;
background: rgba(46, 125, 50, 0.03);
}
.faq-question .faq-icon {
flex-shrink: 0;
font-size: 22px;
color: #2e7d32;
transition: transform 0.3s ease;
}
.faq-item.active .faq-question .faq-icon {
transform: rotate(45deg);
}
.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.3s ease;
padding: 0 20px;
color: #4a5a6e;
font-size: 15px;
line-height: 1.6;
background: transparent;
}
.faq-item.active .faq-answer {
max-height: 300px;
padding: 0 20px 18px 20px;
background: #f8fafc;
}

/* ---------- SEO-БЛОК ---------- */
.seo-block {
width: 100%;
max-width: 1000px;
margin-top: 30px;
padding: 30px 24px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.seo-block h1 {
font-size: 28px;
font-weight: 700;
color: #1e2a3a;
margin-bottom: 12px;
}
.seo-block h2, h3, h4, h5, h6 {
font-size: 22px;
font-weight: 600;
color: #1e2a3a;
margin-top: 24px;
margin-bottom: 10px;
padding-bottom: 6px;
border-bottom: 2px solid #e8edf3;
}
.bookapart{
font-size: 22px;
font-weight: 600;
color: #1e2a3a;
margin-top: 24px;
margin-bottom: 10px;
padding-bottom: 6px;
border-bottom: 2px solid #e8edf3;   
}

.seo-block p {
font-size: 16px;
line-height: 1.7;
color: #3a4a5e;
margin-bottom: 12px;
}
.seo-block ul {
margin: 10px 0 14px 24px;
color: #3a4a5e;
font-size: 16px;
line-height: 1.7;
}
.seo-block ul li {
margin-bottom: 4px;
}
.seo-block ol {
margin: 10px 0 14px 24px;
color: #3a4a5e;
font-size: 16px;
line-height: 1.7;
}
.seo-block ol li {
margin-bottom: 4px;
}
.seo-block strong {
color: #1e2a3a;
}

/* ---------- ФУТЕР ---------- */
.footer {
width: 100%;
max-width: 1000px;
margin-top: 40px;
background: #1e2a3a;
border-radius: 16px;
padding: 40px 30px 25px;
color: #b0c4d9;
}

.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 30px;
margin-bottom: 30px;
}

.footer-brand .logo {
font-size: 24px;
font-weight: 700;
color: #ffffff;
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
margin-bottom: 12px;
white-space: nowrap;
}
.footer-brand .logo .highlight {
color: #ffd700;
}
.footer-brand .logo .text {
color: #ffffff;
}
.footer-brand p {
font-size: 14px;
line-height: 1.6;
opacity: 0.8;
max-width: 280px;
}

.footer-col h4 {
color: #ffffff;
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
}
.footer-col ul {
list-style: none;
padding: 0;
}
.footer-col ul li {
margin-bottom: 6px;
}
.footer-col ul li a {
color: #b0c4d9;
text-decoration: none;
font-size: 14px;
transition: color 0.2s;
}
.footer-col ul li a:hover {
color: #ffd700;
}

.footer-bottom {
border-top: 1px solid rgba(255,255,255,0.08);
padding-top: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
font-size: 13px;
opacity: 0.7;
}
.footer-bottom a {
color: #b0c4d9;
text-decoration: none;
margin-left: 16px;
transition: color 0.2s;
}
.footer-bottom a:hover {
color: #ffd700;
}
.footer-bottom .socials {
display: flex;
gap: 12px;
}
.footer-bottom .socials a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(255,255,255,0.06);
color: #b0c4d9;
font-size: 18px;
text-decoration: none;
transition: background 0.2s, color 0.2s;
margin-left: 0;
}
.footer-bottom .socials a:hover {
background: rgba(255, 215, 0, 0.15);
color: #ffd700;
}

@media (max-width: 820px) {
.header {
  height: auto;
  min-height: 65px;
  padding: 8px 12px;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 100;
}
.logo {
  font-size: 28px;
  gap: 10px;
}
.logo svg {
  height: 52px;
}
.nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  padding: 12px 0 16px;
  gap: 4px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
}
.nav.open {
  display: flex;
}
.nav a {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  font-size: 16px;
}
.nav a::after {
  display: none;
}
.nav a:hover {
  background: rgba(46, 125, 50, 0.08);
}
.burger {
  display: flex;
}
.page-title h1 {
font-size: 26px;
}
.page-title .subtitle {
font-size: 14px;
}
.main-container {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ad-card {
  max-width: 100%;
}
.ad-info .price {
  font-size: 14px;
}
.ad-info .address {
  font-size: 11px;
}
.why-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-title {
  font-size: 22px;
}
.faq-title {
  font-size: 22px;
}
.faq-question {
  font-size: 15px;
  padding: 14px 16px;
}
.faq-answer {
  font-size: 14px;
}
.faq-item.active .faq-answer {
  padding: 0 16px 16px 16px;
}
.seo-block h1 {
  font-size: 24px;
}
.seo-block h2, h3, h4, h5, h6 {
  font-size: 20px;
}
.seo-block h3 {
  font-size: 17px;
}
.seo-block p,
.seo-block ul,
.seo-block ol {
  font-size: 15px;
}
.footer-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-brand p {
  max-width: 100%;
}
}

@media (max-width: 480px) {
body {
  padding: 10px 6px 20px;
}
.header {
  min-height: 55px;
  padding: 6px 10px;
  border-radius: 8px;
  flex-wrap: nowrap;
}
.logo {
  font-size: 18px;
  gap: 8px;
}
.logo svg {
  height: 36px;
}
.nav a {
  font-size: 14px;
  padding: 8px 0;
}
.page-title h1 {
font-size: 22px;
}
.page-title .subtitle {
font-size: 13px;
}

.main-container {
  grid-template-columns: 1fr;
  gap: 14px;
}
.ad-card {
  max-width: 320px;
  margin: 0 auto;
}
.ad-info .price {
  font-size: 15px;
}
.ad-info .address {
  font-size: 12px;
}
.book-btn {
  font-size: 16px;
  min-height: 40px;
}
.phone-overlay {
  font-size: 20px;
}
.why-block {
  padding: 20px 14px;
  margin-top: 30px;
}
.why-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.why-title {
  font-size: 18px;
}
.why-subtitle {
  font-size: 14px;
  margin-bottom: 20px;
}
.why-item {
  padding: 12px 8px;
}
.why-item .icon {
  font-size: 30px;
}
.why-item h4 {
  font-size: 14px;
}
.why-item p {
  font-size: 12px;
}
.faq-block {
  padding: 20px 14px;
  margin-top: 20px;
}
.faq-title {
  font-size: 18px;
}
.faq-subtitle {
  font-size: 14px;
  margin-bottom: 20px;
}
.faq-question {
  font-size: 14px;
  padding: 12px 14px;
}
.faq-question .faq-icon {
  font-size: 18px;
}
.faq-answer {
  font-size: 13px;
  padding: 0 14px;
}
.faq-item.active .faq-answer {
  padding: 0 14px 14px 14px;
}
.seo-block {
  padding: 20px 14px;
  margin-top: 20px;
}
.seo-block h1 {
  font-size: 20px;
}
.seo-block h2, h3, h4, h5, h6 {
  font-size: 18px;
  margin-top: 18px;
}
.seo-block h3 {
  font-size: 16px;
  margin-top: 12px;
}
.seo-block p,
.seo-block ul,
.seo-block ol {
  font-size: 14px;
}
.seo-block ul,
.seo-block ol {
  margin-left: 18px;
}
.footer {
  padding: 25px 16px 18px;
  border-radius: 12px;
  margin-top: 30px;
}
.footer-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}
.footer-brand .logo {
  font-size: 20px;
}
.footer-bottom {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.footer-bottom a {
  margin-left: 0;
  display: inline-block;
}
.footer-bottom .socials {
  justify-content: center;
}
.city-gallery {
grid-template-columns: repeat(2, 1fr);  /* было 2, оставляем 2 */
gap: 10px;
}
}