/*
Author: r3nch1k
Version: 1.0
Text Domain: greeniarden
*/

/* ===== СВЕТЛАЯ ТЕМА ===== */
:root {
    --bg-light: #ffffff;
    --bg-offwhite: #f8f8f8;
    --text-dark: #333333;
    --text-darker: #111111;
    --accent-color: #000000;
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --font-primary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-primary);
    line-height: 1.6;
}

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

/* Шапка */
.site-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-light);
}

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

.main-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-menu a {
    color: var(--text-darker);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-menu a:hover {
    opacity: 0.6;
}

/* Увеличиваем логотип во всем проекте */
.site-header .custom-logo-link img,
.site-logo img,
.header-logo img,
.logo img {
    max-width: 250px !important;  /* Увеличили с 150px до 250px */
    max-height: 100px !important; /* Увеличили с 60px до 100px */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Для мобильных устройств - тоже увеличиваем */
@media (max-width: 768px) {
    .site-header .custom-logo-link img,
    .site-logo img,
    .header-logo img,
    .logo img {
        max-width: 200px !important;
        max-height: 80px !important;
    }
}



/* Уменьшаем отступы у шапки */
.site-header {
    padding: 15px 0;  /* Уменьшили с 30px до 15px */
}

/* Уменьшаем отступы у логотипа */
.site-header .custom-logo-link {
    margin: 0;
    padding: 0;
}

/* Убираем лишние отступы у контейнера шапки */
.header-content {
    margin: 0;
    padding: 0;
}

/* Если логотип все еще сдвигает полоску, добавьте это */
.main-menu {
    margin: 0;
    padding: 0;
}

/* Компенсируем уменьшение отступов для мобильных */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;  /* Еще меньше на мобильных */
    }
}


/* Hero секция */
.hero-section {
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: whitesmoke;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--text-dark);
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.button-outline {
    border: 2px solid whitesmoke;
    color: whitesmoke;
    background: transparent;
}

.button-outline:hover {
    background: whitesmoke;
    color: black;
}

/* Explore секция */
.explore-section {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.section-title {
    font-size: 36px;
    color: var(--text-darker);
    margin-bottom: 20px;
}

.section-text {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: var(--text-dark);
}

.text-link {
    color: var(--text-darker);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* Insights секция */
.insights-section {
    padding: 60px 0 100px;
    text-align: center;
}

.divider {
    width: 100px;
    height: 2px;
    background: var(--text-darker);
    margin: 30px auto 0;
}

/* Эффект свечения для заголовков (теперь темное свечение) */
/*.hero-title {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Эффект параллакса для фона */
.hero-section {
    background: linear-gradient(45deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/stars.png') repeat;
    opacity: 0.03;
    animation: stars 60s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

/* Полноэкранная hero секция */
.fullscreen-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--text-darker);
    overflow: hidden;
}

/* Фоновое изображение */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Затемняющий слой (теперь светлый) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 100%
    );
    z-index: 1;
}

/* Контейнер для контента */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

/* Текстовый контент */
.hero-text-content {
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: whitesmoke;
    /*text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);*/
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: whitesmoke;
    /*text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);*/
}

/* ===== СТРАНИЦА КОНТАКТЫ (СВЕТЛАЯ) ===== */
.contacts-page {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 48px;
    color: var(--text-darker);
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-top: 80px;
}



.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--text-darker), transparent);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Левая колонка - контактная информация */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-block {
    border-left: 2px solid var(--border-light);
    padding-left: 30px;
}

