@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary: #00a8ff;
    --dark: #1a1a1a;
    --light: #ffffff;
    --btn-grad: linear-gradient(135deg, #00a8ff 0%, #0076b3 100%);
    --bg-gray: #fcfcfc;
}

html, body { width: 100%; overflow-x: hidden; font-family: 'Montserrat', sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; margin: 0; padding: 0; }

/* HEADER */
header { background: #fff; padding: 10px 0; position: fixed; top: 0; width: 100%; z-index: 1000; border-bottom: 1px solid #eee; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }
.header-left-group { display: flex; align-items: center; gap: 20px; }
.logo img { height: 90px; width: auto; margin-top:-20px; margin-bottom:-20px }
.phone-link { font-weight: 800; color: #004466; text-decoration: none; font-size: 1.2rem; }

/* MENU */
.services-btn { background: var(--dark); color: #fff; padding: 9px 16px; cursor: pointer; font-weight: 700; font-size: 0.9rem; border-radius: 2px; text-transform: uppercase; }
#menu-toggle { display: none; }
.nav-overlay { 
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; 
    background: var(--dark); z-index: 1001; padding: 60px 25px; 
    transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0); 
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}
#menu-toggle:checked ~ .nav-overlay { right: 0; }
.close-menu { color: #fff; font-size: 35px; position: absolute; top: 15px; right: 20px; cursor: pointer; }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { 
    color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); 
    font-weight: 300; font-size: 1rem; transition: 0.2s;
}
.nav-links a.active-nav { color: var(--primary); font-weight: 700; }

/* HERO */
.hero { height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('bg.webp') center/cover; color: #fff; text-align: center; }
.main-title { font-size: clamp(2.2rem, 5vw, 3rem);margin-top: 160px; font-weight: 9500; text-transform: none !important; margin-bottom: 20px; line-height: 1.4; padding: 0 5%; letter-spacing: 0; }
.main-title span { font-weight: 400; display: block; color: var(--primary); font-size: 0.7em; margin-top: 10px; margin-bottom: 40px; }

/* FORMS */
.form-box { background: #fff; padding: 35px 25px; max-width: 440px; width: 90%; margin: 0 auto; border-radius: 4px; color: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.form-title { font-weight: 800; font-size: 1rem; margin-bottom: 20px; line-height: 1.3; }
input { width: 100%; padding: 16px; margin-bottom: 15px; border: 1px solid #eee; background: #f9f9f9; outline: none; font-family: inherit; font-size: 1rem; }
.gradient-btn { background: var(--btn-grad); color: #fff; border: none; font-weight: 800; cursor: pointer; padding: 18px; width: 100%; text-transform: uppercase; transition: 0.3s; }
.gradient-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4); }
.form-note { font-size: 0.7rem; color: #4f4f4f; margin-top: 10px; text-transform: uppercase; }

/* SERVICES GRID (ОБНОВЛЕНО) */
.services-grid-section { padding: 80px 7%; background: var(--bg-gray); }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 50px; font-weight: 700; text-transform: none; color: var(--dark); }
.brand-accent { color: var(--primary); font-weight: 800; }

.services-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.service-card { background: #fff; border: 1px solid #eee; transition: 0.4s; overflow: hidden; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.s-img { height: 220px; background-size: cover; background-position: center; }

.s-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.s-info h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 800; color: var(--dark); }
.s-info p { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

/* Кнопка позвонить в услугах */
.btn-call-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: auto;
}
.btn-call-service:hover { background: var(--primary); color: #fff; }
.btn-call-service svg { transition: 0.3s; }
.btn-call-service:hover svg { transform: rotate(15deg) scale(1.1); fill: #fff; }

/* ПРЕИМУЩЕСТВА */
.best-in-minsk { padding: 80px 7%; background: #fff; }
.best-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.best-num { display: block; font-size: 3.2rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 10px; opacity: 0.9; }
.best-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.best-item p { font-size: 0.85rem; color: #666; line-height: 1.5; }

/* ЦЕНЫ */
.price-section { padding: 80px 7%; background: var(--bg-gray); }
.price-container { max-width: 750px; margin: 0 auto; background: #fff; padding: 20px 40px; border-radius: 4px; border: 1px solid #eee; }
.price-row { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #f4f4f4; font-size: 1rem; }
.price-row:last-child { border-bottom: none; }
.price-row span:last-child { font-weight: 800; color: var(--primary); }

/* FAQ */
.faq-section { max-width: 800px; margin: 80px auto; padding: 0 5%; }
details { border: 1px solid #eee; margin-bottom: 10px; border-radius: 4px; transition: 0.3s; background: #fff; }
details[open] { border-color: var(--primary); }
summary { padding: 20px; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 50px; }
summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); transition: 0.3s; }
details[open] summary::after { content: '−'; }
.faq-content { padding: 0 20px 20px; color: #666; font-size: 0.95rem; line-height: 1.6; }

/* PRE-FOOTER FORM */
.pre-footer-form { padding: 80px 7%; background: var(--dark); }

/* FOOTER */
footer { background: #111; color: #fff; padding: 60px 7% 40px; }
.footer-container { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; max-width: 1400px; margin: 0 auto; }
.footer-phone { font-size: 1.3rem; font-weight: 800; color: var(--primary); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-top:15px }
.footer-links-grid a { color: #00a8ff; text-decoration: none; font-size: 1rem; transition: 0.3s; }
.footer-links-grid a:hover { color: #fff; }

/* ПЛАВАЮЩАЯ КНОПКА */
.floating-phone {
    display: none; position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
    background: var(--primary); border-radius: 50%; z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,168,255,0.4); align-items: center; justify-content: center;
    animation: pulse 2s infinite;
}
.floating-phone svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* НАШИ РАБОТЫ */
.our-works { padding: 80px 7%; background: #fff; }
.works-slider { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.work-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 4px; display: block; }

.master-bg { background: linear-gradient(to right, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.6) 100%), url('master-photo.webp') no-repeat right center / contain; }

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
    .main-title { margin-top: 11px;}
    .header-left-group { flex-direction: column; align-items: flex-start; gap: 2px; }
    .logo img { height: 60px; margin-top:-15px; margin-bottom:-15px; margin-left: -8px }
    .phone-link { font-size: 1.15rem; }
    .hero { height: auto; padding: 130px 5% 70px; }
    .floating-phone { display: flex; }
    .works-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; gap: 10px; }
    .work-item { min-width: 80%; scroll-snap-align: center; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-links-grid { grid-template-columns: 1fr; }
    .master-bg { background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), url('master-photo.webp') no-repeat center / cover; }
}