/* --- ЗМІННІ --- */
:root {
    --primary: #0072FF;
    --primary-grad: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --secondary: #2C3E50;
    --text-main: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #F8F9FC;
    --border: #E1E5EA;
    --shadow: 0 10px 30px rgba(0, 114, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; 
    font-family: 'Inter', sans-serif;
    color: var(--text-main); 
    background-color: var(--bg-white);
    line-height: 1.6; 
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100%;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--secondary); }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- НАВІГАЦІЯ --- */
nav {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 20px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }

/* Меню (Десктоп) */
.menu { display: flex; gap: 30px; }
.menu a { color: var(--text-main); font-weight: 500; font-size: 15px; }
.menu a:hover { color: var(--primary); }
.burger { display: none; font-size: 24px; color: var(--secondary); cursor: pointer; }

/* Стилі для телефону в шапці та блоку дій */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-phone {
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-phone i { color: var(--primary); }
.header-phone:hover { color: var(--primary); }

/* Кнопки */
.btn-main {
    background: var(--primary-grad); color: #fff; border-radius: 50px;
    font-weight: 600; text-align: center; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3); transition: 0.3s;
    display: inline-block;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(0, 114, 255, 0.15); }
.btn-main.small { padding: 8px 25px; font-size: 14px; }
.btn-main.big { padding: 15px 40px; font-size: 16px; }

