/* --- style.css: FINAL PRODUCTION VERSION --- */

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --gray-color: #8c8c8c;
    --border-color: #e5e5e5;
    --accent-color: #000000;
    --blue-slogan: #1a237e; /* Цвет слогана */
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition-speed); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   1. ЛОГОТИП
   ========================================= */
.logo {
    display: flex; flex-direction: column; align-items: center; 
    text-decoration: none; line-height: 1; z-index: 201;
}
.logo-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo svg {
    width: 50px; height: 30px; stroke: #000; stroke-width: 4;
    stroke-linecap: square; fill: none; transition: 0.3s;
}
.logo-title {
    font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 400;
    text-transform: uppercase; color: #1a1a1a; letter-spacing: 0.05em; margin-top: 5px;
}
.logo-slogan {
    font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 700;
    text-transform: uppercase; color: var(--blue-slogan); letter-spacing: 0.15em;
}

/* =========================================
   2. ШАПКА И МЕНЮ
   ========================================= */
header {
    padding: 15px 0; position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}
.header-wrap { display: flex; justify-content: space-between; align-items: center; position: relative; }

/* Кнопка Бургер */
.burger-btn {
    width: 35px; height: 30px; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    gap: 6px; z-index: 1002;
}
.burger-line { width: 100%; height: 2px; background-color: #000; transition: all 0.3s ease; }
.burger-line:nth-child(2) { width: 70%; }

.burger-btn.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger-btn.active .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger-btn.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); width: 100%; }

/* Компактное выпадающее меню */
.compact-menu {
    position: absolute;
    top: 70px; right: 20px;
    width: 320px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 30px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}
.compact-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.menu-list { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.menu-item-link {
    font-size: 18px; font-weight: 500; color: #1a1a1a;
    cursor: pointer; position: relative;
    display: flex; align-items: center; justify-content: space-between;
}
.menu-item-link:hover { color: var(--blue-slogan); }

/* Подменю */
.submenu {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    display: flex; flex-direction: column; gap: 10px;
    padding-left: 15px; border-left: 2px solid #f0f0f0; margin-left: 5px;
}
.submenu.open { max-height: 200px; margin-top: 10px; margin-bottom: 10px; }
.submenu a { font-size: 15px; color: #555; display: block; padding: 5px 0; }
.submenu a:hover { color: #000; font-weight: 600; }
.arrow-down { font-size: 12px; transition: transform 0.3s; color: #999; }
.dropdown-trigger.open .arrow-down { transform: rotate(180deg); }

/* =========================================
   3. HERO SECTION (Главный экран)
   ========================================= */
.hero-section {
    position: relative; height: 85vh; min-height: 550px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; margin-bottom: 60px;
    border-radius: 0 0 20px 20px; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Дефолтная картинка, переопределяется в HTML */
    background: url('assets/img/hero-main.jpg') no-repeat center/cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35); z-index: 2;
}
.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 20px; }
.hero-content h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 300; line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* =========================================
   4. СЕТКА И КАРТОЧКИ (GRID)
   ========================================= */
.schema-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color); border-left: 1px solid var(--border-color);
}
.grid-item {
    background-color: #fff; padding: 40px; min-height: 340px;
    display: flex; flex-direction: column; justify-content: space-between;
    border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    position: relative; cursor: pointer; overflow: hidden;
}
.item-large { grid-column: span 2; }

/* Фон при наведении */
.card-bg-img {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover; background-position: center;
    
    /* ИЗМЕНЕНИЕ 1: Картинка видна всегда, но очень бледная (5%) */
    opacity: 0.10; 
    
    transition: opacity 0.5s ease; 
    z-index: 0; 
    filter: grayscale(100%); /* Черно-белый фильтр */
}

