html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* CSS Переменные для светлой и тёмной темы */
:root {
    --bg-primary: #f8f9fa;
    --text-primary: #111;
    --header-bg-light: #000;
    --header-text: #fff;
    --header-bg-dark: #f0f0f0;
    --header-text-dark: #000;
    --card-bg: #ffffff;
    --border-color: #ddd;
    --container-max-width: 1400px;
}

.dark-theme {
    --bg-primary: #1a1a1a;
    --text-primary: #eee;
    --header-bg-light: var(--header-bg-dark);
    --header-text: var(--header-text-dark);
    --card-bg: #2a2a2a;
    --border-color: #444;
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Плавные переходы между страницами */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.8s;
    animation-timing-function: ease-in-out;
}

::view-transition-old(root) {
    animation-name: fade-out;
}

::view-transition-new(root) {
    animation-name: fade-in;
}

@keyframes fade-out {
    to { opacity: 0; transform: scale(0.98); }
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.98); }
}

/* Фиксированная шапка сайта */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--header-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%;
    z-index: 1000;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark-theme .fixed-header {
    background: rgba(240, 240, 240, 0.6);
}

.header-container {
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.fixed-header .logo img {
    height: 70px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--header-text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
}

.nav-menu a {
    color: var(--header-text);
    margin-left: 1.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #689F38;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.theme-switcher {
    display: flex;
    padding: 0.1875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 9999px;
    gap: 0.25rem;
    flex-shrink: 0;
}

.dark-theme .theme-switcher {
    background: rgba(0, 0, 0, 0.2);
}

.theme-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
}

.theme-btn:last-child {
    margin-right: 0;
}

.theme-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .theme-btn.active {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.3);
}

.theme-btn svg {
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease;
}

.theme-btn.active svg {
    fill: #333;
}

.dark-theme .theme-btn.active svg {
    fill: #fff;
}

.theme-btn:hover svg {
    fill: rgba(255, 255, 255, 1);
}

.theme-btn.active:hover svg {
    fill: #689F38;
}

/* HERO SECTION — Полная ширина без обрезки по высоте */
.hero-slideshow {
    position: relative;
    height: 100vh;
    width: 100%;
    padding-top: 100px;
    background: url('/static/img/background4.jpg') center center / cover no-repeat;
    background-size: cover;
    background-position: center center;
    transition: background-image 0.5s ease-in-out;
}

/* Адаптивные фоновые изображения для мобильных устройств */
@media (max-width: 768px) {
    .hero-slideshow {
        height: 50vh;
        min-height: 400px;
        background-size: cover;
        background-attachment: scroll;
        background-position: center;
        /* Используем более легкие изображения на мобильных */
        background-image: url('/static/img/background4.jpg') !important;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        height: 45vh;
        min-height: 350px;
    }
}

/* Затемнение фона для лучшей читаемости текста */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 770px;
    width: 90%;
    padding: 1.82rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10.92px;
    backdrop-filter: blur(4px);
    box-shadow: 0 3.64px 18.2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.275rem;
    margin-bottom: 0.91rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
    transition: opacity 0.5s ease-in-out;
}

.hero-content p {
    margin-bottom: 1.365rem;
    font-size: 1.183rem;
    text-align: left;
    line-height: 1.5;
    transition: opacity 0.5s ease;
}

/* Кнопки */
.btn {
    background: #689F38;
    color: white;
    padding: 0.728rem 1.365rem;
    border: none;
    border-radius: 5.46px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 0.819rem;
}

.btn:hover {
    background: #558B2F;
    transform: translateY(-2px);
}

/* Основные секции сайта */
.section {
    padding: 6.5rem 2.6rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: var(--bg-primary);
    position: relative;
    width: 100%;
}

.page-section {
    margin-top: 100px;
    min-height: 60vh;
}

