/*
Theme Name: STATERM
Theme URI: http://staterm/
Author: STATERM
Author URI: http://staterm/
Description: Custom theme for staterm.uz reconstruction.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: staterm
*/

/* ===========================
   RESET AND BASE STYLES
   =========================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #333333;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #c01920;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===========================
   CONTAINER
   =========================== */

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================
   HEADER
   =========================== */

#site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
    padding: 12px 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-contact-item .icon {
    color: #c01920;
    font-size: 18px;
}

.header-contact-item a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.header-contact-item a:hover {
    color: #c01920;
}

.header-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0;
}

/* ===========================
   NAVIGATION
   =========================== */

#main-navigation {
    background: #ffffff;
}

#main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a {
    color: #c01920;
    background: #fafafa;
}

.main-menu > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: 4px;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.main-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    position: relative;
}

.main-menu .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.15s, background 0.15s;
}

.main-menu .sub-menu li a:hover {
    color: #c01920;
    background: #fafafa;
}

.main-menu .sub-menu li.menu-item-has-children > a::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: auto;
}

.main-menu .sub-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.main-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ===========================
   MOBILE MENU
   =========================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* ===========================
   CONTENT
   =========================== */

#content {
    min-height: 60vh;
}

.page-content-wrap {
    padding: 40px 0;
}

.page-content-wrap h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.page-content-wrap h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 30px;
    color: #333;
}

.page-content-wrap p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.page-content-wrap a {
    color: #c01920;
}

/* ===========================
   FOOTER
   =========================== */

#site-footer {
    background: #f7f7f7;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 7px;
}

.footer-nav ul li a {
    font-size: 13px;
    color: #555;
    transition: color 0.15s;
}

.footer-nav ul li a:hover {
    color: #c01920;
}

.btn-callback {
    display: inline-block;
    background: #c01920;
    color: #ffffff !important;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    text-decoration: none;
    margin-bottom: 15px;
}

.btn-callback:hover {
    background: #a01520;
    color: #ffffff !important;
}

.footer-company-info img {
    max-height: 40px;
    margin-bottom: 10px;
}

.footer-company-info p,
.footer-company-info h2 {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 400;
}

.footer-company-info h2 {
    font-size: 14px;
    font-weight: 700;
}

.footer-company-info a {
    color: #c01920;
}

/* ===========================
   CALLBACK POPUP
   =========================== */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: #ffffff;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.popup-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 12px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.wpcf7 input[type="submit"] {
    background: #c01920;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    transition: background 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    background: #a01520;
}

.elementor-page #content .entry-content,
.elementor-page #content .site-main {
    margin: 0;
    padding: 0;
}

.elementor-heading-title.elementor-size-default {
    line-height: 1.3;
}

/* Service descriptions can contain imported Elementor structure; keep it readable without plugin CSS. */
.staterm-service-card__description .elementor,
.staterm-service-card__description .elementor * {
    box-sizing: border-box;
}

.staterm-service-card__description .elementor-section {
    position: relative;
    margin: 0 0 24px;
}

.staterm-service-card__description .elementor-section:last-child {
    margin-bottom: 0;
}

.staterm-service-card__description .elementor-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.staterm-service-card__description .elementor-column {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.staterm-service-card__description .elementor-column.elementor-col-25 {
    width: 25%;
}

.staterm-service-card__description .elementor-column.elementor-col-33,
.staterm-service-card__description .elementor-column.elementor-col-33\.333 {
    width: 33.333%;
}

.staterm-service-card__description .elementor-column.elementor-col-50 {
    width: 50%;
}

.staterm-service-card__description .elementor-column.elementor-col-100 {
    width: 100%;
}

.staterm-service-card__description .elementor-widget {
    margin-bottom: 20px;
}

.staterm-service-card__description .elementor-widget:last-child {
    margin-bottom: 0;
}

.staterm-service-card__description .elementor-widget-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.staterm-service-card__description .elementor-widget-text-editor {
    color: #3b3d42;
    line-height: 1.6;
}

.staterm-service-card__description .elementor-heading-title {
    margin: 0;
    padding: 0;
    color: #3b3d42;
    line-height: 1.25;
}

.staterm-service-card__description .elementor-heading-title.elementor-size-small {
    font-size: 15px;
}

.staterm-service-card__description .elementor-heading-title.elementor-size-medium {
    font-size: 19px;
}

.staterm-service-card__description .elementor-heading-title.elementor-size-large {
    font-size: 29px;
}

.staterm-service-card__description .elementor-heading-title.elementor-size-xl {
    font-size: 39px;
}

.staterm-service-card__description .elementor-heading-title.elementor-size-xxl {
    font-size: 59px;
}

.staterm-service-card__description .elementor-widget-button .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border-radius: 4px;
    background: #c01920;
    color: #fff;
    text-decoration: none;
}

