/
varsl
/
HTML-CSS
Обзор
Документация
Войти
/
varsl
/
HTML-CSS
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
frontend/css/style.css
2 319 строк
43 KB
varsl
Добавление базового стиля проекта
21 дек 2025, 23:12
21 дек 2025, 23:12
3fc96e2
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #2E7D32; --primary-dark: #1B5E20; --secondary-color: #FF9800; --accent-color: #2196F3; --text-color: #333; --text-light: #666; --bg-color: #F5F5F5; --white: #FFFFFF; --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); --border-radius: 12px; --transition: all 0.3s ease; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); } .page-wrapper { display: flex; flex-direction: column; min-height: 100vh; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .header { background-color: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; } .navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; } .logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: bold; color: var(--primary-color); } .logo i { font-size: 2rem; } .nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; } .nav-menu li { position: relative; } .nav-menu a { text-decoration: none; color: var(--text-color); font-weight: 500; padding: 0.5rem 0; transition: var(--transition); display: flex; align-items: center; gap: 8px; } .nav-menu a:hover { color: var(--primary-color); } .nav-menu a.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); } .menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); } .auth-buttons { display: flex; gap: 1rem; margin-left: 1rem; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.75rem 1.5rem; border-radius: var(--border-radius); font-weight: 600; text-decoration: none; cursor: pointer; transition: var(--transition); border: 2px solid transparent; font-size: 1rem; } .btn-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); } .btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); } .btn-outline { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); } .btn-outline:hover { background-color: var(--primary-color); color: var(--white); transform: translateY(-2px); } .btn-large { padding: 1rem 2rem; font-size: 1.1rem; } .btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; } .hero { background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/zoo-entrance.jpg'); background-size: cover; background-position: center; color: var(--white); padding: 5rem 0; text-align: center; } .hero-content { max-width: 800px; margin: 0 auto; } .hero-title { font-size: 3rem; margin-bottom: 1rem; font-weight: 700; } .hero-subtitle { font-size: 1.5rem; margin-bottom: 2rem; opacity: 0.9; } .hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--primary-dark); position: relative; } .section-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--secondary-color); margin: 1rem auto; border-radius: 2px; } .features-section { padding: 5rem 0; background-color: var(--white); } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; } .feature-card { background: var(--white); border-radius: var(--border-radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #eee; } .feature-card:hover { transform: translateY(-10px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); } .feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; } .feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-color); } .feature-card p { color: var(--text-light); line-height: 1.6; } .animals-preview { padding: 5rem 0; background-color: var(--bg-color); } .slider-container { position: relative; overflow: hidden; margin-top: 2rem; } .slider { position: relative; width: 100%; height: 400px; } .slider-track { display: flex; height: 100%; transition: transform 0.5s ease; } .slide { min-width: 100%; height: 100%; position: relative; border-radius: var(--border-radius); overflow: hidden; } .animal-img { width: 100%; height: 100%; object-fit: cover; } .slide-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: var(--white); padding: 2rem; } .slide-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; } .slide-content p { margin-bottom: 1rem; opacity: 0.9; } .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); border: none; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; color: var(--text-color); transition: var(--transition); z-index: 10; } .slider-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.1); } .prev-btn { left: 20px; } .next-btn { right: 20px; } .video-section { padding: 5rem 0; background-color: var(--white); } .video-container { max-width: 900px; margin: 0 auto; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); } .zoo-video { width: 100%; height: 500px; object-fit: cover; } .video-info { padding: 2rem; background-color: var(--white); text-align: center; } .video-info h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary-dark); } .video-info p { color: var(--text-light); max-width: 600px; margin: 0 auto; } .cta-section { padding: 5rem 0; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: var(--white); text-align: center; } .cta-text { font-size: 1.3rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; } .footer { background-color: var(--text-color); color: var(--white); padding: 3rem 0 1rem; margin-top: auto; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 2rem; } .footer-section h3 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--white); } .footer-section p { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; opacity: 0.8; } .social-links { display: flex; gap: 1rem; margin-top: 1rem; } .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; color: var(--white); text-decoration: none; transition: var(--transition); font-size: 1.2rem; } .social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); } .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.7; } .page-header { text-align: center; padding: 80px 0; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: var(--white); margin-bottom: 40px; } .page-title { font-size: 3.5rem; margin-bottom: 15px; font-weight: 800; letter-spacing: -1px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); } .page-subtitle { font-size: 1.4rem; opacity: 0.95; max-width: 700px; margin: 0 auto; font-weight: 300; line-height: 1.6; } /* Центрирование секции с животными */ .animals-section { padding: 40px 0 80px; } .animals-controls { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); margin-bottom: 40px; max-width: 1000px; margin-left: auto; margin-right: auto; text-align: center; } .search-box { position: relative; max-width: 500px; margin: 0 auto 30px auto; } .search-box i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1.2rem; } .search-box input { width: 100%; padding: 16px 25px 16px 55px; border: 2px solid #e0e0e0; border-radius: var(--border-radius); font-size: 1.1rem; transition: var(--transition); background: var(--bg-color); } .search-box input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); background: var(--white); } .search-box input::placeholder { color: var(--text-light); font-weight: 400; } .filter-controls { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 40px; } .filter-group, .sort-group { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; max-width: 600px; } .filter-label, .sort-label { font-weight: 700; color: var(--primary-dark); font-size: 1.2rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; } .filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; } .animal-filter { padding: 12px 24px; background: var(--bg-color); border: 2px solid #e0e0e0; border-radius: 25px; cursor: pointer; font-weight: 600; transition: var(--transition); font-size: 1rem; min-width: 120px; text-align: center; } .animal-filter:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(46, 125, 50, 0.1); } .animal-filter.active { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3); } .sort-select { padding: 12px 20px; border: 2px solid #e0e0e0; border-radius: var(--border-radius); font-size: 1rem; cursor: pointer; transition: var(--transition); background-color: var(--white); width: 100%; max-width: 300px; font-weight: 500; } .sort-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); } .animals-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; } .animals-actions .btn { min-width: 180px; padding: 14px 28px; font-size: 1.1rem; font-weight: 600; } .animals-info { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin: 60px auto; max-width: 1000px; } .info-card { display: flex; align-items: center; gap: 20px; background: var(--white); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow); min-width: 280px; flex: 1; transition: var(--transition); } .info-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } .info-card i { font-size: 3rem; color: var(--primary-color); } .info-card h3 { font-size: 2rem; margin-bottom: 5px; color: var(--primary-dark); font-weight: 700; } .info-card p { color: var(--text-light); font-size: 1rem; font-weight: 500; } .animals-count { text-align: center; margin: 40px 0; font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); padding: 15px 30px; background: var(--white); border-radius: var(--border-radius); display: inline-block; box-shadow: var(--shadow); border: 2px solid #e0e0e0; } .animals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin: 60px auto; max-width: 1300px; justify-items: center; } .animal-card { background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); max-width: 350px; width: 100%; border: 1px solid #e0e0e0; } .animal-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); border-color: var(--primary-color); } .animal-card-image { position: relative; height: 250px; overflow: hidden; } .animal-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .animal-card:hover .animal-card-image img { transform: scale(1.1); } .animal-type-badge { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; color: var(--text-color); font-weight: 600; backdrop-filter: blur(5px); } .animal-play-btn { position: absolute; bottom: 15px; right: 15px; width: 45px; height: 45px; border-radius: 50%; background: var(--primary-color); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1.2rem; } .animal-play-btn:hover { background: var(--primary-dark); transform: scale(1.15); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .animal-card-content { padding: 25px; } .animal-name { font-size: 1.6rem; margin-bottom: 5px; color: var(--text-color); font-weight: 700; } .animal-scientific { color: var(--text-light); font-style: italic; margin-bottom: 15px; font-size: 0.95rem; font-weight: 500; } .animal-description { color: var(--text-color); margin-bottom: 20px; line-height: 1.6; font-size: 0.95rem; } .animal-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; } .animal-detail { display: flex; align-items: center; gap: 12px; color: var(--text-light); font-size: 0.9rem; } .animal-detail i { color: var(--primary-color); width: 18px; font-size: 1rem; } .animal-card-actions { display: flex; gap: 12px; } .animals-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 80px auto; max-width: 1200px; } .feature-highlight { text-align: center; padding: 40px 30px; background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; } .feature-highlight:hover { border-color: var(--primary-color); transform: translateY(-5px); } .feature-icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 25px; } .feature-highlight h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-color); font-weight: 700; } .feature-highlight p { color: var(--text-light); line-height: 1.6; font-size: 1rem; } /* Секция сохранения видов */ .conservation-section { padding: 80px 0; background: var(--bg-color); } .conservation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; justify-items: center; max-width: 1200px; margin: 0 auto; } .conservation-card { background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); max-width: 380px; width: 100%; border: 1px solid #e0e0e0; } .conservation-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); } .conservation-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; } .conservation-card:hover img { transform: scale(1.05); } .conservation-content { padding: 25px; } .conservation-content h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-color); font-weight: 700; } .conservation-content p { color: var(--text-light); margin-bottom: 20px; line-height: 1.6; } .conservation-status { display: inline-block; padding: 8px 18px; background-color: #fff3cd; color: #856404; border-radius: 20px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } /* Модальные окна */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1100; align-items: center; justify-content: center; backdrop-filter: blur(5px); } .modal.show { display: flex; } .modal-content { background: var(--white); border-radius: var(--border-radius); max-width: 900px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalFadeIn 0.3s ease forwards; } @keyframes modalFadeIn { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; border-bottom: 1px solid #e0e0e0; background: var(--primary-color); color: var(--white); border-radius: var(--border-radius) var(--border-radius) 0 0; } .modal-header h2, .modal-header h3 { margin: 0; font-weight: 700; } .modal-close { background: rgba(255, 255, 255, 0.2); border: none; font-size: 1.5rem; cursor: pointer; color: var(--white); transition: var(--transition); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); } .modal-body { padding: 30px; } .animal-video { width: 100%; border-radius: var(--border-radius); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Детали животного в модальном окне */ .animal-details-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; } .animal-details-image { text-align: center; } .animal-details-image img { width: 100%; max-width: 300px; border-radius: var(--border-radius); margin-bottom: 25px; box-shadow: var(--shadow); border: 3px solid var(--white); outline: 2px solid var(--primary-color); } .animal-actions { display: flex; flex-direction: column; gap: 12px; } .animal-info-section { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; } .animal-info-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .animal-info-section h3 { display: flex; align-items: center; gap: 12px; color: var(--primary-color); margin-bottom: 20px; font-size: 1.3rem; font-weight: 700; } .animal-info-section p { margin-bottom: 12px; line-height: 1.6; font-size: 1rem; } .animal-info-section strong { color: var(--text-color); min-width: 200px; display: inline-block; font-weight: 600; } .modal-footer { padding: 25px 30px; border-top: 1px solid #e0e0e0; display: flex; justify-content: flex-end; gap: 15px; background: #f9f9f9; border-radius: 0 0 var(--border-radius) var(--border-radius); } /* Адаптивность */ @media (max-width: 1200px) { .animals-grid, .conservation-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: 1000px; } } @media (max-width: 992px) { .animal-details-grid { grid-template-columns: 1fr; gap: 30px; } .animals-info { max-width: 800px; } .page-title { font-size: 3rem; } } @media (max-width: 768px) { .menu-toggle { display: block; } .nav-menu { position: fixed; top: 70px; left: -100%; flex-direction: column; background-color: var(--white); width: 100%; text-align: center; transition: 0.3s; box-shadow: var(--shadow); padding: 2rem 0; z-index: 999; } .nav-menu.active { left: 0; } .nav-menu li { margin: 0.5rem 0; } .auth-buttons { flex-direction: column; margin-left: 0; gap: 0.5rem; } .hero-title { font-size: 2rem; } .hero-subtitle { font-size: 1.2rem; } .section-title { font-size: 2rem; } .hero-buttons { flex-direction: column; align-items: center; } .btn-large { width: 100%; max-width: 300px; } .zoo-video { height: 300px; } .animals-controls { padding: 25px; margin: 0 15px 40px; } .filter-controls { gap: 25px; } .filter-group, .sort-group { align-items: stretch; } .animals-actions { flex-direction: column; align-items: center; } .animals-actions .btn { width: 100%; max-width: 300px; } .page-title { font-size: 2.5rem; } .page-subtitle { font-size: 1.2rem; padding: 0 20px; } .filter-buttons { gap: 8px; } .animal-filter { padding: 10px 18px; min-width: 110px; font-size: 0.95rem; } } @media (max-width: 576px) { .page-header { padding: 60px 0; } .page-title { font-size: 2.2rem; } .animals-grid { grid-template-columns: 1fr; max-width: 400px; margin: 40px auto; } .conservation-grid { grid-template-columns: 1fr; } .animals-features { grid-template-columns: 1fr; } .animals-info { flex-direction: column; align-items: center; } .info-card { width: 100%; max-width: 300px; } .modal-content { width: 95%; margin: 20px; } .animal-card-actions { flex-direction: column; } .feature-highlight { padding: 30px 20px; } .filter-buttons { justify-content: center; } .animal-filter { flex: 1; min-width: 100px; } .ticket-section { padding: 40px 0; } .ticket-steps { display: flex; justify-content: center; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; } .step { display: flex; align-items: center; gap: 15px; padding: 20px; background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); min-width: 200px; opacity: 0.6; transition: var(--transition); } .step.active { opacity: 1; border: 2px solid var(--primary-color); transform: translateY(-5px); } .step-number { width: 40px; height: 40px; background: var(--bg-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; color: var(--text-color); } .step.active .step-number { background: var(--primary-color); color: var(--white); } .step-content h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-color); } .step-content p { font-size: 0.9rem; color: var(--text-light); } .ticket-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; max-width: 1400px; margin: 0 auto; } .ticket-main { display: flex; flex-direction: column; gap: 40px; } .section-title-sm { font-size: 1.5rem; margin-bottom: 20px; color: var(--primary-dark); font-weight: 700; position: relative; padding-bottom: 10px; } .section-title-sm::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background-color: var(--primary-color); border-radius: 2px; } .ticket-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .ticket-option { background: var(--white); border-radius: var(--border-radius); padding: 25px; box-shadow: var(--shadow); border-left: 4px solid #e0e0e0; transition: var(--transition); } .ticket-option:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } .ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .ticket-name { font-size: 1.3rem; font-weight: 700; color: var(--text-color); margin: 0; } .ticket-price { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); } .ticket-description { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; } .ticket-includes { list-style: none; padding: 0; margin: 0 0 20px 0; } .ticket-includes li { padding: 8px 0; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-color); } .ticket-includes i { color: var(--primary-color); font-size: 0.9rem; } .ticket-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; } .quantity-control { display: flex; align-items: center; gap: 10px; } .quantity-btn { width: 36px; height: 36px; border: 2px solid #e0e0e0; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-color); transition: var(--transition); font-size: 0.9rem; } .quantity-btn:hover { border-color: var(--primary-color); color: var(--primary-color); transform: scale(1.1); } .quantity-input { width: 60px; height: 36px; border: 2px solid #e0e0e0; border-radius: var(--border-radius); text-align: center; font-size: 1rem; font-weight: 600; color: var(--text-color); background: var(--white); transition: var(--transition); } .quantity-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); } .ticket-subtotal { font-size: 1.3rem; font-weight: 700; color: var(--text-light); transition: var(--transition); } .ticket-subtotal.has-tickets { color: var(--primary-color); } .ticket-date-time { background: var(--white); border-radius: var(--border-radius); padding: 30px; box-shadow: var(--shadow); } .date-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; } .input-group { display: flex; flex-direction: column; gap: 10px; } .input-group label { font-weight: 600; color: var(--text-color); display: flex; align-items: center; gap: 10px; } .input-group label i { color: var(--primary-color); } .input-group input, .input-group select { padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: var(--border-radius); font-size: 1rem; background: var(--white); transition: var(--transition); width: 100%; } .input-group input:focus, .input-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); } .input-with-button { display: flex; gap: 10px; } .input-with-button input { flex: 1; } .quick-selection { background: #f8f9fa; border-radius: var(--border-radius); padding: 20px; } .quick-selection h4 { font-size: 1rem; margin-bottom: 15px; color: var(--text-color); font-weight: 600; } .quick-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; } .quick-buttons:last-child { margin-bottom: 0; } .quick-buttons .btn-small { padding: 8px 15px; font-size: 0.9rem; } .ticket-checkout { background: var(--white); border-radius: var(--border-radius); padding: 30px; box-shadow: var(--shadow); } .checkout-form { display: flex; flex-direction: column; gap: 25px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .form-group { display: flex; flex-direction: column; gap: 10px; } .form-group label { font-weight: 600; color: var(--text-color); display: flex; align-items: center; gap: 10px; } .form-group label i { color: var(--primary-color); } .form-group input, .form-group textarea, .form-group select { padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: var(--border-radius); font-size: 1rem; background: var(--white); transition: var(--transition); width: 100%; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); } .form-group textarea { resize: vertical; min-height: 100px; } .form-hint { font-size: 0.9rem; color: var(--text-light); margin-top: 5px; } .form-hint.active { color: var(--primary-color); font-weight: 600; } .payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; } .payment-option { border: 2px solid #e0e0e0; border-radius: var(--border-radius); padding: 15px; cursor: pointer; transition: var(--transition); position: relative; } .payment-option:hover { border-color: var(--primary-color); } .payment-option input { position: absolute; opacity: 0; } .payment-content { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-color); } .payment-content i { font-size: 2rem; color: var(--text-light); transition: var(--transition); } .payment-option input:checked + .payment-content { color: var(--primary-color); } .payment-option input:checked + .payment-content i { color: var(--primary-color); } .payment-option input:checked ~ .payment-option { border-color: var(--primary-color); background: rgba(46, 125, 50, 0.05); } .payment-details { display: none; background: #f8f9fa; border-radius: var(--border-radius); padding: 20px; margin-top: 10px; } .payment-details.active { display: block; animation: fadeIn 0.3s ease; } .promo-input { display: flex; gap: 10px; } .promo-input input { flex: 1; } .promo-message { font-size: 0.9rem; margin-top: 5px; min-height: 20px; } .promo-message.success { color: #28a745; font-weight: 600; } .promo-message.error { color: #dc3545; } .checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-color); line-height: 1.5; } .checkbox-label input { margin-top: 3px; flex-shrink: 0; } .checkbox-label a { color: var(--primary-color); text-decoration: none; } .checkbox-label a:hover { text-decoration: underline; } .btn-block { width: 100%; padding: 16px; font-size: 1.1rem; font-weight: 600; } .btn-block:disabled { opacity: 0.5; cursor: not-allowed; } .btn-block:disabled:hover { transform: none; background: var(--primary-color); } .ticket-sidebar { position: relative; } .order-summary { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 30px; } .order-summary h3 { background: var(--primary-color); color: var(--white); padding: 20px; margin: 0; font-size: 1.3rem; } .summary-content { padding: 20px; } .summary-items { min-height: 150px; margin-bottom: 20px; } .empty-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 150px; color: var(--text-light); text-align: center; } .empty-summary i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; } .summary-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; } .summary-item:last-child { border-bottom: none; } .summary-totals { border-top: 2px solid #eee; padding-top: 20px; margin-top: 20px; } .total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 1rem; } .discount-row { color: #28a745; font-weight: 600; } .final-total { font-size: 1.3rem; font-weight: 800; color: var(--primary-color); border-top: 2px solid #eee; margin-top: 10px; padding-top: 15px; } .summary-info { background: #f8f9fa; border-radius: var(--border-radius); padding: 15px; margin-top: 20px; } .info-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.85rem; color: var(--text-light); } .info-item i { color: var(--primary-color); font-size: 1rem; } .ticket-count-badge { position: absolute; top: -15px; right: -15px; width: 40px; height: 40px; background: var(--secondary-color); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); opacity: 0; transform: scale(0.5); transition: var(--transition); } .ticket-count-badge.visible { opacity: 1; transform: scale(1); } .ticket-info-section { padding: 60px 0; background: var(--bg-color); margin-top: 60px; } .faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; } .faq-item { background: var(--white); border-radius: var(--border-radius); padding: 25px; box-shadow: var(--shadow); } .faq-item h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary-color); font-weight: 700; } .faq-item p { color: var(--text-light); line-height: 1.6; } /* Модальное окно подтверждения */ .order-confirmation { text-align: center; padding: 20px 0; } .confirmation-icon { font-size: 4rem; color: #28a745; margin-bottom: 30px; } .order-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; text-align: left; } .order-detail { display: flex; flex-direction: column; gap: 5px; } .order-detail span { font-size: 0.9rem; color: var(--text-light); } .order-detail strong { font-size: 1.1rem; color: var(--text-color); } .order-tickets { background: #f8f9fa; border-radius: var(--border-radius); padding: 20px; margin-bottom: 30px; max-height: 200px; overflow-y: auto; } .order-ticket-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #dee2e6; font-size: 0.9rem; } .order-ticket-item:last-child { border-bottom: none; } .confirmation-info { background: #e9f7ef; border-radius: var(--border-radius); padding: 20px; margin-bottom: 30px; text-align: left; } .confirmation-info p { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--text-color); font-size: 0.95rem; } .confirmation-info i { color: var(--primary-color); } /* Адаптивность */ @media (max-width: 1200px) { .ticket-container { grid-template-columns: 1fr; } .ticket-sidebar { position: static; } .order-summary { position: static; } } @media (max-width: 992px) { .ticket-options { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } .date-selection { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .ticket-steps { flex-direction: column; align-items: center; } .step { width: 100%; max-width: 300px; } } @media (max-width: 768px) { .ticket-options { grid-template-columns: 1fr; } .ticket-controls { flex-direction: column; align-items: stretch; } .ticket-subtotal { text-align: center; } .faq-grid { grid-template-columns: 1fr; } .quick-buttons { justify-content: center; } .payment-options { grid-template-columns: 1fr; } } @media (max-width: 480px) { .ticket-section { padding: 20px 0; } .ticket-option, .ticket-date-time, .ticket-checkout { padding: 20px; } .order-details { grid-template-columns: 1fr; } .modal-footer { flex-direction: column; gap: 10px; } .modal-footer .btn { width: 100%; } } /* Уведомления и алерты */ .alert { padding: 15px 20px; border-radius: var(--border-radius); margin-bottom: 20px; display: flex; align-items: center; gap: 15px; opacity: 0; transform: translateY(-20px); transition: all 0.3s ease; } .alert.show { opacity: 1; transform: translateY(0); } .alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; } .alert i { font-size: 1.2rem; } .alert-close { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; font-size: 1.2rem; opacity: 0.7; } .alert-close:hover { opacity: 1; } .notification { position: fixed; top: 20px; right: 20px; background: var(--white); border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-width: 300px; max-width: 400px; z-index: 1200; opacity: 0; transform: translateX(100%); transition: all 0.3s ease; } .notification.show { opacity: 1; transform: translateX(0); } .notification-success { border-left: 4px solid #28a745; } .notification-error { border-left: 4px solid #dc3545; } .notification-content { display: flex; align-items: center; gap: 10px; flex: 1; } .notification-content i { font-size: 1.2rem; } .notification-success .notification-content i { color: #28a745; } .notification-error .notification-content i { color: #dc3545; } .notification-close { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 1rem; padding: 5px; } .notification-close:hover { color: var(--text-color); } /* Анимации */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .hover-animation { transition: all 0.3s ease; } .hover-animation:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } /* Анимации для билетов */ @keyframes slideInFromRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } } .ticket-option { animation: slideInFromRight 0.5s ease forwards; } .ticket-option:nth-child(2) { animation-delay: 0.1s; } .ticket-option:nth-child(3) { animation-delay: 0.2s; } .ticket-option:nth-child(4) { animation-delay: 0.3s; } .ticket-option:nth-child(5) { animation-delay: 0.4s; } .ticket-option:nth-child(6) { animation-delay: 0.5s; } /* Анимация для шагов */ @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .step.active .step-number { animation: pulse 2s ease-in-out infinite; } /* Анимация для счетчика билетов */ @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .ticket-count-badge.visible { animation: bounce 0.5s ease; } }