/* style.css */

/* --- ПЕРЕМЕННЫЕ И СБРОС --- */
:root {
    --primary: #FF7F00; /* Строительный оранжевый */
    --primary-hover: #E66A00;
    --dark: #2A2A2A;
    --gray: #F4F6F8;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --font-main: 'Open Sans', sans-serif;
    --font-head: 'Montserrat', sans-serif;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--dark); margin-bottom: 15px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* --- КОМПОНЕНТЫ --- */
.btn {
    display: inline-block; padding: 14px 28px; border-radius: 50px; 
    font-weight: 600; text-transform: uppercase; font-size: 14px; 
    cursor: pointer; border: none; letter-spacing: 0.5px;
}
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(255, 127, 0, 0.3); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn--outline { border: 2px solid var(--primary); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--outline-light { border: 2px solid var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--primary); }
.btn--full { width: 100%; text-align: center; border-radius: var(--radius); }

.section-title { font-size: 32px; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 50px; }
.text-left { text-align: left; }

/* --- HEADER --- */
.navbar { background: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.navbar__wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--dark); }
.logo span { color: var(--primary); }
.navbar__menu { display: flex; gap: 30px; }
.navbar__menu a { font-weight: 600; font-size: 14px; text-transform: uppercase; }
.navbar__menu a:hover { color: var(--primary); }
.navbar__phone { font-weight: 700; font-size: 18px; display: block; text-align: right; }
.navbar__status { font-size: 12px; color: #28a745; display: block; text-align: right; }
.navbar__toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.navbar__toggle span { width: 25px; height: 3px; background: var(--dark); border-radius: 3px; }

/* --- HERO --- */
.hero { 
    height: 650px; 
    position: relative; 
    display: flex; 
    align-items: center; 
    /* ВАЖНО: убедись, что кавычки одинарные, и путь правильный */
    background: url('img/hero-bg.webp') center/cover no-repeat; 
    
    /* Если картинки нет, будет темно-серый фон */
    background-color: #333; 
}
.overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,30,30,0.9) 0%, rgba(30,30,30,0.4) 100%); }
.hero__content { position: relative; z-index: 2; color: var(--white); }
.hero__tag { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.hero__title { font-size: 48px; line-height: 1.2; color: var(--white); margin-bottom: 20px; }
.hero__title span { border-bottom: 3px solid var(--primary); }
.hero__subtitle { max-width: 600px; font-size: 18px; opacity: 0.9; margin-bottom: 40px; }
.hero__buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__features-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.hf-item { background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 20px; backdrop-filter: blur(5px); }

/* --- FOUNDER (ABOUT) --- */
.founder { padding: 80px 0; background: var(--white); }
.founder__wrap { display: flex; gap: 50px; align-items: center; }
.founder__photo img { width: 100%; max-width: 400px; border-radius: var(--radius); box-shadow: 20px 20px 0 var(--gray); }
.founder__content { flex: 1; }
.founder__text { font-size: 16px; border-left: 4px solid var(--primary); padding-left: 20px; margin-bottom: 30px; font-style: italic; }
.founder__stats { display: flex; gap: 40px; }
.founder__stats strong { font-size: 24px; color: var(--primary); display: block; }

/* --- CALCULATOR --- */
.calculator-section { background: var(--gray); padding: 80px 0; }
.calculator-wrapper { display: flex; gap: 40px; flex-wrap: wrap; background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.calc-controls { flex: 3; min-width: 300px; }
.calc-result { flex: 2; min-width: 280px; background: var(--dark); color: var(--white); padding: 30px; border-radius: var(--radius); text-align: center; }

.calc-group { margin-bottom: 30px; }
.calc-group label { display: block; font-weight: 700; margin-bottom: 15px; }
.calc-options { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-btn { 
    background: transparent; border: 1px solid #ddd; padding: 10px 20px; 
    border-radius: 4px; cursor: pointer; transition: 0.2s; 
}
.calc-btn:hover { border-color: var(--primary); }
.calc-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.range-slider { width: 100%; cursor: pointer; accent-color: var(--primary); }

.calc-result__label { opacity: 0.7; margin-bottom: 5px; }
.calc-result__sum { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.lead-form input { width: 100%; padding: 12px; margin-bottom: 10px; border: none; border-radius: 4px; }
.lead-form small { display: block; font-size: 10px; opacity: 0.5; margin-top: 10px; }

/* --- PRICES --- */
.prices-section { padding: 80px 0; }
.prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.price-card { background: var(--white); padding: 30px; border: 1px solid #eee; border-radius: var(--radius); transition: 0.3s; position: relative; }
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.price-card.popular { border: 2px solid var(--primary); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 4px 12px; font-size: 12px; font-weight: 700; border-radius: 20px; }
.price-val { font-size: 20px; font-weight: 700; color: var(--primary); margin: 10px 0 20px; }
.price-list { margin-bottom: 25px; color: var(--text-light); font-size: 14px; }
.price-list li { margin-bottom: 8px; position: relative; padding-left: 20px; }
.price-list li::before { content: "•"; color: var(--primary); position: absolute; left: 0; }

/* --- PORTFOLIO --- */
.portfolio { padding: 80px 0; background: var(--white); }
.portfolio__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project-card { height: 250px; position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover img { transform: scale(1.1); }
.project-info { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); 
    color: var(--white); padding: 20px; 
}

/* --- FAQ --- */
.faq-section { background: var(--gray); padding: 80px 0; }
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); margin-bottom: 10px; border-radius: var(--radius); box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.faq-item summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; color: var(--primary); font-size: 20px; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 20px 20px; font-size: 14px; color: var(--text-light); }

/* --- FOOTER --- */
.footer { background: var(--dark); color: #888; padding: 60px 0 20px; }
.footer__wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #444; }
.logo--footer { color: var(--white); }
.footer h4 { color: var(--white); margin-bottom: 15px; }
.footer__link { display: block; margin-bottom: 10px; color: #bbb; }
.footer__copyright { text-align: center; margin-top: 20px; font-size: 13px; }

/* --- TELEGRAM BUTTON --- */
.float-tg {
    position: fixed; bottom: 25px; right: 25px; background: #2AABEE; color: white;
    padding: 12px; border-radius: 50px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4); z-index: 999;
}
.float-tg:hover .float-tg__text { display: block; max-width: 200px; padding-right: 5px; }
.float-tg__text { display: none; font-weight: 600; font-size: 14px; animation: fadeIn 0.3s; }

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 768px) {
    .navbar__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .navbar__menu.active { display: flex; }
    .navbar__toggle { display: flex; }
    .navbar__info { display: none; }
    .hero__title { font-size: 30px; }
    .hero__features-row { flex-direction: column; gap: 10px; }
    .founder__wrap { flex-direction: column-reverse; }
    .calculator-wrapper { padding: 20px; }
    .float-tg__text { display: none !important; } /* Только иконка на мобиле */
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }