@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #edfffc;
}

body.active-modal {
  overflow: hidden;
  padding-right: 8px;
}

body::-webkit-scrollbar {
  background: #ffffff;
  width: 8px;
}

body::-webkit-scrollbar-thumb {
  background: #049ca1;
}

.logo {
  font-family: "Tomorrow", serif;
  color: black;
  font-size: 24px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 100;
}

.logo img {
  width: auto;
  height: 58px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.container {
  max-width: 1260px;
  padding: 0 15px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  cursor: pointer !important;
}

.btn {
  height: 44px;
  background: linear-gradient(to bottom, #049ca1, #29e1d2);
  color: white !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 25px;
  line-height: 44px;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s;
}

.btn:hover {
  background: #049ca1;
}

.btn img {
  width: 20px;
  height: 20px;
}

h2 {
  font-weight: 600;
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

section {
  margin: 100px 0;
}

/* Header */

header .row {
  gap: 30px;
}

header,
footer {
  padding: 15px 0;
  background: white;
}

.header-btn {
  box-shadow: 2px 2px 6px #049ca1;
  animation: header-btn 1s linear infinite;
}

@keyframes header-btn {
  0% {
    box-shadow: 2px 2px 6px #049ca1;
  }

  50% {
    box-shadow: 3px 3px 12px #049ca1, -2px -2px 8px #049ca1;
  }

  100% {
    box-shadow: 2px 2px 6px #049ca1;
  }
}

header li.row {
  gap: 20px;
}

#phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

#phone span {
  padding-top: 1px;
}

.forum-banner {
  max-width: 900px;
  margin: 100px auto;
  margin-top: 0;
}

.forum-banner img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 4px 6px 20px #e1e1e1;
}

.forum-banner__image-mb {
  display: none;
}

@media (max-width: 580px) {
  .forum-banner__image-pc {
    display: none;
  }

  .forum-banner__image-mb {
    display: block;
  }
}

header li img {
  height: 18px;
  width: 18px;
  align-items: center;
}

.header__menu-list {
  list-style: none;
}

.header__menu-list li {
  padding: 6px 0;
}

.header__menu-list a {
  font-weight: 400;
  font-size: 18px;
  color: black;
  position: relative;
}

.header__menu-list a::after {
  content: "";
  display: block;
  width: 0%;
  height: 1.5px;
  background: black;
  position: absolute;
  transition: all 0.3s;
  bottom: -2px;
}

.header__menu-list .dropdown-toggle::after {
  display: none
}

.header__menu-list a:hover::after {
  width: 100%;
}

.header__menu-list a.btn::after {
  display: none;
}

.header__menu-list a.btn {
  color: black;
}

.header__mobile-nav {
  display: none;
  align-items: center;
}

.burger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  cursor: pointer;
  position: relative;
  z-index: 50;
}

.burger figure {
  width: 100%;
  height: 4px;
  background: black;
  transition: all 0.3s;
}

.burger figure:nth-child(2) {
  width: 70%;
}

.burger.active figure:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7px);
}

.burger.active figure:nth-child(2) {
  transform: translate(-15px);
  width: 0;
}

.burger.active figure:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* --- Дропдаун --- */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.7em;
  color: #045c68;
}

.dropdown-toggle span {
  color: #045c68;
}

/* Скрываем вложенное меню по умолчанию */
.dropdown-menu {
  display: none;
  position: absolute;
  text-align: center;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.35);
  min-width: 180px;
  z-index: 10;
}

/* Элементы дропдауна */
.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
}

/* --- ПК: показываем при наведении --- */
@media (hover: hover) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Fixed phone call */

.phone-call-wrapper {
  position: fixed;
  bottom: 10px;
  z-index: 999;
  right: 10px;
}

.phone-call {
  height: 42px;
  width: 42px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid black;
}

.phone-call img {
  width: 24px;
  height: 24px;
}

/* Media querys */

@media all and (max-width: 1180px) {
  body.active-modal {
    padding: 0;
  }

  header .row {
    gap: 24px;
  }

  .phone-call-wrapper {
    display: flex;
  }

  .header__mobile-nav {
    display: flex;
  }

  .header__menu {
    position: fixed;
    left: -120%;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 10;
    background: white;
    border-right: 1px solid black;
  }

  .header-btn {
    display: none;
  }

  .header__menu.active {
    left: 0;
  }

  .header__menu-list {
    gap: 60px;
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    transform: translate(0);
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  /* добавим кнопку-стрелочку для открытия */
  .dropdown-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
  }

  .dropdown-toggle span {
    font-size: 0.8em;
    transform: rotate(0deg);
    transition: transform 0.3s;
    color: #045c68;
  }

  .dropdown.open .dropdown-toggle span {
    transform: rotate(180deg);
    color: #045c68;
  }

  .dropdown-menu li {
    margin-top: 10px;
  }

  .dropdown-menu li a {
    color: #454545;
    font-size: 16px;
    padding: 0;
  }
}

