/* ============================================
   HERO-СЛАЙДЕР
   ============================================ */
.fc-hero { position: relative; height: 620px; overflow: hidden; background: var(--fc-navy); }
.fc-hero__slider { display: flex; height: 100%; transition: transform .8s cubic-bezier(.7,0,.3,1); }
.fc-hero__slide { min-width: 100%; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 0 24px; box-sizing: border-box; }
.fc-hero__title { font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.15; color: #fff; margin: 0 0 20px; }
.fc-hero__subtitle { font-size: clamp(1rem, 2vw, 1.25rem); margin: 0 0 32px; opacity: .9; color: #fff; }
.fc-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; border: none; cursor: pointer; transition: background .2s; backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.fc-hero__nav:hover { background: rgba(255,255,255,.35); }
.fc-hero__nav--prev { left: 24px; }
.fc-hero__nav--next { right: 24px; }
.fc-hero__nav svg { display: block; width: 22px; height: 22px; }
.fc-hero__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.fc-hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.fc-hero__dots button.is-active { background: #fff; width: 28px; border-radius: 5px; }

/* ============================================
   СЕТКИ / ПРЕИМУЩЕСТВА / ТЕХНОЛОГИИ
   ============================================ */
.fc-grid { display: grid; gap: 24px; }
.fc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.fc-advantage { padding: 32px 24px; border-top: 2px solid var(--fc-border); transition: border-color .3s; }
.fc-advantage:hover { border-color: var(--fc-red); }
.fc-advantage__num { font-family: var(--fc-font-head); font-size: 14px; font-weight: 700; color: var(--fc-gray); margin-bottom: 12px; }
.fc-advantage__title { margin: 0 0 10px; font-size: 1.15rem; }
.fc-advantage__text { margin: 0; color: var(--fc-gray); font-size: .95rem; }
.fc-tech__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.fc-tech__item { background: #fff; border-radius: var(--fc-radius); overflow: hidden; box-shadow: var(--fc-shadow); }
.fc-tech__image img { width: 100%; height: 320px; object-fit: cover; display: block; }
.fc-tech__body { padding: 32px; }
.fc-tech__body h3 { margin: 0 0 12px; }
.fc-tech__body p { margin: 0; color: var(--fc-gray); }

/* ============================================
   БЛОКИ: КАК РАБОТАЕМ, РАБОТЫ, КЛИЕНТЫ, ФОРМА
   ============================================ */
.fc-how__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fc-how__step { text-align: center; padding: 24px; }
.fc-how__num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--fc-navy); color: #fff; font-family: var(--fc-font-head); font-weight: 800; font-size: 22px; margin-bottom: 20px; }
.fc-how__step h3 { margin: 0 0 10px; font-size: 1.15rem; }
.fc-how__step p { margin: 0; color: var(--fc-gray); font-size: .95rem; }

.fc-works__subtitle { text-align: center; color: var(--fc-gray); margin: 12px auto 0; max-width: 600px; }
.fc-works__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.fc-works__grid--full { grid-template-columns: repeat(3, 1fr); }
.fc-work { display: block; text-decoration: none; color: inherit; }
.fc-work__image img { width: 100%; height: 320px; object-fit: cover; display: block; }
.fc-work__body { padding: 24px; }
.fc-work__body h3 { margin: 0; font-size: 1.1rem; color: var(--fc-navy); }
.fc-work__cat { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fc-red); font-weight: 700; margin-bottom: 6px; }
.fc-work.is-hidden { display: none; }
.fc-works__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.fc-works__filters button { padding: 10px 20px; border-radius: 50px; border: 1px solid var(--fc-border); background: #fff; font-family: var(--fc-font-head); font-weight: 600; font-size: 14px; color: var(--fc-navy); cursor: pointer; transition: all .2s; }
.fc-works__filters button:hover, .fc-works__filters button.is-active { background: var(--fc-navy); color: #fff; border-color: var(--fc-navy); }

.fc-clients__row { display: flex; justify-content: center; align-items: center; gap: 64px; flex-wrap: wrap; filter: grayscale(1); opacity: .7; transition: all .3s; }
.fc-clients__row:hover { filter: none; opacity: 1; }
.fc-clients__row img { max-height: 60px; width: auto; }

.fc-form__subtitle { text-align: center; color: var(--fc-gray); margin: 12px 0 0; }
.fc-form__box { margin-top: 40px; background: #fff; padding: 40px; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); }
.fc-form__box input, .fc-form__box textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--fc-border); border-radius: 10px; font-family: inherit; font-size: 16px; margin-bottom: 16px; transition: border-color .2s; box-sizing: border-box; }
.fc-form__box input:focus, .fc-form__box textarea:focus { outline: none; border-color: var(--fc-navy); }

/* ============================================
   КОНТАКТЫ И ОТДЕЛЫ
   ============================================ */
.fc-contacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }
.fc-contact { background: #fff; padding: 24px; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); }
.fc-contact__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fc-gray); margin-bottom: 8px; }
.fc-contact__value { display: block; font-family: var(--fc-font-head); font-weight: 700; font-size: 1.05rem; color: var(--fc-navy); text-decoration: none; margin-bottom: 6px; line-height: 1.3; white-space: nowrap; }
.fc-contact__value:last-child { margin-bottom: 0; }
.fc-contact__hours { display: block; margin-top: 8px; font-size: 13px; color: var(--fc-gray); line-height: 1.4; }
.fc-contacts__map iframe { border-radius: var(--fc-radius); display: block; }

.fc-departments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fc-department { background: #fff; border-radius: var(--fc-radius); padding: 32px; box-shadow: var(--fc-shadow); text-align: center; transition: transform .3s, box-shadow .3s; }
.fc-department:hover { transform: translateY(-6px); box-shadow: var(--fc-shadow-hover); }
.fc-department__icon { font-size: 40px; line-height: 1; margin-bottom: 16px; }
.fc-department h3 { font-family: var(--fc-font-head); font-size: 1.15rem; color: var(--fc-navy); margin: 0 0 12px; }
.fc-department p { color: var(--fc-gray); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.fc-department__email { display: inline-block; font-family: var(--fc-font-head); font-weight: 700; font-size: 16px; color: var(--fc-navy); text-decoration: none; padding: 12px 24px; background: var(--fc-bg); border-radius: 50px; transition: all .2s; word-break: break-all; }
.fc-department__email:hover { background: var(--fc-navy); color: #fff; }

.fc-requisites__box { max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); overflow: hidden; }
.fc-requisites__table { width: 100%; border-collapse: collapse; margin: 0; }
.fc-requisites__table th, .fc-requisites__table td { padding: 24px 36px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.6; border-bottom: 1px solid var(--fc-border); }
.fc-requisites__table tr:last-child th, .fc-requisites__table tr:last-child td { border-bottom: none; }
.fc-requisites__table th { width: 38%; font-family: var(--fc-font-head); font-weight: 600; font-size: 13px; color: var(--fc-gray); background: var(--fc-bg); text-transform: uppercase; letter-spacing: 0.04em; padding-right: 40px; border-right: 1px solid var(--fc-border); }
.fc-requisites__table td { width: 62%; font-family: var(--fc-font-head); font-weight: 700; font-size: 15px; color: var(--fc-navy); word-wrap: break-word; }
.fc-requisites__table td a { color: var(--fc-navy); display: inline-block; margin-bottom: 6px; }
.fc-requisites__table td a:hover { color: var(--fc-red); }

/* ============================================
   БЛОК РАСПРОДАЖА
   ============================================ */
.fc-sale {
    background: linear-gradient(135deg, #FFF6E5 0%, #FFE8E8 100%);
}

.fc-sale .fc-section-title::after {
    background: var(--fc-red);
}

.fc-sale__subtitle {
    text-align: center;
    color: var(--fc-gray);
    margin: 12px auto 0;
    max-width: 600px;
}

.fc-sale__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.fc-sale-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.fc-sale-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fc-shadow-hover);
}

.fc-sale-card__badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 2 !important;
    background: var(--fc-red) !important;
    color: #fff !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
.fc-sale-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 1; /* Растягиваем, чтобы кнопка ушла вниз */
}

.fc-sale-card__image {
    width: 100%;
    height: 240px; /* Высота как у флагов */
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.fc-sale-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fc-sale-card__body {
    padding: 16px 20px 8px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fc-sale-card__title {
    font-family: var(--fc-font-head);
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    margin: 0 0 8px !important;
    line-height: 1.35;
    min-height: 60px;
}

.fc-sale-card__price {
    font-family: var(--fc-font-head);
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--fc-red) !important;
    margin-bottom: 16px;
}

.fc-sale-card__price del {
    font-size: 14px !important;
    color: var(--fc-gray) !important;
    font-weight: 500 !important;
    margin-right: 6px !important;
}

.fc-sale-card__price ins {
    text-decoration: none !important;
}

.fc-sale__more {
    text-align: center !important;
    margin-top: 48px !important;
}
/* ============================================
   КНОПКА "В КОРЗИНУ" (СТИЛИЗУЕМ СТАНДАРТНУЮ)
   ============================================ */
.fc-sale-card__btn-wrap {
    padding: 0 20px 20px;
    margin-top: auto; /* Прижимаем к низу */
}

/* Сама кнопка WooCommerce */
.fc-sale-card__btn-wrap .button,
.fc-sale-card__btn-wrap .add_to_cart_button {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 12px 20px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background .2s, transform .2s !important;
    box-sizing: border-box !important;
    border: none !important;
    line-height: 1.2 !important;
}

.fc-sale-card__btn-wrap .button:hover,
.fc-sale-card__btn-wrap .add_to_cart_button:hover {
    background: var(--fc-red) !important;
    transform: translateY(-2px);
}

/* Скрываем стандартную иконку загрузки WooCommerce (если есть) */
.fc-sale-card__btn-wrap .loading::after {
    display: none !important;
}

/* ============================================
   БЛОК РАСПРОДАЖА (ВЫРАВНИВАЕМ ПОД WOOCOMMERCE)
   ============================================ */
.fc-sale {
    background: linear-gradient(135deg, #FFF6E5 0%, #FFE8E8 100%);
}

.fc-sale .fc-section-title::after {
    background: var(--fc-red);
}

.fc-sale__subtitle {
    text-align: center;
    color: var(--fc-gray);
    margin: 12px auto 0;
    max-width: 600px;
}

.fc-sale__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* --- КАРТОЧКА РАСПРОДАЖИ (копируем стиль WooCommerce) --- */
.fc-sale-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border-radius: var(--fc-radius);
    overflow: hidden;
    box-shadow: var(--fc-shadow);
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    position: relative;
}

.fc-sale-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fc-shadow-hover);
}