.staterm-service-card__description .elementor-widget-button .elementor-button:hover {
    background: #a01520;
}

.staterm-service-card__description .elementor-tab-content {
    display: none;
}

.staterm-service-card__description .elementor-tab-content.is-active {
    display: block;
}

.staterm-service-card__description .elementor-tab-title {
    cursor: pointer;
}

@media (max-width: 1024px) {
    .staterm-service-card__description .elementor-column.elementor-col-25,
    .staterm-service-card__description .elementor-column.elementor-col-33,
    .staterm-service-card__description .elementor-column.elementor-col-33\.333,
    .staterm-service-card__description .elementor-column.elementor-col-50 {
        width: 100%;
    }

    .staterm-service-card__description .elementor-heading-title.elementor-size-xl {
        font-size: 32px;
    }

    .staterm-service-card__description .elementor-heading-title.elementor-size-xxl {
        font-size: 40px;
    }
}

strong[style*="color: #c01920"],
span[style*="color: #c01920"] {
    color: #c01920 !important;
}

/* Projects listing: normalized Bootstrap-based card grid. */
.page-id-30 .project-card {
    height: 100%;
}

.page-id-30 .project-card .elementor-widget-heading {
    min-height: 86px;
    display: flex;
    align-items: flex-start;
}

.page-id-30 .project-card .elementor-widget-heading .elementor-heading-title {
    width: 100%;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.page-id-30 .project-card .elementor-widget-image .elementor-widget-container {
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
}

.page-id-30 .project-card .elementor-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-id-30 .project-card .elementor-widget-button {
    margin-top: auto;
}

.page-id-30 .project-card .elementor-widget-button br {
    display: none !important;
}

/* Fallback styles for Elementor carousel markup imported as plain HTML. */
.elementor-image-carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.elementor-image-carousel-wrapper .swiper-wrapper {
    display: flex;
}

.elementor-image-carousel-wrapper .swiper-slide {
    flex: 0 0 auto;
}

.elementor-image-carousel-wrapper .swiper-slide-inner,
.elementor-image-carousel-wrapper .swiper-slide-image {
    width: 100%;
}

.elementor-image-carousel-wrapper .elementor-swiper-button-prev,
.elementor-image-carousel-wrapper .elementor-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.elementor-image-carousel-wrapper .elementor-swiper-button-prev {
    left: 10px;
}

.elementor-image-carousel-wrapper .elementor-swiper-button-next {
    right: 10px;
}

/* Fallback styles for imported BDT tabs used on material pages. */
.bdt-flex {
    display: flex;
}

.bdt-flex-left {
    justify-content: flex-start;
}

.bdt-flex-column {
    display: flex;
    flex-direction: column;
}

.bdt-tabs {
    width: 100%;
}

.bdt-tabs .bdt-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bdt-tabs .bdt-tabs-item {
    padding-left: 0;
}

.bdt-tabs .bdt-tabs-item-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    background: #f3f3f3;
    color: #3b3d42;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: all 0.25s ease;
    position: relative;
    outline: 0;
}

.bdt-tabs .bdt-tabs-item-title.js-open-callback {
    border: 0;
    cursor: pointer;
}

.bdt-tabs .bdt-tab .bdt-tabs-item a::after,
.bdt-tabs .bdt-tab .bdt-tabs-item button::after {
    content: '';
    width: 0;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.25s ease;
}

.bdt-tabs .bdt-tab .bdt-tabs-item:hover .bdt-tabs-item-title,
.bdt-tabs .bdt-tab .bdt-tabs-item.bdt-active .bdt-tabs-item-title {
    background-color: #c01920;
    color: #ffffff;
}

.bdt-tabs .bdt-tab .bdt-tabs-item.bdt-active .bdt-tabs-item-title::after {
    width: 100%;
    background: #c01920;
}

