/* ============================================================
   Sensorica Food — интеграция контента в дизайн-систему Aior
   ============================================================ */

body {
    background-color: #fbedbe;
}

/* ---------- Логотипы ---------- */
.header-logo img {
    width: 240px;
    height: auto;
    max-height: 44px;
}

.mobile-logo img {
    width: 200px;
    height: auto;
    max-height: 44px;
}

.th-widget-about .about-logo img {
    max-height: 46px;
    width: auto;
}

/* ---------- Hero ---------- */
.hero-1 .hero-video {
    height: 100%;
    margin-bottom: 20px;
}

.hero-food-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    border-radius: 24px;
}

.hero-1 .hero-video video.hero-food-img {
    background-color: #4a4951;
}

@media (max-width: 1199px) {
    .hero-food-img {
        min-height: 420px;
    }
}

/* Карточки-счётчики с фотографиями блюд */
.hero-1 .hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-1 .hero-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(251, 237, 190, 0.8);
    z-index: 0;
}

.hero-1 .hero-card .media-body {
    position: relative;
    z-index: 1;
}

.hero-1 .hero-card .box-number {
    color: var(--title-color);
}

/* ---------- Карточки категорий (Меню / Выпечка) ---------- */
.menu-cat-card {
    padding: 0;
    overflow: hidden;
}

.menu-cat-card .menu-cat-img {
    margin: 0;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.menu-cat-card .menu-cat-img img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-cat-card:hover .menu-cat-img img {
    transform: scale(1.06);
}

.menu-cat-card .box-content {
    padding: 26px;
}

.menu-cat-group {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: var(--body-color);
    border: 1px solid var(--smoke-color);
    border-radius: 20px;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.menu-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--theme-color);
}

.menu-cat-link:hover {
    color: var(--title-color);
}

/* ---------- Сетка товаров ---------- */
.menu-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

@media (max-width: 1399px) {
    .menu-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .menu-products {
        grid-template-columns: 1fr;
    }
}

.th-product {
    display: flex;
    flex-direction: column;
    background: #fbedbe;
}

.th-product .product-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.th-product .product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.th-product .product-title {
    font-size: 20px;
    line-height: 28px;
}

.th-product .product-composition {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 22px;
    color: var(--body-color);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px 0 0;
    margin: 0;
    border-top: 1px solid #6a6873;
}

.product-meta li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--title-color);
}

.product-meta i {
    color: var(--theme-color);
}

/* ---------- Боковое меню категорий ---------- */
.menu-sidebar {
    position: sticky;
    top: 30px;
}

.menu-sidebar-inner {
    padding: 26px;
    background: #fbedbe;
    border: 1px solid #fbedbe;
    border-radius: 20px;
}

.menu-sidebar-title {
    display: block;
    margin-bottom: 18px;
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 400;
    color: var(--title-color);
}

.menu-sidebar-group {
    display: block;
    margin: 18px 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b9b2a0;
}

.menu-sidebar-group:first-child {
    margin-top: 0;
}

.menu-sidebar-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--title-color);
    transition: 0.3s;
}

.menu-sidebar-link:hover {
    background: #fbedbe;
    color: var(--theme-color);
}

.menu-sidebar-link.active {
    background: var(--theme-color);
    color: #fbedbe;
}

.menu-sidebar-inner .th-btn {
    margin-top: 24px;
}

@media (max-width: 1199px) {
    .menu-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

/* ---------- Тёмный подвал ---------- */
.footer-wrapper {
    background-color: #4a4951;
}

.footer-wrapper:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 204, 0, 0.22), transparent 55%);
}

.footer-wrapper .widget-area,
.footer-wrapper > .container {
    position: relative;
    z-index: 1;
}

/* ---------- Дополнительные мелочи ---------- */
.breadcumb-menu li:after {
    color: rgba(251, 237, 190, 0.7);
}

.faq-question a {
    color: var(--theme-color);
    font-weight: 500;
}

@media (max-width: 767px) {
    .header-button .th-btn {
        display: none;
    }
}

/* ============================================================
   Фирменная палитра Sensorica
   #ffcc00 — золотой акцент
   #4a4951 — тёмный графит
   #fbedbe — тёплый бежевый
   ============================================================ */
:root {
    --theme-color: #ffcc00;
    --theme-color2: #4a4951;
    --title-color: #4a4951;
    --body-color: #d8cfb4;
    --smoke-color: #fbedbe;
    --smoke-color2: #fbedbe;
    --smoke-color3: #fbedbe;
    --smoke-color4: #fbedbe;
    --th-border-color: #6a6873;
    --yellow-color: #ffcc00;
}

/* Читаемость кнопок на золотом фоне */
.th-btn {
    color: #4a4951;
}

.th-btn .icon img {
    filter: brightness(0) invert(1);
}

.th-btn:hover,
.th-btn.active {
    color: #fbedbe;
}

.th-btn.style3:hover {
    color: #4a4951;
}

.th-btn.style4:hover img {
    filter: brightness(0);
}

