:root {
    --primary: #e65100;
    --secondary: #2c3e50;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* ===== HERO-КАРТОЧКА С ВИДЕОФОНОМ ===== */

.hero-wrapper {
    background: #f5f7fa;
}

.hero-card {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    color: #fff;
    background: #222; /* запасной фон */
}

.service-hero-card {
    margin-top: 16px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0,0,0,0.25), rgba(0,0,0,0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 36px 40px;
}

.hero-logo {
    height: 104px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.05);
    padding: 6px 10px;
}

.hero-brand-text {
    color: #f8f9fa;
}

.hero-brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-brand-sub {
    font-size: 0.95rem;
    opacity: 0.85;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
}

.hero-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffd54f;
}

.hero-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.95rem;
}

.hero-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 1px;
    color: #ffd54f;
}

/* Правая колонка */
.hero-side-card {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 20px;
    padding: 20px 22px;
    backdrop-filter: blur(6px);
}

.hero-phone-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-phone-number {
    display: inline-block;
    margin-top: 2px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.hero-phone-number:hover {
    text-decoration: underline;
}

/* Кнопки Telegram / WhatsApp */
.btn-telegram {
    background-color: #0088cc;
    border-color: #0088cc;
    color: #fff;
    font-weight: 600;
}

.btn-telegram:hover {
    background-color: #0074ad;
    border-color: #0074ad;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1eb85a;
    border-color: #1eb85a;
    color: #fff;
}

/* Адаптив hero */
@media (max-width: 992px) {
    .hero-content {
        padding: 28px 22px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-card {
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        height: 82px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-content {
        padding: 22px 16px;
    }

    .hero-side-card {
        padding: 14px 14px;
        border-radius: 16px;
        margin-top: 8px;
    }

    .hero-phone-number {
        font-size: 1.1rem;
    }

    .hero-buttons-stack .hero-btn {
        font-size: 0.9rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}

/* ===== Общая ширина под hero-карточку ===== */

.hero-inner {
    max-width: 1150px;
    margin: 0 auto;
}

/* ===== Блок "Наши направления" ===== */

.services-nav-section {
    background: #ffffff;
}

.services-nav-section .badge {
    font-size: 0.9rem;
}

/* ===== SEARCH BOX ===== */

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-box input {
    padding-left: 45px;
    border-radius: 50px;
    border: 2px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(230, 81, 0, 0.25);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* ===== PRICING LIST / АККОРДИОН ===== */

.accordion-button {
    background-color: #fff;
    color: var(--secondary);
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(230, 81, 0, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.price-item:hover {
    background-color: #fafafa;
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-weight: 500;
    color: #0a58ca;
}

.price-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.price-unit {
    font-size: 0.85rem;
    color: #999;
}

/* ===== MINI-PRICE БЛОКИ ПОД КАЖДЫМ HERO ===== */

.mini-price-block {
    max-width: 1150px;
    margin: 16px auto 32px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 16px 20px;
}

.mini-price-block h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.mini-price-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mini-price-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.92rem;
}

.mini-price-item:last-child {
    border-bottom: none;
}

.mini-price-name {
    color: #374151;
}

.mini-price-value {
    white-space: nowrap;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.96rem;
}

.mini-price-unit {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ===== QUIZ ===== */

.quiz-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.quiz-header {
    background: var(--secondary);
    color: white;
    padding: 30px;
    text-align: center;
}

.quiz-body {
    padding: 40px;
}

/* ===== FLOATING WA / TG ===== */

.float-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    line-height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s, opacity 0.2s;
}

.float-wa:hover {
    transform: scale(1.1);
    color: white;
}

.float-tg {
    position: fixed;
    bottom: 25px;
    right: 95px;
    background-color: #0088cc;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s, opacity 0.2s;
}

.float-tg:hover {
    transform: scale(1.1);
    color: white;
}

.hidden-float {
    opacity: 0;
    pointer-events: none;
}

/* Адаптив для строки цены в прайсе */
@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .price-val-col {
        margin-top: 5px;
        align-self: flex-end;
    }

    .mini-price-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mini-price-value {
        margin-top: 2px;
    }
}

/* ===== Локальный аккордеон в блоке ПРОЕКТИРОВАНИЕ (если будешь использовать) ===== */

.design-prices {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 14px 14px 6px;
}

.design-prices h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.design-accordion-item {
    border-top: 1px solid #e5e7eb;
}

.design-accordion-item:first-child {
    border-top: none;
}

.design-accordion-header {
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
}

.design-accordion-body {
    display: none;
    padding: 0 10px 8px 10px;
    font-size: 0.86rem;
    color: #e5e7eb;
}

.design-accordion-item.open .design-accordion-body {
    display: block;
}

.design-accordion-toggle {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #9ca3af;
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
}

.design-accordion-toggle::before,
.design-accordion-toggle::after {
    content: "";
    position: absolute;
    background: #6b7280;
    border-radius: 999px;
}

.design-accordion-toggle::before {
    top: 7px;
    left: 3px;
    right: 3px;
    height: 2px;
}

.design-accordion-toggle::after {
    left: 7px;
    top: 3px;
    bottom: 3px;
    width: 2px;
}

.design-accordion-item.open .design-accordion-toggle::after {
    opacity: 0;
}