:root {
    --bg-dark: #050505;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --font-main: 'Monotype Corsiva', 'Apple Chancery', cursive;
}

* {
    box-sizing: border-box;
}

body { 
    margin: 0; 
    background: var(--bg-dark); 
    color: #fff; 
    font-family: var(--font-main); 
    line-height: 1.7; 
    font-size: 21px;
}

.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: url('bg.jpg') center/cover no-repeat; 
    filter: brightness(0.25);
}

h1, h2, h3, .logo { font-family: var(--font-main); font-weight: normal; }
.logo { font-size: 3rem; color: var(--gold); }
h1 { font-size: 5rem; margin-bottom: 15px; text-shadow: 0 0 15px rgba(0,0,0,1.2); }
h2 { font-size: 4rem; text-align: center; color: var(--gold-light); margin-bottom: 40px; }
h3 { font-size: 2.6rem; color: var(--gold); margin-top: 15px; }

header { display: flex; justify-content: space-between; padding: 20px 5%; align-items: center; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); padding: 10px 25px; text-decoration: none; border-radius: 20px; transition: 0.3s; font-family: var(--font-main); font-size: 1.4rem; background: transparent; cursor: pointer; }
.btn-outline:hover { background: var(--gold); color: #000; }

.hero { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.subtitle { font-size: 1.8rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }
.btn-gold { background: linear-gradient(45deg, var(--gold), #b8860b); color: #000; padding: 18px 35px; text-decoration: none; font-weight: bold; border-radius: 5px; display: inline-block; margin: 10px; border: none; cursor: pointer; font-family: var(--font-main); font-size: 1.5rem; }
.btn-text { color: var(--gold-light); text-decoration: underline; margin-left: 20px; cursor: pointer; font-size: 1.5rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.split { display: flex; gap: 40px; align-items: center; }
.img-block { flex: 1; }
.text-block { flex: 1; }
.img-block img { width: 100%; border-radius: 10px; border: 1px solid var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); object-fit: cover; }
.check-list li { list-style: none; margin: 12px 0; font-size: 1.5rem; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 40px; 
    justify-content: center; 
}
.card { 
    background: rgba(10, 10, 10, 0.9); 
    padding: 0; 
    border-radius: 15px; 
    border: 1px solid var(--gold); 
    overflow: hidden; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }
.video-wrapper {
    width: 100%;
    height: 280px; 
    position: relative;
    border-bottom: 2px solid var(--gold);
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.8) sepia(0.3); 
}
.card p { font-size: 1.4rem; padding: 15px 20px 0; color: #ddd; margin-bottom: 20px; text-align: center; }
.btn-price { 
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    padding: 14px 35px; border-radius: 20px; cursor: pointer; margin: 0 auto 25px;
    font-family: var(--font-main); font-size: 1.5rem; transition: 0.3s; display: block;
}
.btn-price:hover { background: var(--gold); color: #000; }

/* Отзывы */
.reviews-section { padding: 80px 20px; background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f0f 100%); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 60px; }
.review-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 175, 55, 0.3); padding: 30px; border-radius: 15px; transition: 0.3s; }
.review-card p { font-size: 1.3rem; }
.review-card:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 15px; }
.author { display: block; margin-top: 15px; color: var(--gold-light); font-style: italic; text-align: right; }

/* Форма отзыва */
.add-review-box { max-width: 600px; margin: 0 auto; background: #0a0a0a; padding: 40px; border-radius: 20px; border: 1px solid var(--gold); text-align: center; }
.add-review-box h3 { margin-bottom: 25px; font-size: 2rem; }

/* ============================================
   ЗВЁЗДОЧКИ ОТЗЫВОВ (ИСПРАВЛЕННЫЕ)
   ============================================ */
.star-rating { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin: 20px 0; 
    font-size: 2.5rem; 
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.star-rating span { 
    color: #333; 
    transition: all 0.15s ease;
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    line-height: 44px;
    text-align: center;
}

.star-rating span.active { 
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.star-rating span:active {
    transform: scale(0.9);
}

/* Форма контактов */
.contact-final { padding: 80px 20px; background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%); }
.form-box { 
    max-width: 500px; margin: 0 auto; background: #000000; padding: 50px 40px; 
    border-radius: 20px; border: 1px solid var(--gold);
    box-shadow: 0 0 0 4px #000, 0 0 0 6px var(--gold), 0 0 40px rgba(212, 175, 55, 0.3); 
    text-align: center;
}
.form-header h2 { margin-bottom: 10px; font-size: 2.8rem; }
.form-header p { margin-bottom: 30px; color: #aaa; font-size: 1.1rem; }

input, textarea, select { 
    width: 100%; padding: 16px; margin-bottom: 20px; background: #111; 
    border: 1px solid #333; color: white; border-radius: 8px; 
    font-family: var(--font-main); font-size: 18px; box-sizing: border-box; 
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 1em top 50%; background-size: .8em auto;
}
option { background-color: #111; color: white; }

.messengers { display: flex; gap: 15px; justify-content: center; margin-top: 30px; border-top: 1px solid #333; padding-top: 20px; flex-wrap: wrap; }
.msg-btn { padding: 14px 28px; border-radius: 8px; text-decoration: none; color: white; font-weight: bold; font-family: var(--font-main); font-size: 1.4rem; }
.msg-btn.phone { background: linear-gradient(45deg, #d4af37, #b8860b); }
.msg-btn.phone:hover { background: linear-gradient(45deg, #f3e5ab, #d4af37); color: #000; }
.tg { background: #0088cc; }
.wa { background: #25D366; }

/* Модальное окно выбора мессенджера */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal.active { display: flex; }
.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--gold);
    border-radius: 15px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gold);
}
.modal-content h3 { font-size: 2rem; margin-bottom: 10px; }
.modal-subtitle { color: #aaa; margin-bottom: 25px; }
.modal-buttons { display: flex; flex-direction: column; gap: 12px; }
.modal-btn {
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: 0.3s;
    color: white;
}
.modal-btn:hover { transform: scale(1.03); }
.btn-phone { background: linear-gradient(45deg, #d4af37, #b8860b); color: #000; font-size: 1.4rem; }
.btn-phone:hover { background: linear-gradient(45deg, #f3e5ab, #d4af37); }
.btn-whatsapp { background: #25D366; }
.btn-telegram { background: #0088cc; }
.btn-email { background: #d4af37; color: #000; }

/* Анимация уведомлений */
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Адаптация */
@media (max-width: 768px) {
    h1 { font-size: 3.2rem; } 
    h2 { font-size: 2.8rem; } 
    h3 { font-size: 2rem; }
    .split { flex-direction: column; text-align: center; }
    .img-block { width: 80%; margin: 0 auto; }
    .container { padding: 40px 15px; }
    header { flex-direction: column; gap: 15px; }
    .form-box { padding: 30px 20px; }
    .grid { grid-template-columns: 1fr; }
    .star-rating { font-size: 3rem; gap: 5px; }
    .star-rating span { min-width: 50px; min-height: 50px; line-height: 50px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.2rem; }
    .subtitle { font-size: 1.3rem; }
    body { font-size: 17px; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .btn-text { margin-left: 0; }
}