/* ================= ОСНОВНЫЕ НАСТРОЙКИ ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HEADER (ШАПКА) ================= */
#header {
    background: #1A1A1A;
    padding: 15px 0;
    color: #fff;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mainrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.descriptor {
    font-size: 13px;
    line-height: 1.4;
    color: #ccc;
    max-width: 220px;
    border-left: 1px solid #444;
    padding-left: 15px;
}

.header-location {
    font-size: 12px;
    color: #eee;
}

.location-item {
    white-space: nowrap;
    margin-bottom: 2px;
}

.massege-icon ul.social {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.massege-icon ul.social li img {
    height: 32px;
    width: auto;
    transition: transform 0.2s;
}

.massege-icon ul.social li img:hover { transform: scale(1.1); }

.contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-block { font-size: 18px; font-weight: 700; }
.phone-block a { color: #FECC00; text-decoration: none; }
.callback a { font-size: 13px; color: #FECC00; text-decoration: underline; }

/* БУРГЕР */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FECC00;
    transition: 0.3s;
}

/* ================= HERO СЕКЦИЯ ================= */
.hero {
    position: relative;
    padding: 100px 0 140px;
    text-align: center;
    /* Облегченный градиент: картинка станет значительно светлее и четче */
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%), 
                url("https://insttech.ru/wp-content/uploads/2026/03/ChatGPT-Image-25-%D1%84%D0%B5%D0%B2%D1%80.-2026-%D0%B3.-09_01_21.png") center/cover no-repeat;
}

/* На всякий случай усмирим пустой див hero-overlay, если он есть в HTML */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Совсем легкое общее затемнение */
    pointer-events: none; /* Чтобы не мешал нажимать на кнопки */
    z-index: 1;
}

/* Чтобы текст не терялся на светлом фоне, добавим ему четкости */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Тень под буквами для читаемости */
}

