/* Reset & Base */
:root {
    --primary-color: #ff8800; /* Яркий строительный оранжевый */
    --primary-hover: #ff9933;
    --dark-bg: #121212; /* Почти черный */
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --font-main: 'Inter', sans-serif;
    --font-headers: 'Oswald', sans-serif;
    --gradient-hero: linear-gradient(135deg, rgba(18,18,18,0.95) 0%, rgba(30,30,30,0.8) 100%);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-accent: 0 0 20px rgba(255, 136, 0, 0.3);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-headers);
    text-transform: uppercase;
}

.text-accent {
    color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* UI Elements: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(255,136,0,0.05);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--glow {
    animation: glow 3s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 136, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 136, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 136, 0, 0.2); }
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}

.w-100 {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo__prefix {
    color: #fff;
}

.logo__suffix {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav__link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-weight: 600;
    font-size: 1.1rem;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 50%; transform: rotate(-45deg); }


/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--dark-bg);
    z-index: 999;
    overflow: hidden;
    transition: height 0.4s ease;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    height: 100vh;
}

.mobile-menu__content {
    padding: 40px 20px;
    text-align: center;
}

.mobile-menu__list li {
    margin-bottom: 20px;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}


/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: -70px; /* Compensation for fixed header */
    padding-top: 70px;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?q=80&w=1920&auto=format&fit=crop'); /* Placeholder image of industry */
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: saturate(0); /* ЧБ фон для стиля */
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #121212 0%, rgba(18,18,18,0.7) 100%);
    z-index: -1;
}

.hero__text-block {
    max-width: 600px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #d0d0d0;
    margin-bottom: 30px;
}

.hero__btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero__features {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item__icon {
    color: var(--primary-color);
}


/* Catalog Cards */
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255,255,255,0.1);
}

.card__image-wrapper {
    height: 200px;
    background-color: #2a2a2a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__img {
    transform: scale(1.1);
}

.card__placeholder {
    font-size: 4rem;
    color: #444;
}

.card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card__body {
    padding: 25px;
}

.card__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.card__specs {
    margin-bottom: 20px;
}

.card__specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.card__specs i {
    color: var(--primary-color);
    width: 20px;
}

.card__footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}


/* Process Steps */
.process__steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step__number {
    font-family: var(--font-headers);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.step__icon {
    width: 70px;
    height: 70px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.05);
}

.step__title {
    margin-bottom: 10px;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.step__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
    position: relative;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin-top: 55px;
    display: none;
}

@media(min-width: 992px) {
    .step-connector {
        display: block;
        max-width: 50px;
    }
}


/* Benefits */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
}

.benefit-card:hover {
    background-color: #252525;
    transform: translateY(-5px);
}

.benefit-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--text-muted);
}


/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: #252525;
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.review-card__info {
    flex-grow: 1;
}

.review-card__name {
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-card__date {
    font-size: 0.8rem;
    color: #888;
}

.review-card__rating {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.review-card__text {
    color: #ccc;
    font-style: italic;
    font-size: 0.95rem;
}

/* Calculator Section */
.calculator-section {
    background-color: #1a1a1a;
    position: relative;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--card-bg);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Декоративная полоска */
.calculator-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary-color);
}

.calculator-info .section-title {
    text-align: left;
    margin-left: 0;
}

.calculator-info .section-title::after {
    left: 0;
    transform: translateX(0);
}

.calculator-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.calculator-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.calculator-list i {
    color: var(--primary-color);
    background: rgba(255,136,0,0.1);
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.tg-promo {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tg-promo p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
}

.form__input {
    background-color: #2a2a2a;
    border: 1px solid #333;
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #333;
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
}

.form__select {
    cursor: pointer;
    appearance: none; /* Убираем стандартную стрелку */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff8800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form__privacy {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Footer */
.footer {
    background-color: #0f0f0f;
    padding-top: 60px;
    border-top: 1px solid #222;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer__desc {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer__title {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #fff;
}

.footer__links li, .footer__contacts li {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-muted);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contacts li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contacts i {
    color: var(--primary-color);
}

.footer__bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav, .header__actions .btn {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .header__actions {
        margin-right: 15px;
    }

    .header__actions .phone-link {
        margin-right: 0;
        font-size: 0.9rem; /* Уменьшаем шрифт телефона */
    }
    
    .header__actions .phone-link i {
        font-size: 1.1rem;
    }

    .logo__prefix {
        font-size: 1.2rem;
    }
    .logo__suffix {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 0 15px; /* Уменьшаем отступы контейнера */
        justify-content: space-between;
    }

    .logo {
        margin-right: auto;
    }

    /* Скрываем текст номера на совсем маленьких экранах, оставляем трубку */
    .header__actions .phone-link span {
        display: none;
    }
    
    .header__actions .phone-link {
        width: 40px;
        height: 40px;
        background: rgba(255,136,0,0.1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 10px;
    }
    
    .header__actions .phone-link i {
        margin: 0;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .hero__title {
        font-size: 2rem;
    }
    
    .hero__features {
        flex-direction: column;
        gap: 10px;
    }
    
    .card__specs li {
        font-size: 0.9rem;
    }


    .form__row {
        grid-template-columns: 1fr;
    }

    .hero__btns {
        flex-direction: column;
    }
}

/* --- Modal Styles --- */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 10000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal__content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 136, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.modal__icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.modal__desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}