.bdt-switcher {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bdt-switcher > :not(.bdt-active) {
    display: none;
}

.bdt-tabs .bdt-switcher-wrapper {
    margin-top: 20px;
}

.bdt-tabs .bdt-switcher-item-content {
    color: #3b3d42;
    font-size: 16px;
    line-height: 1.6;
}

.bdt-tabs .bdt-switcher-item-content p {
    margin: 0;
}

.bdt-tabs .bdt-switcher-item-content p + p {
    margin-top: 10px;
}

/* Product material pages: keep original 50/50 hero layout and image scale. */
.staterm-product-tabs-section > .elementor-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.staterm-product-tabs-section > .elementor-container > .elementor-column.elementor-col-50 {
    width: 50%;
}

.staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image {
    text-align: left;
}

.staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image .elementor-widget-container,
.staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image .wp-caption {
    width: 303px;
    max-width: 303px;
}

.staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image img {
    width: 303px;
    max-width: 303px;
    height: 303px;
    object-fit: contain;
}

/* Renderer for migrated product pages (meta-based content). */
.staterm-migrated-product-page .staterm-product-card__title {
    color: #3b3d42;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.staterm-migrated-product-page .staterm-product-card__intro {
    color: #3b3d42;
    margin-bottom: 22px;
    font-size: 16px;
}

.staterm-migrated-product-page .staterm-product-card__hero {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 24px;
    align-items: flex-start;
}

.staterm-migrated-product-page .staterm-product-card__image {
    width: 100%;
    max-width: 303px;
    height: auto;
    object-fit: contain;
}

.staterm-migrated-product-page .staterm-product-card__cta {
    margin-top: 28px;
    padding: 18px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.staterm-migrated-product-page .staterm-product-card__cta-title {
    color: #3b3d42;
    font-size: 24px;
    margin-bottom: 10px;
}

.staterm-migrated-product-page .staterm-product-card__cta-text {
    margin-bottom: 14px;
}

.staterm-migrated-service-page .staterm-service-card__title,
.staterm-migrated-project-page .staterm-project-card__title {
    color: #3b3d42;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.staterm-migrated-service-page .staterm-service-links,
.staterm-migrated-product-page .staterm-service-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
}

.staterm-migrated-service-page .staterm-service-links__button,
.staterm-migrated-product-page .staterm-service-links__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid #c01920;
    border-radius: 4px;
    background: #fff;
    color: #c01920;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.staterm-migrated-service-page .staterm-service-links__button:hover,
.staterm-migrated-service-page .staterm-service-links__button:focus,
.staterm-migrated-product-page .staterm-service-links__button:hover,
.staterm-migrated-product-page .staterm-service-links__button:focus {
    background: #c01920;
    border-color: #c01920;
    color: #fff;
}

.staterm-migrated-service-page .staterm-service-links__button.is-current,
.staterm-migrated-product-page .staterm-service-links__button.is-current {
    background: #c01920;
    border-color: #c01920;
    color: #fff;
    cursor: default;
}

.staterm-migrated-service-page .staterm-service-card__intro {
    color: #3b3d42;
    margin-bottom: 22px;
    font-size: 16px;
}

.staterm-migrated-service-page .staterm-service-card__content-col {
    min-width: 0;
}

.staterm-migrated-service-page .staterm-service-card__image {
    width: 100%;
    max-width: 303px;
    height: auto;
}

@media (max-width: 900px) {
    .staterm-migrated-service-page .staterm-service-card__hero {
        grid-template-columns: 1fr;
    }

    .staterm-migrated-service-page .staterm-service-card__image-col {
        order: 1;
    }

    .staterm-migrated-service-page .staterm-service-card__content-col {
        order: 2;
    }
}

.staterm-migrated-project-page .staterm-project-card__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.staterm-migrated-project-page .staterm-project-card__gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.staterm-migrated-project-page .staterm-project-card__about,
.staterm-migrated-project-page .staterm-project-card__result,
.staterm-migrated-project-page .staterm-project-card__video {
    margin-top: 18px;
}

.staterm-migrated-project-page .staterm-project-gallery-swiper {
    width: 100%;
    margin: 0 0 24px;
    border-radius: 14px;
    overflow: hidden;
    background: #10141f;
    box-shadow: 0 18px 48px rgba(7, 11, 21, 0.2);
}

.staterm-migrated-project-page .staterm-project-gallery-slide {
    margin: 0;
}

.staterm-migrated-project-page .staterm-project-gallery-image-wrap {
    width: 100%;
    height: clamp(240px, 52vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #27324d 0%, #131a2b 44%, #0d121e 100%);
}

.staterm-migrated-project-page .staterm-project-gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-button-prev,
.staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-button-next {
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-button-prev::after,
.staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0.9;
}

.staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-pagination-bullet-active {
    background: #c01920;
}

@media (max-width: 767px) {
    .staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-button-prev,
    .staterm-migrated-project-page .staterm-project-gallery-swiper .swiper-button-next {
        width: 38px;
        height: 38px;
    }
}

.staterm-migrated-project-page .elementor-widget-video .elementor-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 18px;
}

.staterm-migrated-project-page .elementor-widget-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Materials page parity with original base/materials design. */
.menu-podmenyu-materialy-container .jet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.menu-podmenyu-materialy-container .jet-nav__item {
    margin: 10px;
}

.menu-podmenyu-materialy-container .menu-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 2px solid #c01920;
    border-radius: 10px;
    color: #3b3d42;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    transition: all 0.2s ease;
}

.menu-podmenyu-materialy-container .menu-item-link:hover {
    background-color: #c01920;
    color: #ffffff;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-text-editor {
    color: #3b3d42;
    font-size: 16px;
    font-weight: 400;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-heading h1.elementor-heading-title,
:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-heading h3.elementor-heading-title {
    color: #3b3d42;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}


/* MVP blueprint renderer styles for key pages. */
.staterm-blueprint-page .container {
    padding-top: 24px;
    padding-bottom: 40px;
}

.staterm-blueprint-hero h1 {
    color: #3b3d42;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.staterm-blueprint-hero-subtitle {
    color: #575a60;
    font-size: 18px;
    margin: 0 0 16px;
}

.staterm-home-company-brand {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background: #fff;
}

.staterm-home-company-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}

.staterm-home-company-description p {
    margin: 0;
}

.staterm-home-hero-image-wrap {
    margin: 0 0 16px;
}

.staterm-home-hero-image {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.staterm-home-carousel-section {
    margin: 6px 0 24px;
}

.staterm-home-about-section {
    margin: 0 0 20px;
}

.staterm-home-about-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 18px;
    align-items: start;
}

.staterm-home-about-image-wrap {
    overflow: hidden;
    margin: 5px;
}

.staterm-home-about-image {
    width: 100%;
    height: auto;
    display: block;
}

.staterm-home-about-content {
    min-width: 0;
}

.staterm-home-carousel {
    width: 100%;
    overflow: hidden;
}

.staterm-home-slide-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
}

.staterm-home-slide-image {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.staterm-home-slide-caption {
    padding: 12px 14px;
}

.staterm-home-slide-caption h3 {
    margin: 0 0 6px;
    color: #2f3136;
    font-size: 20px;
}

.staterm-home-slide-caption p {
    margin: 0;
    color: #5a5d63;
}

.staterm-blueprint-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.staterm-blueprint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.staterm-blueprint-btn-primary {
    background: #c01920;
    color: #fff;
}

.staterm-blueprint-btn-secondary {
    border: 1px solid #c01920;
    color: #c01920;
    background: #fff;
}

.staterm-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.staterm-blueprint-card,
.staterm-blueprint-section-card,
.staterm-blueprint-list-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
}

.staterm-blueprint-card h2,
.staterm-blueprint-section-card h2,
.staterm-blueprint-list-item h2 {
    font-size: 22px;
    color: #3b3d42;
    margin: 0 0 8px;
}

.staterm-blueprint-card p,
.staterm-blueprint-list-item p,
.staterm-blueprint-richtext p {
    margin: 0 0 10px;
    color: #4d5055;
}

.staterm-blueprint-card-media {
    margin-bottom: 10px;
}

.staterm-blueprint-card-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.staterm-blueprint-link {
    color: #c01920;
    text-decoration: none;
    font-weight: 600;
}

.staterm-blueprint-card-anchor {
    display: block;
    text-decoration: none;
    color: inherit;
}

.staterm-document-card .staterm-blueprint-card-anchor {
    height: 100%;
}

.staterm-document-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    min-height: 140px;
    border: 1px solid #eceff3;
    border-radius: 6px;
}

