/* =============================================
   РЕДІКОН — Shared Components CSS
   Header, Navigation (dropdown), Sidebar,
   Lead Form, Footer, Breadcrumbs, Page Layout
   ============================================= */

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f2f2f2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === BUTTONS (shared) === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-gold {
    background: #e3ae62;
    color: #1a1a2e;
    border-color: #e3ae62;
}

.btn-gold:hover {
    background: #d49a4e;
    border-color: #d49a4e;
    color: #1a1a2e;
}

.btn-outline {
    background: transparent;
    color: #e3ae62;
    border-color: #e3ae62;
}

.btn-outline:hover {
    background: #e3ae62;
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-full {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px;
}

/* =============================================
   SITE HEADER
   ============================================= */
/* CLS fix: reserve space for JS-injected header */
#rc-header-mount {
    min-height: 80px;
}

#rc-nav-mount {
    min-height: 46px;
    background: #1a1a2e;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a4a4a;
    line-height: 1.5;
    max-width: 140px;
}

.hdr-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hdr-icon {
    flex-shrink: 0;
}

.hdr-icon svg {
    display: block;
}

.hdr-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hdr-addr {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.hdr-phones {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.hdr-phones a {
    color: #333;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    transition: color 0.2s;
}

.hdr-phones a:hover {
    color: #e3ae62;
}

.hdr-link {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.hdr-link:hover {
    color: #e3ae62;
}

.hdr-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hdr-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f2f2;
    transition: background 0.2s;
}

.hdr-social a:hover {
    background: #e3ae62;
}

.hdr-social a:hover svg {
    fill: #fff;
}

.hdr-social svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.2s;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switch .lang-icon {
    display: flex;
    align-items: center;
}

.lang-switch .lang-icon svg {
    width: 24px;
    height: 24px;
}

.lang-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-links a {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #595959;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: all 0.2s;
    text-align: center;
}

.lang-links a:hover {
    color: #e3ae62;
    border-color: #e3ae62;
}

.lang-links a.active {
    color: #1a1a2e;
    border-color: #1a1a2e;
    font-weight: 700;
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle i {
    display: block;
    width: 26px;
    height: 2px;
    background: #1a1a2e;
    transition: all 0.3s;
}

/* =============================================
   NAVIGATION BAR — with dropdown menus
   ============================================= */
.site-nav {
    background: #1a1a2e;
    position: relative;
    z-index: 90;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
}

/* Top-level nav items */
.rc-nav-item {
    position: relative;
}

.rc-nav-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.rc-nav-item > a:hover {
    color: #e3ae62;
    background: rgba(255, 255, 255, 0.05);
}

.rc-nav-item > a.nav-active {
    color: #e3ae62;
}

/* Dropdown chevron */
.rc-nav-chevron {
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: transform 0.3s;
    flex-shrink: 0;
}

/* Dropdown submenu */
.rc-nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 260px;
    border-top: 2px solid #e3ae62;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.rc-nav-sub a {
    display: block;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rc-nav-sub a:last-child {
    border-bottom: none;
}

.rc-nav-sub a:hover {
    color: #e3ae62;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 26px;
}

/* Desktop hover: show submenu */
@media (min-width: 922px) {
    .rc-nav-item:hover > .rc-nav-sub {
        display: block;
    }
    .rc-nav-item:hover > a .rc-nav-chevron {
        transform: rotate(180deg);
    }
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.breadcrumbs .container {
    font-size: 13px;
    color: #595959;
}

.breadcrumbs a {
    color: #595959;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #e3ae62;
}

.breadcrumbs span {
    color: #333;
}

/* =============================================
   PAGE LAYOUT — Single column (centered article)
   ============================================= */
.page-layout {
    padding: 30px 0 60px;
    background: #f2f2f2;
}

.page-layout > .container {
    max-width: 900px;
}

/* =============================================
   INLINE LEAD CAPTURE FORM (inside article body)
   ============================================= */
.rc-inline-form {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 32px 36px 28px;
    margin: 0 0 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.rc-inline-form__header {
    text-align: center;
    margin-bottom: 20px;
}

.rc-inline-form__title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.rc-inline-form__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
    line-height: 1.5;
}

.rc-inline-form__checks {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rc-inline-form__check {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.rc-inline-form__check::before {
    content: '\2713';
    color: #e3ae62;
    margin-right: 5px;
    font-weight: 700;
}

.rc-inline-form__form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.rc-inline-form__input {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.rc-inline-form__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rc-inline-form__input:focus {
    border-color: #e3ae62;
    background: rgba(255, 255, 255, 0.12);
}

.rc-inline-form__btn {
    padding: 14px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    background: linear-gradient(135deg, #e3ae62, #d49a4e);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rc-inline-form__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.rc-inline-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rc-inline-form__trust {
    margin-top: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rc-inline-form__status {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
}

.rc-inline-form__status.error {
    display: block;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.rc-inline-form__status.success {
    display: block;
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

/* =============================================
   ARTICLES INDEX — Card Grid
   ============================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 30px 0 60px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}

.article-card__body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.article-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-card__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e3ae62;
    transition: color 0.2s;
}

.article-card__link:hover {
    color: #d49a4e;
}

.article-card__link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* =============================================
   SITE FOOTER
   ============================================= */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-logo p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e3ae62;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #e3ae62;
}

.footer-contacts p,
.footer-contacts a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contacts a {
    display: inline;
}

.footer-contacts a:hover {
    color: #e3ae62;
}

.footer-contacts .footer-schedule {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    padding: 0;
}

.footer-social a:hover {
    background: #e3ae62;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.footer-messengers {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-messengers a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s;
    padding: 0;
}

.footer-messengers a:hover {
    transform: scale(1.1);
}

.footer-messengers svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   SUCCESS MODAL
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-icon svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.modal-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal-box .btn {
    font-size: 13px;
    padding: 12px 24px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .site-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hdr-col.hdr-address,
    .hdr-col.hdr-phone {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .site-nav-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .rc-nav-item > a {
        padding: 12px 12px;
        font-size: 12px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .rc-inline-form__form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav-inner {
        flex-direction: column;
    }

    .rc-nav-item > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 13px;
    }

    /* Mobile: submenus toggle via JS */
    .rc-nav-sub {
        position: static;
        min-width: 100%;
        border-top: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .rc-nav-sub a {
        padding-left: 40px;
        font-size: 12px;
    }

    .rc-nav-sub a:hover {
        padding-left: 46px;
    }

    /* Mobile: chevron toggles sub visibility */
    .rc-nav-item .rc-nav-sub {
        display: none;
    }

    .rc-nav-item.open > .rc-nav-sub {
        display: block;
    }

    .rc-nav-item.open > a .rc-nav-chevron {
        transform: rotate(180deg);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hdr-social {
        display: none;
    }

    .rc-inline-form {
        padding: 24px 20px 20px;
    }

    .rc-inline-form__title {
        font-size: 17px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}
