/*
Theme Name: Agency Theme
Author: Твоё имя
Version: 1.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100% !important;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #1C1C1C;
  background-color: #F7FCFE;
  line-height: 1.6;
  overflow-x: hidden !important;
  max-width: 100% !important;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --blue:       #1C59AB;
  --blue-dark:  #1847A1;
  --white:      #F7FCFE;
  --black:      #1C1C1C;
  --grey:       #6B6B6B;
  --grey-light: #F0F4F8;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(28, 89, 171, 0.1);
  --transition: all 0.3s ease;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* ===== КНОПКИ ===== */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border: 2px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--blue) !important;
}

/* ===== КОНТЕЙНЕР ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== СЕКЦИИ ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--black);
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 252, 254, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 89, 171, 0.1);
  padding: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav > div {
  display: flex;
}

.main-nav ul,
.nav-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2rem;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.main-nav ul li,
.nav-menu li {
  list-style: none !important;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.nav-menu a:hover {
  color: var(--blue);
}

.header-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--blue-dark);
}

/* ===== БУРГЕР ===== */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 75vh;
  max-height: 80vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(24, 71, 161, 0.75) 0%,
    rgba(24, 71, 161, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-left: 4rem;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 252, 254, 0.8);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(247, 252, 254, 0.85);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== PROPERTY CARDS ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

a.property-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.property-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28, 89, 171, 0.22);
  transition: var(--transition);
  border: 1px solid #D6E4F5;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(28, 89, 171, 0.15);
  border-color: var(--blue);
}

.property-card__image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.05);
}

.property-card__type {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.property-card__status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}

.property-card__info {
  padding: 1.5rem;
}

.property-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: left !important;
}

.property-card__location {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.property-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.property-card__details {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-light);
}

.property-card__details span {
  font-size: 0.8rem;
  color: var(--grey);
  font-weight: 500;
}

/* ===== STATS ===== */
.stats {
  background: var(--blue-dark);
  padding: 60px 0;
}

.stats .section-container {
  padding-left: 4rem;
  padding-right: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(247, 252, 254, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats--light {
  background: var(--blue-dark) !important;
}

.stats--light .stat-number {
  color: var(--white) !important;
}

.stats--light .stat-label {
  color: rgba(247, 252, 254, 0.7) !important;
}

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.category-card__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card__image {
  transform: scale(1.08);
}

.category-card__image--apartment { background-image: url('images/cat-apartment.jpg'); }
.category-card__image--house     { background-image: url('images/cat-house.jpg'); }
.category-card__image--villa     { background-image: url('images/cat-villa.jpg'); }
.category-card__image--penthouse { background-image: url('images/cat-penthouse.jpg'); }

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 71, 161, 0.8) 0%, transparent 60%);
}

.category-card__info {
  position: absolute;
  bottom: 1.5rem;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 1;
}

.category-card__info h3 {
  color: var(--white);
  font-size: 1.5rem !important;
  margin-bottom: 0.25rem;
}

.category-card__info p {
  color: rgba(247, 252, 254, 0.85);
  font-size: 0.95rem !important;
}

/* ===== AGENTS ===== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.agent-card:hover {
  transform: translateY(-6px);
}

.agent-card__photo {
  height: 360px !important;
  overflow: hidden;
}

.agent-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.agent-card__info {
  padding: 1.5rem;
}

.agent-card__info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.agent-card__role {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.agent-card__deals {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.agent-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agent-card__contacts a {
  font-size: 0.8rem;
  color: var(--grey);
  transition: var(--transition);
}

.agent-card__contacts a:hover {
  color: var(--blue);
}

/* ===== CTA ===== */
.cta {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  text-align: center;
  padding: 120px 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 71, 161, 0.75);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(247, 252, 254, 0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 40px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-logo p {
  font-size: 0.9rem;
  color: rgba(247, 252, 254, 0.7);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(247, 252, 254, 0.7);
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(247, 252, 254, 0.7);
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 252, 254, 0.1);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(247, 252, 254, 0.5);
}