.staterm-document-card-media img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.staterm-blueprint-card-anchor h2 {
    color: #3b3d42;
}

.staterm-blueprint-materials-category {
    margin-bottom: 26px;
}

.staterm-blueprint-materials-category-title {
    margin: 0 0 12px;
    color: #2f3136;
    font-size: 26px;
    line-height: 1.25;
}

.staterm-blueprint-materials-category-description {
    margin: 0 0 14px;
    color: #4d5055;
    font-size: 16px;
    line-height: 1.55;
}

.staterm-blueprint-materials-category-description p {
    margin: 0 0 10px;
}

.staterm-blueprint-materials .staterm-blueprint-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    justify-content: start;
}

.staterm-blueprint-list {
    display: grid;
    gap: 12px;
}

.staterm-contacts-intro {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #2a2a2a;
}

.staterm-contacts-intro p:last-child {
    margin-bottom: 0;
}

.staterm-blueprint-contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
}

.staterm-contacts-map-section {
    margin-top: 28px;
}

.staterm-contacts-content-card,
.staterm-contacts-form-card {
    height: 100%;
}

.staterm-contacts-content-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staterm-contacts-richtext {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.staterm-contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
}

.staterm-contacts-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.staterm-contacts-list__label {
    font-weight: 600;
    color: #444;
    min-width: 80px;
}