.hero-descr {
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-descr {
    font-size: 20px;
    max-width: 750px;
    margin: 0 auto 40px;
    color: #ffffff !important; /* Принудительно белый текст */
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px;
    position: relative;
    z-index: 5;
}

/* КНОПКИ: теперь видны сразу */
.btn {
    padding: 16px 32px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-white { 
    background: #FECC00 !important; 
    color: #111 !important; 
    border: 2px solid #FECC00;
}

.btn-white:hover { 
    background: #ffffff !important; 
    border-color: #ffffff;
}

.btn-outline { 
    background: transparent !important;
    border: 2px solid #FECC00 !important; 
    color: #FECC00 !important; 
}

.btn-outline:hover { 
    background: #FECC00 !important; 
    color: #111 !important; 
}

/* ================= ПЛАШКА ПРЕИМУЩЕСТВ ================= */
.advantage-overlap {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.hero__info {
    display: flex;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 4px solid #FECC00;
}

.hero__info-elem {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    border-right: 1px solid #eee;
}

.hero__info-elem:last-child { border-right: none; }
.hero__info-icon img { height: 40px; }
.hero__info-txt { font-weight: 700; font-size: 14px; text-transform: uppercase; color: #1a1a1a; }

/* ================= КАТЕГОРИИ (СЕТКА) ================= */
.section { padding: 80px 0; }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 50px; text-transform: uppercase; }

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.grid-item:hover { transform: translateY(-5px); border-bottom: 4px solid #FECC00; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.grid-image { height: 220px; overflow: hidden; }
.grid-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.grid-item:hover .grid-image img { transform: scale(1.05); }

.grid-info { padding: 20px; text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.grid-text { font-weight: 700; text-transform: uppercase; font-size: 15px; }

/* ================= СТАТИСТИКА ================= */
.stats-section { background: #f9f9f9; }
.stats-grid { display: flex; justify-content: space-around; gap: 30px; flex-wrap: wrap; }
.stat-card { text-align: center; }
.stat-number { display: block; font-size: 40px; font-weight: 800; color: #F08365; }
.stat-desc { font-size: 14px; font-weight: 600; color: #666; }

/* ================= ФУНКЦИОНАЛ (Check-list) ================= */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { position: relative; padding-left: 35px; margin-bottom: 15px; font-weight: 500; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #FECC00; font-weight: 900; font-size: 20px; }
.feature-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card { background: #f4f4f4; padding: 25px; border-radius: 12px; text-align: center; }
.cta-card.yellow { background: #FECC00; }

/* ================= ЭТАПЫ (ЗИГЗАГ) ================= */
.steps-zigzag { max-width: 900px; margin: 0 auto; position: relative; }
.steps-zigzag::before { content: ''; position: absolute; left: 50%; height: 100%; width: 2px; background: #eee; }
.step-zigzag-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 60px; }
.step-zigzag-item:nth-child(even) { flex-direction: row-reverse; }
.step-number-box { width: 45%; font-size: 80px; font-weight: 900; color: #f0f0f0; text-align: center; }
.step-text-box { width: 45%; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 4px solid #FECC00; }

/* ================= ДОВЕРИЕ (2 блока) ================= */
.trust-grid.dual-layout { display: flex; gap: 30px; justify-content: center; }
.trust-card { flex: 1; max-width: 500px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.trust-image-wrapper { height: 250px; overflow: hidden; }
.trust-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.trust-card-info { padding: 25px; }
.trust-card-info h3 { margin-bottom: 10px; font-size: 20px; text-transform: uppercase; }

/* ================= ЗАМЕР И КАТАЛОГ (ФОРМЫ) ================= */
.measurement-box { display: flex; background: #1A1A1A; border-radius: 20px; overflow: hidden; color: #fff; }
.measurement-content { flex: 1; padding: 50px; }
.measurement-form-container { flex: 0 0 400px; background: rgba(255,255,255,0.05); padding: 40px; }
.form-wrapper { background: #fff; padding: 25px; border-radius: 12px; color: #333; }
.form-wrapper h3 { margin-bottom: 20px; text-align: center; }

.catalog-box { display: flex; align-items: center; background: #fff; padding: 50px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); gap: 40px; }
.catalog-form-card { background: #1A1A1A; padding: 30px; border-radius: 15px; flex: 0 0 350px; }

/* Универсальные стили для инпутов в формах */
input[type="text"], input[type="tel"], input[type="email"] {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px;
}
input[type="submit"] {
    width: 100%; padding: 15px; background: #FECC00; border: none; font-weight: 700; cursor: pointer; border-radius: 6px;
}

/* ================= FOOTER ================= */
.footer { background: #111; color: #fff; padding: 50px 0; border-top: 1px solid #333; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 992px) {
    .descriptor, .header-location, .massege-icon { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .mainrow { position: relative; }
    
    /* Выпадающее меню */
    .contacts {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #1A1A1A; padding: 30px;
        flex-direction: column; align-items: center;
        border-top: 1px solid #333;
    }
    .contacts.active { display: flex; }

    .hero h1 { font-size: 32px; }
    .hero__info { flex-direction: column; }
    .hero__info-elem { border-right: none; border-bottom: 1px solid #eee; padding: 15px 0; }
    
    .features-grid, .measurement-box, .catalog-box, .final-form-box { flex-direction: column; }
    .measurement-form-container, .catalog-form-side { width: 100%; }
    
    .steps-zigzag::before { display: none; }
    .step-zigzag-item, .step-zigzag-item:nth-child(even) { flex-direction: column; }
    .step-number-box, .step-text-box { width: 100%; }
    
    .trust-grid.dual-layout { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    .feature-cta { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
}
/* Перекрашиваем иконки в золотистый цвет темы */
.hero__info-icon img {
    height: 40px;
    /* Фильтр превращает исходный цвет в #FECC00 */
    filter: invert(78%) sepia(61%) saturate(958%) hue-rotate(358deg) brightness(103%) contrast(106%);
    transition: transform 0.3s ease;
}

/* Эффект при наведении на элемент преимущества */
.hero__info-elem:hover .hero__info-icon img {
    transform: scale(1.1);
}

#page > div#header[role="banner"] {
    display: none !important;
}

body.page-id-320 > hr,
body.page-id-320 hr {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}