@font-face {
  font-family: "Montserrat";
  font-weight: 500;
  font-style: normal;
  src:
    url("fonts/Montserrat-Medium.woff2") format("woff2"),
    url("fonts/Montserrat-Medium.woff") format("woff"),
    url("fonts/Montserrat-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-weight: 600;
  font-style: normal;
  src:
    url("fonts/Montserrat-SemiBold.woff2") format("woff2"),
    url("fonts/Montserrat-SemiBold.woff") format("woff"),
    url("fonts/Montserrat-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  font-style: normal;
  src:
    url("fonts/Montserrat-Bold.woff2") format("woff2"),
    url("fonts/Montserrat-Bold.woff") format("woff"),
    url("fonts/Montserrat-Bold.ttf") format("truetype");
}

:root {
  --primary: #004A8A;
  --primary-light: #3498DB;
  --primary-dark: #00315B;

  --green: #05C46B;
  --green-light: #2ECC71;

  --accent: #FFA801;
  --accent-hover: #E69500;

  --text: #000000;
  --text-soft: #555555;

  --bg: #F2F2F2;
  --bg-blue: #D0E7F6;

  --surface: #FFFFFF;
  --white: #FFFFFF;
  --black: #000000;

  --radius: 15px;

  --shadow: 0 15px 26px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 25px 55px rgba(0, 74, 138, 0.18);

  --transition: 0.25s ease;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  word-wrap: break-word;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 74, 138, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  transition:
    transform 0.35s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header.header-scrolled {
  background: rgba(0, 74, 138, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-wrap {
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

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

.nav a {
  color: var(--white);
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;

  position: relative;

  transition: var(--transition);
}

.nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 3px;

  background: linear-gradient(90deg,
      var(--green-light),
      var(--primary-light));

  transition: var(--transition);
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;

  background: none;
  border: none;

  color: var(--white);

  font-size: 30px;
  cursor: pointer;
}

/* MOBILE MENU */

.mobile-menu {
  position: fixed;
  top: 90px;
  right: -100%;

  width: 280px;
  height: calc(100vh - 90px);

  background: rgba(0, 74, 138, 0.96);

  padding: 40px 30px;

  display: flex;
  flex-direction: column;
  gap: 25px;

  z-index: 999;

  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);

  transition: 0.4s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;

  font-size: 18px;
  font-weight: 600;
}

/* HERO */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: var(--black);
}

.hero-slider {
  position: absolute;
  inset: 0;

  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }

  8% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  45% {
    opacity: 0;
    transform: scale(1.13);
  }

  100% {
    opacity: 0;
    transform: scale(1.13);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;

  z-index: 2;

  padding-top: 90px;
}

.hero-text {
  max-width: 760px;

  color: var(--white);
}

.subtitle,
.section-subtitle {
  color: var(--accent);

  margin-bottom: 18px;

  font-size: 14px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero h1 {
  margin-bottom: 30px;

  font-size: 76px;
  font-weight: 700;
  line-height: 1.05;

  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.hero-description {
  max-width: 640px;

  margin-bottom: 40px;

  color: rgba(255, 255, 255, 0.92);

  font-size: 20px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* BUTTONS */

.btn {
  min-height: 58px;

  padding: 16px 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 10px;

  color: inherit;
  text-decoration: none;

  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;

  cursor: pointer;

  transition: var(--transition);
}

.btn-primary {
  color: var(--white);

  background: linear-gradient(90deg,
      var(--green-light) 0%,
      var(--primary-light) 100%);

  box-shadow: 0 15px 30px rgba(0, 74, 138, 0.28);
}

.btn-primary:hover {
  transform: translateY(-4px);

  box-shadow: 0 22px 45px rgba(0, 74, 138, 0.38);
}

.btn-secondary {
  color: var(--white);

  border: 2px solid rgba(255, 255, 255, 0.55);

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  color: var(--primary);

  background: var(--white);
}

/* SECTIONS */

.section {
  position: relative;

  padding: 120px 0;
}

.section::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(90deg,
      transparent,
      rgba(0, 110, 183, 0.18),
      transparent);
}

.section-head {
  margin-bottom: 70px;
}

.section h2,
.contacts h2 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
}

/* CARDS */

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

.card {
  background: var(--surface);

  border: 1px solid rgba(0, 110, 183, 0.08);
  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-hover);
}

.card-image {
  height: 280px;
}

.placeholder {
  position: relative;

  overflow: hidden;

  background: linear-gradient(135deg,
      var(--primary-light) 0%,
      var(--green-light) 100%);
}

.placeholder::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 20% 20%,
      rgba(255, 168, 1, 0.35),
      transparent 32%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.08),
      rgba(0, 0, 0, 0.18));
}