@media all and (max-width: 768px) {
  header .btn {
    font-size: 14px;
  }
}

@media all and (max-width: 480px) {

  .logo,
  .logo img {
    height: 48px;
  }
}

/* request__wrapper */

.request__wrapper {
  display: flex;
  gap: 80px;
  justify-content: center;
  flex-wrap: wrap;
}

.request__form {
  display: flex;
  flex-direction: column;
}

.request__form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request__form input {
  height: 42px;
  border: 2px solid black;
  padding: 0 10px;
  font-size: 16px;
}

.request__form .logo {
  margin: 0 auto;
}

.request__form-subtitle {
  margin: 20px 0;
  text-align: center;
}

.request__image {
  margin: 0 !important;
}

.request__image img {
  width: 200px;
}

.form-message {
  display: none;
  text-align: center;
}

@media all and (max-width: 768px) {
  .request__wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

footer {
  background: linear-gradient(to right, #045c68, #22baac);
  padding: 30px 0;
}

footer * {
  color: white;
}

.footer__contacts {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  align-items: center;
}

footer .logo {
  margin: 0 auto;
  height: 64px;
}

footer h2 {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
}

footer .logo img {
  height: 64px;
  filter: invert(1) brightness(5);
}

.footer-sitemap ul {
  list-style: none;
  padding-left: 0;
}

.footer-sitemap>ul>li {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-sitemap ul ul {
  margin-top: 5px;
  margin-left: 20px;
  font-weight: normal;
}

.footer-sitemap a {
  color: white;
  text-decoration: none;
}

.footer-sitemap a:hover {
  text-decoration: underline;
}

.footer-sitemap-ul {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-sitemap ul ul li a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  /* или другая нужная ширина */
}

.footer__item-second {
  width: 100%;
}

footer .row {
  flex-direction: column;
  gap: 30px;
}

.footer__stranky {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.footer__under p {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
}

.slovnik-pojmov {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.footer__social-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.footer__social-links a {
  border: 1px solid white;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.footer__under {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

@media all and (max-width: 1200px) {
  footer {
    padding: 40px 0;
  }

  footer .row {
    gap: 20px;
    align-items: flex-start;
  }

  .footer__item {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer__social-links {
    justify-content: flex-start;
  }

  .footer__contacts {
    padding-left: 0;
  }

  .footer__wrapper,
  .footer__contacts {
    flex-direction: column;
    justify-content: center;
  }

  .footer-sitemap-ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 420px;
  }

  .footer-sitemap ul ul li a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
    /* или другая нужная ширина */
  }

  .footer__under p {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
  }
}

.modal {
  top: 0;
  left: 0;
  padding: 10px;
  height: 100vh;
  width: 100%;
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal__window {
  background: white;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s;
  transform: scale(0.1);
}

#close-modal {
  color: black;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  font-size: 20px;
  line-height: 20px;
  border: none;
  background: none;
  height: 28px;
  cursor: pointer;
}

.modal.active {
  z-index: 9999;
  opacity: 1;
}

.modal.active .modal__window {
  transform: scale(1);
}

/* CardBlog */
.blogSwiper .swiper-wrapper {
  padding-bottom: 40px;
}

.blog-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
}

.blog-card h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card p {
  margin: 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 340px;
  object-fit: cover;
  z-index: -1;
  filter: brightness(45%);
}

.blog-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media all and (max-width: 720px) {
  h1 {
    font-size: 26px !important;
  }

  h2 {
    font-size: 24px !important;
  }
}

.freeprivacypolicy-com---nb-headline {
  position: fixed !important;
}

.freeprivacypolicy-com---nb-headline .cc-nb-okagree,
.freeprivacypolicy-com---nb-headline .cc-nb-reject,
.freeprivacypolicy-com---pc-dialog .cc-cp-foot-save {
  background: #045c68 !important;
}

.cookies-open-btn {
  cursor: pointer;
}

.modal-game__content h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.modal-game__content {
  text-align: center;
}

.modal-game__content .btn {
  margin-top: 20px;
}