/* ================= ЗМІННІ (Індустріальний Editorial) ================= */
:root {
    --bg-light: #F0EDE5; /* Фактурний світло-сірий бетон */
    --bg-dark: #3E362E;  /* Глибокий графіт */
    --bg-accent: #8B5A2B; /* Теракота/Іржа */
    
    --text-dark: #1A1A1A;
    --text-light: #F4F4F4;
    
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Безпечна адаптивна типографіка */
    --h1: clamp(2.5rem, 6vw, 6rem);
    --h2: clamp(1.8rem, 4vw, 3rem);
    --h3: clamp(1.2rem, 2vw, 1.8rem);
    --p: clamp(0.95rem, 1vw, 1.1rem);
    
    --trans-fast: 0.3s ease;
    --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= RESET ТА ЗАХИСТ ВІД ЗЛАМІВ ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth;overflow-x: hidden;width: 100%;}
body { background-color: var(--bg-light); color: var(--text-dark); font-family: var(--font-body); line-height: 1.5; overflow-x: hidden; width: 100%;}
body.no-scroll { overflow: hidden; }
img, video, iframe { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Індустріальні лінії та Глобальні класи */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.section-space { padding: 100px 0; }
.border-bottom { border-bottom: 1px solid rgba(0,0,0,0.1); }
.dark-bg { background-color: var(--bg-dark); color: var(--text-light); }
.accent-bg { background-color: var(--bg-accent); color: var(--text-light); }

/* Типографіка */
h1, h2, h3, .brand-logo, .w-num, .contact-link { font-family: var(--font-head); text-transform: uppercase; line-height: 1.1; overflow-wrap: break-word; }
.text-accent { color: var(--bg-accent); }
.text-light { color: var(--text-light); }
.section-title { font-size: var(--h2); border-bottom: 3px solid currentColor; padding-bottom: 5px; margin-bottom: 40px; display: inline-block; }
.section-subtitle {font-size: 1.1rem;color: #555;max-width: 700px;margin: -20px 0 40px 0;}

/* ================= КНОПКИ ================= */
.btn-solid, .btn-outline-dark, .arrow-btn, .btn-white { display: inline-flex; justify-content: center; align-items: center; font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--trans-fast); }
.btn-solid { background: var(--bg-dark); color: var(--text-light); padding: 14px 28px; border: 1px solid var(--bg-dark); }
.btn-solid:hover { background: var(--bg-accent); border-color: var(--bg-accent); }
.btn-outline-dark { border: 2px solid var(--bg-dark); padding: 14px 28px; }
.btn-outline-dark:hover { background: var(--bg-dark); color: var(--text-light); }
.btn-white { background: #ffffff; color: #000000; border: 1px solid #ffffff; }
.btn-white:hover { background: #e5e5e5; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1); }

/* ================= HEADER ================= */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; background: var(--bg-light); border-bottom: 1px solid rgba(0,0,0,0.1); transition: transform 0.4s ease; }
.header.scroll-up { transform: translateY(0); }
.header.scroll-down { transform: translateY(-100%); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; max-width: 1440px; margin: 0 auto; }
.brand-logo { font-size: 2rem; font-weight: 700; position: relative; z-index: 2001;}
.brand-logo span { color: var(--bg-accent); }
.nav-links { display: flex; gap: clamp(15px, 2vw, 30px); }
.nav-links a { font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; position: relative; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--bg-accent); transition: width var(--trans-fast); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }

/* Гамбургер */
.menu-trigger { display: none; background: transparent; border: none; flex-direction: column; justify-content: space-between; width: 32px; height: 20px; cursor: pointer; z-index: 2001; }
.menu-trigger span { display: block; width: 100%; height: 2px; background: var(--text-dark); transition: all 0.3s ease; transform-origin: center; }
.header.menu-open .menu-trigger span { background: var(--text-light); }
.menu-trigger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-trigger.active span:nth-child(2) { transform: translateY(-9px) rotate(-45deg); }

/* Мобільне меню */
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-dark); color: var(--text-light); z-index: 1500; transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; }
.mobile-nav-overlay.active { transform: translateY(0); }
.mobile-nav-inner { width: 100%; padding: 0 40px; text-align: left; opacity: 0; transition: opacity 0.4s ease 0.3s; }
.mobile-nav-overlay.active .mobile-nav-inner { opacity: 1; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-link { font-family: var(--font-head); font-size: clamp(2.5rem, 8vw, 4rem); text-transform: uppercase; line-height: 1; transition: color var(--trans-fast); }
.mobile-link:hover { color: var(--bg-accent); }
.mobile-nav-footer { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #aaa; }
.mobile-nav-footer a { color: var(--text-light); }

/* ================= HERO ================= */
.hero { padding-top: 85px; min-height: 90vh; display: flex; align-items: stretch; border-bottom: 1px solid rgba(0,0,0,0.1); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.hero-text { padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(0,0,0,0.1); }
.tagline { font-weight: 600; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 20px; color: var(--text-dark); }
.headline { font-size: var(--h1); margin-bottom: 30px; }
.sub-headline { font-size: var(--p); color: #444; max-width: 85%; margin-bottom: 40px; border-left: 3px solid var(--bg-accent); padding-left: 15px; }
.hero-visual { width: 100%; height: 100%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.location-badge {display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px;background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.1);border-radius: 100px; font-family: var(--font-body); font-size: 0.85rem;font-weight: 600; color: var(--text-dark); margin-bottom: 30px; width: fit-content;}
.location-badge svg { color: var(--bg-accent); }

/* ================= СІТКА ПОСЛУГ (Bento) ================= */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.bento-item { border: 1px solid rgba(0,0,0,0.1); background: #fff; display: flex; flex-direction: column; transition: transform var(--trans-slow); }
.bento-item:hover { transform: translateY(-5px); border-color: var(--bg-dark); }
.img-box { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #000; }
.img-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform var(--trans-slow), opacity var(--trans-fast); }
.bento-item:hover .img-box img { transform: scale(1.05); opacity: 1; }
.bento-content { padding: 25px; flex-grow: 1; border-top: 1px solid rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; }
.bento-text { flex: 1; }
.bento-content h3 { font-size: var(--h3); margin-bottom: 10px; color: var(--text-dark); }
.bento-content p { font-size: 0.95rem; color: #555; }
.card-arrow { width: 45px; height: 45px; border-radius: 50%; background-color: transparent; border: 1px solid rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; flex-shrink: 0; transition: var(--trans-fast); color: var(--text-dark); }
.card-arrow svg { width: 20px; height: 20px; transition: transform var(--trans-fast); }
.bento-item:hover .card-arrow { background-color: var(--bg-dark); color: var(--text-light); border-color: var(--bg-dark); }

/* ================= 1. PORTFOLIO GRID ================= */
.portfolio-grid-compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; padding: 0 10px; max-width: 1600px; margin: 0 auto; }
.port-item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; cursor: zoom-in; margin: 0; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans-slow); opacity: 0.9; }
.port-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 20px 20px; background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%); color: #fff; transform: translateY(15px); opacity: 0; transition: all var(--trans-fast); pointer-events: none; }
.port-title { font-family: var(--font-head); font-size: 1.15rem; color: var(--text-light); letter-spacing: 1px; margin-bottom: 8px; line-height: 1.2; }
.port-desc { font-size: 0.65rem; color: rgba(255, 255, 255, 0.7); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.port-item:hover img { transform: scale(1.05); opacity: 1; }
.port-item:hover .port-overlay { transform: translateY(0); opacity: 1; }

/* ================= 2. LIGHTBOX ================= */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(5px); z-index: 100000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity var(--trans-fast); padding: 40px 20px; overflow-y: auto; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { display: flex; flex-direction: column; align-items: center; max-width: 900px; width: 100%; gap: 25px; margin: auto; }
.lightbox img { max-width: 100%; max-height: 70vh; object-fit: contain; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); transform: scale(0.95); transition: transform var(--trans-fast); }
.lightbox.active img { transform: scale(1); }
.lightbox-info { text-align: center; max-width: 750px; padding: 0 15px; transform: translateY(15px); opacity: 0; transition: all var(--trans-slow); transition-delay: 0.1s; }
.lightbox.active .lightbox-info { transform: translateY(0); opacity: 1; }
.lightbox-info h3 { font-family: var(--font-head); font-size: 1.6rem; color: var(--bg-accent); margin-bottom: 15px; letter-spacing: 1px; }
.lightbox-info p { font-size: 0.7rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.lightbox-close { position: fixed; top: 20px; right: 30px; color: #000; font-size: 3rem; font-weight: 300; cursor: pointer; z-index: 100001; transition: color var(--trans-fast); line-height: 1; }
.lightbox-close:hover { color: var(--bg-accent); }

/* ================= СИСТЕМА РОБОТИ ================= */
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.1); }
.w-step { background: #ffffff; padding: 50px 40px; display: flex; flex-direction: column; transition: var(--trans-fast); position: relative; z-index: 1; }
.w-step:hover { background: #fdfdfd; box-shadow: inset 0 4px 0 var(--bg-accent); z-index: 2; }
.w-num { font-family: var(--font-head); font-size: 3rem; color: var(--bg-accent); line-height: 1; margin-bottom: 25px; font-weight: 300; }
.w-name { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 15px; }
.w-desc { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* ================= DLACZEGO MY ================= */
.why-grid-industrial { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: flex-start; }
.why-intro-ind { position: sticky; top: 120px; }
.why-desc { font-size: 1.1rem; color: #555; margin-bottom: 40px; line-height: 1.6; max-width: 90%; }
.why-cards-ind { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.w-card-ind { background: #ffffff; border: 1px solid rgba(0,0,0,0.1); padding: 40px 30px; display: flex; flex-direction: column; transition: transform var(--trans-slow), border-color var(--trans-fast); border-radius: 0; }
.w-card-ind:hover { transform: translateY(-5px); border-color: var(--bg-dark); }
.w-icon-ind { width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; margin-bottom: 25px; color: var(--bg-accent); border: 1px solid rgba(0,0,0,0.1); border-radius: 0; transition: var(--trans-fast); }
.w-card-ind:hover .w-icon-ind { background: var(--bg-dark); color: var(--text-light); border-color: var(--bg-dark); }
.w-icon-ind svg { width: 22px; height: 22px; }
.w-card-ind h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 15px; color: var(--text-dark); letter-spacing: 1px; }
.w-card-ind p { font-size: 0.95rem; color: #555; line-height: 1.6; flex-grow: 1; }

/* ================= OPINIONS ================= */
.opinions-grid-industrial { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.opinion-card-ind { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.1); padding: 45px 40px; display: flex; flex-direction: column; border-radius: 0; transition: transform var(--trans-fast), box-shadow var(--trans-fast); }
.opinion-card-ind:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.2); }
.o-stars { display: flex; gap: 4px; margin-bottom: 25px; color: var(--bg-accent); }
.o-stars svg { width: 20px; height: 20px; }
.o-text { font-size: 1.05rem; color: #555; line-height: 1.6; font-style: italic; margin-bottom: 35px; flex-grow: 1; }
.o-author { display: flex; flex-direction: column; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 20px; }
.o-author strong { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 5px; }
.o-author span { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* ================= MATERIALS ================= */
.materials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quality-badge { display: inline-block; padding: 5px 15px; background: var(--bg-dark); color: var(--text-light); font-family: var(--font-head); font-size: 0.8rem; margin-bottom: 20px; text-transform: uppercase; }
.m-lead { font-size: 1.1rem; color: #444; margin-bottom: 30px; }
.materials-list { display: flex; flex-direction: column; gap: 20px; }
.materials-list li { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 15px; }
.materials-list strong { font-family: var(--font-head); font-size: 1.2rem; display: block; color: var(--text-dark); }
.detail-box { position: relative; border: 1px solid rgba(0,0,0,0.1); padding: 15px; background: #fff; }
.detail-box img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: grayscale(100%); transition: filter var(--trans-fast); }
.detail-box:hover img { filter: grayscale(0%); }
.detail-label { position: absolute; bottom: -15px; right: 30px; background: var(--bg-light); border: 1px solid rgba(0,0,0,0.1); padding: 10px 20px; font-family: var(--font-head); font-size: 1rem; font-weight: 700; }

/* ================= FAQ SECTION ================= */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: flex-start; }
.faq-header-col { position: sticky; top: 120px; }
.faq-accordion { display: flex; flex-direction: column; border-top: 1px solid rgba(0,0,0,0.1); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
/* Приховуємо стандартний трикутник браузера */
.faq-question { list-style: none; cursor: pointer; padding: 30px 0; display: flex; justify-content: space-between; align-items: center; transition: color var(--trans-fast);}
.faq-question::-webkit-details-marker { display: none; }
.faq-question h3 { font-size: 1.2rem; margin: 0; color: var(--text-dark); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600;}
/* Іконка стрілки */
.faq-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: transform var(--trans-fast), color var(--trans-fast); }
.faq-icon svg { width: 24px; height: 24px; }
/* Ховер ефект */
.faq-item:hover .faq-question h3,
.faq-item:hover .faq-icon { color: var(--bg-accent); }
/* Стан відкритого акордеону */
details[open] .faq-question h3 { color: var(--bg-accent); }
details[open] .faq-icon { transform: rotate(180deg); color: var(--bg-accent); }
.faq-answer {padding-bottom: 30px; padding-right: 50px; color: #555; line-height: 1.6; font-size: 0.95rem; animation: fadeIn 0.4s ease-in-out;}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); }}

/* ================= КОНТАКТИ ================= */
.contact-full-width { background-color: var(--bg-accent); color: var(--text-light); padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-grid-full { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta-heading { font-family: var(--font-head); font-size: clamp(2.5rem, 4vw, 4rem); color: var(--text-light); margin-bottom: 25px; line-height: 1.1; }
.cta-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; line-height: 1.6; margin-bottom: 40px; max-width: 90%; }
.cta-direct-contacts { display: flex; flex-direction: column; gap: 12px; }
.c-label-light { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.c-phone-light { font-family: var(--font-head); font-size: 2rem; color: var(--text-light); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: opacity var(--trans-fast); width: fit-content; }
.c-phone-light:hover { opacity: 0.7; }
.inline-quote-form-light { display: flex; flex-direction: column; gap: 25px; background: rgba(255, 255, 255, 0.05); padding: 45px; border: 1px solid rgba(255, 255, 255, 0.2); }
.inline-quote-form-light input { width: 100%; padding: 12px 0; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); color: var(--text-light); font-size: 1rem; font-family: var(--font-body); transition: border-color var(--trans-fast); outline: none; border-radius: 0; }
.inline-quote-form-light input::placeholder { color: rgba(255, 255, 255, 0.7); font-family: var(--font-head); letter-spacing: 1px; }
.inline-quote-form-light input:focus { border-bottom-color: var(--text-light); }
.submit-dark-btn { width: 100%; padding: 18px; margin-top: 15px; font-size: 1.1rem; background: var(--bg-dark); color: var(--text-light); border: 1px solid var(--bg-dark); cursor: pointer; font-family: var(--font-head); text-transform: uppercase; transition: var(--trans-fast); }
.submit-dark-btn:hover { background: #ffffff; color: var(--bg-dark); border-color: #ffffff; }
.form-legal-light { text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); margin-top: 10px; line-height: 1.6; }
.form-legal-light a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ================= FOOTER ================= */
.footer { padding: 80px 0 0 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid-symmetric { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 60px; }
.f-col { display: flex; flex-direction: column; }
.f-brand h3 { font-size: 2rem; margin-bottom: 15px; }
.f-brand span { color: var(--bg-accent); }
.f-desc { color: #888; font-size: 0.95rem; line-height: 1.6; }
.f-title { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 1px; color: var(--text-light); margin-bottom: 25px; }
.f-info p, .f-nav a, .f-contact-link { color: #888; font-size: 0.95rem; margin-bottom: 12px; transition: var(--trans-fast); display: block; }
.f-nav a:hover, .f-contact-link:hover { color: var(--text-light); transform: translateX(5px); }
.social-icons { display: flex; gap: 15px; flex-wrap: wrap; }
.social-icons a { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; color: var(--text-light); transition: var(--trans-fast); }
.social-icons a svg { width: 20px; height: 20px; transition: transform var(--trans-fast); }
.social-icons a:hover { background: var(--bg-accent); border-color: var(--bg-accent); color: #fff; }
.social-icons a:hover svg { transform: scale(1.1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.1); color: #666; font-size: 0.85rem; }
.footer-bottom a { color: #888; transition: var(--trans-fast); }
.footer-bottom a:hover { color: var(--text-light); }

/* ================= MODAL WYCENY ================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(18, 18, 18, 0.95); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity var(--trans-fast); padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--bg-light); border: 1px solid rgba(0,0,0,0.1); border-top: 4px solid var(--bg-accent); padding: 60px 50px; width: 100%; max-width: 550px; position: relative; transform: translateY(30px); transition: transform var(--trans-fast); box-shadow: 0 30px 60px rgba(0,0,0,0.5); border-radius: 0; max-height: 90vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bg-accent) transparent; }
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--bg-accent); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 25px; background: none; border: none; color: var(--text-dark); font-size: 3rem; font-weight: 300; cursor: pointer; transition: color var(--trans-fast); line-height: 1; font-family: var(--font-body); }
.modal-close:hover { color: var(--bg-accent); }
.modal-badge { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--bg-accent); display: block; margin-bottom: 10px; }
.modal-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.5rem); text-transform: uppercase; color: var(--text-dark); margin-bottom: 15px; line-height: 1.1; }
.modal-subtitle { color: #555; font-size: 1rem; margin-bottom: 40px; line-height: 1.6; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 30px; }
.form-group { margin-bottom: 25px;}
.quote-form input { width: 100%; padding: 15px 0; background: transparent; border: none; border-bottom: 1px solid rgba(0,0,0,0.2); color: var(--text-dark); font-size: 1rem; font-family: var(--font-body); transition: border-color var(--trans-fast); outline: none; border-radius: 0; }
.quote-form input::placeholder { color: #888; font-family: var(--font-head); letter-spacing: 1px; }
.quote-form input:focus { border-bottom-color: var(--bg-accent); }
.modal-submit-btn { width: 100%; padding: 18px; margin-top: 10px; margin-bottom: 25px; font-size: 1.2rem; }
.modal-legal { text-align: center; font-size: 0.8rem; color: #777; line-height: 1.6; }
.modal-legal a { color: var(--text-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.modal-legal a:hover { color: var(--bg-accent); }

/* ================= FLOATING BUTTONS ================= */
.back-to-top, .callback-btn { position: fixed; bottom: 30px; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; z-index: 1500; transition: var(--trans-fast); border-radius: 0; }
.back-to-top { right: 30px; background: var(--bg-dark); color: var(--text-light); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; opacity: 0; visibility: hidden; }
.back-to-top svg { width: 24px; height: 24px; transition: transform var(--trans-fast); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--bg-accent); border-color: var(--bg-accent); }
.back-to-top:hover svg { transform: translateY(-3px); }
.callback-btn { left: 30px; background: var(--bg-accent); color: var(--text-light); border: none; cursor: pointer; box-shadow: 0 5px 15px rgba(200, 75, 49, 0.4); }
.callback-btn svg { width: 22px; height: 22px; }
.callback-btn:hover { background: var(--bg-dark); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); }
.callback-btn:hover svg { animation: phoneRing 0.5s ease-in-out infinite alternate; }

@keyframes phoneRing {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

/* ================= АНІМАЦІЇ ================= */
.animate-fade { opacity: 0; transition: opacity var(--trans-slow); }
.animate-fade.visible { opacity: 1; }
.animate-slide-up { opacity: 0; transform: translateY(30px); transition: all var(--trans-slow); }
.animate-slide-up.visible { opacity: 1; transform: translateY(0); }
.animate-slide-left { opacity: 0; transform: translateX(40px); transition: all var(--trans-slow); }
.animate-slide-left.visible { opacity: 1; transform: translateX(0); }
.animate-slide-right { opacity: 0; transform: translateX(-40px); transition: all var(--trans-slow); }
.animate-slide-right.visible { opacity: 1; transform: translateX(0); }
.animate-zoom { opacity: 0; transform: scale(0.96); transition: all var(--trans-slow); }
.animate-zoom.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ================= АРХІТЕКТУРНА ВІТРИНА КУХОНЬ (6 карток) ================= */
.kitchen-showcase-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;}
.k-showcase-card {background: #ffffff; border: 1px solid rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; transition: transform var(--trans-slow), box-shadow var(--trans-slow), border-color var(--trans-fast);}
.k-showcase-card:hover {transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.2);}
.k-img-wrap {width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #111;}
.k-img-wrap img {width: 100%; height: 100%; object-fit: cover; opacity: 0.95; transition: transform var(--trans-slow), opacity var(--trans-fast);}
.k-showcase-card:hover .k-img-wrap img {transform: scale(1.05); opacity: 1;}
.k-info {padding: 30px; display: flex; flex-direction: column; flex-grow: 1;}
.k-info h3 {font-size: 1.3rem; color: var(--text-dark); margin-bottom: 15px; padding-bottom: 15px; position: relative;}
/* Акцентна лінія, яка ефектно виїжджає при наведенні */
.k-info h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--bg-accent); transition: width var(--trans-slow);}
.k-showcase-card:hover .k-info h3::after {width: 100%;}
.k-info p {font-size: 0.95rem; color: #555; line-height: 1.6; margin: 0;}

/* ================= STRONA KONTAKTOWA (Osobna) ================= */
.contact-page-wrap {padding: 150px 0 0 0; /* Було 100px знизу, тепер 0 */}
.contact-info-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 30px;margin-bottom: 80px;}
.c-info-card {background: #ffffff;border: 1px solid rgba(0,0,0,0.1);padding: 40px 30px;text-align: center;border-radius: 12px;transition: transform var(--trans-fast), box-shadow var(--trans-fast);}
.c-info-card:hover {transform: translateY(-5px);box-shadow: 0 15px 35px rgba(0,0,0,0.05);}
.c-info-icon {color: var(--bg-accent);margin-bottom: 20px;display: flex;justify-content: center;}
.c-info-card h3 {font-size: 1.2rem;margin-bottom: 15px;color: var(--text-dark);}
.c-info-card p {color: #555;margin-bottom: 10px;line-height: 1.6;}
.c-info-card a {color: var(--text-dark);font-size: 1.1rem;font-weight: 600;text-decoration: none;transition: color var(--trans-fast);}
.c-info-card a:hover {color: var(--bg-accent);}

/* ================= КАРТА FULL WIDTH ================= */
.map-full-width {width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; height: 500px; margin-top: 100px; margin-bottom: 0; display: block; line-height: 0;}
.map-full-width iframe {width: 100%; height: 100%; display: block; border: none;}

/* ================= LEGAL PAGES (Polityka Prywatności) ================= */
.legal-main { padding: 150px 0 100px 0; }
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 20px;}
.legal-header { margin-bottom: 50px; }
.legal-badge { color: var(--bg-accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.legal-title { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); margin-top: 10px; line-height: 1.1; }
.legal-content { color: #444; line-height: 1.8; font-size: 1.05rem; }
.legal-content h3 { color: var(--text-dark); margin: 40px 0 15px; font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.legal-content li { margin-bottom: 10px; }
.legal-date { margin-top: 50px; font-size: 0.9rem; color: #888; }

/* ================= АДАПТИВНІСТЬ (УСІ МЕДІА ЗАПИТИ В ОДНОМУ МІСЦІ) ================= */
/* Планшети (max-width: 1024px) */
@media (max-width: 1024px) {
    .desktop-only { display: none; }
    .menu-trigger { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-text { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 50px 20px; text-align: center; }
    .sub-headline { margin: 0 auto 30px auto; border-left: none; padding-left: 0; }
    .hero-visual { height: 55vh; min-height: 400px; }
    .hero-visual img { object-position: center; }
    .location-badge { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .w-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
    .materials-grid { grid-template-columns: 1fr; gap: 40px; }
    .materials-visual { order: -1; }
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .faq-header-col { position: relative; top: 0; text-align: center; margin-bottom: 20px;}
    .faq-answer { padding-right: 0; }
    .contact-grid { grid-template-columns: 1fr; text-align: left; }
    .cta-links { text-align: left; }
    .footer-grid-symmetric { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .f-legal { text-align: left; }
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid-industrial { grid-template-columns: 1fr; gap: 40px; }
    .why-intro-ind { position: relative; top: 0; }
    .why-desc { max-width: 100%; }
    /* На планшетах робимо 2 колонки (вийде 3 ряди по 2 картки) */
    .kitchen-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Проміжні екрани для форми (max-width: 992px) */
@media (max-width: 992px) {
    .contact-grid-full { grid-template-columns: 1fr; gap: 60px; }
}

/* Телефони (max-width: 768px) */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section-space { padding: 70px 0; }
    .nav-container { padding: 15px 20px; }
    .portfolio-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 0 5px; }
    .port-overlay { opacity: 1; transform: translateY(0); padding: 30px 10px 10px; }
    .port-title { font-size: 0.7rem; margin-bottom: 4px; }
    .port-desc { font-size: 0.55rem; -webkit-line-clamp: 2; }
    .lightbox { padding: 60px 15px 20px; }
    .lightbox img { max-height: 45vh; }
    .lightbox-close { top: 10px; right: 20px; font-size: 2.5rem; }
    .lightbox-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
    .lightbox-info p { font-size: 0.9rem; line-height: 1.6; }
    .workflow-grid { grid-template-columns: 1fr; }
    .w-step { padding: 40px 25px; }
    .w-num { font-size: 2.5rem; margin-bottom: 15px; }
    .why-cards-ind { grid-template-columns: 1fr; gap: 15px; }
    .w-card-ind { padding: 30px 20px; }
    .opinion-card-ind { padding: 35px 25px; }
    .o-text { font-size: 1rem; }
    .faq-question { padding: 20px 0; gap: 15px; }
    .faq-question h3 { font-size: 1.1rem; }
    .faq-answer { padding-bottom: 20px; }
    /* На телефонах - 1 колонка */
    .kitchen-showcase-grid { grid-template-columns: 1fr; }
    .k-info { padding: 25px 20px; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-full-width { padding: 60px 0; }
    .inline-quote-form-light { padding: 30px 20px; }
    .c-phone-light { font-size: 1.6rem; }
    .submit-dark-btn { padding: 15px; }
    .footer-grid-symmetric { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-icons { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .f-nav a:hover, .f-contact-link:hover { transform: none; }
    .modal-content { padding: 30px 20px; }
    .modal-close { top: 5px; right: 15px; font-size: 2.5rem; }
    .modal-title { font-size: 1.8rem; margin-bottom: 10px; }
    .modal-subtitle { margin-bottom: 20px; padding-bottom: 15px; font-size: 0.9rem; }
    .form-group { margin-bottom: 15px; }
    .quote-form input { padding: 12px 0; }
    .modal-submit-btn { padding: 15px; margin-bottom: 15px; font-size: 1.1rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .callback-btn { bottom: 20px; left: 20px; width: 45px; height: 45px; }
    /* Додатковий захист від горизонтального скролу для сіток */
    .track-container, .bento-grid, .materials-grid, .why-grid, .contact-grid { overflow-x: hidden; }
}