/* --- ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ MONTSERRAT --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-800.woff2') format('woff2');
}
/* ------------------------------------------------ *//* --- 1. БАЗОВЫЕ НАСТРОЙКИ --- */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #333333;
    --gray: #666666;
    --light-bg: #f8f8f8;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--primary);
    background-color: var(--secondary);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }
ul { list-style: none; }

/* --- 2. ШАПКА (HEADER) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.logo span { font-weight: 300; }

nav ul { display: flex; gap: 30px; }
nav a { font-size: 13px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch { display: flex; gap: 15px; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-btn { padding-bottom: 2px; border-bottom: 2px solid transparent; transition: 0.3s; }
.lang-btn.active { border-bottom: 2px solid var(--primary); }

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}
.burger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s ease;
    border-radius: 2px;
}

/* --- 3. ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    height: 85vh;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-size: 4.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero-types {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
}
.hero-locations {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 10px;
}

.btn-hero {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 40px;
    background-color: #f39c12;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    letter-spacing: 1px;
}
.btn-hero:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* --- ПЛАВАЮЩАЯ КНОПКА WHATSAPP --- */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-contact-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-contact-btn:hover { background-color: #128C7E; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6); }

/* --- ОБЩИЕ ЗАГОЛОВКИ --- */
.section-header { padding: 90px 5% 50px 5%; text-align: center; }
.section-title { font-size: 2.2rem; text-transform: uppercase; font-weight: 600; letter-spacing: 2px; margin-bottom: 10px; }
.section-desc { max-width: 700px; margin: 0 auto; color: var(--gray); font-size: 1.1rem; }

/* --- 4. УСЛУГИ --- */
.services-section { background: var(--light-bg); padding-bottom: 100px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 0 5%; }
.service-card { background: #fff; padding: 50px 30px; text-align: center; border: 1px solid #eaeaea; border-radius: 8px; transition: 0.4s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-color: transparent; }
.service-icon { margin-bottom: 25px; display: flex; justify-content: center; }
.service-icon svg { width: 50px; height: 50px; stroke: #f39c12; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { text-transform: uppercase; font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; letter-spacing: 1px; }
.service-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* --- 5. ПОРТФОЛИО --- */
.portfolio-section { background: var(--secondary); padding-bottom: 80px; }
.project-item { margin-bottom: 80px; border-top: 1px solid #eee; padding-top: 60px; }
.project-item:last-child { margin-bottom: 0; border-bottom: none; }

.project-info { padding: 0 5%; margin-bottom: 40px; }
.project-info .lang-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.project-info h3 { flex: 0 0 35%; font-size: 2.2rem; margin-bottom: 0; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.project-info p { flex: 1; color: #444; font-size: 1.1rem; line-height: 1.8; max-width: 800px; }

.gallery-scroller { display: flex; gap: 20px; overflow-x: auto; padding: 0 5% 20px 5%; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.gallery-scroller::-webkit-scrollbar { height: 4px; }
.gallery-scroller::-webkit-scrollbar-thumb { background: #000; border-radius: 10px; }
.gallery-img { height: 500px; width: auto; object-fit: cover; flex-shrink: 0; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- 6. О НАС --- */
#about { background-color: var(--light-bg); padding-bottom: 100px; }
.about-wrapper { display: flex; flex-direction: column; align-items: center; max-width: 900px; margin: 0 auto; padding: 0 5%; text-align: center; }
.about-hook { font-size: 1.6rem; font-weight: 700; margin-bottom: 25px; color: var(--primary); line-height: 1.4; }
.about-text { font-size: 1.1rem; color: #444; line-height: 1.8; margin-bottom: 40px; }

.about-bullets { list-style: none; margin-bottom: 60px; display: inline-block; text-align: left; }
.about-bullets li { position: relative; padding-left: 40px; margin-bottom: 18px; font-size: 1.1rem; font-weight: 500; color: #222; }
.about-bullets li::before { content: "✓"; position: absolute; left: 0; top: -2px; color: #f39c12; font-weight: 800; font-size: 1.3rem; }

.warranty-mini { display: flex; align-items: center; gap: 25px; background: #ffffff; padding: 35px 40px; border-radius: 8px; border-left: 5px solid #000; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 100%; text-align: left; }
.warranty-mini svg { flex-shrink: 0; width: 60px; height: 60px; }
.warranty-mini-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.warranty-mini-text { font-size: 1rem; color: var(--gray); line-height: 1.6; }

/* --- 7. КОНТАКТЫ И ФОРМА --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; background: #111; color: #fff; }
.contact-info { padding: 80px 10%; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #222; }
.contact-details h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 1px;}
.contact-item { margin-bottom: 25px; display: flex; align-items: center; gap: 20px; font-size: 1.1rem; font-weight: 300;}
.contact-icon { font-size: 1.4rem; }

.contact-form-block { padding: 80px 10%; background: #0a0a0a; }
.contact-form-block h2 { margin-bottom: 40px; color: #fff; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
form { display: flex; flex-direction: column; gap: 20px; }

input, textarea { width: 100%; padding: 18px 20px; background: #1a1a1a; border: 1px solid #333; color: #fff; font-size: 16px; font-family: var(--font-main); outline: none; border-radius: 4px; transition: 0.3s; }
input:focus, textarea:focus { border-color: #f39c12; background: #222; }
input::placeholder, textarea::placeholder { color: #666; }

.privacy-box { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: #888; margin-top: 5px; }
.privacy-box input { width: auto; margin-top: 4px; cursor: pointer; }
.privacy-box a { color: #bbb; text-decoration: underline; transition: 0.3s;}
.privacy-box a:hover { color: #fff; }

button { padding: 20px; background: #fff; color: #000; font-weight: 700; font-family: var(--font-main); border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 4px; transition: 0.3s; margin-top: 10px; }
button:hover { background: #f39c12; color: #fff; }

/* --- 8. ПОДВАЛ (FOOTER) --- */
footer { background: #050505; color: #888; padding: 80px 5% 30px 5%; border-top: 1px solid #111; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; text-transform: uppercase; font-size: 1.1rem; font-weight: 600; letter-spacing: 1px;}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { transition: 0.3s; }
.footer-col ul li a:hover { color: #ffffff; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #111; font-size: 0.8rem; }

/* --- АДАПТИВ (ДЛЯ МОБИЛЬНЫХ ТЕЛЕФОНОВ) --- */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid #222; padding: 60px 5%; }
    .contact-form-block { padding: 60px 5%; }
}

@media (max-width: 768px) {
    header { position: sticky; flex-direction: row; padding: 15px 5%; }
    .burger { display: flex; }
    nav { position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; background-color: rgba(255, 255, 255, 0.98); display: flex; align-items: center; justify-content: center; transition: right 0.4s ease; z-index: 1000; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 40px; text-align: center; }
    nav a { font-size: 24px; }
    .burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero { height: auto; padding: 80px 20px 60px; }
    .hero h1 { font-size: 2.3rem; margin-bottom: 15px; }
    .hero-types { font-size: 1.05rem; line-height: 1.5; margin-bottom: 20px; }
    .hero-locations { font-size: 0.85rem; line-height: 1.4; }
    .btn-hero { width: 100%; padding: 18px 20px; }

    .section-title { font-size: 1.6rem; }
    .section-header { padding: 60px 5% 30px 5%; }

    /* УСЛУГИ СВАЙПОМ ДЛЯ МОБИЛОК */
    .services-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 15px; padding: 0 5% 20px 5%; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    .services-grid::-webkit-scrollbar { height: 4px; }
    .services-grid::-webkit-scrollbar-thumb { background: #000; border-radius: 10px; }
    .service-card { flex: 0 0 85%; scroll-snap-align: center; padding: 40px 20px; }

    .project-info .lang-content { flex-direction: column; gap: 10px; }
    .project-info h3 { flex: none; font-size: 1.5rem; margin-bottom: 5px; }
    .project-info p { flex: none; }
    .project-item { padding-top: 40px; margin-bottom: 40px; }
    .portfolio-section { padding-bottom: 20px; }

    .gallery-scroller { gap: 10px; }
    .gallery-img { width: auto; height: 320px; max-width: 85vw; }

    .about-hook { font-size: 1.3rem; }
    .about-bullets li { font-size: 1rem; }
    .warranty-mini { flex-direction: column; text-align: center; padding: 30px 20px; border-left: none; border-top: 5px solid #000; gap: 15px; }

    .floating-contact-btn { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 12px; }
    .floating-contact-btn svg { width: 18px; height: 18px; }
}
.alert { position: fixed; top: 20px; right: 20px; background: #28a745; color: #fff; padding: 15px 25px; z-index: 2000; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); font-weight: 600;}