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

:root {
--bg: #f7f6f3;
--white: #ffffff;
--black: #171717;
--gray: #777777;
--light-gray: #e8e6e1;
--accent: #b18a57;
--accent-dark: #8d6b3f;
--dark: #20201e;
}

html {
scroll-behavior: smooth;
}

body {
font-family: "Inter", sans-serif;
background: var(--bg);
color: var(--black);
}

a {
color: inherit;
text-decoration: none;
}

button,
select {
font-family: inherit;
}

button {
cursor: pointer;
}

.container {
width: min(1180px, calc(100% - 40px));
margin: 0 auto;
}

/* =========================
HEADER
========================= */

.header {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 10;
color: white;
}

.header-inner {
height: 90px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
display: flex;
align-items: center;
gap: 12px;
}

.logo-mark {
height: 46px;
display: flex;
align-items: center;
}

.logo-mark img {
height: 100%;
width: auto;
display: block;
}

.logo strong {
display: block;
font-size: 16px;
letter-spacing: 1px;
}

.logo small {
display: block;
font-size: 8px;
letter-spacing: 2px;
opacity: 0.65;
margin-top: 3px;
}

.nav {
display: flex;
gap: 35px;
}

.nav a {
font-size: 14px;
opacity: 0.8;
transition: 0.2s;
}

.nav a:hover {
opacity: 1;
}

.header-button {
border: 1px solid rgba(255, 255, 255, 0.4);
padding: 12px 20px;
font-size: 13px;
transition: 0.2s;
}

.header-button:hover {
background: white;
color: var(--black);
}

.mobile-menu-button {
display: none;
background: none;
border: 0;
color: white;
font-size: 25px;
}

/* =========================
HERO
========================= */

.hero {
min-height: 700px;
position: relative;
display: flex;
align-items: center;
color: white;
overflow: hidden;

background:
    linear-gradient(
        90deg,
        rgba(8, 8, 7, 0.85),
        rgba(8, 8, 7, 0.35)
    ),
    url("images/hero.jpg")
    center 52% / cover;
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.35),
transparent 50%,
rgba(0, 0, 0, 0.5)
);
}

.hero-content {
position: relative;
z-index: 1;
padding-top: 80px;
padding-bottom: 130px;
}

.hero-badge {
display: inline-block;
border-left: 2px solid var(--accent);
padding-left: 12px;
font-size: 11px;
letter-spacing: 3px;
margin-bottom: 25px;
}

.hero h1 {
font-size: clamp(48px, 7vw, 86px);
line-height: 0.98;
letter-spacing: -4px;
max-width: 850px;
}

.hero h1 span {
color: #d4b07a;
}

.hero p {
max-width: 520px;
margin-top: 28px;
color: rgba(255, 255, 255, 0.72);
line-height: 1.7;
font-size: 16px;
}

.hero-button {
display: inline-flex;
align-items: center;
gap: 30px;
margin-top: 35px;
padding: 16px 22px;
background: white;
color: var(--black);
font-size: 14px;
font-weight: 600;
transition: 0.25s;
}

.hero-button:hover {
transform: translateY(-2px);
background: #e8dcc8;
}

/* =========================
SEARCH
========================= */

.search-section {
position: relative;
margin-top: -80px;
z-index: 5;
}

.search-box {
background: white;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
padding: 25px;
}

.search-top {
display: flex;
gap: 5px;
border-bottom: 1px solid var(--light-gray);
padding-bottom: 20px;
margin-bottom: 22px;
}

.deal-button {
background: transparent;
border: 0;
padding: 10px 18px;
color: var(--gray);
font-size: 13px;
}

.deal-button.active {
background: var(--black);
color: white;
}

.filters {
display: grid;
grid-template-columns: 1fr 1fr 1fr 150px;
gap: 15px;
}

.filter {
border: 1px solid var(--light-gray);
padding: 12px 15px;
}

.filter label {
display: block;
font-size: 10px;
color: var(--gray);
margin-bottom: 6px;
}

.filter select {
border: 0;
outline: 0;
width: 100%;
background: white;
color: var(--black);
font-size: 14px;
}

.search-button {
border: 0;
background: var(--accent);
color: white;
font-weight: 600;
transition: 0.2s;
}

.search-button:hover {
background: var(--accent-dark);
}

/* =========================
CATALOG
========================= */

.catalog {
padding: 110px 0;
}

.section-heading {
display: flex;
align-items: end;
justify-content: space-between;
margin-bottom: 45px;
}

.section-label {
display: block;
color: var(--accent-dark);
font-size: 10px;
letter-spacing: 3px;
font-weight: 700;
margin-bottom: 13px;
}

.section-heading h2,
.about h2 {
font-size: 42px;
letter-spacing: -2px;
}

.objects-count {
color: var(--gray);
font-size: 13px;
}

.properties-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}

.property-card {
background: white;
overflow: hidden;
cursor: pointer;
transition: 0.3s;
}

.property-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
}

.property-image {
position: relative;
height: 260px;
overflow: hidden;
}

.property-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}

.property-card:hover .property-image img {
transform: scale(1.05);
}

.property-tag {
position: absolute;
top: 15px;
left: 15px;
background: white;
padding: 8px 11px;
font-size: 10px;
font-weight: 700;
}

.property-body {
padding: 22px;
}

.property-title {
font-size: 18px;
margin-bottom: 8px;
}

.property-location {
font-size: 12px;
color: var(--gray);
margin-bottom: 20px;
}

.property-details {
display: flex;
gap: 14px;
color: var(--gray);
font-size: 11px;
padding-bottom: 18px;
border-bottom: 1px solid var(--light-gray);
}

.property-price {
margin-top: 17px;
font-size: 21px;
font-weight: 700;
}

