/* === RESET & GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f0f2f5;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.modal-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

/* === GLASS EFFECT === */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-tile.glasses {
  background: rgba(255, 255, 255, 0.822);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(66, 76, 101, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* === HERO SECTION === */
.hero-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content {
  margin-top: 5rem;
  width: 100%;
}
.hero-logo-text {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.8rem;
  font-family: "HeroTextFont", sans-serif;
  font-weight: normal;
  line-height: 1.1;
  color: rgba(135, 75, 63, 1);
  display: inline-block;
}

.hero-logo-text .subtitle {
  position: absolute;
  top: 0.9em;
  right: -4rem; /* подгони визуально под “РЭС” */
  font-size: 1.8rem;
  font-family: "HeroTextFont", sans-serif;
  font-weight: normal;
  color: rgba(135, 75, 63, 1);
}

.hero-title {
  color: rgba(59, 97, 102, 1);
  position: relative;
  font-size: 5.9rem;
  font-family: "MainTitleFont", sans-serif;
  font-weight: normal;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  display: inline-block;
}

.hero-title .subtitle {
  position: absolute;
  top: -0.6em;
  right: -3.5em; /* регулируй по длине текста */
  font-size: 2.5rem;
  font-family: "MainTextFont", sans-serif;
  color: rgba(135, 75, 63, 1);
  font-weight: normal;
}
.hero-content p {
  font-family: "MainTitleFont", sans-serif;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: rgb(112, 140, 166);
}
.hero-content .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  background: rgb(53, 42, 42);
  color: #222;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .hero-tile {
    flex-direction: column;
    text-align: center;
    font-size: 1.2rem;
  }
  .hero-title .subtitle {
    position: absolute;
    top: -0.6em;
    right: -3.5em; /* регулируй по длине текста */
    font-size: 1.1rem;
  }
  .hero-content p {
    font-family: "MainTitleFont", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

#main {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

#main .video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

#main .wrapper {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#main .btn {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: rgba(59, 97, 102, 1);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#main .btn:hover {
  background-color: #fff;
  color: #333;
  box-shadow: 0 0 10px #fff;
}

/* === NAVIGATION === */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(6px);
  background: #88888899;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  padding-top: 0.5rem;
}

.my-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  flex-wrap: nowrap;
}

.navbar-brand {
  margin-right: 2rem;
}

