/* General Utilities */
.section { padding: 80px 0; }
.bg-light { background: var(--dark-light); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
}
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { color: var(--primary); margin-bottom: 10px; }

/* Specs Section */
.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.specs-image img { width: 100%; border-radius: 20px; }
.specs-list ul { list-style: none; padding: 0; }
.specs-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}
.specs-list li span { font-weight: bold; color: var(--primary); }

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Співвідношення 16:9 (9/16 = 0.5625) */
    height: 0; /* Важливо для мобільних! */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: #000; /* Чорний фон, поки вантажиться */
}

/* Переконайтесь, що iframe або placeholder розтягуються на повну */
.video-wrapper iframe,
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Оптимізація YouTube */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Трохи затемнюємо фон */
    transition: opacity 0.3s, transform 0.5s;
}

.video-placeholder:hover img {
    opacity: 1;
    transform: scale(1.05); /* Ефект наближення при наведенні */
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.play-btn svg {
    display: block;
    width: 68px;
    height: 48px;
}

/* Стилі для SVG кнопки YouTube */
.play-btn .bg {
    fill: #212121;
    fill-opacity: 0.8;
    transition: fill 0.1s;
}

.video-placeholder:hover .play-btn .bg {
    fill: #ff0000; /* Червоний колір при наведенні */
    fill-opacity: 1;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 15px;
    font-style: italic;
    border-left: 4px solid var(--primary);
}
.review-card .author {
    margin-top: 20px;
    font-weight: bold;
    font-style: normal;
    color: var(--text-muted);
}

/* Order Form */
.order-section {
    background: linear-gradient(rgba(15,23,42,0.9), rgba(15,23,42,0.9)), url('assets/img/map-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}
.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: var(--dark);
    color: white;
    font-size: 1rem;
    box-sizing: border-box; /* Fix for padding */
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.2);
}
.btn-block { width: 100%; text-align: center; }
.form-footer { font-size: 0.9rem; text-align: center; color: var(--text-muted); margin-top: 15px; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }

/* Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .specs-container { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .specs-image { order: -1; margin-bottom: 30px; }
}