/* ===== PAGE HERO ===== */
.page-hero {
  min-height: 40vh;
  background-color: var(--blue-dark);
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0 !important;
  padding-top: 112px !important;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 71, 161, 0.3);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-hero__content h1 { color: var(--white); }
.page-hero__content .section-subtitle { color: rgba(247, 252, 254, 0.8); }

.page-hero__content p {
  color: rgba(247, 252, 254, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.page-hero--properties,
.page-hero--about,
.page-hero--contact {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page-hero--properties .page-hero__overlay,
.page-hero--about .page-hero__overlay {
  background: rgba(24, 71, 161, 0.6);
}

section.page-hero--about {
  background-image: url('images/hero-about.jpg') !important;
}

section.page-hero--properties {
  background-image: url('images/hero-properties.jpg') !important;
}

/* ===== FILTER ===== */
.properties-filter {
  background: var(--white);
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-light);
  position: sticky;
  top: 80px;
  z-index: 50;
  box-shadow: var(--shadow);
}

.filter-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 12px 16px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  min-width: 180px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--blue);
}

/* ===== PROPERTY HERO (single) ===== */
.property-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0 !important;
  padding-top: 72px !important;
  display: flex;
  align-items: flex-end;
  transition: background-image 0.4s ease;
}

.property-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,71,161,0.85) 0%, rgba(24,71,161,0.3) 40%, transparent 70%);
  pointer-events: none;
}

.property-hero__status {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  background: rgba(255,255,255,0.95);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 4px;
  z-index: 3;
}

.property-hero__content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 3rem;
  width: 100%;
}

