@font-face {
    font-family: 'Roboto Slab';
    src: url('../fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --primary: #0d6efd;
    --secondary: #6f42c1;
    --accent: #20c997;
    --pink: #e83e8c;
    --yellow: #f59f00;
    --dark: #111;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: linear-gradient(90deg, var(--dark) 0%, #1f1f1f 35%, #2a2a2a 100%);
    color: #fff;
    padding: 1em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header > nav.legacy-nav,
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.Our_logo{
    font-size:80px;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.Our_logo {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8em;
    font-weight: 700; /* Adjust weight as needed for Roboto Slab */
    text-transform: uppercase;
    letter-spacing: 1px;
}

#main-content {
    background-color: #f9f9f9; /* Пример стиля для ID селектора */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

header > nav.legacy-nav ul,
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header > nav.legacy-nav ul li,
header nav ul li {
    margin-left: 20px;
}

header > nav.legacy-nav ul li a,
header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

header > nav.legacy-nav ul li a:hover,
header nav ul li a:hover {
    color: #fff;
    background-color: #007bff;
    transform: translateY(-1px);
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--pink) 70%, var(--accent) 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 14px;
    margin-bottom: 40px;
    box-shadow: 0 10px 24px rgba(13,110,253,0.25);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero .button {
    background-color: #fff;
    color: var(--primary);
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 6px 14px rgba(255,255,255,0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hero .button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.35);
}

.latest-news h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

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

.news-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.news-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-item .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.news-item .read-more:hover {
    text-decoration: underline;
}

footer {
    background: linear-gradient(90deg, var(--dark) 0%, #1f1f1f 35%, #2a2a2a 100%);
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* Flexbox card row for homepage */
.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    margin: 40px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 260px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 16px 16px 8px 16px;
    flex: 1 1 auto;
}

.card-body h3 {
    margin: 0 0 8px 0;
    font-size: 1.25em;
}

.card-body p {
    margin: 0 0 12px 0;
    color: #555;
    line-height: 1.5;
}

.card-button {
    margin: 0 16px 16px 16px;
    align-self: flex-start;
    background-image: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 6px 14px rgba(13,110,253,0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(13,110,253,0.35); }

@media (max-width: 900px) { .card { flex: 1 1 calc(50% - 20px); } }
@media (max-width: 600px) { .card { flex: 1 1 100%; } }

/* Responsive Typography (Part 1 — Media Queries) */
html { font-size: 16px; }

/* Mobile First Approach */
@media (max-width: 576px) {
    html { font-size: 14px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.9rem; line-height: 1.4; }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 768px) {
    html { font-size: 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.05rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    p { font-size: 0.95rem; line-height: 1.5; }
}

/* Desktop */
@media (min-width: 769px) and (max-width: 992px) {
    html { font-size: 15.5px; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    p { font-size: 1rem; line-height: 1.6; }
}

/* Large Desktop */
@media (min-width: 993px) {
    html { font-size: 16px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1.05rem; line-height: 1.7; }
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accordion-header {
    background-color: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header.active {
    background-color: #007bff;
    color: white;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-content {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #e9ecef;
}

.accordion-icon {
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    font-size: 0.875em;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Interactive Features Section */
#current-datetime {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Button hover effects for interactive features */
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