.property-price small {
font-size: 11px;
color: var(--gray);
font-weight: 400;
}

/* =========================
EMPTY STATE
========================= */

.empty-state {
display: none;
text-align: center;
padding: 80px 20px;
}

.empty-icon {
font-size: 45px;
color: var(--accent);
}

.empty-state h3 {
margin-top: 15px;
font-size: 24px;
}

.empty-state p {
color: var(--gray);
margin: 10px 0 25px;
}

.empty-state button {
background: var(--black);
color: white;
border: 0;
padding: 13px 20px;
}

/* =========================
ABOUT
========================= */

.about {
background: var(--dark);
color: white;
padding: 120px 0;
}

.about-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 90px;
align-items: center;
}

.about-image {
min-height: 500px;
background:
linear-gradient(
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0.6)
),
url("images/about.jpg")
center / cover;
position: relative;
}

.about-card {
position: absolute;
left: 30px;
bottom: 30px;
background: white;
color: var(--black);
padding: 25px 30px;
}

.about-card strong {
display: block;
font-size: 24px;
}

.about-card span {
font-size: 9px;
letter-spacing: 3px;
color: var(--gray);
}

.about-content h2 {
margin-bottom: 25px;
}

.about-content h2 span {
color: #d0aa70;
}

.about-content > p {
color: rgba(255, 255, 255, 0.6);
line-height: 1.8;
max-width: 520px;
}

.about-features {
margin-top: 40px;
display: flex;
flex-direction: column;
gap: 18px;
}

.about-features div {
display: flex;
align-items: center;
gap: 20px;
padding-bottom: 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-features strong {
color: #d0aa70;
font-size: 12px;
}

.about-features span {
font-size: 13px;
}

/* =========================
CONTACTS
========================= */

.contacts {
padding: 100px 0;
}

.contacts-box {
background: #e9e1d4;
padding: 60px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
}

.contacts-box h2 {
font-size: 38px;
letter-spacing: -1.5px;
margin-bottom: 15px;
}

.contacts-box p {
color: #666;
max-width: 520px;
line-height: 1.6;
}

.contact-buttons {
display: flex;
gap: 10px;
flex-shrink: 0;
}

.contact-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
padding: 15px 20px;
border: 1px solid #c9c1b5;
font-size: 13px;
background: white;
transition: 0.2s;
}

.contact-button:hover {
transform: translateY(-2px);
}

.contact-button.primary {
background: var(--black);
border-color: var(--black);
color: white;
}

/* =========================
FOOTER
========================= */

.footer {
background: #151513;
color: rgba(255, 255, 255, 0.55);
padding: 30px 0;
font-size: 11px;
}

.footer-inner {
display: flex;
justify-content: space-between;
align-items: center;
}

.footer-logo strong {
color: white;
display: block;
letter-spacing: 1px;
}

.footer-logo span {
font-size: 7px;
letter-spacing: 2px;
}

/* =========================
MODAL
========================= */

.modal {
position: fixed;
inset: 0;
z-index: 100;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
}

.modal.active {
display: flex;
}

.modal-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
}

.modal-window {
position: relative;
z-index: 1;
width: min(900px, 100%);
max-height: 90vh;
overflow-y: auto;
background: white;
display: grid;
grid-template-columns: 1fr 1fr;
}

.modal-close {
position: absolute;
z-index: 2;
top: 12px;
right: 12px;
width: 38px;
height: 38px;
border: 0;
background: white;
font-size: 25px;
}

.modal-image {
min-height: 520px;
}

.modal-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.modal-content {
padding: 45px 35px;
}

.modal-deal {
color: var(--accent-dark);
font-size: 10px;
letter-spacing: 2px;
font-weight: 700;
margin-bottom: 15px;
}

.modal-content h2 {
font-size: 30px;
margin-bottom: 15px;
}

.modal-price {
font-size: 25px;
font-weight: 700;
margin-bottom: 25px;
}

.modal-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.modal-info div {
background: var(--bg);
padding: 12px;
font-size: 12px;
}

.modal-description {
color: var(--gray);
line-height: 1.7;
font-size: 13px;
margin: 25px 0;
}

.modal-actions {
display: flex;
gap: 10px;
}

/* =========================
MOBILE
========================= */

@media (max-width: 850px) {

.nav,
.header-button {
    display: none;
}

.mobile-menu-button {
    display: block;
}

.hero {
    min-height: 620px;
}

.hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
}

.filters {
    grid-template-columns: 1fr 1fr;
}

.search-button {
    min-height: 55px;
}

.properties-grid {
    grid-template-columns: 1fr 1fr;
}

.about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-image {
    min-height: 400px;
}

.contacts-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
}

.modal-window {
    grid-template-columns: 1fr;
}

.modal-image {
    min-height: 280px;
    max-height: 300px;
}

}

@media (max-width: 560px) {

.container {
    width: calc(100% - 28px);
}

.header-inner {
    height: 75px;
}

.hero {
    min-height: 600px;
}

.hero h1 {
    font-size: 43px;
}

.hero p {
    font-size: 14px;
}

.search-section {
    margin-top: -40px;
}

.search-box {
    padding: 18px;
}

.filters {
    grid-template-columns: 1fr;
}

.catalog {
    padding: 75px 0;
}

.section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
}

.section-heading h2,
.about h2 {
    font-size: 34px;
}

.properties-grid {
    grid-template-columns: 1fr;
}

.property-image {
    height: 240px;
}

.contact-buttons {
    width: 100%;
    flex-direction: column;
}

.contact-button {
    width: 100%;
}

.footer-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.modal-content {
    padding: 35px 22px;
}

.modal-actions {
    flex-direction: column;
}

}
