/
llrr
/
exam
Обзор
Документация
Войти
/
llrr
/
exam
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
625 строк
12 KB
llrr
Create: index.html, style.css, normalize.css
18 июн 2026, 12:44
Верифицирован
18 июн 2026, 12:44
c9fc6f4
Код
Авторство
О чём код?
/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */ @font-face { font-family: 'Benzin-Bold'; src: url('../fonts/Benzin-Bold.woff2') format('woff2'); font-weight: bold; font-style: normal; } @font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Regular.woff2') format('woff2'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; } /* ========== ПЕРЕМЕННЫЕ ========== */ :root { --white: #FFFFFF; --white-40: rgba(255,255,255,0.4); --white-30: rgba(255,255,255,0.3); --blue: #3805F2; --blue-50: rgba(56,5,242,0.5); --dark-gray: #131313; --black: #000000; --black-40: rgba(0,0,0,0.4); --black-10: rgba(0,0,0,0.1); --gray: #1E1E1E; --gray-30: rgba(39,36,36,0.3); --font-benzin: 'Benzin-Bold', sans-serif; --font-gilroy: 'Gilroy', sans-serif; --container-width: 1200px; } /* ========== СБРОС СТИЛЕЙ ========== */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-gilroy); background-color: var(--black); color: var(--white); line-height: 1.4; } .container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; } /* ========== КНОПКИ ========== */ .btn { font-family: var(--font-benzin); font-size: 16px; line-height: 100%; padding: 14px 32px; border: none; cursor: pointer; transition: all 0.3s ease; } .btn-hero { background-color: var(--blue); color: var(--white); } .btn-hero:hover { background-color: var(--white); color: var(--blue); } .btn-more { font-family: var(--font-benzin); font-size: 16px; line-height: 100%; background: transparent; border: 1px solid var(--white); color: var(--white); padding: 10px 24px; cursor: pointer; transition: all 0.3s ease; } .btn-more:hover { background-color: var(--white); color: var(--black); } .btn-date { background: transparent; border: 1px solid var(--white); color: var(--white); padding: 8px 16px; font-family: var(--font-gilroy); font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .btn-date:hover { background-color: var(--white); color: var(--black); } .btn-buy { background-color: var(--blue); color: var(--white); border: none; padding: 8px 24px; font-family: var(--font-gilroy); font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .btn-buy:hover { background-color: var(--white); color: var(--blue); } .btn-subscribe { background-color: var(--blue); color: var(--white); font-family: var(--font-benzin); font-size: 16px; line-height: 100%; padding: 12px 32px; border: none; cursor: pointer; transition: all 0.3s ease; } .btn-subscribe:hover { background-color: var(--white); color: var(--blue); } /* ========== ШАПКА ========== */ .header { padding: 30px 0; border-bottom: 1px solid var(--gray-30); } .header__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; } .logo a { font-family: var(--font-benzin); font-size: 24px; color: var(--white); text-decoration: none; } .nav { display: flex; gap: 32px; } .nav a { font-family: var(--font-gilroy); font-size: 16px; font-weight: 500; color: var(--white); text-decoration: none; transition: color 0.3s ease; } .nav a:hover { color: var(--blue); } .header__phone a { font-family: var(--font-benzin); font-size: 16px; color: var(--white); text-decoration: none; } .header__phone a:hover { color: var(--blue); } /* ========== ГЛАВНЫЙ ЭКРАН ========== */ .hero { padding: 80px 0; background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%); } .hero__inner { max-width: 800px; text-align: left; } .hero__title { font-family: var(--font-benzin); font-size: 64px; line-height: 95%; margin-bottom: 24px; } .hero__text { font-family: var(--font-gilroy); font-size: 22px; line-height: 120%; font-weight: normal; margin-bottom: 32px; color: var(--white-40); } /* ========== АКЦИИ ========== */ .promotions { padding: 80px 0; background-color: var(--gray); } .section-title { font-family: var(--font-benzin); font-size: 56px; line-height: 95%; margin-bottom: 48px; text-align: center; } .promotions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } .promo-card { background-color: var(--black); padding: 24px; border-radius: 8px; transition: transform 0.3s ease; } .promo-card:hover { transform: translateY(-5px); } .promo-card__discount { font-family: var(--font-benzin); font-size: 48px; color: var(--blue); margin-bottom: 16px; } .promo-card__title { font-family: var(--font-benzin); font-size: 20px; line-height: 140%; margin-bottom: 12px; } .promo-card__text { font-family: var(--font-gilroy); font-size: 16px; line-height: 140%; font-weight: 500; color: var(--white-40); } /* ========== ПРОГРАММЫ ========== */ .events { padding: 80px 0; background-color: var(--black); } .events__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; } .events__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; } .event-card { background-color: var(--dark-gray); padding: 32px; border-radius: 12px; transition: transform 0.3s ease; } .event-card:hover { transform: translateY(-5px); } .event-card__title { font-family: var(--font-benzin); font-size: 20px; line-height: 140%; margin-bottom: 16px; } .event-card__text { font-family: var(--font-gilroy); font-size: 16px; line-height: 140%; font-weight: 500; color: var(--white-40); margin-bottom: 24px; } .event-card__prices { display: flex; gap: 16px; margin-bottom: 24px; } .price { font-family: var(--font-benzin); font-size: 20px; color: var(--white); } .event-card__buttons { display: flex; gap: 16px; flex-wrap: wrap; } /* ========== ПОДПИСКА ========== */ .subscribe { padding: 80px 0; background: linear-gradient(135deg, var(--blue) 0%, var(--dark-gray) 100%); } .subscribe__inner { text-align: center; max-width: 600px; margin: 0 auto; } .subscribe__title { font-family: var(--font-benzin); font-size: 56px; line-height: 95%; margin-bottom: 16px; } .subscribe__text { font-family: var(--font-gilroy); font-size: 18px; line-height: 140%; margin-bottom: 32px; color: var(--white-40); } .subscribe__form { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; } .subscribe__input { background-color: var(--white); border: none; padding: 12px 24px; font-family: var(--font-gilroy); font-size: 16px; width: 300px; border-radius: 4px; } .subscribe__input::placeholder { color: var(--black-40); } /* ========== ПОДВАЛ ========== */ .footer { background-color: var(--dark-gray); padding: 60px 0 30px; } .footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; } .footer__logo a { font-family: var(--font-benzin); font-size: 24px; color: var(--white); text-decoration: none; } .footer__nav { display: flex; gap: 24px; flex-wrap: wrap; } .footer__nav a { font-family: var(--font-gilroy); font-size: 16px; font-weight: 500; color: var(--white); text-decoration: none; } .footer__nav a:hover { color: var(--blue); } .footer__contacts p { margin-bottom: 8px; font-family: var(--font-gilroy); font-size: 16px; } .footer__contacts a { color: var(--white); text-decoration: none; } .footer__contacts a:hover { color: var(--blue); } .footer__social { display: flex; gap: 20px; } .footer__social a { color: var(--white); font-size: 24px; transition: color 0.3s ease; } .footer__social a:hover { color: var(--blue); } .footer__bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--gray-30); } .footer__bottom p { font-family: var(--font-gilroy); font-size: 14px; color: var(--white-40); } /* ========== АДАПТИВНОСТЬ (TABLET) ========== */ @media (max-width: 1024px) { .container { max-width: 90%; } .hero__title { font-size: 32px; line-height: 100%; } .hero__text { font-size: 18px; line-height: 120%; } .section-title { font-size: 26px; line-height: 100%; } .promotions__grid { grid-template-columns: repeat(2, 1fr); } .events__grid { grid-template-columns: 1fr; } .subscribe__title { font-size: 26px; } .btn { font-size: 12px; line-height: 90%; } .btn-more { font-size: 12px; } .promo-card__title { font-size: 16px; line-height: 120%; } .promo-card__text { font-size: 14px; line-height: 140%; } } /* ========== АДАПТИВНОСТЬ (MOBILE) ========== */ @media (max-width: 768px) { .header__inner { flex-direction: column; text-align: center; } .nav { flex-wrap: wrap; justify-content: center; gap: 16px; } .hero__title { font-size: 20px; line-height: 110%; } .hero__text { font-size: 14px; line-height: 120%; } .section-title { font-size: 20px; line-height: 110%; text-align: center; } .promotions__grid { grid-template-columns: 1fr; } .events__header { flex-direction: column; text-align: center; } .event-card { padding: 20px; } .event-card__title { font-size: 16px; line-height: 120%; } .event-card__text { font-size: 14px; line-height: 140%; } .price { font-size: 16px; } .subscribe__title { font-size: 20px; } .subscribe__text { font-size: 14px; } .subscribe__form { flex-direction: column; align-items: center; } .subscribe__input { width: 100%; max-width: 280px; } .btn-subscribe { font-size: 12px; } .footer__inner { flex-direction: column; text-align: center; align-items: center; } .footer__nav { justify-content: center; } .btn { font-size: 12px; padding: 10px 20px; } .btn-date, .btn-buy { font-size: 12px; padding: 6px 12px; } }