/* ============================================
   HEADER
   ============================================ */
.fc-header { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 1px 0 var(--fc-border); }
.fc-header__top { background: var(--fc-bg); border-bottom: 1px solid var(--fc-border); font-size: 13px; color: var(--fc-gray); }
.fc-header__top-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 24px; }
.fc-header__top-left, .fc-header__top-right { display: flex; align-items: center; gap: 20px; }
.fc-header__info { display: inline-flex; align-items: center; gap: 6px; color: var(--fc-gray); transition: color .2s; }
.fc-header__info:hover { color: var(--fc-navy); }
.fc-header__phone { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fc-font-head); font-weight: 700; color: var(--fc-navy); white-space: nowrap; font-size: 13px; }
.fc-header__socials { display: flex; gap: 8px; }
.fc-header__socials a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--fc-navy); transition: all .2s; }
.fc-header__socials a:hover { background: var(--fc-navy); color: #fff; }
.fc-header__callback { padding: 6px 14px; background: transparent; border: 1px solid var(--fc-red); color: var(--fc-red); border-radius: 50px; font-size: 12px; font-weight: 700; font-family: var(--fc-font-head); cursor: pointer; transition: all .2s; }
.fc-header__callback:hover { background: var(--fc-red); color: #fff; }
.fc-header__main-inner {
    display: flex !important;
    align-items: center !important; /* Центрируем по вертикали */
    gap: 24px !important;
    height: 80px !important;
}

.fc-header__logo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.fc-header__logo img {
    max-height: 44px !important; /* Чуть уменьшили */
    width: auto !important;
    display: block !important;
}
.fc-header__catalog-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: #fff; border: 1px solid var(--fc-border); border-radius: 10px; font-family: var(--fc-font-head); font-weight: 700; font-size: 15px; color: var(--fc-navy); cursor: pointer; transition: all .2s; }
.fc-header__catalog-btn:hover { border-color: var(--fc-navy); color: var(--fc-red); }
.fc-burger { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.fc-burger span { height: 2px; background: currentColor; border-radius: 1px; }
.fc-header__search { flex: 1; max-width: 520px; position: relative; }
.fc-header__search input { width: 100%; height: 46px; padding: 0 20px; border: 1px solid var(--fc-border); border-radius: 10px; background: var(--fc-bg); font-family: inherit; font-size: 15px; transition: all .2s; box-sizing: border-box; }
.fc-header__search input:focus { outline: none; border-color: var(--fc-navy); background: #fff; }
.fc-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.fc-header__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--fc-navy); transition: color .2s; }
.fc-header__icon:hover { color: var(--fc-red); }
.fc-header__cart-count { position: absolute; top: 0; right: 0; background: var(--fc-red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.fc-header__burger { display: none; flex-direction: column; gap: 5px; width: 28px; background: none; border: none; cursor: pointer; padding: 6px; }
.fc-header__burger span { height: 2px; background: var(--fc-navy); border-radius: 1px; transition: transform .3s; }
.fc-header__nav { border-top: 1px solid var(--fc-border); background: #fff; }
.fc-menu { display: flex; align-items: center; justify-content: center; gap: 40px; list-style: none; margin: 0; padding: 0; height: 52px; }
.fc-menu li { position: relative; }
.fc-menu a { font-family: var(--fc-font-head); font-weight: 600; font-size: 15px; color: var(--fc-navy); transition: color .2s; }
.fc-menu a:hover { color: var(--fc-red); }
.fc-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: var(--fc-shadow); padding: 12px 0; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s; z-index: 99; }
.fc-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fc-menu .sub-menu a { display: block; padding: 8px 20px; font-weight: 500; font-size: 14px; }
.fc-menu .sub-menu a:hover { background: var(--fc-bg); color: var(--fc-red); }

/* DROPDOWN КАТАЛОГА */
.fc-header__catalog-wrap { position: relative; }
.fc-catalog-dropdown { position: absolute; top: 100%; left: 0; width: 300px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(10, 42, 94, .12); padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s; z-index: 99; margin-top: 4px; }
.fc-header__catalog-wrap:hover .fc-catalog-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.fc-catalog-dropdown__list { list-style: none; margin: 0; padding: 0; }
.fc-catalog-dropdown__item { position: relative; }
.fc-catalog-dropdown__item > a { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; font-family: var(--fc-font-head); font-weight: 600; font-size: 14px; color: var(--fc-navy); transition: all .2s; }
.fc-catalog-dropdown__item > a:hover { background: var(--fc-bg); color: var(--fc-red); }
.fc-catalog-dropdown__arrow { color: var(--fc-gray); font-size: 18px; }
.fc-catalog-dropdown__sub { position: absolute; top: 0; left: 100%; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(10, 42, 94, .12); padding: 12px 0; list-style: none; margin: 0 0 0 4px; opacity: 0; visibility: hidden; transform: translateX(-8px); transition: all .25s; }
.fc-catalog-dropdown__item.has-children:hover > .fc-catalog-dropdown__sub { opacity: 1; visibility: visible; transform: translateX(0); }
.fc-catalog-dropdown__sub a { display: block; padding: 10px 24px; font-family: var(--fc-font-body); font-weight: 500; font-size: 13px; color: var(--fc-navy); transition: all .2s; }
.fc-catalog-dropdown__sub a:hover { background: var(--fc-bg); color: var(--fc-red); }

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */
.fc-mobile-menu { position: fixed; top: 0; right: 0; width: 320px; max-width: 90vw; height: 100vh; background: #fff; z-index: 9999; transform: translateX(100%); transition: transform .35s cubic-bezier(.7,0,.3,1); box-shadow: -8px 0 32px rgba(0,0,0,.1); overflow-y: auto; }
.fc-mobile-menu.is-open { transform: translateX(0); }
.fc-mobile-menu__inner { padding: 24px; }
.fc-mobile-menu__close { display: block; margin-left: auto; width: 40px; height: 40px; background: none; border: none; font-size: 32px; color: var(--fc-navy); cursor: pointer; line-height: 1; }
.fc-mobile-menu__catalog { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--fc-navy); color: #fff !important; border-radius: 10px; font-family: var(--fc-font-head); font-weight: 700; font-size: 16px; margin-bottom: 16px; justify-content: center; }
.fc-mobile-menu__search { margin-bottom: 20px; position: relative; }
.fc-mobile-menu__search input { width: 100%; padding: 12px 16px; border: 1px solid var(--fc-border); border-radius: 10px; font-family: inherit; font-size: 15px; background: var(--fc-bg); box-sizing: border-box; }
.fc-mobile-menu__search input:focus { outline: none; border-color: var(--fc-navy); background: #fff; }
.fc-mobile-menu__list { list-style: none; margin: 20px 0 0; padding: 0; }
.fc-mobile-menu__list li { border-bottom: 1px solid var(--fc-border); }
.fc-mobile-menu__list a { display: block; padding: 14px 0; font-family: var(--fc-font-head); font-weight: 600; font-size: 16px; color: var(--fc-navy); }
.fc-mobile-menu__contacts { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.fc-mobile-menu__contacts a { font-family: var(--fc-font-head); font-weight: 700; color: var(--fc-navy); }
.fc-mobile-menu__socials { display: flex; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--fc-border); }
.fc-mobile-menu__socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fc-bg); color: var(--fc-navy); transition: all .2s; }
.fc-mobile-menu__socials a:hover { background: var(--fc-navy); color: #fff; }
body.fc-menu-open { overflow: hidden; }

/* ============================================
   FOOTER
   ============================================ */
.fc-footer { background: var(--fc-navy); color: #fff; }
.fc-footer__top { padding: 72px 0 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.fc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.fc-footer__logo img { max-height: 48px; width: auto; display: block; margin-bottom: 20px; }
.fc-footer__desc { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.65; margin: 0 0 24px; }
.fc-footer__socials { display: flex; gap: 10px; }
.fc-footer__socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: all .2s; }
.fc-footer__socials a:hover { background: var(--fc-red); transform: translateY(-2px); }
.fc-footer__title { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 20px; position: relative; padding-bottom: 12px; }
.fc-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--fc-red); border-radius: 1px; }
.fc-footer__list { list-style: none; margin: 0; padding: 0; }
.fc-footer__list li { margin-bottom: 10px; }
.fc-footer__list a { color: rgba(255,255,255,.75); font-size: 14px; transition: all .2s; }
.fc-footer__list a:hover { color: #fff; padding-left: 4px; }
.fc-footer__contacts li a { font-weight: 600; color: #fff; }
.fc-footer__address { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; margin-top: 12px !important; }
.fc-footer__hours { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.fc-footer__callback { margin-top: 24px; padding: 12px 28px; font-size: 14px; }
.fc-footer__bottom { padding: 24px 0; }
.fc-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.fc-footer__copy { color: rgba(255,255,255,.55); font-size: 13px; }
.fc-footer__links { display: flex; gap: 24px; }
.fc-footer__links a { color: rgba(255,255,255,.55); font-size: 13px; transition: color .2s; }
.fc-footer__links a:hover { color: #fff; }

/* ============================================
   МОДАЛЬНЫЕ ОКНА (ФИНАЛЬНЫЙ ФИКС)
   ============================================ */
.fc-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    box-sizing: border-box;
}

.fc-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.fc-modal__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 42, 94, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Само белое окно */
.fc-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    padding: 40px 36px 36px;
    transform: translateY(20px) scale(0.96);
    transition: transform .3s cubic-bezier(.7,0,.3,1);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-sizing: border-box;
}

.fc-modal.is-open .fc-modal__dialog {
    transform: translateY(0) scale(1);
}

/* Кнопка закрытия */
.fc-modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--fc-bg);
    border: none;
    color: var(--fc-navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
    padding: 0;
    padding-bottom: 2px;
}

.fc-modal__close:hover {
    background: var(--fc-red);
    color: #fff;
    transform: rotate(90deg);
}

.fc-modal__title {
    font-family: var(--fc-font-head);
    font-size: 1.5rem;
    color: var(--fc-navy);
    margin: 0 0 8px;
    text-align: center;
}

.fc-modal__subtitle {
    text-align: center;
    color: var(--fc-gray);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */
.fc-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.fc-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.fc-modal__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 42, 94, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.fc-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    padding: 40px 36px 36px;
    transform: translateY(20px) scale(0.96);
    transition: transform .3s cubic-bezier(.7,0,.3,1);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.fc-modal.is-open .fc-modal__dialog {
    transform: translateY(0) scale(1);
}

.fc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fc-bg);
    border: none;
    color: var(--fc-navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
    padding: 0;
    padding-bottom: 2px;
}

.fc-modal__close:hover {
    background: var(--fc-red);
    color: #fff;
    transform: rotate(90deg);
}

.fc-modal__title {
    font-family: var(--fc-font-head);
    font-size: 1.5rem;
    color: var(--fc-navy);
    margin: 0 0 8px;
    text-align: center;
}

.fc-modal__subtitle {
    text-align: center;
    color: var(--fc-gray);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

.fc-modal__form .fc-cf7__row {
    margin-bottom: 16px;
}

.fc-modal__form label {
    display: block;
    font-family: var(--fc-font-head);
    font-weight: 600;
    font-size: 13px;
    color: var(--fc-navy);
    margin-bottom: 6px;
}

.fc-modal__form input[type="text"],
.fc-modal__form input[type="tel"],
.fc-modal__form input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.fc-modal__form input:focus {
    outline: none;
    border-color: var(--fc-navy);
    box-shadow: 0 0 0 3px rgba(10, 42, 94, .08);
}

.fc-modal__form input[type="submit"] {
    width: 100%;
    padding: 15px 24px !important;
    background: var(--fc-red) !important;
    color: #fff !important;
    border: none;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    margin-top: 8px;
}

.fc-modal__form input[type="submit"]:hover {
    background: var(--fc-red-dark) !important;
    transform: translateY(-2px);
}

.fc-modal__form .fc-cf7__policy {
    font-size: 12px;
    color: var(--fc-gray);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}
.fc-modal__form .fc-cf7__policy a {
    color: var(--fc-navy);
    text-decoration: underline;
}

/* Сообщение об успехе */
.fc-modal__form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    border: none;
    text-align: center;
}
.fc-modal__form form.sent .wpcf7-response-output {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Блокировка скролла */
body.fc-modal-open {
    overflow: hidden;
}