/* Language dropdown styles */
.lang-dropdown {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.lang-dropdown .btn-light {
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: none;
    padding: 0.5rem 1.1rem;
    font-weight: 500;
    color: #222;
    border-radius: var(--border-radius);
    height: 40px;
    display: flex;
    align-items: center;
    min-width: 80px;
    justify-content: center;
    transition: border 0.2s, background 0.2s;
}

.lang-dropdown .btn-light:focus {
    outline: none;
    box-shadow: 0 0 0 2px #831d1d33;
    border-color: #831d1d;
}

.lang-dropdown .bi-globe2 {
    font-size: 1.25rem;
    color: #831d1d;
}

.lang-dropdown .dropdown-toggle::after {
    margin-left: 0.5em;
}

.lang-dropdown .dropdown-menu {
    min-width: 5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lang-dropdown .dropdown-item[data-lang] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.lang-dropdown .dropdown-item.active,
.lang-dropdown .dropdown-item:active {
    background-color: #f5f5f5;
    color: #222;
}

@media (max-width: 991.98px) {
    .lang-dropdown .btn-light {
        width: 100%;
        min-width: unset;
        height: 38px;
        font-size: 1rem;
    }
}

/* Ссылка на PDF сертификат */
.certificate-link {
    display: block;
    position: relative;
    transition: box-shadow 0.2s;
}

.certificate-link:hover .certificate-img {
    filter: brightness(0.85);
    box-shadow: 0 4px 24px rgba(131, 29, 29, 0.15);
}

.certificate-pdf-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 4px 8px;
    z-index: 2;
    font-size: 22px;
    color: #b80000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    pointer-events: none;
}

/* Сертификаты */
.certificate-card {
    border-radius: var(--border-radius);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.certificate-thumb {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.certificate-img {
    object-fit: contain;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    width: 100%;
    display: block;
}

.certificate-desc {
    font-size: 14px;
}

/* Картинка в blog-detail.html */
.blog-detail-img {
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

@media (max-width: 767.98px) {
    .hero-images .row>*:not(:first-child) {
        display: none !important;
    }

    .hero .hero-images .hero-img {
        height: 100%;
    }

    #cookie-banner {
        left: 15px !important;
        right: 10px !important;
        align-items: inherit !important;
    }

    .blog-photo img {
        height: 100% !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 22px;
    }

    .footer-brand,
    .footer-social-wrap,
    .footer-links {
        justify-self: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-rkn,
    .footer-requisites {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

.footer-new {
    background: #f7f7f7;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.03);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(300px, 520px) auto minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
}

.footer-brand {
    align-self: center;
}

.footer-new .logo img {
    display: block;
    max-width: 260px;
    width: auto;
    height: auto;
}

.footer-desc {
    min-width: 180px;
}

.footer-rkn {
    max-width: 430px;
    color: #222;
    font-weight: 500;
    line-height: 1.55;
}

.footer-requisites {
    color: #555;
    line-height: 1.45;
}

.footer-social-wrap {
    justify-self: center;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 0 !important;
}

.footer-social a {
    color: #831d1d;
    font-size: 1.35rem;
    line-height: 1;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--brand-color);
}

.footer-links {
    font-size: 0.98rem;
    justify-self: end;
    text-align: right;
}

.footer-copy {
    margin-bottom: 14px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.footer-links a {
    color: #222;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--brand-color);
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10001;
    min-width: 340px;
    max-width: 400px;
    background: #fff;
    color: #222;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
    padding: 32px 28px 24px 28px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    opacity: 0;
    transition: opacity 0.5s;
}

#cookie-banner.visible {
    opacity: 1;
    display: flex;
}

#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s;
    display: none;
}

#cookie-overlay.visible {
    opacity: 1;
    display: block;
}

.cookie-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.cookie-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 12px;
}

.cookie-link {
    color: var(--brand-color);
    text-decoration: underline;
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.cookie-btn {
    background: var(--brand-color);
    color: #fff;
    border: solid 1px var(--brand-color);
    border-radius: var(--border-radius);
    padding: 10px 28px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(26, 79, 255, 0.10);
    transition: background 0.2s;
    cursor: pointer;
}

.cookie-btn--secondary {
    background: #f1f1f1;
    color: #222;
    border-color: #d8d8d8;
}

.cookie-btn:hover,
.cookie-btn:focus {
    color: var(--primary-text-color);
    background-color: var(--body-color);
    border: solid 1px var(--brand-color);
}

.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus {
    background: #e5e5e5;
    color: #222;
    border-color: #c8c8c8;
}

.form-consents {
    display: grid;
    gap: 12px;
}

.form-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--secendary-text-color);
    font-size: 14px;
    line-height: 1.45;
}

.form-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-color);
}

.form-consent a,
.legal-document a {
    color: var(--brand-color);
    text-decoration: underline;
}

.legal-page {
    max-width: 1120px;
}

.legal-document {
    background: #f7f7f7;
    border-radius: var(--border-radius);
    color: #222;
    line-height: 1.7;
    padding: 40px;
}

.legal-document h2,
.legal-document h3 {
    color: var(--primary-text-color);
    text-transform: none;
}

.legal-document h2 {
    margin-bottom: 28px;
}

.legal-document h3 {
    margin-top: 28px;
    margin-bottom: 14px;
}

.btn.more,
.review-toggle {
    text-decoration: none;
    margin-top: 10px;
    padding: 5px 10px;
    background: none;
    color: var(--brand-color);
    float: right;
    margin-left: 16px;
}

.privacy .video-section,
.privacy .video-section .block {
    border-radius: var(--border-radius);
}

.video-section {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section .text-white {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-section button {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.video-section .block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.58);
}

.blog-photo {
    height: 300px;
    position: relative;
}

.blog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.ved-card h2,
.ved-detail h1 {
    text-transform: none;
}

.ved-card__image,
.ved-detail__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.ved-card__image-link {
    display: block;
    margin-bottom: 22px;
}

.ved-card__text {
    font-size: 17px;
    line-height: 1.65;
}

.ved-card__text p:last-child,
.ved-card__text ul:last-child {
    margin-bottom: 0;
}

.ved-card__text ul {
    padding-left: 1.2rem;
}

.ved-card__text li {
    margin-bottom: 8px;
}

/* Fix: язык-меню поверх всего */
.header .navbar { overflow: visible; }
.header .lang-dropdown { position: relative; z-index: 2001; }
.header .lang-dropdown .dropdown-menu { z-index: 2002 !important; }
