/* --- СБРОС И БАЗА --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: #333; line-height: 1.6; background-color: #fff; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
button { cursor: pointer; font-family: inherit; }

/* --- ЭКРАН 1: HERO --- */
.hero-screen { position: relative; height: 100vh; background-image: url('images/main-01.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.55); z-index: 1; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.top-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; margin-bottom: 15px; font-style: italic; }
.main-title { font-size: 5rem; font-weight: 700; font-style: italic; margin-bottom: 20px; line-height: 1; }
.subtitle { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic; margin-bottom: 50px; font-weight: 400; }
.btn-viber { display: inline-flex; align-items: center; background-color: #fff; color: #000; padding: 18px 45px; border-radius: 50px; font-weight: 500; font-size: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-viber:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,255,255,0.4); }
.check-icon { width: 12px; height: 6px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg); margin-right: 12px; margin-top: -4px; }
.scroll-down { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 24px; height: 24px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; z-index: 2; cursor: pointer; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0) rotate(45deg);} 40% {transform: translateX(-50%) translateY(-10px) rotate(45deg);} 60% {transform: translateX(-50%) translateY(-5px) rotate(45deg);} }

/* --- ЭКРАН 2: ИНФОРМАЦИЯ --- */
.info-screen { padding: 80px 0 40px; background-color: #fff; color: #222; }
.text-content { text-align: center; max-width: 900px; }
.info-block p { margin-bottom: 12px; font-size: 1.05rem; }
.link { border-bottom: 1px solid #ccc; }
.link:hover { border-color: #000; }
.divider-small { height: 20px; }
.main-divider { width: 100px; height: 1px; background-color: #000; margin: 50px auto; }
.thank-you { font-size: 2.8rem; font-weight: 700; margin: 20px 0; }

/* --- ЭКРАН 3: КАТАЛОГ --- */
.catalog-screen { padding: 60px 0 100px; background-color: #f9f9f9; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: #fff; padding-bottom: 20px; transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-image { height: 400px; overflow: hidden; margin-bottom: 20px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 0 20px; }
.product-title { font-size: 1.3rem; margin-bottom: 10px; }
.product-description { font-size: 0.95rem; color: #666; margin-bottom: 15px; height: 60px; overflow: hidden; }
.product-price { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.product-buttons { display: flex; gap: 10px; }
.btn-details, .btn-buy-click { flex: 1; padding: 12px 0; text-align: center; border: 1px solid #000; font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.btn-details { background-color: #000; color: #fff; }
.btn-details:hover { background-color: #333; border-color: #333; }
.btn-buy-click { background-color: #fff; color: #000; }
.btn-buy-click:hover { background-color: #000; color: #fff; }

/* --- ФУТЕР --- */
.site-footer { background-color: #fff; padding: 60px 0; text-align: center; border-top: 1px solid #eee; }
.footer-content { max-width: 900px; }
.footer-content p { margin-bottom: 10px; font-size: 0.9rem; color: #444; }
.footer-content strong { color: #000; }
.footer-note { margin-top: 20px; font-style: italic; opacity: 0.8; }

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Скролл для всего окна, если контент не влезает */
    background-color: rgba(255, 255, 255, 0.95); /* Полупрозрачный белый фон */
    padding: 20px; /* Отступы от краев экрана */
}

.modal-content { 
    max-width: 1000px; /* Ширина контента 1000px */
    margin: 20px auto; /* Центрирование по горизонтали */
    background-color: #fff;
    display: flex; 
    flex-direction: column;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1); /* Легкая тень */
}

.modal-header { padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; }
.modal-back-btn { background: none; border: none; font-size: 1rem; display: flex; align-items: center; color: #666; }
.modal-back-btn:hover { color: #000; }
.arrow-left { margin-right: 10px; font-size: 1.2rem; }
.close-modal { color: #aaa; font-size: 2rem; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: #000; }

.modal-body { 
    display: flex; 
    padding: 0 40px 40px; 
    gap: 50px; 
    align-items: flex-start; /* Выравнивание по верху */
}

.modal-images { 
    width: 400px; /* Фиксированная ширина блока с картинкой */
    flex-shrink: 0; /* Чтобы блок не сжимался */
}

.modal-images img { 
    width: 100%; /* Картинка занимает всю ширину блока (400px) */
    height: auto; 
    display: block;
}

.modal-details { flex: 1; padding-top: 20px; }
.modal-title { font-size: 2rem; margin-bottom: 10px; }
.modal-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 30px; }
.btn-modal-buy { display: inline-block; background-color: #000; color: #fff; padding: 15px 40px; font-weight: 700; font-size: 1rem; margin-bottom: 30px; }
.btn-modal-buy:hover { background-color: #333; }
.modal-description { font-size: 1rem; color: #666; line-height: 1.6; }
body.modal-open { overflow: hidden; }

/* --- АДАПТИВ --- */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .main-title { font-size: 3.5rem; } .subtitle { font-size: 1.1rem; } .thank-you { font-size: 2rem; } .btn-viber { padding: 15px 30px; }
    .info-screen, .site-footer, .catalog-screen { padding-left: 15px; padding-right: 15px; }
    .product-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .product-image { height: 350px; }

    /* Адаптив модального окна */
    .modal { padding: 0; background-color: #fff; } /* На мобильном на весь экран без отступов */
    .modal-content { max-width: 100%; margin: 0; box-shadow: none; min-height: 100vh; }
    .modal-body { flex-direction: column; padding: 0 20px 20px; gap: 30px; }
    .modal-header { padding: 15px 20px; }
    .modal-images { width: 100%; /* На мобильном картинка на всю ширину */ } 
    .modal-details { padding-top: 0; }
}