* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #a80000;
  --dark: #111;
  --white: #ffffff;
  --graphite: #222222;
  --light: #f5f5f5;
  --silver: #c9c9c9;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.8)
  );
  backdrop-filter: blur(6px);
  z-index: 60;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand h1 {
  color: #a10000;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-family: Montserrat;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(168, 0, 0, 0.12);
}

.brand h1 {
  margin: 0;
  font-size: 25px;
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.btn-ghost {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--silver);
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.btn-primary {
  border: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;

  cursor: pointer;
}

.btn-primary:hover {
  background: #cc0000;
  box-shadow: 0 12px 36px rgba(168, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* HERO */
.project-hero {
  height: 55vh;
  background: url("green-hill-hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/10.jpg") center/cover no-repeat;
  transform: translateY(-40%);
  opacity: 0;
  animation: heroSlide 1.2s ease-out forwards;
}

@keyframes heroSlide {
  0% {
    transform: translateY(-40%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 58%);
}

.project-hero__content {
  z-index: 2;
  color: white;
  max-width: 600px;
  padding-right: 376px;
  box-sizing: content-box;
}

.project-hero h1 {
  font-size: 68px;
  color: #ebebeb;
}
.project-hero p {
  font-size: 25px;
  margin-top: 12px;
  color: #f2f2f2;
}

/* ABOUT */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
}

.project-about__text {
  max-width: 700px;
}
.project-about h2 {
  color: var(--red);
}

.project-facts div {
  margin-bottom: 12px;
  font-size: 16px;
}

/* GALLERY */
.project-gallery__container {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Общая обертка */
.carousel {
  position: relative;
  margin-top: 30px;
}

/* Окно (обрезает лишнее) */
.carousel-window {
  overflow: hidden;
}

/* Лента */
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease;
}

/* 3 карточки в ряд */
.carousel-track img {
  width: calc((100% - 40px) / 3); /* 3 фото + 2 gap */
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Кнопки */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev {
  left: -22px;
}
.carousel-btn.next {
  right: -22px;
}

/* Адаптив */
@media (max-width: 900px) {
  .carousel-track img {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .carousel-track img {
    width: 100%;
  }
}

.gallery-grid img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  border-radius: 20px;
}

/* WORKS */
.project-works {
  background: #fafafa;
}
.project-works__container {
  padding-top: 30px;
  padding-bottom: 30px;
}
.project-works h2 {
  color: var(--red);
}
.works-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: center;
}

.works-list ul {
  list-style: none;
  padding: 0;
}

.works-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 17px;
}

.works-camera .camera-box {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
}

.camera-box h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.camera-box iframe {
  width: 100%;
  height: 260px;
  border-radius: 8px;
  border: none;
}

.camera-note {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}
.camera-placeholder {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #eee,
    #eee 10px,
    #f8f8f8 10px,
    #f8f8f8 20px
  );
  border-radius: 8px;
  color: #777;
}

@media (max-width: 900px) {
  .works-layout {
    grid-template-columns: 1fr;
  }

  .camera-box iframe {
    height: 220px;
  }
}

/* LOCATION */

.project-location__container {
  padding-top: 50px;
  padding-bottom: 70px;
}
.project-location iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 12px;
}

/* CTA */
.project-cta {
  background: var(--red);
  color: white;
  text-align: center;
}
.project-cta__container {
  padding-top: 35px;
  padding-bottom: 50px;
}
.project-cta__container p {
  margin-bottom: 45px;
}
.project-cta__container .btn-primary {
  background: var(--light);
  color: var(--red);
}
/* FOOTER */
.footer {
  padding: 30px;
  text-align: center;
  background: #111;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .project-about {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.img {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox-img {
  max-width: 70%;
  max-height: 70%;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.lightbox-img.show {
  transform: scale(1);
}

.close {
  position: absolute;
  top: -12px;
  right: -12px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.zoomable {
  cursor: pointer;
}

.lang-fab {
  position: fixed;
  right: 40px;
  top: 20px;
  z-index: 200;
}
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-main {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #a10000;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.lang-main:hover {
  transform: scale(1.1);
}

.lang-options {
  position: absolute;
  top: 60px; /* открывается вниз */
  right: 0; /* выравнивание по правому краю */
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 0.3s ease;
}

.lang-options a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #a10000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.lang-options a:hover {
  transform: scale(1.1);
}

.lang-fab.open .lang-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== MOBILE FIX BASE ===== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #000;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .project-hero {
    height: auto;
    padding: 80px 0;
    text-align: center;
  }

  .project-hero__content {
    max-width: 100%;
    padding-right: 0;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .project-hero h1 {
    font-size: 36px;
  }

  .project-hero p {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .project-hero h1 {
    font-size: 28px;
  }

  .project-hero p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .project-about__text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  header {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 768px) {
  .projects-hero {
    height: auto;
    padding: 80px 0;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }
  .contact-fab {
    z-index: 10;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content p {
    font-size: 15px;
  }
}

.projects-soon {
  text-align: center;
  padding: 80px 20px;
}

.projects-soon h2 {
  margin-bottom: 16px;
}

.projects-soon p {
  font-size: 18px;
  color: #444;
}

.projects-soon span {
  display: block;
  margin-top: 8px;
  color: #888;
}

@media (max-width: 768px) {
  .lang-fab {
    display: none;
  }
}

.nav-lang {
  position: relative;
  display: inline-block;
}

.lang-options-burger {
  position: absolute;
  top: 65px; /* под кнопкой */

  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 0.3s ease;
}

.lang-options-burger button {
  width: 100%;
  padding: 10px;
  border: none;
  background: #a10000;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
}

.nav-lang.open .lang-options-burger {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .nav-lang {
    display: inline-block; /* важный момент */
    position: relative;
    max-width: 50px;
  }

  .lang-options-burger button {
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    background: #a10000;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
  }

  .lang-options-burger button:hover {
    transform: scale(1.1);
  }
}

@media (min-width: 769px) {
  .nav-lang {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 25px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    z-index: 9999;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-menu li a,
  .nav-menu li button {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    border-radius: 14px;
    background: white;
    text-align: center;
    font-size: 18px;
  }

  .nav-menu .btn-primary {
    background: var(--red);
    color: white;
  }

  .lang-main-burger {
    width: 60px !important;
    max-width: 320px;
    padding: 16px;
    font-size: 18px;
    background: var(--red) !important;
    color: white;
    border-radius: 14px;
    border: none;
    padding-right: 10px;
  }
  .nav-menu .lang-main-burger,
  .nav-menu .lang-options-burger button {
    background: var(--red) !important;
    color: white;
  }
}
