/
llrr
/
kyrcc
Обзор
Документация
Войти
/
llrr
/
kyrcc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
1 179 строк
20 KB
Sergei
сохранение перед исправлением
16 июн 2026, 02:39
16 июн 2026, 02:39
78cd8cf
Код
Авторство
О чём код?
/* ОБНУЛЕНИЕ */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', system-ui, sans-serif; background-color: #F0F0F0; color: #1C1C1C; line-height: 1.5; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* ШАПКА */ .header { background-color: #0A1A1F; padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid #1D4A4A; } .header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; } .logo a { font-size: 28px; font-weight: 800; color: white; text-decoration: none; letter-spacing: 2px; } .logo a:hover { color: #4A8B8B; } .nav-list { display: flex; list-style: none; gap: 30px; flex-wrap: wrap; } .nav-list a { color: white; text-decoration: none; transition: color 0.3s; } .nav-list a:hover { color: #4A8B8B; } /* БАННЕР */ .banner { background: linear-gradient(135deg, #0A1A1F 0%, #0D2B2B 50%, #1A3A3A 100%); color: white; text-align: center; padding: 120px 20px; } .banner h1 { font-size: 80px; margin-bottom: 20px; letter-spacing: 4px; } .banner p { font-size: 20px; margin-bottom: 30px; } /* КНОПКИ */ .btn { display: inline-block; padding: 12px 30px; border-radius: 40px; text-decoration: none; font-weight: 600; transition: all 0.3s; } .btn-primary { background-color: #1D4A4A; color: white; } .btn-primary:hover { background-color: #2E6B6B; transform: scale(1.05); } /* ЗАГОЛОВКИ */ .section-title { text-align: center; font-size: 36px; margin-bottom: 40px; color: #0A1A1F; } /* КОНТАКТЫ (простой блок) */ .contacts { padding: 80px 0; background: white; text-align: center; } .contacts-simple p { font-size: 18px; margin: 10px 0; } /* СТРАНИЦА СПЕЦИАЛИСТОВ */ .page-banner { background: linear-gradient(135deg, #0D2B2B 0%, #0A1A1F 100%); color: white; text-align: center; padding: 60px 20px; } .page-banner h1 { font-size: 48px; margin-bottom: 15px; } .page-banner p { font-size: 18px; opacity: 0.9; } /* СТРАНИЦА УСПЕХА */ .success-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px; } .success-card { text-align: center; background: white; padding: 50px; border-radius: 30px; max-width: 500px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); } .success-icon { font-size: 80px; margin-bottom: 20px; } .success-card h1 { font-size: 32px; color: #1D4A4A; margin-bottom: 20px; } .success-card p { font-size: 18px; margin-bottom: 30px; } /* ПОДВАЛ */ .footer { background-color: #0A1A1F; color: #AAAAAA; text-align: center; padding: 30px 0; margin-top: 50px; } /* АДАПТИВНОСТЬ */ @media (max-width: 768px) { .banner h1 { font-size: 48px; } .banner p { font-size: 18px; } .page-banner h1 { font-size: 36px; } } @media (max-width: 480px) { .banner h1 { font-size: 36px; } .header-container { flex-direction: column; text-align: center; } .nav-list { justify-content: center; } .success-card { padding: 30px; } } /* ==================== УСЛУГИ ==================== */ .services { padding: 80px 0; background-color: white; } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .service-card { background: #F5F5F0; padding: 35px 25px; border-radius: 20px; text-align: center; transition: all 0.3s; cursor: pointer; } .service-card:hover { transform: translateY(-8px); background: #E8F0E8; box-shadow: 0 10px 30px rgba(0,0,0,0.1); } .service-icon { font-size: 48px; margin-bottom: 15px; } .service-card h3 { color: #1D4A4A; margin-bottom: 10px; font-size: 22px; } .service-card p { color: #555; } /* ==================== АКЦИИ ==================== */ .promo { padding: 80px 0; background-color: #F5F5F0; } .promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; } .promo-card { background: white; padding: 30px 20px; border-radius: 20px; text-align: center; transition: transform 0.3s; } .promo-card:hover { transform: translateY(-5px); } .spinning-promo { width: 120px; height: 120px; background: linear-gradient(135deg, #1D4A4A, #2E6B6B); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0 auto 15px; color: white; animation: spin 6s linear infinite; box-shadow: 0 5px 15px rgba(0,0,0,0.2); } .spinning-promo span { font-size: 12px; } .spinning-promo strong { font-size: 22px; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .promo-icon { font-size: 40px; margin-bottom: 10px; } .promo-card h3 { color: #1D4A4A; margin-bottom: 10px; font-size: 18px; } /* ==================== СТРАНИЦА СПЕЦИАЛИСТОВ ==================== */ .teachers { padding: 80px 0; background: white; } .teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; } .teacher-card { background: #F5F5F0; border-radius: 20px; overflow: hidden; text-align: center; transition: transform 0.3s; padding-bottom: 25px; } .teacher-card:hover { transform: translateY(-8px); } .teacher-photo-placeholder { background: #D0D0C8; height: 280px; display: flex; align-items: center; justify-content: center; } .placeholder-img { font-size: 48px; color: #666; } .teacher-name { font-size: 24px; margin: 20px 0 5px; color: #0A1A1F; } .teacher-short { color: #1D4A4A; font-weight: 500; margin-bottom: 20px; } /* МОДАЛЬНЫЕ ОКНА */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; } .modal:target { display: flex; } .modal-content { background: white; max-width: 500px; width: 90%; border-radius: 20px; padding: 30px; position: relative; animation: fadeIn 0.3s; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } } .modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; text-decoration: none; color: #999; } .modal-close:hover { color: #1D4A4A; } .modal-photo-placeholder { background: #D0D0C8; height: 150px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 48px; margin-bottom: 20px; } .modal-content h2 { font-size: 28px; margin-bottom: 10px; color: #0A1A1F; } .teacher-directions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; } .direction-badge { background: #1D4A4A20; color: #1D4A4A; padding: 5px 15px; border-radius: 20px; font-size: 14px; } .teacher-detail h3 { font-size: 18px; margin-bottom: 10px; color: #1D4A4A; } .teacher-detail ul { list-style: none; padding-left: 0; } .teacher-detail li { padding: 5px 0; padding-left: 20px; position: relative; } .teacher-detail li::before { content: "✓"; position: absolute; left: 0; color: #1D4A4A; } /* ==================== ЦЕНЫ ==================== */ .prices { padding: 80px 0; background: white; } .prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; } .price-card { background: #F5F5F0; padding: 30px; border-radius: 20px; text-align: center; position: relative; transition: transform 0.3s; } .price-card:hover { transform: translateY(-5px); } .price-card.popular { border: 2px solid #1D4A4A; background: white; } .popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #1D4A4A; color: white; padding: 5px 20px; border-radius: 20px; font-size: 12px; } .price-card h3 { font-size: 24px; margin-bottom: 10px; } .price-count { color: #666; margin-bottom: 15px; } .price-value { font-size: 36px; font-weight: 800; color: #1D4A4A; margin: 15px 0; } /* ==================== РАСПИСАНИЕ ==================== */ .schedule { padding: 80px 0; background: #F5F5F0; } .schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .day-schedule { background: white; padding: 25px; border-radius: 20px; } .day-schedule h3 { color: #1D4A4A; font-size: 22px; margin-bottom: 20px; text-align: center; border-bottom: 2px solid #1D4A4A; padding-bottom: 10px; } .schedule-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #EEE; } .schedule-item .time { font-weight: 600; } .schedule-item .lesson { color: #1D4A4A; } .schedule-item .teacher { color: #888; font-size: 14px; } /* ==================== ФОРМА ==================== */ .booking { padding: 80px 0; background: white; } .booking-form { max-width: 800px; margin: 0 auto; background: #F5F5F0; padding: 40px; border-radius: 20px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #DDD; border-radius: 10px; font-size: 16px; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1D4A4A; } .form-note { font-size: 12px; color: #888; text-align: center; margin-top: 20px; } .btn-submit { background-color: #1D4A4A; color: white; width: 100%; padding: 15px; font-size: 18px; border: none; cursor: pointer; } .btn-submit:hover { background-color: #2E6B6B; } /* ==================== КОНТАКТЫ ==================== */ .contacts-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: start; } .contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; } .contact-item { display: flex; gap: 15px; } .contact-icon { font-size: 28px; } .contact-item h4 { color: #1D4A4A; margin-bottom: 5px; } .contact-link { color: #1C1C1C; text-decoration: none; } .contact-link:hover { color: #1D4A4A; } .social-links h4 { margin-bottom: 15px; } .social-icons { display: flex; gap: 15px; } .social-icon { display: inline-block; padding: 10px 20px; background: #1D4A4A; color: white; text-decoration: none; border-radius: 30px; transition: all 0.3s; } .social-icon:hover { background: #2E6B6B; } /* ==================== АДАПТИВНОСТЬ ==================== */ /* ПЛАНШЕТЫ (ширина до 768px) */ @media (max-width: 768px) { .banner h1 { font-size: 48px; } .banner p { font-size: 18px; } .section-title { font-size: 28px; } .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .promo-grid { grid-template-columns: repeat(2, 1fr); } .prices-grid { grid-template-columns: repeat(2, 1fr); } .schedule-grid { grid-template-columns: 1fr; } .teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } .contacts-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; } .contact-info { grid-template-columns: 1fr; } .contact-item { justify-content: center; } .social-links { text-align: center; } .social-icons { justify-content: center; } .form-row { grid-template-columns: 1fr; gap: 0; } .booking-form { padding: 25px; } .page-banner h1 { font-size: 36px; } .footer-content { grid-template-columns: 1fr; text-align: center; gap: 20px; } .footer-nav { align-items: center; } } /* ТЕЛЕФОНЫ (ширина до 480px) */ @media (max-width: 480px) { .header-container { flex-direction: column; text-align: center; } .nav-list { justify-content: center; gap: 15px; } .nav-list a { font-size: 14px; } .banner { padding: 60px 20px; } .banner h1 { font-size: 32px; letter-spacing: 2px; } .banner p { font-size: 14px; } .btn { padding: 10px 20px; font-size: 14px; } .section-title { font-size: 24px; margin-bottom: 30px; } .services-grid { grid-template-columns: 1fr; } .promo-grid { grid-template-columns: 1fr; } .prices-grid { grid-template-columns: 1fr; } .teachers-grid { grid-template-columns: 1fr; } .service-card { padding: 25px 20px; } .service-card h3 { font-size: 20px; } .price-card h3 { font-size: 20px; } .price-value { font-size: 28px; } .day-schedule h3 { font-size: 18px; } .schedule-item { flex-direction: column; gap: 5px; text-align: center; } .booking-form { padding: 20px; } .form-group input, .form-group select, .form-group textarea { padding: 10px; font-size: 14px; } .btn-submit { padding: 12px; font-size: 16px; } .page-banner { padding: 40px 20px; } .page-banner h1 { font-size: 28px; } .page-banner p { font-size: 14px; } .teacher-name { font-size: 20px; } .modal-content { padding: 20px; } .modal-content h2 { font-size: 24px; } .success-card { padding: 30px 20px; } .success-card h1 { font-size: 28px; } .success-card p { font-size: 14px; } .success-buttons { flex-direction: column; gap: 10px; } .footer { padding: 30px 0 15px; } .footer-logo a { font-size: 20px; } } /* ==================== ФОТОГРАФИИ ==================== */ .about-studio { padding: 80px 0; background: white; } .about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; } .about-text p { margin-bottom: 15px; font-size: 16px; color: #444; } .about-image { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); } .about-image img { width: 100%; height: auto; display: block; transition: transform 0.3s; } .about-image:hover img { transform: scale(1.02); } .teacher-photo { height: 280px; overflow: hidden; } .teacher-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; } .teacher-card:hover .teacher-photo img { transform: scale(1.05); } .modal-photo { height: 150px; border-radius: 15px; overflow: hidden; margin-bottom: 20px; } .modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } /* ==================== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ==================== */ /* Плавное появление элементов при загрузке */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .service-card, .promo-card, .price-card, .teacher-card, .review-card { animation: fadeInUp 0.6s ease forwards; opacity: 0; } /* Задержки для появления по очереди */ .service-card:nth-child(1) { animation-delay: 0.1s; } .service-card:nth-child(2) { animation-delay: 0.2s; } .service-card:nth-child(3) { animation-delay: 0.3s; } .service-card:nth-child(4) { animation-delay: 0.4s; } .promo-card:nth-child(1) { animation-delay: 0.1s; } .promo-card:nth-child(2) { animation-delay: 0.2s; } .promo-card:nth-child(3) { animation-delay: 0.3s; } .promo-card:nth-child(4) { animation-delay: 0.4s; } .price-card:nth-child(1) { animation-delay: 0.1s; } .price-card:nth-child(2) { animation-delay: 0.2s; } .price-card:nth-child(3) { animation-delay: 0.3s; } .teacher-card:nth-child(1) { animation-delay: 0.1s; } .teacher-card:nth-child(2) { animation-delay: 0.2s; } .teacher-card:nth-child(3) { animation-delay: 0.3s; } .review-card:nth-child(1) { animation-delay: 0.1s; } .review-card:nth-child(2) { animation-delay: 0.2s; } .review-card:nth-child(3) { animation-delay: 0.3s; } /* Эффект пульсации для кнопки "Записаться" в баннере */ @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29, 74, 74, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(29, 74, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 74, 74, 0); } } .banner .btn-primary { animation: pulse 2s infinite; } /* Эффект наведения на кнопку "Подробнее" у специалистов */ .btn-outline { transition: all 0.3s ease; } .btn-outline:hover { transform: scale(1.05); letter-spacing: 1px; } /* Эффект для модального окна - увеличение фото при наведении */ .modal-photo img { transition: transform 0.3s ease; } .modal-photo:hover img { transform: scale(1.1); } /* Эффект для ссылок в шапке - подчёркивание при наведении */ .nav-list a { position: relative; } .nav-list a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #4A8B8B; transition: width 0.3s ease; } .nav-list a:hover::after { width: 100%; } /* Эффект наведения на карточку с отзывом */ .review-card { transition: all 0.3s ease; } .review-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); } /* Эффект для крутящейся акции - остановка при наведении */ .spinning-promo { transition: transform 0.3s ease; } .spinning-promo:hover { animation-play-state: paused; transform: scale(1.1); } /* Плавная прокрутка по якорям (для всей страницы) */ html { scroll-behavior: smooth; } /* Эффект для полей формы при фокусе */ .form-group input:focus, .form-group select:focus, .form-group textarea:focus { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(29, 74, 74, 0.2); } /* Эффект для кнопки отправки формы */ .btn-submit { position: relative; overflow: hidden; } .btn-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s ease; } .btn-submit:hover::before { left: 100%; } /* Адаптив для анимаций */ @media (max-width: 480px) { .service-card, .promo-card, .price-card, .teacher-card, .review-card { animation: none; opacity: 1; } .banner .btn-primary { animation: none; } }