* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100vh;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 1.8rem;
}

nav {
    background-color: #34495e;
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #3d566e;
}

main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    min-height: 100vh;
    padding: 0 20px;
}

.main-news {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-news h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.main-news img {
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-text p {
    margin-bottom: 15px;
}

.news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.news-preview {
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    transition: height 0.3s;
}

.news-preview.expanded {
    height: auto;
    overflow: visible;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    width: fit-content;
}

.read-more:hover {
    background-color: #2980b9;
}

aside {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    border: 1px solid #ddd;
}

.sidebar-block {
    margin-bottom: 25px;
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar-block h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.sidebar-block ul {
    list-style: none;
}

.sidebar-block li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.sidebar-block li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.weather, .date {
    font-size: 1.1rem;
    color: #555;
}

.weather {
    font-size: 1.2rem;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }

    .news-feed {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.all-news h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-date {
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 15px;
}

.news-item h3 a:hover {
    color: #3498db;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-item p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-full > article > img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.city-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.city-hero {
    text-align: center;
    margin-bottom: 40px;
}

.city-hero h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.city-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.city-main article {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.city-main h3 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.info-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.attraction {
    text-align: center;
}

.attraction img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.attraction h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.city-infrastructure ul {
    list-style: none;
    padding-left: 20px;
}

.city-infrastructure li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.city-infrastructure li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.main-content {
    margin-left: 20em;
}

.full-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.news-article {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object

        /* v2 na check*/
    html, body {
        height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1 0 auto;
    }

    footer {
        flex-shrink: 0;
        margin-top: auto;
    }
}

.news-content > p {
    font-size: 20px;
}

.header-inf h1 {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-left: 10em;
}

.main-inf_contacts {
    margin-top: 3em;
}

.comments-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comments-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment strong {
    color: #2c3e50;
    font-size: 1rem;
}

.comment span {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-left: 10px;
}

.comment p {
    margin-top: 8px;
    color: #34495e;
    line-height: 1.5;
}

.comments-section form {
    margin-bottom: 20px;
}

.comments-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    font-family: Arial, sans-serif;
}

.comments-section button[type="submit"] {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.comments-section button[type="submit"]:hover {
    background-color: #27ae60;
}

.comments-section a {
    color: #3498db;
    text-decoration: none;
}

.comments-section a:hover {
    text-decoration: underline;
}