body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
}

header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 40px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
    color: #004080;
}

.logo-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

nav {
    display: flex;
    gap: 15px;
}

header a {
    text-decoration: none;
    color: #004080;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 20px;
    transition: background 0.3s;
}

nav a:hover {
    background: #004080;
    color: white;
}

nav .active {
    background: #004080;
    color: white;
}

main {
    padding: 40px;
    min-height: 70vh;
}

footer {
    background: #004080;
    color: white;
    text-align: center;
    padding: 15px;
}

#searchBox {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 15px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#showMoreBtn {
    display: block;
    margin: 25px auto;
    padding: 10px 22px;
    font-size: 16px;
    background: #004080;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#showMoreBtn:hover {
    background: #0066cc;
    transform: scale(1.05);
}

#documentsList {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

#documentsList li {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

#documentsList li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#documentsList a {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 28px;
}

#documentsList a::before {
    content: "";
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* PDF */
#documentsList a[data-icon="pdf"]::before {
    content: "📕";
}

/* Word */
#documentsList a[data-icon="doc"]::before {
    content: "📘";
}

/* Excel */
#documentsList a[data-icon="xls"]::before {
    content: "📗";
}

/* base */
#documentsList a[data-icon="other"]::before {
    content: "📄";
}

.documents-container {
    display: flex;
    height: 80vh;
}

.documents-list {
    width: 25%;
    border-right: 1px solid #ccc;
    padding: 15px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

#documentsWrapper {
    max-height: 600px; /* показує приблизно 10 документів */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#documentsWrapper.expanded {
    max-height: 80vh; /* відкриваємо повний список */
    overflow-y: auto; /* додаємо скрол */
}

#expandDocsBtn {
    display: block;
    margin: 15px auto 0;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #004080;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

#expandDocsBtn:hover {
    background: #0066cc;
}

.document-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

#docFrame {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
}

.viewer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.viewer-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #004080;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.viewer-controls button:hover {
    background: #0066cc;
}

.main-layout {
    display: flex;
    gap: 30px;
    padding: 40px;
    max-width: 1300px;
    margin: auto;
}

/* Ліва колонка */
.history {
    flex: 3;
    line-height: 1.6;
}

.history h2 {
    margin-bottom: 20px;
    color: #004080;
}

.history img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Права колонка */
.info-box {
    flex: 1;
    background: #f5f9ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.info-box h3 {
    margin-top: 0;
    color: #004080;
}

.info-box h4 {
    margin-top: 15px;
    color: #0066cc;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    margin: 8px 0;
}

.info-box strong {
    color: #c00;
    font-weight: bold;
}

.tariffs-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.tariffs-page h2, .tariffs-page h3 {
    text-align: center;
    margin: 20px 0;
    color: #004080;
}

.tariffs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.tariffs-table th, .tariffs-table td {
    text-align: center;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 15px;
}

.tariffs-table th {
    background: #004080;
    color: #fff;
    font-weight: 600;
}

.tariffs-table tr:nth-child(even) {
    background: #f9f9f9;
}

.tariffs-table .section-title td {
    background: #e6f0ff;
    font-weight: 600;
    text-align: center;
    color: #004080;
}

.tariffs-notes {
    max-width: 1000px;
    margin: 30px auto 50px;
    padding: 20px 25px;
    background: #f9f9f9;
    border-left: 5px solid #004080;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tariffs-notes h3 {
    margin-bottom: 15px;
    color: #004080;
}

.tariffs-notes ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.tariffs-notes li {
    margin-bottom: 10px;
}

.contacts {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #004080;
}

.contact-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.contact-card div {
    margin-bottom: 8px;
}

.contact-card div span {
    font-weight: 600;
    margin-right: 5px;
    color: #333;
}

.contact-card a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* адаптивність */
@media (max-width: 700px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
}

.map-section {
    margin: 50px auto;
    padding: 0 20px;
    max-width: 1000px;
    text-align: center;
}

.map-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #004080;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 40px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

.contact-addresses {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-addresses h3 {
    color: #004080;
    margin-bottom: 20px;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.address-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.address-card p {
    margin: 5px 0;
    font-size: 15px;
    color: #333;
}

.address-card strong {
    color: #004080;
}

.activity-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.activity-page h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #004080;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

.activity-list li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.activity-list li span {
    font-size: 20px;
    flex-shrink: 0;
    color: #004080;
}


.news-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-page h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #004080;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.news-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #004080;
}

.news-card p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
    font-size: 18px;
}

.news-table {
    margin: 15px auto 15px auto;
    width: 50%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: center;
}

.news-table th {
    background: #f4f6f9;
    color: #004080;
    padding: 10px;
    border-bottom: 2px solid #ccc;
}

.news-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.news-table tr:hover td {
    background: #f9f9f9;
}

.news-footer {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-btn {
    display: inline-block;
    background: #004080;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.news-btn:hover {
    background: #0066cc;
    transform: scale(1.05);
}