@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- БАЗОВІ НАЛАШТУВАННЯ --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #F5F5F5;
    color: #333333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- КОЛЬОРИ --- */
:root {
    --color-primary: #66CC33; /* Зелений */
    --color-dark: #1F3A4A;    /* Темно-синій */
    --color-text: #333333;
    --color-light: #FFFFFF;
    --color-gray-bg: #F5F7F9; /* Фон для табів */
    --color-border: #E0E0E0;
    --color-danger: #dc3545;;
}

/* --- HEADER --- */
.header {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-icon img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-link {
    color: var(--color-light);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-link:hover { opacity: 1; }
.contact-header { font-weight: 500; }

/* Кнопка в меню (Публічний договір) */
.btn-nav {
    background-color: var(--color-primary); /* Зелений колір */
    color: var(--color-light) !important; /* Білий текст */
    padding: 10px 20px;
    border-radius: 5px; /* Закруглені кути */
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease;
    opacity: 1 !important; /* Прибираємо прозорість */
}

.btn-nav:hover {
    background-color: #55B522; /* Темніший колір при наведенні */
    text-decoration: none;
}

/* --- HERO SECTION --- */
.hero-section {
    background: url('img/hero-background.jpg') center/cover no-repeat;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Трохи темніше для читабельності */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 400;
}

.advantages {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.advantage-item {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
}

.advantage-item .icon {
    color: var(--color-primary);
    font-size: 24px;
    margin-right: 8px;
}

/* --- PARKINGS SECTION --- */
.parkings-section { padding: 80px 0; }

.parkings-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.parking-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 550px;
    width: 100%;
    flex: 1;
    min-width: 300px;
}

.card h3 {
    color: var(--color-dark);
    font-size: 24px;
    margin-bottom: 5px;
}

.card .address {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* --- СТАТУС ПАРКОВКИ (НОВИЙ) --- */
.status-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.status-frame {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 4px 8px;
    background-color: #FFFFFF;
}

.spots-count {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-right: 8px;
}

.parking-icon {
    background-color: var(--color-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
}

.open-status {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

/* --- КАРУСЕЛЬ --- */
/* --- КАРУСЕЛЬ (Оновлена) --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #eee;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active { display: block; }

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Анімація появи */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Стрілки навігації */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--color-primary); /* ЗЕЛЕНИЙ КОЛІР СТРІЛОК */
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8); /* Білий фон під стрілкою для контрасту */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Кружечки (індикатори) знизу */
.carousel-dots {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--color-primary); /* Активна точка зелена */
}

/* --- ТАБИ (НОВИЙ ДИЗАЙН) --- */
.tabs-container { margin-top: 15px; border-radius: 8px; overflow: hidden; }
.tabs-header { display: flex; gap: 4px; }
.tab-link {
    flex: 1; padding: 12px; border: none; cursor: pointer;
    background: var(--color-gray-bg); font-weight: 500; color: #555;
    border-radius: 8px 8px 0 0; transition: 0.3s;
}
.tab-link.active { background: var(--color-primary); color: #fff; }

.tab-content { display: none; background: var(--color-gray-bg); padding: 20px; border-radius: 0 0 8px 8px; }
.tab-content.active { display: block; }

/* Спеціальний список тарифів (як на фото) */
/*.tariff-list-custom { text-align: center; }*/
/*.tariff-item { padding: 10px 0; }*/
/*.tariff-item .price { font-size: 32px; font-weight: 700; color: var(--color-dark); line-height: 1.2; }*/
/*.tariff-item .type { font-size: 18px; font-weight: 500; color: #333; margin: 4px 0; }*/
/*.tariff-item .period { font-size: 14px; color: #666; }*/
/*.tariff-divider { border: 0; border-top: 1px solid var(--color-border); margin: 15px 0; }*/

/*.tariff-table { width: 100%; border-collapse: collapse; }*/
/*.tariff-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; }*/
/*.tariff-table td:last-child { text-align: right; font-weight: 700; }*/

/* --- НОВИЙ ДИЗАЙН ТАРИФІВ (ПАРКОВКА 2) --- */
.tariff-list {
    display: flex;
    flex-direction: column;
}

.tariff-item {
    display: flex;
    align-items: center; /* Вирівнювання по центру вертикально */
    padding: 15px 0;
    gap: 20px; /* Відстань між ціною та описом */
}

/* Стиль для ціни (зліва) */
.tariff-price {
    font-size: 32px; /* Великий розмір */
    font-weight: 800; /* Дуже жирний */
    color: var(--color-primary); /* Темно-синій */
    min-width: 110px; /* Фіксуємо ширину, щоб опис був рівно */
    line-height: 1;
    text-align: left;
}

/* Права колонка з текстом */
.tariff-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tariff-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase; /* Великі літери */
    color: #333;
    margin-bottom: 2px;
}

.tariff-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.tariff-note {
    font-size: 12px; /* Дрібний шрифт */
    color: #888;
    margin-top: 2px;
}

/* Роздільна лінія */
.tariff-divider {
    height: 1px;
    background-color: #E0E0E0;
    width: 100%;
    margin: 0;
}


/* Таблиця тарифів */
.tariff-table {
    width: 100%;
    border-collapse: collapse;
}

.tariff-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    color: #333;
    font-size: 15px;
}

.tariff-table td:last-child {
    text-align: right;
    font-weight: bold;
}

.tariff-table tr:last-child td { border-bottom: none; }

/* Карта всередині таба (без шапки) */
.map-wrapper-hidden-header {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}
/* КАРТА БЕЗ ШАПКИ (Виправлено) */
.map-wrapper-hidden-header iframe {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 355px;
    border: 0;
}
strong.danger{
    color: var(--color-danger);
}
strong.primary{
    color: var(--color-primary);
}
/* Вирівнювання іконки та тексту в один рядок */
.icon-text-row {
    display: flex;
    align-items: center;
    gap: 8px; /* Відступ між іконкою та текстом */
}

/* Обмеження розміру іконки */
.table-icon {
    width: 24px;  /* Задайте бажаний розмір */
    height: auto;
    object-fit: contain;
}
/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 40px 0;
    margin-top: auto;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-info p { opacity: 0.8; font-size: 14px; }
.footer .logo { margin-bottom: 10px; }

.footer-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
}

.copyright {
    font-size: 12px;
    width: 100%;
    text-align: center;
    opacity: 0.6;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- СТИЛІ ДЛЯ СТОРІНКИ ДОГОВОРУ --- */
.contract-section {
    padding: 60px 0;
    background-color: #f0f2f5;
}

.contract-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 70px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border-top: 6px solid var(--color-primary);
}

.document-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.document-header h1 { font-size: 26px; color: #1a1a1a; }
.offer-label { font-style: italic; color: #777; font-size: 14px;}

.document-content h3 {
    margin: 35px 0 15px 0;
    font-size: 18px;
    color: #1a1a1a;
    text-transform: uppercase;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.text-jus {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #444;
}

.terms-list { list-style: none; }
.terms-list li { margin-bottom: 12px; text-align: justify; }

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .parking-cards { flex-direction: column; align-items: center;}
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 10px; }
    .hero-content h1 { font-size: 32px; }
    .advantages { flex-direction: column; gap: 10px; }
    .contract-card { padding: 30px 20px; }
    .carousel-container { height: 200px; }
}