/* Вставте це поверх старих стилів, або замініть їх повністю */
:root {
    --bg-color: #ffffff;
    --text-color: #2c3e50;
    --primary-color: #FFC107;
    --primary-hover: #e0a800;
    --secondary-color: #0033A0;
    --light-bg: #f4f7f6;
    --border-color: #eaeced;
    --shadow: 0 8px 25px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: #1a1d20;
    --text-color: #e0e6ed;
    --primary-color: #FFCA28;
    --secondary-color: #4fc3f7;
    --light-bg: #22262a;
    --border-color: #333a40;
    --shadow: 0 8px 25px rgba(0,0,0,0.3);
}

body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg-color); color: var(--text-color); margin: 0; line-height: 1.7; transition: var(--transition); }
a { color: var(--secondary-color); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }
.section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.bg-light { background: var(--light-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--secondary-color); margin-bottom: 10px; }
.subtitle { font-size: 1.2rem; color: #6c757d; max-width: 700px; margin: 0 auto; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; } .w-100 { width: 100%; }

.card-layout { background: var(--bg-color); padding: 40px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }

/* --- ОНОВЛЕНІ КЛАСИ ДЛЯ ІКОНОК (IMG SVG) --- */
.svg-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    object-fit: contain; /* Головний фікс від розмазування/спотворення */
    display: inline-block;
}

.header { position: sticky; top: 0; z-index: 1000; background: var(--bg-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.top-bar { display: flex; justify-content: space-between; padding: 4px 5%; background-color: var(--light-bg); font-size: 0.95rem; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.contacts-top a { margin-right: 20px; color: var(--text-color); display: inline-flex; align-items: center; font-weight: 500;}
.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 5%; flex-wrap: wrap; }
.nav-links { list-style: none; display: flex; gap: 35px; padding: 0; margin: 0; }
.nav-links a { font-weight: 600; font-size: 1.15rem; color: var(--text-color); text-transform: uppercase; }
.nav-links a:hover { color: var(--primary-color); }

.btn-primary, .btn-outline { display: inline-block; padding: 14px 28px; font-size: 1.1rem; font-weight: 700; cursor: pointer; border-radius: 8px; text-align: center; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary-color); color: #111; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4); }
.btn-outline { background: transparent; color: var(--text-color); border: 2px solid var(--primary-color); }
.btn-icon { background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 5px; }

.hero { display: flex; align-items: center; justify-content: space-between; padding: 80px 5%; background: linear-gradient(135deg, var(--light-bg) 0%, var(--bg-color) 100%); }
.hero-content { flex: 1; padding-right: 50px; }
.hero-content h1 { font-size: 3rem; color: var(--secondary-color); line-height: 1.2; margin-bottom: 20px;}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

.tariffs-grid, .geo-grid, .steps-grid, .gallery-grid { display: grid; gap: 30px; margin-top: 30px; }
.tariffs-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.geo-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.tariff-card { background: var(--bg-color); padding: 40px 30px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; border-top: 6px solid var(--primary-color); transition: var(--transition); }
.tariff-card:hover { transform: translateY(-5px); }
.tariff-card .price { font-size: 3.5rem; font-weight: 800; color: var(--secondary-color); margin: 15px 0; }
.tariff-alert { background: rgba(255, 193, 7, 0.1); border-left: 5px solid var(--primary-color); padding: 20px; border-radius: 8px; margin-top: 30px; font-size: 1.1rem; }
.geo-card { padding: 25px; border-radius: 12px; background: var(--light-bg); border: 1px solid var(--border-color); }
.step { text-align: center; padding: 30px 20px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--primary-color); color: #111; font-size: 1.5rem; font-weight: bold; border-radius: 50%; margin-bottom: 15px; }

.calc-container { max-width: 600px; margin: 0 auto; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group input[type="number"] { width: 100%; padding: 14px; border: 2px solid var(--border-color); border-radius: 8px; background: var(--bg-color); color: var(--text-color); font-size: 1.1rem; outline: none; box-sizing: border-box; }
.checkbox { display: flex; align-items: flex-start; gap: 12px; }
.checkbox input { width: 20px; height: 20px; margin-top: 4px; }
.calc-result { margin-top: 25px; font-size: 1.3rem; font-weight: bold; color: var(--secondary-color); padding: 20px; background: var(--light-bg); border-radius: 8px; text-align: center; }
.hidden { display: none !important; }

.social-proof { text-align: center; margin-bottom: 40px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}
.proof-btn { padding: 10px 20px; background: var(--light-bg); border: 1px solid var(--border-color); border-radius: 30px; font-weight: 600; color: var(--text-color); }
.gallery-item { background: var(--bg-color); padding: 10px; border-radius: 12px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.02); }

.accordion details { border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.accordion summary { font-size: 1.2rem; font-weight: 600; cursor: pointer; padding-right: 20px; position: relative; list-style: none; color: var(--secondary-color); }
.accordion p { margin-top: 15px; padding-left: 10px; border-left: 3px solid var(--primary-color); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 2000; backdrop-filter: blur(5px); }
.modal-content { background: var(--bg-color); padding: 40px; border-radius: 16px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: #999; }

/* --- ОНОВЛЕНІ КНОПКИ ДЛЯ МОДАЛКИ (З IMG ІКОНКАМИ) --- */
.modal-contacts { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.btn-contact { padding: 14px; border-radius: 8px; font-weight: bold; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; text-decoration: none !important; transition: var(--transition); color: #fff;}
.btn-contact .svg-icon { width: 24px; height: 24px; margin-right: 12px; }
.btn-contact:hover { transform: translateY(-2px); opacity: 0.9; }
.phone-btn { background: var(--secondary-color); }
.viber-btn { background: #7360f2; }
.tg-btn { background: #2AABEE; }
.email-btn { background: #444; }

footer { background: var(--secondary-color); color: #fff; padding: 50px 5% 30px; text-align: center; }
footer a { color: #fff; margin: 0 15px; }

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding: 50px 5%; }
    .hero-content { padding-right: 0; margin-bottom: 40px; }
    .main-nav { flex-direction: column; gap: 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .top-bar { justify-content: center; gap: 10px; }
}