/* ==========================================================================
   CSS ЗМІННІ ТА БАЗОВІ НАЛАШТУВАННЯ (DUPOMEC.ONE)
   ========================================================================== */
:root {
    /* Emerald Green Palette */
    --primary-color: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --bg-color: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --black: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color); color: var(--text-main);
    line-height: 1.7; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ==========================================================================
   УТИЛІТИ ТА СІТКИ (MOBILE-FIRST)
   ========================================================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.relative { position: relative; }
.hidden { display: none; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Безпечні грід-сітки */
.grid-col-1 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-col-2, .grid-col-3, .grid-col-4 { display: grid; grid-template-columns: 1fr; gap: 32px; }

@media (min-width: 768px) {
    .grid-col-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-col-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-col-4 { grid-template-columns: repeat(2, 1fr); }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
    .grid-col-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-col-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   КНОПКИ ТА ФОРМИ
   ========================================================================== */
.btn {
    display: inline-block; padding: 14px 28px; border-radius: var(--radius-md);
    font-weight: 600; text-align: center; cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }

.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-input, .form-textarea {
    width: 100%; padding: 14px; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-family: inherit; transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.form-textarea { min-height: 150px; resize: vertical; }

/* ==========================================================================
   ХЕДЕР ТА НАВІГАЦІЯ
   ========================================================================== */
.site-header {
    background-color: var(--white); box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 1000; padding: 20px 0;
}
.logo { font-size: 28px; font-weight: 800; color: var(--primary-color); letter-spacing: -0.5px; }
.navigation a { font-weight: 500; color: var(--text-main); }
.navigation a:hover { color: var(--primary-color); }

/* Бургер-меню */
.hamburger { display: flex; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
.hamburger .line { width: 30px; height: 3px; background-color: var(--text-main); transition: var(--transition); }
@media (min-width: 768px) { .hamburger { display: none; } }

/* Мобільне меню (логіка на CSS) */
.mobile-nav {
    position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
    padding: 20px; box-shadow: var(--shadow-md); transform: scaleY(0);
    transform-origin: top; transition: var(--transition); opacity: 0; visibility: hidden;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a { display: block; font-size: 18px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
#menu-toggle:checked ~ .mobile-nav { transform: scaleY(1); opacity: 1; visibility: visible; }
#menu-toggle:checked ~ .hamburger .line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#menu-toggle:checked ~ .hamburger .line:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .hamburger .line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   КОМПОНЕНТИ ТА СЕКЦІЇ
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('img/bg.jpg') center/cover no-repeat;
    color: var(--white); padding: 120px 0; text-align: center;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 40px; opacity: 0.9; }

.section-title { font-size: 2.5rem; margin-bottom: 16px; color: var(--black); font-weight: 700; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 48px; font-size: 1.1rem; }

/* Картки */
.card {
    background: var(--white); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid var(--border-color);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon { width: 64px; height: 64px; background: rgba(16, 185, 129, 0.1); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 24px; }
.card h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--black); }

/* Split секція */
.split-section { padding: 100px 0; background-color: var(--white); }
.split-content { display: flex; flex-direction: column; gap: 48px; align-items: center; }
@media (min-width: 992px) { .split-content { flex-direction: row; } .split-text, .split-image { flex: 1; } }
.split-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Акордеон (Таймлайн) */
.accordion-item { border-bottom: 1px solid var(--border-color); padding: 24px 0; }
.accordion-title { font-size: 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { margin-top: 16px; color: var(--text-muted); display: none; }

/* Футер */
.site-footer { background-color: var(--black); color: var(--white); padding: 80px 0 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { color: var(--primary-color); font-size: 24px; font-weight: 800; display: inline-block; margin-bottom: 24px; }
.footer-desc { color: #94a3b8; margin-bottom: 24px; }
.footer-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 24px; color: var(--white); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 32px; text-align: center; color: #94a3b8; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 24px; background-color: var(--black); color: var(--white);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(0); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 250px; font-size: 0.95rem; line-height: 1.6; }
#cookie-banner a { color: var(--primary-color); text-decoration: underline; }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept { background: var(--primary-color); color: var(--white); border: none; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: background 0.3s; }
.cookie-btn-accept:hover { background: var(--primary-dark); }
.cookie-btn-decline { background: transparent; color: var(--white); border: 1px solid #64748b; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.cookie-btn-decline:hover { background: #334155; }
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}