@media (max-width: 900px) {

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Small mobile */

@media (max-width: 600px) {

  .grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 20px;
  }

  header {
    padding-top: 110px;
  }

  .logo-image {
    width: 280px;
    margin-bottom: 45px;
  }

  .subtitle {
    font-size: 23px;
  }

  .services-line {
    font-size: 14px;
    margin-bottom: 60px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .contact-form .btn {
    align-self: stretch;
    max-width: none;
  }

  .gallery img {
    height: 240px;
  }

  .card {
    padding: 26px;
  }

  .contact-info {
    flex-direction: column;
    gap: 8px;
  }

  .contact-info span {
    display: none;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }

}

/* Cookies mobile */

@media (max-width: 700px) {

  .cookie-banner {
    bottom: 20px;
    padding: 22px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions button {
    width: 100%;
  }

}

/* Mobile menu */

.menu-toggle {
  display: none;
}

.mobile-lang {
  display: none;
}

/* Burger menu */

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;

    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1001;

    width: 46px;
    height: 46px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    cursor: pointer;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;

    background: #ffffff;
    border-radius: 2px;

    transition: 0.3s ease;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 24px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 220px;
    padding: 20px;

    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    transition: 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > a {
    padding: 10px 0;
    font-size: 12px;
  }

  .main-nav > a.active {
    color: #2371d7 !important;
  }

  .lang-switch {
    display: none;
  }

  .mobile-lang {
    display: block;
    width: 100%;

    margin-top: 24px;
    padding-top: 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-lang-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    font-size: 1rem;
    font-weight: 600;

    opacity: 0.9;
  }

  .mobile-lang-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    width: 100%;
  }

  .main-nav .mobile-lang-links a {
    width: 54px !important;
    height: 54px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;

    background: transparent !important;

    color: white !important;
    text-decoration: none !important;

    font-size: 0.75rem !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    transition: 0.25s ease;
  }

  .main-nav .mobile-lang-links a span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    line-height: 1 !important;
  }

  .main-nav .mobile-lang-links a span:first-child {
    font-size: 1.15rem !important;
    margin-bottom: 5px !important;
  }

  .main-nav .mobile-lang-links a span:last-child {
    font-size: 0.72rem !important;
  }

  .main-nav .mobile-lang-links a.lang-active {
    background: #1e88ff !important;
    border-color: #1e88ff !important;
    color: white !important;
  }

}
@media (max-width: 768px) {

  .main-nav > a.active {
    color: #2371d7 !important;
  }

  .main-nav .mobile-lang .mobile-lang-links a.lang-active {
    background-color: #1e88ff !important;
    border: 1px solid #1e88ff !important;
    color: #ffffff !important;
  }

}