.btn-outline {
    background: transparent; border: 2px solid #ddd; color: var(--text-main);
    padding: 13px 30px; border-radius: 50px; font-weight: 600; display: inline-block;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-text-icon {
    background: none; border: none; color: var(--primary); font-weight: 600; font-size: 16px;
    cursor: pointer; padding: 15px; display: flex; align-items: center; gap: 8px; margin: 0 auto;
}

/* --- HERO SECTION --- */
.hero {
    padding: 120px 0 80px; 
    position: relative; 
    overflow: hidden;
    background: radial-gradient(circle at top right, #f0f8ff, #fff);
}
.hero-content { 
    position: relative; z-index: 2; max-width: 650px; 
    margin: 0 auto; text-align: center;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; }
.subtitle { font-size: 1.1rem; color: var(--primary); font-weight: 600; margin-bottom: 20px; }
.hero-desc { color: var(--text-light); font-size: 1.1rem; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center;}

/* Декор */
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; }
.shape-1 { width: 300px; height: 300px; background: rgba(0, 198, 255, 0.1); top: -50px; right: -50px; }
.shape-2 { width: 400px; height: 400px; background: rgba(0, 114, 255, 0.05); bottom: 0; left: -100px; }

/* --- SECTIONS --- */
section { padding: 80px 0; }
.section-gray { background: var(--bg-light); }
.section-clean { background: var(--bg-white); }
.section-gradient { background: linear-gradient(180deg, var(--bg-white) 0%, #f0f4ff 100%); }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.badge { background: #E6F0FF; color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.check-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.check-list i { color: var(--primary); font-size: 20px; }
.rounded-shadow { border-radius: 20px; box-shadow: var(--shadow); width: 100%; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.info-card {
    background: #fff; padding: 30px; border-radius: 20px; text-align: center;
    border: 1px solid var(--border); transition: 0.3s;
}
.info-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }
.icon-box { width: 60px; height: 60px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); font-size: 24px; }
.big-num { font-size: 18px; font-weight: 700; color: var(--primary); margin: 5px 0; }

/* Table */
.shadow-box { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th { background: #f1f5f9; padding: 15px; text-align: left; color: var(--secondary); font-size: 15px; }
td { padding: 15px; border-bottom: 1px solid #eee; font-size: 15px; color: var(--text-light); }
tr:last-child td { border-bottom: none; }

.conditions-grid { display: flex; justify-content: center; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.cond-item { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.cond-item i { font-size: 24px; }

/* --- GALLERY (НОВІ СТИЛІ З ТЕКСТОМ) --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px; 
}

.g-item { 
    border-radius: 12px; 
    overflow: hidden; 
    background: #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    height: auto;
}

/* Обгортка для картинки */
.g-img-box {
    height: 200px; 
    width: 100%;
    overflow: hidden;
    position: relative;
}

.g-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

/* Стиль тексту знизу */
.g-title {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    border-top: 1px solid #eee;
}

/* Ефекти при наведенні */
.g-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.g-item:hover .g-img-box img { 
    transform: scale(1.1); 
}

/* --- FORM --- */
.shadow-box-lg {
    background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 40px; max-width: 800px; margin: 0 auto;
}
.detail-card { 
    background: var(--bg-light); padding: 25px; border-radius: 16px; 
    margin-bottom: 20px; border: 1px solid #eee; position: relative;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.btn-remove { background: transparent; border: none; color: #ff4d4d; cursor: pointer; font-size: 18px; }

.inputs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.contact-data-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 30px; }
.full { grid-column: 1 / -1; }

label { font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; display: block; }

/* Стилі для Select (Стрілочка) */
.select-wrapper {
    position: relative;
    width: 100%;
}
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 12px;
}
.modern-input, .modern-select {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 15px; outline: none; transition: 0.3s; background: #fff;
    height: 48px;
    appearance: none; -webkit-appearance: none;
}
.modern-select { background-image: none; cursor: pointer; } 
.modern-input:focus, .modern-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.1); }

/* Прибрати не функціональні стрілки в input number */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Drag & Drop Styles */
.file-box label {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 2px dashed #ccc; padding: 0 15px; border-radius: 8px; cursor: pointer;
    color: var(--text-light); transition: 0.3s; width: 100%; margin: 0;
    height: 48px; background: #fff;
}
.file-box label.drag-over {
    border-color: var(--primary);
    background-color: rgba(0, 114, 255, 0.05);
    transform: scale(1.02);
}
.file-box input { display: none; }

.submit-btn-fix { width: 100%; margin-top: 20px; padding: 16px 0; font-size: 18px; height: auto; min-height: 55px; }

.radio-buttons { display: flex; gap: 15px; }
.radio-btn { flex: 1; }
.radio-btn input { display: none; }
.radio-btn span {
    display: flex; align-items: center; justify-content: center; height: 48px;
    border: 1px solid #ddd; border-radius: 8px; cursor: pointer; 
    font-weight: 500; transition: 0.3s; font-size: 15px; background: #fff;
}
.radio-btn input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.safe-note { text-align: center; font-size: 13px; color: #888; margin-top: 15px; }

/* --- FAQ --- */
.faq-list details { background: #fff; margin-bottom: 15px; border-radius: 12px; padding: 20px; border: 1px solid #eee; cursor: pointer; }
.faq-list summary { 
    font-weight: 600; font-size: 16px; outline: none; list-style: none; 
    display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: var(--primary); transition: 0.3s; font-size: 14px;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list p { margin-top: 15px; color: var(--text-light); }

/* --- FOOTER --- */
footer { background: #fff; padding: 60px 0 20px; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-row { display: flex; gap: 15px; margin-bottom: 20px; color: var(--text-main); align-items: flex-start; }
.contact-row i { color: var(--primary); font-size: 20px; margin-top: 5px; }
.contact-row a { color: var(--text-main); font-weight: 600; font-size: 1.1rem; }
.mt-20 { margin-top: 20px; }

.social-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; margin-left: -100px; }
.soc-btn { padding: 10px 20px; border-radius: 30px; color: white; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.phone-btn { background: #28a745; }
.viber { background: #7360f2; }
.telegram { background: #0088cc; }
.footer-map iframe { width: 100%; height: 250px; border-radius: 12px; border: none; box-shadow: var(--shadow); }
.copyright { text-align: center; margin-top: 50px; color: #999; font-size: 13px; }

/* Телефони (0 - 700px) */
@media (max-width: 700px) {
    .container { padding: 0 15px; overflow-x: hidden; }

    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; pointer-events: auto !important; }

    /* Навігація */
    .menu { 
        display: none; 
        flex-direction: column; position: absolute; top: 70px; left: 0; 
        width: 100%; background: #fff; padding: 20px; border-bottom: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05); gap: 15px;
    }
    .menu.active { display: flex; }
    
    .desktop-only { display: none !important; }
    .burger { display: block; }
    
    .hero { padding-top: 100px; padding-bottom: 50px; }
    .hero-content { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-main, .btn-outline { width: 100%; text-align: center; padding: 12px 0; }

    .grid-2, .inputs-grid, .contact-data-grid, .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    
    .footer-info { text-align: center; }
    .contact-row { justify-content: center; }
    .footer-map { margin-top: 20px; }

    .shadow-box-lg { padding: 25px 15px; }
    .section-header h2 { font-size: 1.8rem; }

    .social-btns { margin-left: 0; justify-content: center; width: 100%; }
    .conditions-grid { flex-direction: column; align-items: center; gap: 20px; }
    .info-card { touch-action: pan-y; }
    .info-card:hover { transform: none !important; box-shadow: none !important; border-color: #E1E5EA !important; }                                                                                                                              
}

@media (max-width: 450px) {
    .cond-item { font-size: 0.95rem; }
    .cond-item i { font-size: 20px; }
    .hero h1 { font-size: 1.8rem; } 
    .social-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-left: 0; width: 100%; margin-top: -40px; margin-left: 15px; }
}