.page-section h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 3.25rem;
    margin-bottom: 3.25rem;
    text-align: center;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .page-section h2 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 2.275rem;
        margin-bottom: 2.275rem;
    }
    
    .section {
        padding: 3.9rem 1.3rem;
    }
    
    .hero-content {
        padding: 1.365rem;
        width: 95%;
    }
    
    .hero-content h1 {
        font-size: 1.5925rem;
    }
    
    .hero-content p {
        font-size: 0.8281rem;
    }
}

/* Форма обратной связи */
.contact-form-section {
    max-width: 780px;
    margin: 3.9rem auto 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.56rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.3rem;
    border: 1.3px solid var(--border-color);
    border-radius: 10.4px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1.43rem;
}

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

.contact-form .btn {
    align-self: center;
    padding: 1.3rem 2.6rem;
    font-size: 1.43rem;
}

/* Контакты */
.contact-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.25rem;
}

@media (min-width: 768px) {
    .contact-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

.block h3 {
    margin-bottom: 1.3rem;
    color: var(--text-primary);
    font-size: 1.56rem;
}

.block form input,
.block form textarea {
    width: 100%;
    padding: 1.04rem;
    margin-bottom: 1.3rem;
    border: 1.3px solid var(--border-color);
    border-radius: 7.8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1.3rem;
}

.block form input:focus,
.block form textarea:focus {
    outline: 2.6px solid #689F38;
    border-color: transparent;
}

/* Подвал сайта */
footer {
    padding: 3.25rem 2.6rem;
    background: var(--header-bg-light);
    color: var(--header-text);
    font-size: 1.235rem;
    margin-top: 2.6rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.6rem;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 0.52rem 0;
}

.footer-links {
    display: flex;
    gap: 2.6rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 1.17rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Адаптивность под мобильные устройства */
@media (max-width: 1024px) {
    .fixed-header {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .nav-menu a {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    .fixed-header {
        padding: 0.8rem 1rem;
    }
    
    .header-container {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg-light);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .mobile-contact-info {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-contact-info a {
        color: var(--header-text);
        text-decoration: none;
        font-size: 0.9rem;
        padding: 0.3rem 0;
        opacity: 0.9;
    }
    
    .mobile-contact-info a:hover {
        opacity: 1;
        text-decoration: underline;
    }
    
    .fixed-header .logo {
        order: 1;
    }
    
    .theme-switcher {
        order: 2;
        margin: 0;
    }

    .section h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .contact-blocks {
        grid-template-columns: 1fr;
        gap: 2.6rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.95rem;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fixed-header {
        padding: 0.6rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    .section {
        padding: 2.6rem 1.04rem;
    }
    
    .section h2 {
        font-size: 1.56rem;
    }
    
    .btn {
        padding: 0.91rem 1.56rem;
        font-size: 1.17rem;
    }
    
    .block form input,
    .block form textarea {
        font-size: 1.17rem;
        padding: 0.91rem;
    }
    
    footer {
        padding: 2.6rem 1.3rem;
        font-size: 1.105rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.3rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 2.6px solid var(--border-color);
    padding: 1.95rem;
    z-index: 9999;
    box-shadow: 0 -5.2px 26px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.6rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.235rem;
}

.cookie-content a {
    color: #689F38;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1.3rem;
}

.cookie-accept {
    background: #689F38;
}

.cookie-decline {
    background: #666;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ===== НОВОСТИ С КАРТИНКОЙ СПРАВА ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.95rem;
}

.news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item {
    border: 2.6px solid transparent;
    transition: all 0.3s ease;
    background: var(--card-bg);
    padding: 1.95rem;
    border-radius: 10.4px;
    box-shadow: 0 2.6px 10.4px rgba(0, 0, 0, 0.1);
}

.news-item-link:hover .news-item {
    border-color: #689F38;
    background: rgba(104, 159, 56, 0.1);
    transform: translateY(-2.6px);
    box-shadow: 0 5.2px 15.6px rgba(0, 0, 0, 0.15);
}

.news-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.95rem;
    width: 100%;
}

.news-text {
    flex: 1;
    min-width: 0;
}

.news-text h3 {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.56rem;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    display: block;
    transition: color 0.3s ease;
    margin: 0;
}

.news-item-link:hover .news-text h3 {
    color: #689F38;
}

.news-image-right {
    flex-shrink: 0;
    width: 260px;
    height: 195px;
    overflow: hidden;
    border-radius: 10.4px;
    transition: all 0.3s ease;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-link:hover .news-image {
    transform: scale(1.05);
}

.news-item-link:hover .news-image-right {
    border-color: #689F38;
}

/* ===== ДЕТАЛЬНАЯ СТРАНИЦА НОВОСТИ ===== */
h2.news-detail-title {
    color: var(--text-primary);
    font-size: 1.8rem !important;
    margin-bottom: 2.6rem;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.news-detail-content-wrapper {
    display: flex;
    gap: 2.6rem;
    align-items: flex-start;
    margin-bottom: 2.6rem;
}

.news-detail-text {
    flex: 1;
    min-width: 0;
}

.news-detail-text p {
    margin-bottom: 1.95rem;
    line-height: 1.6;
    text-align: justify;
    color: var(--text-primary);
    font-size: 1.43rem;
}

.news-detail-text a {
    color: #689F38;
    text-decoration: none;
    font-weight: 500;
}

.news-detail-text a:hover {
    text-decoration: underline;
}

.news-detail-images {
    flex-shrink: 0;
    width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1.95rem;
}

.news-detail-image-container {
    width: 100%;
    border-radius: 10.4px;
    overflow: hidden;
    box-shadow: 0 2.6px 10.4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-detail-image-container:hover {
    transform: translateY(-6.5px);
    box-shadow: 0 5.2px 15.6px rgba(0, 0, 0, 0.15);
}

.news-detail-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.back-btn {
    margin-top: 2.6rem;
    display: inline-block;
}

/* ОБЩИЕ СТИЛИ ДЛЯ ЗАГОЛОВКОВ */
.page-section h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.news-title-justify {
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* ===== ФОРМА ОТКЛИКА НА ВАКАНСИИ ===== */
.respond-btn {
    margin-top: 1.3rem;
    background: #4CAF50;
}

.respond-btn:hover {
    background: #45a049;
}

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1.3rem;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15.6px;
    padding: 2.6rem;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 13px 39px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    background: none;
    border: none;
    font-size: 2.6rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #689F38;
}

.modal-content h3 {
    margin-bottom: 1.95rem;
    color: var(--text-primary);
    font-size: 1.95rem;
    padding-right: 2.6rem;
}

/* ФОРМА ВАКАНСИИ */
.vacancy-form {
    display: flex;
    flex-direction: column;
    gap: 1.56rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.235rem;
}

.form-group label::after {
    content: ' *';
    color: #ff4444;
}

.checkbox-group {
    margin: 1.3rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 1.04rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-primary);
    font-weight: normal;
}

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

.vacancy-form input,
.vacancy-form textarea {
    width: 100%;
    padding: 1.04rem 1.3rem;
    border: 1.3px solid var(--border-color);
    border-radius: 7.8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: border-color 0.3s ease;
}

.vacancy-form input:focus,
.vacancy-form textarea:focus {
    outline: none;
    border-color: #689F38;
    box-shadow: 0 0 0 2.6px rgba(104, 159, 56, 0.2);
}

.form-footer {
    margin-top: 1.3rem;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 1.3rem;
    font-size: 1.43rem;
    background: #4CAF50;
}

.submit-btn:hover {
    background: #45a049;
}

.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* МОДАЛЬНОЕ ОКНО УСПЕХА */
.success-modal {
    text-align: center;
    max-width: 520px;
}

.success-modal h3 {
    color: #4CAF50;
    margin-bottom: 1.3rem;
}

.success-modal p {
    margin-bottom: 1.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* АДАПТИВНОСТЬ ФОРМЫ */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.95rem;
        max-width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.69rem;
    }
    
    .vacancy-form input,
    .vacancy-form textarea {
        padding: 0.91rem;
        font-size: 1.235rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.56rem;
    }
    
    .modal-content h3 {
        font-size: 1.56rem;
    }
}

/* ===== НОВЫЙ СТИЛЬ ДЛЯ ПОРТФОЛИО С СЕТКОЙ - УВЕЛИЧЕН НА 30% ===== */
.portfolio-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 2.6rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2.6rem;
}

@media (max-width: 1400px) {
    .portfolio-grid-new {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .portfolio-grid-new {
        max-width: 1000px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid-new {
        max-width: 600px;
        grid-template-columns: 1fr;
        padding: 0 1.95rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid-new {
        padding: 0 1.3rem;
    }
}

.portfolio-item-new {
    position: relative;
    border-radius: 10.4px;
    overflow: hidden;
    height: 325px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 5.2px 10.4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item-new:hover {
    transform: translateY(-6.5px);
    box-shadow: 0 10.4px 20.8px rgba(0, 0, 0, 0.2);
}

.portfolio-image-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-image-new[src*="logo.png"] {
    object-fit: contain;
    background: #f5f5f5;
}

.dark-theme .portfolio-image-new[src*="logo.png"] {
    background: #333;
}

.portfolio-item-new:hover .portfolio-image-new {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 26px 19.5px 19.5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.portfolio-item-new:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portfolio-title-new {
    font-size: 1.43rem;
    font-weight: bold;
    margin-bottom: 6.5px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.portfolio-year {
    color: #8BC34A;
    font-weight: 500;
    margin-bottom: 10.4px;
    font-size: 1.17rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.portfolio-description {
    font-size: 1.105rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.portfolio-type {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 5.2px 10.4px;
    border-radius: 5.2px;
    font-size: 0.975rem;
    font-weight: 500;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    backdrop-filter: blur(2px);
}

.portfolio-type.completed {
    background: rgba(104, 159, 56, 0.9);
}

.portfolio-type.current {
    background: rgba(33, 150, 243, 0.9);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 13px;
    margin-bottom: 2.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10.4px 20.8px;
    border: 2.6px solid #689F38;
    background: transparent;
    color: #689F38;
    border-radius: 7.8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.17rem;
}

.dark-theme .filter-btn {
    border-color: #8BC34A;
    color: #8BC34A;
}

.filter-btn:hover,
.filter-btn.active {
    background: #689F38;
    color: white;
}

.dark-theme .filter-btn:hover,
.dark-theme .filter-btn.active {
    background: #8BC34A;
    color: #000;
}

.portfolio-info {
    text-align: center;
    margin-bottom: 2.6rem;
    color: var(--text-primary);
}

.portfolio-info p {
    margin: 6.5px 0;
    font-size: 1.43rem;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ВАКАНСИЙ - УВЕЛИЧЕНЫ НА 30% ===== */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 26px;
    margin-top: 2.6rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2.6rem;
}

.vacancy-card {
    grid-column: span 2;
}

.vacancy-card:nth-child(4):last-child {
    grid-column: 3 / 5;
}

.vacancy-card:nth-child(4):nth-last-child(2) {
    grid-column: 2 / 4;
}

.vacancy-card:nth-child(5):last-child {
    grid-column: 4 / 6;
}

@media (max-width: 1400px) {
    .vacancies-grid {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .vacancies-grid {
        max-width: 1000px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vacancies-grid {
        max-width: 600px;
        grid-template-columns: 1fr;
        padding: 0 1.95rem;
    }
}

.vacancy-card {
    background: var(--card-bg);
    border-radius: 10.4px;
    padding: 20px;
    box-shadow: 0 5.2px 10.4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1.3px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.vacancy-card:hover {
    transform: translateY(-6.5px);
    box-shadow: 0 10.4px 20.8px rgba(0, 0, 0, 0.15);
    border-color: #689F38;
}

.vacancy-title {
    font-size: 1.56rem;
    font-weight: bold;
    margin-bottom: 19.5px;
    color: var(--text-primary);
    border-bottom: 2.6px solid #689F38;
    padding-bottom: 13px;
}

.vacancy-details {
    flex-grow: 1;
}

.vacancy-detail {
    margin-bottom: 10.4px;
    font-size: 1.17rem;
    color: var(--text-primary);
}

.vacancy-detail strong {
    color: #689F38;
}

.dark-theme .vacancy-detail strong {
    color: #8BC34A;
}

.vacancy-actions {
    margin-top: 19.5px;
    text-align: center;
}

.respond-btn {
    background: #689F38;
    color: white;
    border: none;
    padding: 10.4px 20.8px;
    border-radius: 7.8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
    font-size: 1.17rem;
}

.respond-btn:hover {
    background: #558B2F;
}

.vacancies-info {
    text-align: center;
    margin-bottom: 2.6rem;
    color: var(--text-primary);
}

.vacancies-info p {
    margin: 6.5px 0;
    font-size: 1.43rem;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ - УВЕЛИЧЕНЫ НА 30% ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32.5px;
    margin-top: 2.6rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2.6rem;
}

@media (max-width: 1100px) {
    .services-grid {
        max-width: 1000px;
    }
}

@media (max-width: 850px) {
    .services-grid {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        max-width: 500px;
        grid-template-columns: 1fr;
        padding: 0 1.95rem;
    }
}

.service-card {
    background: var(--card-bg);
    border-radius: 10.4px;
    padding: 32.5px;
    box-shadow: 0 5.2px 10.4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1.3px solid var(--border-color);
    width: 100%;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6.5px);
    box-shadow: 0 10.4px 20.8px rgba(0, 0, 0, 0.15);
    border-color: #689F38;
}

.service-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5.2px;
    background: linear-gradient(90deg, #689F38, #8BC34A);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #689F38, #8BC34A);
    border-radius: 10.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 19.5px;
}

.service-icon svg {
    width: 31.2px;
    height: 31.2px;
    fill: white;
}

.service-title {
    font-size: 1.69rem;
    font-weight: bold;
    margin-bottom: 19.5px;
    color: var(--text-primary);
}

.service-description {
    font-size: 1.3rem;
    line-height: 2.08;
    color: var(--text-primary);
    opacity: 0.9;
}

.service-features {
    margin-top: 19.5px;
    padding-left: 26px;
}

.service-feature {
    margin-bottom: 10.4px;
    font-size: 1.17rem;
    color: var(--text-primary);
    opacity: 0.8;
    position: relative;
}

.service-feature::before {
    content: '✓';
    position: absolute;
    left: -26px;
    color: #689F38;
    font-weight: bold;
}

.dark-theme .service-feature::before {
    color: #8BC34A;
}

.services-info {
    text-align: center;
    margin-bottom: 2.6rem;
    color: var(--text-primary);
}

.services-info p {
    margin: 6.5px 0;
    font-size: 1.43rem;
}

/* АДАПТИВНОСТЬ ДЛЯ ВСЕХ СЕКЦИЙ */
@media (max-width: 768px) {
    /* Адаптивность для новостей */
    .news-content-wrapper {
        flex-direction: column;
        gap: 1.3rem;
    }
    
    .news-image-right {
        width: 100%;
        height: 234px;
        order: -1;
    }
    
    .news-text h3 {
        font-size: 1.43rem;
        text-align: left;
    }
    
    /* Адаптивность для детальной страницы новости */
    .news-detail-content-wrapper {
        flex-direction: column;
        gap: 2.6rem;
    }
    
    .news-detail-images {
        width: 100%;
        order: -1;
    }
    
    .news-detail-title {
        font-size: 1.95rem;
        text-align: left;
    }
    
    .news-detail-text p {
        text-align: left;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 1.69rem;
    }
    
    .news-detail-images {
        width: 100%;
    }
}

/* СКРЫТЫЙ КЛАСС ДЛЯ ФИЛЬТРАЦИИ */
.hidden {
    display: none !important;
}

/* Стили для иконок мессенджеров */
.messenger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: var(--header-text);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.messenger-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.messenger-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

footer .messenger-icon {
    color: var(--header-text);
}

@media (max-width: 768px) {
    .mobile-contact-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .mobile-contact-info .messenger-icon {
        margin-left: 5px;
    }
}