/* Бейдж "Скидка" */
.fc-sale-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: var(--fc-red);
    color: #fff;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Картинка — фиксируем высоту как в WooCommerce */
.fc-sale-card__image {
    background: #fff;
    padding: 12px;
    width: 100%;
    height: 240px; /* ТАКАЯ ЖЕ ВЫСОТА КАК У ФЛАГОВ */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-sale-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Текстовая часть */
.fc-sale-card__body {
    padding: 0 20px 20px !important; /* Отступы как у флагов */
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Заголовок — фиксируем высоту под 2 строки */
.fc-sale-card__title {
    font-family: var(--fc-font-head);
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--fc-navy) !important;
    margin: 16px 0 8px !important;
    line-height: 1.35;
    min-height: 60px; /* ТАКАЯ ЖЕ ВЫСОТА КАК У ФЛАГОВ */
    display: flex;
    align-items: flex-start;
}

/* Цена — прижимаем к верху блока с кнопкой */
.fc-sale-card__price {
    font-family: var(--fc-font-head);
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--fc-red) !important;
    min-height: 32px;
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Отступ до кнопки */
}
.fc-sale-card__price del {
    font-size: 14px;
    color: var(--fc-gray);
    font-weight: 500;
    margin-right: 6px;
}
.fc-sale-card__price ins {
    text-decoration: none;
}

/* ДОБАВЛЯЕМ КНОПКУ "В КОРЗИНУ" ВНУТРЬ КАРТОЧКИ */
.fc-sale-card__button {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 12px 20px !important;
    background: var(--fc-navy) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: var(--fc-font-head);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, transform .2s;
    box-sizing: border-box;
    margin-top: auto !important; /* Прижимаем кнопку к низу */
}

.fc-sale-card__button:hover {
    background: var(--fc-red) !important;
    transform: translateY(-2px);
}

/* Блок "Все акции" остается внизу */
.fc-sale__more {
    text-align: center;
    margin-top: 48px;
}