/* ИЗМЕНЕНИЕ 2: При наведении картинка становится ярче (25%) */
.grid-item:hover .card-bg-img { 
    opacity: 0.40; 
}
.grid-item:hover { background-color: #111; color: #fff; }

/* Тексты внутри карточек */
.grid-item h3, .grid-item p, .grid-item ul { position: relative; z-index: 2; }
.grid-item h3 { font-size: 24px; font-weight: 400; margin-bottom: 15px; }
.grid-item p, .grid-item ul { color: var(--gray-color); font-size: 14px; }
.grid-item:hover p, .grid-item:hover ul { color: rgba(255,255,255,0.7); }

/* --- ИСПРАВЛЕННЫЕ СТРЕЛКИ (SVG для iPhone) --- */
.arrow-link {
    display: inline-flex; align-self: flex-end;
    width: 24px; height: 24px;
    transition: transform 0.4s, color 0.3s;
    color: inherit; z-index: 2;
}
.arrow-link svg {
    width: 100%; height: 100%;
    stroke: currentColor; stroke-width: 1.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.grid-item:hover .arrow-link { transform: translate(5px, -5px); color: #fff; }

/* =========================================
   5. БЛОК "СПИСОК ДЕЙСТВИЙ" (Черный)
   ========================================= */
.action-list-block {
    padding: 0 !important;
    background-color: #111 !important;
    display: flex; flex-direction: column;
}
.action-link {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; color: #fff; font-size: 20px; font-weight: 300;
    border-bottom: 1px solid #333; transition: 0.3s;
}
.action-link:last-child { border-bottom: none; }
.action-link:hover { background-color: #222; padding-left: 50px; color: #fff; }
.action-link .arrow-link { color: #fff; opacity: 0.5; }
.action-link:hover .arrow-link { opacity: 1; transform: translateX(5px); }

/* =========================================
   6. СТИЛИ ВНУТРЕННИХ СТРАНИЦ
   ========================================= */

/* Блок "Важность" (Текст) */
.importance-block {
    padding: 80px 0; max-width: 900px; margin: 0 auto;
    font-size: 20px; line-height: 1.6;
}
.importance-block strong { font-weight: 600; color: #000; }

/* Спойлеры (Аккордеон) - Портфолио и Реализация */
.portfolio-list { margin-top: 40px; border-top: 1px solid var(--border-color); }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header {
    padding: 40px 0; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; transition: 0.3s;
}
.accordion-header:hover { padding-left: 20px; background-color: #fafafa; }
.accordion-title-row { display: flex; gap: 40px; align-items: baseline; }
.acc-title { font-size: 24px; font-weight: 400; }
.acc-meta { color: var(--gray-color); font-size: 16px; }
.acc-arrow { font-size: 24px; transition: transform 0.4s ease; }
.accordion-header.active .acc-arrow { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.6s ease; opacity: 0; }
.accordion-content.open { opacity: 1; padding-bottom: 60px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.project-gallery img { width: 100%; height: 350px; object-fit: cover; background: #f0f0f0; }

/* Таймлайн (Процесс приемки) */
.timeline { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline-item { padding-left: 50px; position: relative; border-left: 1px solid #e0e0e0; padding-bottom: 60px; }
.timeline-item:last-child { border-left: 1px solid transparent; }
.timeline-marker { position: absolute; left: -6px; top: 0; width: 11px; height: 11px; background: #000; border-radius: 50%; }
.timeline-title { font-size: 24px; font-weight: 400; margin-bottom: 10px; line-height: 1.2; }
.timeline-desc { color: var(--gray-color); font-size: 16px; }

/* Сетка инструментов */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); }
.tool-item { background: #fff; padding: 40px; display: flex; align-items: flex-start; gap: 20px; }
.tool-icon { font-size: 24px; padding: 15px; background: #f5f5f5; border-radius: 50%; min-width: 60px; text-align: center; }

/* Коммерция и Ремонт под ключ */
.link-to-realization {
    background: #111; color: #fff; padding: 60px;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 60px; transition: 0.3s;
}
.link-to-realization:hover { background: #222; padding-left: 70px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.feature-card { background: #f9f9f9; padding: 30px; border-left: 2px solid #000; }

/* =========================================
   7. ФУТЕР
   ========================================= */
footer { background-color: #111; color: #fff; padding: 100px 0 50px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { color: #666; font-size: 12px; margin-bottom: 25px; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: 12px; opacity: 0.7; font-size: 14px; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
footer .logo svg { stroke: #fff; }
footer .logo-title { color: #fff; }
footer .logo-slogan { color: #8c9eff; }

/* =========================================
   8. АНИМАЦИЯ И АДАПТИВ
   ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .schema-grid { grid-template-columns: 1fr; border-left: none; }
    .grid-item { border-left: 1px solid var(--border-color); }
    .item-large { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .compact-menu { width: 90%; right: 5%; }
    .link-to-realization { flex-direction: column; gap: 20px; align-items: flex-start; padding: 40px; }
    .features-grid, .tools-grid, .project-gallery { grid-template-columns: 1fr; }
    .accordion-title-row { flex-direction: column; gap: 5px; }
}