.navbar-brand img {
  height: 60px;
}
.navbar-brand.logo-text {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  font-family: "MainTitleFont", sans-serif;
  font-weight: normal;
  line-height: 1.1;
  color: rgba(59, 97, 102, 1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand.logo-text .subtitle {
  position: absolute;
  top: -0.6em;
  right: -3em; /* регулируй при необходимости */
  font-size: 1rem;
  font-family: "MainTextFont", sans-serif;
  font-weight: normal;
  opacity: 0.8;
  color: rgba(135, 75, 63, 1);
  pointer-events: none;
}
@media (max-width: 768px) {
  .navbar-brand.logo-text {
    font-size: 1.6rem;
  }

  .navbar-brand.logo-text .subtitle {
    font-size: 0.8rem;
    right: -2.5em;
  }
}
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.nav-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  border-radius: 1rem;
  width: 140px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease, box-shadow 0.4s ease;
}

.nav-tile:hover {
  transform: translateY(-4px) scale(1.03);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: rgba(59, 97, 102, 0.8);
}
.nav-tile.active {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(59, 97, 102, 0.8);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 10px rgba(123, 227, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.nav-tile i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: white;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }
  .nav-menu.active {
    display: flex;
    max-height: 400px;
  }
}
/* === ABOUT SECTION === */
.about {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.about h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.about p {
  margin-bottom: 1rem;
  color: #444;
}

.about-grid {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  text-align: center;
  color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-grid:hover {
  transform: translateY(-5px);
}

.about-grid__header {
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: 2rem;
  font-weight: bold;
  color: #0b4d6e;
}

.about-grid__header__preffix {
  font-size: 1rem;
  margin-left: 0.25rem;
}

.about-grid__text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #222;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .my-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    max-height: 400px;
  }

  .about {
    padding: 4rem 1rem;
  }

  .about-grid {
    padding: 1.5rem;
  }
}
/* === NAPRAVLYENIYA SECTION === */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-grid {
  border: 1px solid rgba(59, 97, 102, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.about-grid:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 97, 102, 0.5);
}

.about-grid__header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(59, 97, 102, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-grid__text {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
  color: #333;
}

.about-grid__text li {
  position: relative;
  padding: 0.6rem 1.2rem 0.6rem 1.6rem;
  margin-bottom: 0.4rem;
  background-color: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  color: #333;
  opacity: 0;
  transform: translateY(10px) scale(1);
  font-size: 0.95rem;
  line-height: 1.4;
}

.about-grid__text li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.about-grid__text li:hover {
  background: rgba(59, 97, 102, 0.08);
  color: rgba(59, 97, 102, 1);
  transform: translateY(0) scale(1.02);
  box-shadow: 0 1px 8px rgba(70, 148, 218, 0.1);
}

.key-buttons {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
}

.key-buttons__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn.dark-glass {
  opacity: 0;
  text-decoration: none; /* чтобы не появлялась подчёркивание при наведении */
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 97, 102, 1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  will-change: transform;
}
.btn.dark-glass.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.btn.dark-glass:hover {
  transform: translateY(0) scale(1.05);
  background: #ffffff;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn.dark-glass:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* === UTILITIES === */
section {
  padding: 80px 0;
  position: relative;
}

.title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: rgba(59, 97, 102, 1);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.btn-primary {
  background-color: rgba(59, 97, 102, 1);
  border-color: rgba(59, 97, 102, 1);
}

.btn-primary:hover {
  background-color: #355160;
  border-color: #355160;
}

/* === CUSTOM SCROLL === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* === КАРТА === */
.container {
  max-width: 1104px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
/* === СЕРТИФИКАТЫ === */
.cert-thumb {
  width: 120px;
  max-width: 100%;
  aspect-ratio: 3/4;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  cursor: pointer;
}

.cert-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.certificate-item {
  opacity: 0;
  transform: translateY(20px);
}

/* === КОНТАКТЫ === */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-checks {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  font-size: 15px;
  color: #111;
  max-width: 100%;
}

.checkbox-robot {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #111;
  position: relative;
}

.checkbox-robot input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 2px solid #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.2s ease;
}

.robot-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.checkmark {
  position: absolute;
  width: 16px;
  height: 8px;
  border-left: 3px solid #1ac171;
  border-bottom: 3px solid #1ac171;
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkbox-robot input:checked + .checkbox-box .checkmark {
  opacity: 1;
}

.checkbox-robot input:checked + .checkbox-box .robot-icon {
  opacity: 0;
  transform: scale(0.6) rotate(15deg);
}

.checkbox-robot.processing .checkbox-box {
  animation: processing-blink 1.2s ease-in-out;
}

@keyframes processing-blink {
  0%,
  100% {
    border-color: #ccc;
  }
  50% {
    border-color: #1ac171;
  }
}

.checkbox-plain {
  display: inline-flex; /* или просто flex */
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #111;
  flex-wrap: nowrap; /* 👈 запрещаем перенос */
  white-space: normal; /* разрешаем перенос только в ссылке */
}

.checkbox-plain input[type="checkbox"] {
  display: none;
}

.checkbox-plain .checkbox-box {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 2px solid #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.2s ease;
}

.checkbox-plain .checkmark {
  position: absolute;
  width: 16px;
  height: 8px;
  border-left: 3px solid #1ac171;
  border-bottom: 3px solid #1ac171;
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkbox-plain input:checked + .checkbox-box .checkmark {
  opacity: 1;
}

.checkbox-plain .checkbox-label a {
  color: #0077cc;
  text-decoration: underline;
}

.feedback-form input,
.feedback-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border 0.2s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: black;
}
/* === RESPONSIVE === */
@media (max-width: 768px) {
  #main .content {
    padding: 0 1rem;
  }

  .my-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

.video {
  pointer-events: none;
  user-select: none;
}

/* === КАРТА === */
#vmap {
  background-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  border-radius: 1rem;
}
.icon-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding-top: 8px;
}

/* Иконки */
.jqvmap-label img.map-icon {
  width: 80px;
  height: auto;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  padding: 0;
}
.region-title {
  display: inline-block;
  background: rgba(30, 30, 30, 0.9);
  color: #f0f0f0;
  padding: 6px 14px;
  border-radius: 0.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.region-title.none {
  background: rgba(70, 70, 70, 0.9);
}
.jqvmap-label .icon-row {
  display: flex;
  flex-wrap: wrap; /* <-- вот ключ! */
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  padding: 4px 0;
}

.jqvmap-label .icon-row img.map-icon {
  width: 70px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-icon:hover {
  transform: scale(1.05);
}

/* === ОТЗЫВЫ === */

.review-blockquote {
  font-style: italic;
  font-size: 0.95rem;
  border-left: 4px solid #4694da;
  padding-left: 1rem;
  margin: 0;
}

.review-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.review-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0b4d6e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blur-bg {
  filter: blur(3.5px);
  transform: scale(1.05); /* чтобы края не обрезались */
}
.swiper-button-next,
.swiper-button-prev {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10;
  color: #3b6166 !important;
}
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; /* чтобы на мобилках было пространство */
  transition: opacity 0.3s ease;
}

.image-modal.hidden {
  display: none;
}

.image-modal-inner {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-content {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  max-height: 90vh;
  max-width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  max-height: 90vh;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.5rem;
}

/* При желании — zoom эффект */
.image-modal.showing .image-wrapper img {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-checks label.error .checkbox-box {
  border: 2px solid #e63946 !important;
  box-shadow: 0 0 5px #e63946;
}
.error-msg {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  margin-left: 2.25rem;
}
/* === FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@font-face {
  font-family: "MainTitleFont";
  src: url("../fonts/brushscriptmtrusbyme_italic.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MainTextFont";
  src: url("../fonts/georgia.ttf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "HeroTextFont";
  src: url("../fonts/impact.ttf");
  font-weight: normal;
  font-style: normal;
}