.th-btn.th-border:hover {
    color: #fbedbe;
    border-color: #ffcc00;
}

.service-card .box-icon:before {
    background-color: #ffcc00;
}

.footer-layout1 .th-social a:hover {
    background-color: #ffcc00;
    color: #4a4951;
}

.project-card .icon-btn:hover {
    background-color: #ffcc00;
    border-color: #ffcc00;
}

.th-btn.white-btn:hover img {
    filter: brightness(0);
}

/* Тёплые светлые поверхности */
.hero-style1 {
    background-color: #fbedbe !important;
}

.service-card {
    border-color: #6a6873;
}

.service-card .box-icon {
    background: #fbedbe;
}

.th-product {
    border-color: #6a6873;
}

.th-product .product-img {
    background-color: #fbedbe;
}

.th-product .product-img .tag {
    color: #4a4951;
}

.product-meta {
    border-top-color: #6a6873;
}

/* Ссылки и акценты */
.menu-cat-link:hover,
.faq-question a:hover {
    color: #4a4951;
}

.th-social a:hover {
    color: #4a4951;
}

/* Радиус и тени карточек в тон палитре */
.menu-cat-card {
    border-color: #6a6873;
}

.menu-sidebar-link.active {
    color: #4a4951;
}

.hero-1 .hero-card:before {
    background: rgba(251, 237, 190, 0.82);
}

/* Перекрашиваем фиолетовый декор Aior в фирменное золото */
.shape-mockup img[src$="element-1.png"] {
    filter: brightness(0) saturate(100%) invert(22%) sepia(100%) saturate(440%) hue-rotate(5deg) brightness(247%) contrast(191%);
    opacity: 0.9;
}

/* Тёплые фоны секций вместо холодных серо-голубых */
.service-area {
    background-color: #fbedbe;
}

.accordion-card,
.accordion-card .accordion-body,
.faq-question {
    background-color: #fbedbe;
}

/* CTA: тёмная вуаль поверх фото вместо серой заглушки-шейпа */
.cta-area2.style2:before {
    display: block !important;
    background: rgba(74, 73, 81, 0.8) !important;
}

.cta-area2.style2:after {
    display: none !important;
}

/* Прелоадер в фирменных цветах */
.loader::after {
    background-image:
        radial-gradient(circle at 50% 50%, #ffcc00 0%, transparent 50%),
        radial-gradient(circle at 45% 45%, #fbedbe 0%, transparent 45%),
        radial-gradient(circle at 55% 55%, #4a4951 0%, transparent 45%) !important;
}

/* ---------- Preloader: название полностью, панели влево/вправо ---------- */
.preloader-bg {
    width: 50.5%;
    height: 100%;
}

.preloader-bg-one {
    top: 0;
    left: 0;
}

.preloader-bg-two {
    top: 0;
    right: 0;
    bottom: auto;
}

#preloader .loader-wrapper {
    font-size: clamp(30px, 5.4vw, 88px);
    height: auto;
    margin: 0 24px;
    scale: 1;
    letter-spacing: .03em;
    white-space: nowrap;
}

#preloader .loader-letter {
    opacity: 0;
    -webkit-animation: sf-letter-in .5s cubic-bezier(.22, .68, .25, 1) forwards;
    animation: sf-letter-in .5s cubic-bezier(.22, .68, .25, 1) forwards;
    -webkit-filter: none;
    filter: none;
}

@-webkit-keyframes sf-letter-in {
    0% { opacity: 0; -webkit-transform: translateY(14px); transform: translateY(14px); -webkit-filter: blur(6px); filter: blur(6px); }
    100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); -webkit-filter: blur(0); filter: blur(0); }
}

@keyframes sf-letter-in {
    0% { opacity: 0; -webkit-transform: translateY(14px); transform: translateY(14px); -webkit-filter: blur(6px); filter: blur(6px); }
    100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); -webkit-filter: blur(0); filter: blur(0); }
}

#preloader .loader-letter:nth-child(1) { animation-delay: 0s; }
#preloader .loader-letter:nth-child(2) { animation-delay: .02s; }
#preloader .loader-letter:nth-child(3) { animation-delay: .04s; }
#preloader .loader-letter:nth-child(4) { animation-delay: .06s; }
#preloader .loader-letter:nth-child(5) { animation-delay: .08s; }
#preloader .loader-letter:nth-child(6) { animation-delay: .1s; }
#preloader .loader-letter:nth-child(7) { animation-delay: .12s; }
#preloader .loader-letter:nth-child(8) { animation-delay: .14s; }
#preloader .loader-letter:nth-child(9) { animation-delay: .16s; }
#preloader .loader-letter:nth-child(10) { animation-delay: .18s; }
#preloader .loader-letter:nth-child(11) { animation-delay: .2s; }
#preloader .loader-letter:nth-child(12) { animation-delay: .22s; }
#preloader .loader-letter:nth-child(13) { animation-delay: .24s; }
#preloader .loader-letter:nth-child(14) { animation-delay: .26s; }

#preloader .loader {
    display: none !important;
}