* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #a80000;
  /* deep premium red */
  --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 {
  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);
}

.projects-hero {
  height: 55vh;
  background: url("projects-hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.projects-hero {
  position: relative;
  height: 55vh;
  overflow: hidden;
}

.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/5.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;
  }
}

.projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding-right: 376px;
  box-sizing: content-box;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
}

.hero-content p {
  font-size: 20px;
  margin-top: 12px;
  color: #f2f2f2;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #d40000;
  margin-bottom: 40px;
}

.projects-section {
  padding-bottom: 60px;
  padding-top: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.project-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 700;
}

.project-info p {
  font-size: 16px;
  margin-top: 6px;
  color: #555;
}

.experience-section {
  background: #fafafa;
}
.experience-section__container {
  padding-top: 40px;
  padding-bottom: 60px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exp-card {
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.25s;
  border-left: 5px solid #d40000;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.exp-card h3 {
  color: #d40000;
  font-size: 22px;
  font-weight: 800;
}

.exp-card p {
  margin-top: 10px;
  color: #444;
}

.partners-section__container {
  padding-top: 40px;
  padding-bottom: 60px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  height: 120px;
  border-radius: 12px;
  background-size: contain; /* чтобы логотип не обрезался */
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* индивидуальные картинки */
.partner-1 {
  background-image: url("img/10.jpg");
}

.partner-2 {
  background-image: url("img/13.jpg");
}

.partner-3 {
  background-image: url("img/13.png");
}

.partner-4 {
  background-image: url("img/14.png");
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.footer {
  padding: 40px 8%;
  background: #1a1a1a;
  text-align: center;
  color: white;
  font-size: 16px;
}

/* кнопка */

.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 30px rgba(168, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  outline: none;
}

.contact-fab:active {
  transform: scale(0.98);
}

.contact-fab:hover {
  box-shadow: 0 14px 36px rgba(168, 0, 0, 0.3);
  transform: translateY(-3px);
}

.contact-fab .ping {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgb(168 0 0 / 33%);
  animation: ping 1.8s infinite;
  z-index: -1;
  top: 0;
  left: 0;
}

@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.contact-modal.show {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.contact-modal__panel {
  position: relative;
  width: min(1100px, 94%);
  max-height: 86vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.contact-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: #333;
  cursor: pointer;
}

.contact-modal__content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  height: 100%;
  min-height: 420px;
}

.contact-modal__map {
  min-height: 420px;
  height: 100%;
}

.contact-modal__info {
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fbfbfb);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-modal__info h3 {
  color: var(--red);
  margin: 6px 0px 20px 0px;
  font-size: 20px;
}

.contact-modal__info p {
  margin: 10px 0;
  color: #333;
  font-size: 15px;
}

.contact-modal__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-modal__actions .btn-ghost {
  color: --var(red);
}

.contact-modal__info a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.contact-modal__actions .btn-primary {
  color: #f9f9f9;
}

.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;
}

@media (max-width: 880px) {
  .contact-modal__content {
    grid-template-columns: 1fr;
  }

  .contact-modal__info {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .contact-modal__map {
    min-height: 300px;
  }

  .contact-modal__panel {
    width: min(980px, 96%);
  }
}

@media (max-width: 980px) {
  .projects-grid,
  .experience-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .projects-grid,
  .experience-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .projects-hero {
    padding-left: 5%;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}

.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;
  }
  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) {
  /* Убираем desktop flex */

  .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;
  }
}