.card-content {
  padding: 35px;
}

.card-content h3 {
  margin-bottom: 15px;

  font-size: 30px;
  font-weight: 700;
}

.card-content p {
  margin-bottom: 30px;

  color: var(--text-soft);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-bottom span {
  color: var(--accent);

  font-size: 24px;
  font-weight: 700;
}

.card-bottom a {
  color: var(--primary);
  text-decoration: none;

  font-weight: 700;

  transition: var(--transition);
}

.card-bottom a:hover {
  color: var(--green);
}

/* APARTMENTS */

.dark-section {
  color: var(--white);

  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
}

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

.apartment-card {
  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);

  overflow: hidden;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: var(--transition);
}

.apartment-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.22);
}

.apartment-image {
  height: 320px;
}

.apartment-info {
  padding: 35px;
}

.apartment-info h3 {
  margin-bottom: 15px;

  font-size: 30px;
}

.apartment-info p {
  margin-bottom: 25px;

  color: rgba(255, 255, 255, 0.78);
}

.apartment-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  font-weight: 700;
}

.apartment-meta span:first-child {
  color: rgba(255, 255, 255, 0.86);
}

.apartment-meta span:last-child {
  color: var(--accent);
}

/* ABOUT */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;

  align-items: center;
}

.about-image {
  min-height: 560px;

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);
}

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

.about-content p {
  margin-bottom: 24px;

  color: var(--text-soft);

  font-size: 18px;
}

/* REVIEWS */

.reviews-section {
  background: var(--bg-blue);
}

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

.review-card {
  position: relative;

  background: var(--surface);

  padding: 45px;

  border: 1px solid rgba(0, 110, 183, 0.08);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.review-card::before {
  content: "“";

  position: absolute;
  top: 20px;
  left: 25px;

  color: rgba(0, 74, 138, 0.1);

  font-size: 80px;
  line-height: 1;
}

.review-card p {
  position: relative;
  z-index: 2;

  margin-bottom: 30px;

  color: var(--text-soft);
}

.review-card h4 {
  color: var(--primary);

  font-size: 18px;
}

/* CONTACTS */

.contacts {
  color: var(--white);

  background: linear-gradient(90deg,
      var(--primary) 0%,
      var(--primary-light) 100%);

  padding: 120px 0;
}

.contacts-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contacts .section-subtitle {
  color: var(--accent);
}

.contacts-buttons {
  display: flex;
  gap: 20px;
}

/* FOOTER */

.footer {
  background: var(--primary);

  color: rgba(255, 255, 255, 0.75);

  padding: 35px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* RESPONSIVE */

@media (max-width: 992px) {

  .cards,
  .apartments-grid,
  .about-wrap,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

  .contacts-wrap,
  .footer-wrap {
    flex-direction: column;
    gap: 25px;

    text-align: center;
  }

  .contacts-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

}

@media (max-width: 768px) {

  .header-wrap {
    height: 80px;
  }

  .mobile-menu {
    top: 80px;

    height: calc(100vh - 80px);
  }

  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-content {
    padding-top: 80px;
  }

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

  .hero-description {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section {
    padding: 90px 0;
  }

  .section h2,
  .contacts h2 {
    font-size: 36px;
  }

  .card-content,
  .apartment-info,
  .review-card {
    padding: 28px;
  }

  .card-bottom,
  .apartment-meta {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 480px) {

  body {
    font-size: 16px;
  }

  .logo {
    font-size: 24px;
  }

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

  .hero-description {
    font-size: 16px;
  }

  .btn {
    width: 100%;

    padding: 15px 24px;
  }

}

/* BREADCRUMBS */

.breadcrumbs {
  padding: 0 0 20px;

  background: transparent;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;

  color: var(--primary-light);

  font-size: 14px;
  font-weight: 600;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";

  margin-left: 10px;

  color: var(--primary-light);
}

.breadcrumbs__link,
.breadcrumbs__current {
  display: inline-flex;
  align-items: center;

  color: inherit;
  text-decoration: none;

  transition: var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--primary);
}

.breadcrumbs__item--current {
  color: var(--bg-blue);
}

.breadcrumbs__current {
  pointer-events: none;
}

.breadcrumbs__home {
  width: 18px;
  height: 18px;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}
