html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.warning-text {
    color:rgb(216, 11, 11)
}

body {
    background-image: url('/static/img/syti.png'); 
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
    background-attachment: fixed;  
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4); 
    z-index: -1;
}

.container {
    font-family: sans-serif; 
    text-align: center; 
    margin-top: 200px;
       
}
.btn { 
    padding: 20px 40px; 
    margin: 20px; 
    font-size: 20px; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
}

a {
    text-decoration: none;
}

.rent { 
    background-color: #4f46e5; 
    color: white; 
}

.rent:hover { 
    background-color: #070350; 
    color: white; 
}

.post { 
    background-color: #10b981; 
    color: white; 
}

.post:hover { 
    background-color: #198a64; 
    color: white; 
}

@media screen and (max-width: 768px) {
    .container {
        margin-top: 100px;
    }

    .btn {
        padding: 15px 30px;
        font-size: 16px;
        margin: 10px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        margin-top: 150px;
    }

    .btn {
        padding: 18px 35px;
        font-size: 18px;
    }
}


form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: 2px solid #4f46e5;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #f9f9ff;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input,
form textarea,
form select :focus {
    border-color: #070350;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.6);
    background-color: white;
    outline: none;
}

form label {
    display: block;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    color: #1f2937;
}

  
.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
.btn-submit:hover {
    background-color: #198a64;
  }

ul.errorlist {
    background-color: #fee2e2;  /* розовый фон */
    border: 1px solid #dc2626; /* красная рамка */
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
}

.form-container {
    max-width: 600px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 15px 0;
  }
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
  }
.carousel-track img {
    max-width: 300px;
    height: auto;
    margin-right: 10px;
    border-radius: 8px;
  }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
  }
.carousel-btn.prev {
    left: 0;
  }
.carousel-btn.next {
    right: 0;
  }

.lang-ru,
.lang-uk {
    display: none;
}
.lang-visible {
    display: block !important;
}
.lang-switch-buttons {
    margin: 20px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .lang-switch-buttons button {
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }
  
  .lang-switch-buttons button:hover {
    background-color: #3367d6;
  }
  
  .lang-switch-buttons button:active {
    transform: scale(0.97);
  }
  
  /* 📱 Адаптивность для мобильных */
  @media (max-width: 600px) {
    .lang-switch-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .lang-switch-buttons button {
      width: 100%;
      max-width: 300px;
      font-size: 16px;
    }
  }


  input[type="file"] {
    display: inline-block;
    padding: 10px;
    background-color: #fbbc05;
    color: black;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
  }
  
  input[type="file"]:hover {
    background-color: #e0a800;
  }

  .btn-save {
    background-color: #34a853;
    color: white;
  }
  
  .btn-save:hover {
    background-color: #2c8c45;
  }
  
  .btn-save:active {
    transform: scale(0.97);
  }


  .lang-switcher {
    margin: 30px auto 20px auto; /* отступ сверху и снизу, по центру */
    text-align: center;          /* выравнивание по центру */
  }
  
  .lang-btn {
    padding: 6px 14px;
    margin-left: 5px;
    border: none;
    border-radius: 4px;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .lang-btn:hover {
    background-color: #d0d0d0;
  }
  
  .lang-btn.active {
    background-color: #4285f4;
    color: white;
  }
  