.info-title {
    font-size: 24px;
    color: var(--text-darker);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.info-label {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

.info-value {
    color: var(--text-darker);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.info-value:hover {
    border-bottom-color: var(--text-darker);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.info-text {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 2.2;
    white-space: pre-wrap;
}

/* Правая колонка - форма (светлая) */
.contacts-form {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.form-title {
    font-size: 28px;
    color: var(--text-darker);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 12px 15px;
    color: var(--text-darker);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-darker);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Чекбокс */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    cursor: pointer;
    accent-color: var(--text-darker);
}

.checkbox-label {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* Кнопка отправки */
.submit-button {
    background: transparent;
    border: 2px solid var(--text-darker);
    color: var(--text-darker);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
}

.submit-button:hover {
    background: var(--text-darker);
    color: var(--bg-light);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Сообщения об успехе/ошибке */
.form-success {
    background: rgba(0, 128, 0, 0.05);
    border: 1px solid rgba(0, 128, 0, 0.2);
    color: #006400;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    animation: glow 2s ease-in-out infinite;
}

.form-error {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #cc0000;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 128, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 128, 0, 0.2);
    }
}

/* ===== СТРАНИЦА ПРОЕКТОВ (СВЕТЛАЯ) ===== */
.projects-page {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Стили для проектов с фото */
.project-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--text-darker), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.project-item:hover::before {
    opacity: 0.3;
}

.project-thumbnail {
    flex-shrink: 0;
    width: 250px;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-light);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-content-wrapper {
    flex: 1;
}

.project-id {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.6;
    margin-bottom: 10px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 28px;
    color: var(--text-darker);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.project-content {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-content p {
    margin-bottom: 15px;
}

.project-time {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 2px solid var(--text-darker);
    color: var(--text-dark);
}

.project-time strong {
    color: var(--text-darker);
    font-weight: 500;
    margin-right: 10px;
}

.project-goals {
    margin: 20px 0;
}

.project-goals strong {
    display: block;
    color: var(--text-darker);
    margin-bottom: 10px;
    font-weight: 500;
}

.project-goals ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-goals li {
    color: var(--text-dark);
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.project-goals li:last-child {
    border-bottom: none;
}

.project-goals li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-darker);
    opacity: 0.5;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.project-funding,
.project-audience {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Пагинация */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .current {
    background: var(--text-darker);
    color: var(--bg-light);
    border-color: var(--text-darker);
}

.pagination a:hover {
    border-color: var(--text-darker);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-info {
        order: 2;
    }
    
    .contacts-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-text-content {
        margin: 0 auto;
    }
    
    .project-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .project-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .contacts-page,
    .projects-page {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .contacts-form {
        padding: 25px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .info-block {
        padding-left: 15px;
    }
    
    .submit-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Адаптация шапки для мобильных */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}


/* ===== СТИЛИ ФУТЕРА ===== */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 20px 0 20px;
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.footer-content {
    display: flex;
    flex-direction: column;
}

/* Бренд в футере */
.footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.footer-brand h3 {
    color: var(--text-darker);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.footer-brand img {
    max-height: 60px;
    width: auto;
    opacity: 0.9;
}

/* Секция партнеров */
.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;

    border-bottom: 1px solid var(--border-light);
}

.partner-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    text-align: center;
}

/* Стили для текстов */
.partner-label {
    color: var(--text-darker);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Стили для логотипов */
.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.footer-logo-img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 0.8;
}

/* Стили для названий (если нет логотипов) */
.partner-name {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-name:hover {
    color: var(--text-darker);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.partner-empty {
    /* Пустая ячейка для выравнивания */
}

/* Ссылка на cookies */
.footer-cookies {
    text-align: right;
    margin-top: 10px;
}

.cookie-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.cookie-link:hover {
    opacity: 1;
    color: var(--text-darker);
    border-bottom-color: var(--text-darker);
}

/* Копирайт */
.footer-copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
}

.footer-copyright p {
    margin: 0;
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .partner-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
    }
    
    .partner-label, 
    .partner-name,
    .partner-logo {
        text-align: left;
        justify-content: flex-start;
    }
    
    .partner-empty {
        display: none;
    }
    
    .footer-cookies {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
}



/* ===== СТРАНИЦА АКТУАЛИТАТЕС ===== */
.aktualitates-page {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.aktualitates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

/* Карточка актуалитате */
.aktualitate-card {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aktualitate-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.2);
}

/* Изображение */
.aktualitate-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.aktualitate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aktualitate-card:hover .aktualitate-image img {
    transform: scale(1.05);
}

/* Контент карточки */
.aktualitate-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aktualitate-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.7;
}

.aktualitate-date {
    display: inline-block;
}

.aktualitate-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.aktualitate-title a {
    color: var(--text-darker);
    text-decoration: none;
    transition: all 0.3s ease;
}

.aktualitate-title a:hover {
    color: #000;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.aktualitate-excerpt {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--text-darker);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ===== ОТДЕЛЬНАЯ СТРАНИЦА АКТУАЛИТАТЕ ===== */
.single-aktualitate-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.single-aktualitate {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 70px;
}

/* Заголовок */
.aktualitate-header {
    margin-bottom: 40px;
    text-align: center;
}

.aktualitate-header .aktualitate-meta {
    margin-bottom: 15px;
    font-size: 16px;
}

.aktualitate-header .aktualitate-title {
    font-size: 42px;
    margin: 0;
    color: var(--text-darker);
}

/* Изображение */
.aktualitate-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aktualitate-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контент */
.aktualitate-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.aktualitate-content p {
    margin-bottom: 25px;
}

.aktualitate-content h2 {
    font-size: 28px;
    color: var(--text-darker);
    margin: 40px 0 20px;
}

.aktualitate-content h3 {
    font-size: 24px;
    color: var(--text-darker);
    margin: 30px 0 15px;
}

.aktualitate-content ul,
.aktualitate-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.aktualitate-content li {
    margin-bottom: 10px;
}

.aktualitate-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-offwhite);
    border-left: 4px solid var(--text-darker);
    font-style: italic;
}

/* Навигация */
.aktualitate-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.nav-previous a,
.nav-next a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--text-darker);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-next {
    text-align: right;
}

/* Кнопка назад */
.aktualitate-back {
    text-align: center;
    margin-top: 30px;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--text-darker);
    color: var(--text-darker);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.back-button:hover {
    background: var(--text-darker);
    color: var(--bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .aktualitates-grid {
        grid-template-columns: 1fr;
    }
    
    .aktualitate-header .aktualitate-title {
        font-size: 32px;
    }
    
    .aktualitate-navigation {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-next {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .aktualitate-header .aktualitate-title {
        font-size: 28px;
    }
    
    .aktualitate-content {
        font-size: 16px;
    }
}


/* Фиксим высокий футер */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;  /* Контент занимает всё доступное пространство */
}

.site-footer {
    flex-shrink: 0;  /* Футер не сжимается */
}

/* Убираем лишние минимальные высоты */
.aktualitates-page {
    padding: 80px 0;
    min-height: auto;  /* Убираем min-height */
    background-color: var(--bg-light);
}

.projects-page {
    min-height: auto;  /* Убираем min-height */
}

.contacts-page {
    min-height: auto;  /* Убираем min-height */
}

/* ===== СТРАНИЦА АКТУАЛИТАТЕС (КАК В ПРОЕКТАХ) ===== */
.aktualitates-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.aktualitates-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

/* Карточка как в проектах */
.aktualitate-item {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aktualitate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--text-darker), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aktualitate-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.aktualitate-item:hover::before {
    opacity: 0.3;
}

/* Фото как в проектах */
.aktualitate-thumbnail {
    flex-shrink: 0;
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-light);
}

.aktualitate-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aktualitate-item:hover .aktualitate-thumbnail img {
    transform: scale(1.05);
}

/* Контент */
.aktualitate-content-wrapper {
    flex: 1;
}

.aktualitate-meta {
    margin-bottom: 10px;
}

.aktualitate-date {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.6;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.aktualitate-title {
    font-size: 28px;
    color: var(--text-darker);
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.aktualitate-title a {
    color: var(--text-darker);
    text-decoration: none;
    transition: all 0.3s ease;
}

.aktualitate-title a:hover {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.aktualitate-content {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.aktualitate-content p {
    margin-bottom: 15px;
}

/* Дополнительные поля (если нужны) */
.aktualitate-meta-info {
    margin: 15px 0;
}

.aktualitate-field {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Футер карточки */
.aktualitate-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.read-more {
    color: var(--text-darker);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .aktualitate-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .aktualitate-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .aktualitate-title {
        font-size: 24px;
    }
}




/* ===== ОБНОВЛЕННАЯ СТРАНИЦА ПРОЕКТА ===== */
.single-project-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.single-project {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок проекта */
.project-header {
    margin-bottom: 40px;
    text-align: left;
    margin-top: 75px;
}

.project-header .project-id {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.6;
    margin-bottom: 10px;
    font-family: monospace;
}

.project-header .project-title {
    font-size: 42px;
    color: var(--text-darker);
    margin: 0 0 15px 0;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.3;
}

.project-time-header {
    font-size: 18px;
    color: var(--text-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.project-time-header strong {
    color: var(--text-darker);
    font-weight: 500;
}

/* Детали проекта */
.project-details {
    margin-bottom: 50px;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Левая колонка - контент */
.details-content {
    order: 1;
}

.project-description {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.project-description p {
    margin-bottom: 20px;
}

.project-description h2 {
    font-size: 28px;
    color: var(--text-darker);
    margin: 40px 0 20px;
    font-weight: 400;
}

.project-description h3 {
    font-size: 24px;
    color: var(--text-darker);
    margin: 30px 0 15px;
    font-weight: 400;
}

/* Цели и активности */
.project-goals-full {
    margin-top: 40px;
}

.project-goals-full h2 {
    font-size: 28px;
    color: var(--text-darker);
    margin-bottom: 25px;
    font-weight: 400;
}

.project-goals-full ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-goals-full li {
    color: var(--text-dark);
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.project-goals-full li:last-child {
    border-bottom: none;
}

.project-goals-full li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-darker);
    opacity: 0.5;
}

/* Правая колонка - сайдбар */
.details-sidebar {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Фото проекта в сайдбаре */
.project-sidebar-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.project-sidebar-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-sidebar-image:hover img {
    transform: scale(1.02);
}

/* Информационные блоки */
.info-box {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: var(--text-darker);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    color: var(--text-darker);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.info-box p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Блок шаринга */
.share-box .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Навигация */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px 0 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.nav-previous a,
.nav-next a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-previous a:hover {
    color: var(--text-darker);
    transform: translateX(-3px);
}

.nav-next a:hover {
    color: var(--text-darker);
    transform: translateX(3px);
}

.nav-next {
    text-align: right;
}

/* Кнопка назад */
.project-back {
    text-align: center;
    margin-top: 30px;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--text-darker);
    color: var(--text-darker);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.back-button:hover {
    background: var(--text-darker);
    color: var(--bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .details-sidebar {
        order: -1; /* Фото и сайдбар сверху на планшетах */
    }
    
    .project-header .project-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .single-project-page {
        padding: 40px 0;
    }
    
    .project-header .project-title {
        font-size: 28px;
    }
    
    .project-description {
        font-size: 16px;
    }
    
    .project-navigation {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .nav-next {
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-header .project-title {
        font-size: 24px;
    }
    
    .info-box {
        padding: 20px;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}



/* Стили для тегов */
.tags-box .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--text-darker);
    border-color: var(--text-darker);
    color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Для архива проектов тоже можно добавить теги */
.project-tags-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.project-tags-mini .tag-link {
    padding: 3px 10px;
    font-size: 11px;
    background: transparent;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tags-list {
        gap: 5px;
    }
    
    .tag-link {
        padding: 4px 10px;
        font-size: 12px;
    }
}


/* Только для страницы с полноэкранным фоном */
.home .site-header,
.page-template-front-page .site-header {
    position: absolute;  /* Шапка поверх фона */
    width: 100%;
    z-index: 10;
    background: transparent;  /* Прозрачный фон */
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.home .main-menu a,
.page-template-front-page .main-menu a {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);  /* Тень для читаемости */
}


/* Убираем border на главной */
.home .site-header {
    border-bottom: none !important;
}

/* Для остальных страниц (светлая тема) */
.site-header {
    border-bottom: 1px solid var(--border-light); /* Светлая граница */
}




/* ===== IESPĒJAS ===== */
.iespejas-page {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.iespejas-title {
    margin-top: 75px;
}

.iespejas-content {
    max-width: 900px;
    margin: 50px auto 0;
}

.iespejas-text {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.8;
}

.iespejas-text h2 {
    font-size: 32px;
    color: var(--text-darker);
    margin: 40px 0 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.iespejas-text h3 {
    font-size: 24px;
    color: var(--text-darker);
    margin: 30px 0 15px;
    font-weight: 400;
}

.iespejas-text p {
    margin-bottom: 25px;
}

.iespejas-text ul,
.iespejas-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.iespejas-text li {
    margin-bottom: 10px;
}

.iespejas-text blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-offwhite);
    border-left: 4px solid var(--text-darker);
    font-style: italic;
}

.iespejas-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .iespejas-page {
        padding: 40px 0;
    }
    
    .iespejas-text {
        font-size: 16px;
    }
    
    .iespejas-text h2 {
        font-size: 28px;
    }
    
    .iespejas-text h3 {
        font-size: 22px;
    }
}



/* Стили для тегов в архиве проектов */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 15px;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.project-tags .tag-link {
    display: inline-block;
    padding: 6px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tags .tag-link:hover {
    background: var(--text-darker);
    border-color: var(--text-darker);
    color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Для темной темы / главной страницы */
.home .project-tags .tag-link,
.dark-theme .project-tags .tag-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.home .project-tags .tag-link:hover,
.dark-theme .project-tags .tag-link:hover {
    background: var(--text-white);
    border-color: var(--text-white);
    color: var(--bg-dark);
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-tags {
        gap: 8px;
        margin: 15px 0 10px;
    }
    
    .project-tags .tag-link {
        padding: 5px 12px;
        font-size: 12px;
    }
}


/* Оформление заголовка проекта в архиве */
.project-title {
    font-size: 28px;
    color: var(--text-darker);
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-title a {
    color: var(--text-darker);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-title a:hover {
    color: var(--text-darker);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(3px);
}

/* Для темной темы */
.home .project-title a,
.dark-theme .project-title a {
    color: var(--text-white);
}

.home .project-title a:hover,
.dark-theme .project-title a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-title {
        font-size: 24px;
    }
}



/* Стили для некликабельных тегов */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 15px;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.project-tags .tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: default;  /* Обычный курсор, не pointer */
}

/* Убираем эффекты при наведении */
.project-tags .tag:hover {
    /* Никаких изменений */
}

/* Для темной темы */
.home .project-tags .tag,
.dark-theme .project-tags .tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-tags {
        gap: 8px;
    }
    
    .project-tags .tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}



/* ===== АРХИВ АКТУАЛИТАТЕС С ФОТО ===== */
.aktualitates-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 10px;
}

.aktualitate-item {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aktualitate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--text-darker), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aktualitate-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.aktualitate-item:hover::before {
    opacity: 0.3;
}

/* Фото */
.aktualitate-thumbnail {
    flex-shrink: 0;
    width: 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-light);
}

.aktualitate-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.aktualitate-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aktualitate-item:hover .aktualitate-thumbnail img {
    transform: scale(1.05);
}

/* Контент */
.aktualitate-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aktualitate-meta {
    margin-bottom: 10px;
}

.aktualitate-date {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.6;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.aktualitate-title {
    font-size: 24px;
    color: var(--text-darker);
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.aktualitate-title a {
    color: var(--text-darker);
    text-decoration: none;
    transition: all 0.3s ease;
}

.aktualitate-title a:hover {
    color: var(--text-darker);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.aktualitate-excerpt {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.aktualitate-footer {
    margin-top: auto;
    padding-top: 15px;
}

.read-more {
    color: var(--text-darker);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .aktualitate-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .aktualitate-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .aktualitate-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .aktualitate-title {
        font-size: 20px;
    }
    
    .aktualitate-excerpt {
        font-size: 15px;
    }
}



/* Стили для некликабельных тегов в single project */
.tags-box .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-box .tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    transition: none;
}

/* Для темной темы */
.home .tags-box .tag,
.dark-theme .tags-box .tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .tags-box .tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}



/* ===== PHONE ADAPTATION: HERO + HEADER ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .fullscreen-hero {
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-content-wrapper {
        padding: 120px 0 32px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: left;
    }

    .hero-empty {
        display: none;
    }

    .hero-text-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 20px 18px;
        border-radius: 18px;
        background: rgba(0, 0, 0, 0.20);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.05;
        margin-bottom: 14px;
        letter-spacing: -0.02em;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .button,
    .button-outline {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 14px 18px;
    }

    .site-header {
        padding: 12px 0 !important;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .logo img,
    .site-header .custom-logo-link img {
        max-width: 160px !important;
        max-height: 64px !important;
    }

    .main-navigation {
        width: 100%;
    }

    .main-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .main-menu a {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Сдвиг фона под телефон, чтобы кадр смотрелся лучше */
    .hero-background img {
        object-position: 68% center !important;
        transform: scale(1.08);
    }

    .overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.28) 42%,
            rgba(0, 0, 0, 0.55) 100%
        ) !important;
    }
}

@media (max-width: 480px) {
    .fullscreen-hero {
        min-height: 100svh;
    }

    .page-title {
        margin-top: 140px;
    }
    .hero-content-wrapper {
        padding: 108px 0 24px;
    }

    .hero-text-content {
        padding: 16px;
        border-radius: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .button,
    .button-outline {
        max-width: 100%;
        font-size: 14px;
    }

    .main-menu {
        gap: 8px 12px;
    }

    .main-menu a {
        font-size: 12px;
    }

    .hero-background img {
        object-position: 72% center !important;
        transform: scale(1.12);
    }
}



@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .fullscreen-hero {
        min-height: 100svh;
        align-items: flex-end;
    }

    .hero-content-wrapper {
        padding: 120px 0 32px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
        justify-items: center;
    }

    .hero-empty {
        display: none;
    }

    .hero-text-content {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 20px 18px;
        border-radius: 18px;
        background: rgba(0, 0, 0, 0.20);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        text-align: center;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.05;
        margin-bottom: 14px;
        letter-spacing: -0.02em;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .button,
    .button-outline {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 14px 18px;
        margin-left: auto;
        margin-right: auto;
    }
}



@media (max-width: 768px) {
    .fullscreen-hero {
        min-height: 100svh;
        align-items: center !important;
    }

    .hero-content-wrapper {
        min-height: 100svh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 110px 0 30px;
    }

    .hero-grid {
        width: 100%;
        grid-template-columns: 1fr !important;
        gap: 0;
        justify-items: center;
        text-align: center;
    }

    .hero-empty {
        display: none !important;
    }

    .hero-text-content {
        width: 100%;
        max-width: 360px;
        margin: 0 auto !important;
        padding: 20px 18px;
        border-radius: 18px;
        background: rgba(0, 0, 0, 0.20);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        text-align: center !important;
    }

    .hero-title,
    .hero-description {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.08;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .button,
    .button-outline {
        display: block;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 100px 0 24px;
    }

    .hero-text-content {
        max-width: 340px;
        padding: 16px;
        border-radius: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }
}

/* ===== PAR MUMS / SUDRABA AKADEMĪJA ===== */
.about-page.about-page--academy {
    padding: 80px 0 100px;
    background-color: var(--bg-light);
    min-height: auto;
}

.about-page-container {
    max-width: 1200px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1.02fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    margin-top: 10px;
}

.about-hero-media {
    position: relative;
    height: 500px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f4f4 0%, #ececec 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.about-hero-media img,
.about-hero-media iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border: 0;
}

.about-hero-video {
    width: 100%;
    height: 100%;
}

.about-hero-placeholder {
    min-height: 420px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: rgba(17, 17, 17, 0.6);
    font-size: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 28px;
}

.about-hero-content {
    max-width: 620px;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: rgba(17, 17, 17, 0.35);
}

.about-section-title {
    margin: 0 0 24px;
    color: var(--text-darker);
    font-size: clamp(36px, 5vw, 50px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.about-lead {
    color: var(--text-dark);
}

.about-lead p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.82;
}

.about-lead p:last-child {
    margin-bottom: 0;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.about-info-card {
    padding: 30px 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.about-info-card--audience {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-info-card--goal {
    grid-column: span 8;
}

.about-info-card--tasks {
    grid-column: span 12;
}

.about-info-label {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-audience-number {
    margin-bottom: 12px;
    color: var(--text-darker);
    font-size: 72px;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.about-info-card p {
    margin: 0;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.8;
}

.about-goal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.about-goal-tags li {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--bg-offwhite);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-darker);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.about-task-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-task-list li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 26px;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.75;
}

.about-task-list li::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-darker);
    opacity: 0.88;
}

.about-task-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-hero-media,
    .about-hero-placeholder {
        min-height: 360px;
    }

    .about-info-card--audience,
    .about-info-card--goal,
    .about-info-card--tasks {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .about-page.about-page--academy {
        padding: 40px 0 60px;
    }

    .about-hero {
        gap: 24px;
        margin-top: 35px;
    }

    .about-hero-media,
    .about-hero-placeholder {
        min-height: 260px;
        border-radius: 20px;
    }

    .about-section-title {
        font-size: 30px;
    }

    .about-lead p,
    .about-info-card p,
    .about-task-list li {
        font-size: 16px;
        line-height: 1.75;
    }

    .about-info-grid {
        gap: 16px;
        margin-top: 28px;
    }

    .about-info-card {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .about-audience-number {
        font-size: 56px;
    }
}

/* ===== SINGLE AKTUALITĀTE — FINAL ===== */
.single-aktualitate .aktualitate-header {
    margin-bottom: 30px;
    text-align: left;
}

.single-aktualitate .aktualitate-title {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.2;
    text-align: left;
}

.single-aktualitate .aktualitate-content {
    padding: 0;
    display: block;
    margin-bottom: 50px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.single-aktualitate .pagelayer-grid-gallery-ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item {
    display: none;
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child {
    display: block;
    position: relative;
    width: min(100%, 440px);
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #0b1520;
    box-shadow: 0 16px 40px rgba(8, 18, 32, 0.14);
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 10;
    text-decoration: none;
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child > a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 16, 28, 0.08) 0%, rgba(7, 16, 28, 0.18) 35%, rgba(7, 16, 28, 0.48) 70%, rgba(7, 16, 28, 0.82) 100%);
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child > a::after {
    content: 'Skatīt galeriju';
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 3;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    background: rgba(19, 197, 214, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: saturate(0.96) contrast(1.03);
}

.single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child:hover img {
    transform: scale(1.08);
    filter: saturate(1) contrast(1.06);
}

@media (max-width: 767px) {
    .single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child {
        width: 100%;
        border-radius: 18px;
    }

    .single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child > a {
        border-radius: 18px;
        aspect-ratio: 16 / 11;
    }

    .single-aktualitate .pagelayer-grid-gallery-ul .pagelayer-gallery-item:first-child > a::after {
        left: 16px;
        bottom: 16px;
        padding: 8px 13px;
        font-size: 15px;
    }
}

/* ===== PIETEIKTIES ===== */
.pieteikties-page {
    padding: 80px 0;
    background-color: var(--bg-light);
    min-height: auto;
}

.pieteikties-content {
    max-width: 900px;
}

.pieteikties-text {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.85;
}

.pieteikties-text > *:first-child {
    margin-top: 0;
}

.pieteikties-text p {
    margin-bottom: 22px;
}

.pieteikties-page .services-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
}

.pieteikties-page .service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 22px 26px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    color: var(--text-darker);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.pieteikties-page .service-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.pieteikties-page .service-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .pieteikties-page {
        padding: 40px 0;
    }

    .pieteikties-content {
        max-width: 100%;
    }

    .pieteikties-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .pieteikties-page .services-buttons {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pieteikties-page .service-btn {
        width: 100%;
        min-height: 74px;
        padding: 18px 20px;
        font-size: 16px;
    }
}


/* ===== PRIVĀTUMA POLITIKA ===== */
.privacy-page {
    padding: 80px 0 100px;
    background-color: var(--bg-light);
}

.privacy-page-container {
    max-width: 1200px;
}

.privacy-content {
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 38px 42px;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.85;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.04);
}

.privacy-content > *:first-child {
    margin-top: 0;
}

.privacy-content > *:last-child {
    margin-bottom: 0;
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
    color: var(--text-darker);
    font-weight: 500;
    line-height: 1.35;
    margin: 34px 0 14px;
}

.privacy-content h2 {
    font-size: 30px;
}

.privacy-content h3 {
    font-size: 24px;
}

.privacy-content h4 {
    font-size: 20px;
}

.privacy-content p,
.privacy-content ul,
.privacy-content ol,
.privacy-content blockquote {
    margin-bottom: 18px;
}

.privacy-content ul,
.privacy-content ol {
    padding-left: 22px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-content a {
    color: var(--text-darker);
    text-underline-offset: 3px;
}

.privacy-content strong {
    color: var(--text-darker);
}

.privacy-content blockquote {
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.025);
    border-left: 3px solid var(--text-darker);
    border-radius: 0 14px 14px 0;
}

/* ===== FOOTER LEGAL LINK ===== */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-legal {
    flex-shrink: 0;
}

.footer-legal-link {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.5;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-legal-link:hover {
    color: inherit;
    opacity: 0.72;
    border-bottom-color: currentColor;
}

@media (max-width: 768px) {
    .privacy-page {
        padding: 40px 0 70px;
    }

    .privacy-content {
        padding: 26px 22px;
        border-radius: 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .privacy-content h2 {
        font-size: 26px;
    }

    .privacy-content h3 {
        font-size: 22px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .privacy-content {
        padding: 22px 18px;
    }

    .privacy-content h2 {
        font-size: 24px;
    }

    .privacy-content h3 {
        font-size: 20px;
    }
}


/* ===== JUSTIFY ДЛЯ ОСНОВНОГО ТЕКСТА ===== */
.site-main p,
.site-main li,
.site-main blockquote,
.site-main .wp-block-paragraph,
.site-main .wp-block-list,
.site-main .wp-block-quote,
.project-content,
.project-description,
.aktualitate-content,
.aktualitate-excerpt,
.about-lead p,
.about-info-card p,
.iespejas-text p,
.iespejas-text li,
.info-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* На телефоне лучше выключить, чтобы не было больших дыр между словами */
@media (max-width: 768px) {
    .site-main p,
    .site-main li,
    .site-main blockquote,
    .site-main .wp-block-paragraph,
    .site-main .wp-block-list,
    .site-main .wp-block-quote,
    .project-content,
    .project-description,
    .aktualitate-content,
    .aktualitate-excerpt,
    .about-lead p,
    .about-info-card p,
    .iespejas-text p,
    .iespejas-text li,
    .info-text {
        text-align: left;
        hyphens: none;
    }
}

/* ===== FIX: POLYLANG LANGUAGE DROPDOWN IN HEADER =====
   Polylang outputs language switcher as menu item with nested .sub-menu.
   The theme already prints wp_nav_menu() with class .main-menu, so only CSS is needed. */
.site-header,
.site-header .container,
.header-content,
.main-navigation {
    overflow: visible !important;
}

.main-navigation {
    position: relative;
    z-index: 10000;
}

.main-menu,
.main-menu ul {
    list-style: none;
}

.main-menu li {
    position: relative;
    list-style: none;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.main-menu > .menu-item-has-children > a::after,
.main-menu > .pll-parent-menu-item > a::after {
    content: "▾";
    font-size: 10px;
    line-height: 1;
    margin-left: 6px;
    opacity: 0.8;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 60px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10001;
}

.main-menu .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-menu .sub-menu li {
    display: block;
    width: 100%;
}

.main-menu .sub-menu a {
    display: block;
    padding: 9px 16px;
    color: var(--text-darker) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.3;
}

.main-menu .sub-menu a:hover {
    background: rgba(0, 0, 0, 0.06);
    opacity: 1 !important;
}

.home .main-menu .sub-menu,
.page-template-front-page .main-menu .sub-menu {
    background: rgba(30, 22, 15, 0.94);
    border-color: rgba(255, 255, 255, 0.15);
}

.home .main-menu .sub-menu a,
.page-template-front-page .main-menu .sub-menu a {
    color: #ffffff !important;
    text-shadow: none !important;
}

.home .main-menu .sub-menu a:hover,
.page-template-front-page .main-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.main-menu .sub-menu .sub-menu {
    top: 0;
    right: auto;
    left: 100%;
    transform: translateX(8px);
}

.main-menu .sub-menu li:hover > .sub-menu,
.main-menu .sub-menu li:focus-within > .sub-menu {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .main-menu .sub-menu {
        right: 50%;
        transform: translate(50%, 8px);
        min-width: 165px;
        text-align: left;
    }

    .main-menu li:hover > .sub-menu,
    .main-menu li:focus-within > .sub-menu {
        transform: translate(50%, 0);
    }

    .main-menu .sub-menu a {
        font-size: 13px;
        padding: 8px 14px;
    }
}