.staterm-contacts-list__value {
    color: #1a1a1a;
    text-decoration: none;
    word-break: break-word;
}

.staterm-contacts-list__value:hover {
    text-decoration: underline;
}

.staterm-contacts-map {
    position: relative;
    width: 100%;
    padding-bottom: 42%;
    overflow: hidden;
    border-radius: 8px;
}

.staterm-contacts-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.staterm-blueprint-map-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 8px;
}

.staterm-blueprint-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .staterm-blueprint-hero h1 {
        font-size: 30px;
    }

    .staterm-blueprint-materials .staterm-blueprint-grid {
        grid-template-columns: 1fr;
    }

    .staterm-home-about-grid,
    .staterm-home-company-brand {
        grid-template-columns: 1fr;
    }

    .staterm-blueprint-contact-grid {
        grid-template-columns: 1fr;
    }

    .staterm-home-slide-image {
        height: 220px;
    }
}
:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-element-5c97726 .elementor-heading-title {
    color: #c01920;
    font-size: 30px;
    font-weight: 400;
    text-decoration: underline;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-element-806ecf8 .elementor-heading-title {
    text-transform: uppercase;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-image-box-wrapper {
    text-align: left;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-image-box-wrapper .elementor-image-box-img {
    width: 50%;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-image-box-title,
:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-image-box-title a {
    color: #c01920;
    font-size: 30px;
    font-weight: 600;
}

:is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-image-box-description {
    color: #3b3d42;
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .main-menu > li > a {
        padding: 12px 12px;
        font-size: 13px;
    }

    .menu-podmenyu-materialy-container .menu-item-link {
        font-size: 12px;
    }

    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-heading h1.elementor-heading-title,
    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-heading h3.elementor-heading-title,
    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-element-5c97726 .elementor-heading-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    #main-navigation .main-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    #main-navigation .main-menu.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        background: #fff;
        z-index: 10000;
        overflow-y: visible;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        padding: 8px 0 12px;
        align-items: flex-start;
        border-top: 1px solid #ececec;
    }

    #main-navigation .main-menu.is-open li {
        width: 100%;
        opacity: 1;
        visibility: visible;
    }

    #main-navigation .main-menu.is-open > li > a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        color: #222;
        font-size: 15px;
        line-height: 1.3;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    #main-navigation .main-menu.is-open .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        background: #fafafa;
    }

    .header-contacts {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .menu-podmenyu-materialy-container .menu-item-link {
        font-size: 18px;
    }

    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-heading h1.elementor-heading-title,
    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-widget-heading h3.elementor-heading-title,
    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-element-5c97726 .elementor-heading-title {
        font-size: 20px;
    }

    :is(.page-id-5, .page-id-6, .page-id-8, .page-id-10) .elementor-image-box-wrapper .elementor-image-box-img {
        margin: 0 auto 20px;
        width: 100%;
    }

    .bdt-tabs .bdt-tab {
        gap: 6px;
    }

    .bdt-tabs .bdt-tabs-item-title {
        font-size: 14px;
        padding: 9px 12px;
        min-height: 40px;
    }

    .staterm-product-tabs-section > .elementor-container > .elementor-column.elementor-col-50 {
        width: 100%;
    }

    .staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image .elementor-widget-container,
    .staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image .wp-caption,
    .staterm-product-tabs-section > .elementor-container > .elementor-column:first-child .elementor-widget-image img {
        width: 100%;
        max-width: 303px;
        height: auto;
    }

    .staterm-migrated-product-page .staterm-product-card__hero {
        grid-template-columns: 1fr;
    }

    .staterm-migrated-project-page .gallery-columns-4 .gallery-item,
    .staterm-migrated-project-page .gallery-columns-5 .gallery-item {
        width: 50%;
    }
}
