/* --- Общие настройки --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f5f7;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Шапка и навигация --- */
header {
    background-color: #004080;
    color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

header nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
}

header nav .menu {
    display: flex;
    gap: 20px;
}

header nav .menu a {
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

header nav .menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Основной контейнер --- */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- Заголовки --- */
h1, h2 {
    color: #004080;
}

/* --- Формы --- */
form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto 30px auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="datetime-local"],
form textarea,
form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="number"]:focus,
form input[type="datetime-local"]:focus,
form textarea:focus,
form select:focus {
    border-color: #004080;
    outline: none;
}

form button {
    background-color: #004080;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #00264d;
}

/* --- Ошибки и сообщения --- */
.error-list {
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Каталог --- */
/* --- Каталог с улучшенным стилем --- */
.catalog {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding-bottom: 40px;
}

.catalog .item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.catalog .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.catalog .item:hover img {
    transform: scale(1.05);
}

.catalog .item-content {
    padding: 20px 18px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog .item-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 12px 0;
    min-height: 54px;
    line-height: 1.2;
}

.catalog .item-content p.description {
    font-size: 1rem;
    color: #555;
    margin: 0 0 18px 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog .item-content .price {
    font-weight: 700;
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.catalog .item-content .status {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 18px;
    color: #007b00; /* зелёный для "Свободна" */
}

.catalog .item-content .status.unavailable {
    color: #c0392b; /* красный для "Занята" */
}

.catalog .item-content a.button {
    align-self: center;
    background-color: #004080;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 64, 128, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.catalog .item-content a.button:hover,
.catalog .item-content a.button:focus {
    background-color: #00264d;
    box-shadow: 0 6px 16px rgba(0, 38, 77, 0.5);
    outline: none;
}

.catalog .item-content a.button:active {
    transform: scale(0.97);
}

/* --- Мобильная адаптация --- */
@media (max-width: 768px) {
    .catalog {
        gap: 18px;
        justify-content: center;
    }
    .catalog .item {
        width: 90%;
    }
}


/* --- Таблицы (например, в админке) --- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #004080;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: #f1f7ff;
}

/* --- Навигация --- */
nav {
    margin-bottom: 20px;
}

nav a {
    margin-right: 20px;
    font-weight: 600;
}

/* --- Мобильная адаптивность --- */
@media (max-width: 768px) {
    .catalog {
        justify-content: center;
    }

    .catalog .item {
        width: 90%;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.hero {
    max-width: 800px;
    margin: 40px auto 60px auto;
    text-align: center;
    color: #004080;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    flex-wrap: wrap;
}

.feature-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-item h2 {
    color: #004080;
    margin-bottom: 12px;
}

.feature-item p {
    color: #555;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 900px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    .feature-item {
        width: 90%;
        margin-bottom: 30px;
    }
}
/* --- Новый блок герой --- */
.hero {
  background: url('images/hero-bg.jpg') center center/cover no-repeat;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  padding: 0 20px;
  margin-bottom: 50px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: #ff5a00;
  color: white;
  box-shadow: 0 4px 15px rgba(255,90,0,0.5);
}

.btn-primary:hover {
  background-color: #e04b00;
  box-shadow: 0 6px 20px rgba(224,75,0,0.7);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: #ff5a00;
  border-color: #ff5a00;
}

/* --- Новый блок преимуществ --- */
.advantages {
  display: flex;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: 60px auto 80px auto;
  flex-wrap: wrap;
}

.advantage {
  max-width: 300px;
  text-align: center;
  color: #004080;
}

.advantage img {
  width: 80px;
  margin-bottom: 20px;
}

.advantage h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.advantage p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* --- Стили для старого контента на главной (просто чтобы отделить визуально) --- */
.hero-old {
    max-width: 800px;
    margin: 80px auto 40px auto;
    text-align: center;
    color: #004080;
}

.hero-old h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-old p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.features-old {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    flex-wrap: wrap;
}

.feature-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-item h2 {
    color: #004080;
    margin-bottom: 12px;
}

.feature-item p {
    color: #555;
    font-size: 1rem;
}

/* --- Адаптив --- */
@media (max-width: 900px) {
  .hero h1, .hero-old h1 {
    font-size: 2rem;
  }

  .hero p, .hero-old p {
    font-size: 1rem;
  }

  .advantages, .features-old {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
}
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info, .contact-form {
    flex: 1 1 400px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-info h2, .contact-form h2 {
    color: #004080;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    margin: 10px 0;
}

.contact-info a {
    color: #004080;
    font-weight: bold;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-top: 5px;
    width: 100%;
}

.contact-form button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #002d5a;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

table th {
    background-color: #004080;
    color: white;
}

table a {
    color: #c0392b;
    font-weight: 600;
}
.button {
    display: inline-block;
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #002f5c;
    transform: translateY(-1px);
}

.button.disabled {
    background-color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

.button.login-notice {
    background-color: #f39c12;
    color: white;
    text-align: center;
}

.button.login-notice:hover {
    background-color: #d68910;
}
form input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 8px;
    width: 200px;
}
input#datepicker {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 200px;
    margin-top: 8px;
}
..logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: white; /* Белый цвет */
  margin-left: 16px;
}
.error-page {
  text-align: center;
  padding: 80px 20px;
  color: #333;
}

.error-page h1 {
  font-size: 96px;
  margin-bottom: 10px;
  color: #c00;
}

.error-page p {
  font-size: 20px;
  margin: 10px 0;
}

.error-page .button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #004aad;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
}