.property-hero__content .property-card__type {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.property-hero__content h1 {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.property-hero__location {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.property-hero__price {
  color: #ffffff !important;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
}

/* ===== КАРУСЕЛЬ ===== */
.photo-carousel {
  background: rgba(24, 71, 161, 0.95) !important;
  padding: 16px 0;
}

.carousel-track {
  max-width: 1200px;
  margin: 0;
  padding: 0 2rem !important;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-thumb {
  height: 80px;
  width: 120px;
  min-width: 120px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border 0.2s ease;
  border: 2px solid transparent;
}

.carousel-thumb:hover { opacity: 0.9; }

.carousel-thumb.active {
  opacity: 1;
  border-color: var(--blue);
}

/* ===== SINGLE PROPERTY CONTENT ===== */
.property-single {
  background: var(--white);
  padding: 30px 0 60px !important;
  position: relative;
  z-index: 2;
}

.property-single__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.property-single__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.spec-item { text-align: center; }

.spec-label {
  display: block;
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.spec-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.property-single__description h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.property-single__description p {
  color: var(--grey);
  line-height: 1.8;
}

.property-single__sidebar {
  position: sticky;
  top: 90px;
}

/* ===== INQUIRY FORM ===== */
.inquiry-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(28, 89, 171, 0.12);
  border: 1px solid #D6E4F5;
}

.inquiry-form h3 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.inquiry-form > p {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ===== RELATED PROPERTIES ===== */
.related-properties {
  background: var(--grey-light);
  padding: 60px 0;
}

.related-properties .section-container > h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--black);
}

/* ===== ABOUT PAGE ===== */
.about-story {
  padding: 80px 0;
}

.about-story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-story__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-story__content h2 { margin-bottom: 1.5rem; }

.about-story__content p {
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-story__content .btn-primary {
  margin-top: 25px !important;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 80px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info > p {
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-info__items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.contact-info__item p,
.contact-info__item a {
  color: var(--grey);
  line-height: 1.7;
  transition: var(--transition);
}

.contact-info__item a:hover { color: var(--blue); }

/* ===== FORMS ===== */
.contact-form,
.inquiry-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 89, 171, 0.1);
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ===== MAP ===== */
.contact-map { padding: 0; }
.contact-map iframe { display: block; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  padding: 10px 16px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--black);
  transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results p {
  color: var(--grey);
  margin-bottom: 1.5rem;
}

/* ================================================
   АДАПТИВ
   ================================================ */

/* ===== ПЛАНШЕТ 1024px ===== */
@media screen and (max-width: 1024px) {
  /* Убираем ховеры */
  * { transition: none !important; }

  .property-card:hover,
  .agent-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none !important;
  }

  .property-card:hover {
    box-shadow: 0 4px 20px rgba(28, 89, 171, 0.12) !important;
  }

  .category-card:hover .category-card__image,
  .property-card:hover .property-card__image img {
    transform: none !important;
  }

  /* Шрифты */
  body { font-size: 17px !important; }
  h1 { font-size: clamp(2.8rem, 5vw, 4.5rem) !important; }
  h2 { font-size: clamp(2rem, 3.5vw, 3rem) !important; }
  h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important; }
  p { font-size: 1.05rem !important; line-height: 1.8 !important; }

  .property-card__title    { font-size: 1.2rem !important; }
  .property-card__price    { font-size: 1.4rem !important; }
  .property-card__location,
  .property-card__details span { font-size: 0.95rem !important; }
  .section-subtitle        { font-size: 0.9rem !important; }
  .stat-number             { font-size: 3.2rem !important; }
  .stat-label              { font-size: 0.9rem !important; }
  .agent-card__info h3     { font-size: 1.2rem !important; }
  .agent-card__role        { font-size: 0.95rem !important; }

  /* Сетки */
  .properties-grid   { grid-template-columns: repeat(2, 1fr); }
  .categories-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-container  { grid-template-columns: 1fr 1fr; }

  /* Герой */
  .hero {
    min-height: 100svh !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  .hero-content {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2rem 4rem 2rem !important;
    margin: 0 !important;
  }

  .hero-description {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Properties page hero центр */
  .page-hero--properties .page-hero__content,
  .page-hero--properties .page-hero__content h1,
  .page-hero--properties .page-hero__content p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Single property */
  .property-single__layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .property-single__sidebar { position: static !important; }
  .inquiry-form              { position: static !important; }

  .property-single__specs {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .property-single__description,
  .property-single__description h3,
  .property-single__description p {
    text-align: center !important;
  }

  .spec-label  { font-size: 0.85rem !important; }
  .spec-value  { font-size: 1.6rem !important; }

  /* Агенты */
  .agent-card__photo { height: 380px !important; }

  .agents {
    padding: 3rem 0 5rem 0 !important;
  }

  /* About gap */
  .about-story__layout { gap: 2rem !important; }

  /* Stats padding */
  .stats .section-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Contact */
  .contact-section { padding: 5vw 3vw !important; }
}

/* ===== МОБИЛЬНЫЙ 768px ===== */
@media screen and (max-width: 768px) {
  body { font-size: 16px !important; }
  h1 { font-size: clamp(2rem, 6vw, 3rem) !important; }
  h2 { font-size: clamp(1.6rem, 4vw, 2.2rem) !important; }
  h3 { font-size: clamp(1.2rem, 3vw, 1.5rem) !important; }

  .btn-primary, .btn-secondary {
    font-size: 1rem !important;
    padding: 14px 28px !important;
  }

  /* Бургер */
  .burger-btn    { display: flex !important; }
  .header-cta    { display: none !important; }

  .main-nav {
    display: none !important;
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--white) !important;
    padding: 2rem !important;
    box-shadow: var(--shadow) !important;
    z-index: 99 !important;
  }

  .main-nav.open { display: block !important; }

  .main-nav ul {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .main-nav ul li {
    border-bottom: 1px solid var(--grey-light) !important;
  }

  .main-nav ul li a {
    display: block !important;
    padding: 1rem 0 !important;
    font-size: 1.1rem !important;
    color: var(--black) !important;
  }

  /* Сетки */
  .properties-grid   { grid-template-columns: 1fr; }
  .categories-grid   { grid-template-columns: 1fr 1fr; }
  .about-story__layout { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .contact-layout    { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Футер */
  .site-footer { padding: 30px 0 0 !important; }

  .site-footer .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.5rem !important;
    padding: 0 1.5rem 2rem !important;
  }

  .site-footer .footer-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .site-footer .footer-logo p {
    max-width: 260px !important;
    text-align: center !important;
  }

  .site-footer .footer-links h4,
  .site-footer .footer-contact h4 {
    text-align: center !important;
    margin-bottom: 0.75rem !important;
  }

  .site-footer .footer-links ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1.5rem !important;
  }

  .site-footer .footer-contact p,
  .site-footer .footer-contact a {
    text-align: center !important;
  }

  .footer-bottom {
    padding: 1rem 1.5rem !important;
    text-align: center !important;
  }

  /* Агенты — горизонтальная карточка */
  .agents-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .agents .section-container {
    padding: 0 1.5rem !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .agent-card {
    display: grid !important;
    grid-template-columns: 180px 1fr !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--grey-light) !important;
    box-shadow: none !important;
    width: 100% !important;
    height: auto !important;
    align-items: stretch !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .agent-card__photo {
    height: auto !important;
    min-height: 200px !important;
    border-radius: var(--radius) 0 0 var(--radius) !important;
    overflow: hidden !important;
  }

  .agent-card__photo img {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    object-fit: cover !important;
    object-position: top center !important;
  }

  .agent-card__info {
    padding: 1.5rem 1.5rem 1.5rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    flex: 1 !important;
  }

  .agent-card__info h3     { font-size: 1.2rem !important; margin-bottom: 0.3rem !important; }
  .agent-card__role        { font-size: 0.95rem !important; margin-bottom: 0.4rem !important; }
  .agent-card__deals       { font-size: 0.85rem !important; margin-bottom: 0.6rem !important; }
  .agent-card__contacts a  { font-size: 0.85rem !important; }

  /* Contact */
  .contact-section { padding: 10vw 3vw 5vw !important; }

  .contact-info,
  .contact-info__item,
  .contact-info__item h4,
  .page-hero__content {
    text-align: left !important;
  }

  .contact-form-wrapper { width: 100% !important; }

  /* About */
  .about-story { padding-top: 2rem !important; padding-bottom: 3rem !important; }

  .about-story .section-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .about-story__content {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .about-story__content .btn-primary {
    margin: 25px auto 0 !important;
    display: block !important;
    width: fit-content !important;
  }
}

/* ===== 480px ===== */
@media screen and (max-width: 480px) {
  section { padding: 50px 0; }

  .section-container { padding: 0 1rem !important; }
  .header-container  { padding: 1rem !important; }

  .categories-grid { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }

  .footer-links ul { flex-direction: column !important; }

  .property-single__specs { grid-template-columns: repeat(2, 1fr) !important; }
  .spec-value { font-size: 1.1rem !important; }

  .agent-card {
    grid-template-columns: 130px 1fr !important;
  }

  .agent-card__info {
    padding: 1rem 0.5rem 1rem 1rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .agent-card__info h3     { font-size: 0.95rem !important; word-break: break-word !important; }
  .agent-card__role        { font-size: 0.8rem !important; word-break: break-word !important; }
  .agent-card__contacts a  { font-size: 0.75rem !important; word-break: break-all !important; }

  .about-story .section-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .property-single__content {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .property-single__description,
  .property-single__description h3,
  .property-single__description p {
    text-align: left !important;
  }
}

@media screen and (min-width: 573px) and (max-width: 1200px) {
  .properties-archive { padding: 5vw 0 !important; }
}
/* Агенты — отступ от краёв на маленьких экранах */
@media screen and (max-width: 480px) {
  .agents .section-container {
    padding: 0 2rem !important;
  }
}

/* Single property description — text-align left на 620-480 */
@media screen and (min-width: 480px) and (max-width: 620px) {
  .property-single__description,
  .property-single__description h3,
  .property-single__description p {
    text-align: left !important;
  }
}

.hero {
  min-height: 75vh;
  max-height: 80vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  padding: 0 2rem;
  text-align: center;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-description {
  text-align: center !important;
  margin: 0 auto 2.5rem !important;
  max-width: 500px !important;
}

@media screen and (min-width: 480px) and (max-width: 1024px) {
  .hero {
    min-height: 100svh !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-content {
    position: static !important;
    padding: 0 2rem !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
}