/
IT-Legion
/
TestTask_vanger
Обзор
Документация
Войти
/
IT-Legion
/
TestTask_vanger
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/style.css
437 строк
8 KB
IT-Legion
It's almost done
05 мар 2026, 01:11
05 мар 2026, 01:11
b8f7426
Код
Авторство
О чём код?
:root { --dark-bg: #1E1E1E; --text-color: #FFFFFF; --text-muted: #B0B0B0; } body { font-family: 'Roboto', sans-serif; background-color: var(--dark-bg); color: var(--text-color); } .navbar { background-color: #17191D; padding: 1rem 0; height: 100px; } .navbar .container { height: 100%; display: flex; align-items: center; } .navbar-brand img { height: 60px; width: auto; } .navbar-nav { gap: 2rem; } .nav-link { color: var(--text-color) !important; text-transform: uppercase; font-weight: 600; font-size: 14px; margin: 0; transition: color 0.3s; font-family: 'Montserrat', sans-serif; letter-spacing: 0.05em; } .nav-link:hover { color: #FF342B !important; } .btn-login { background-color: #FF342B; color: white; border: none; padding: 12px 32px; border-radius: 4px; transition: background-color 0.3s; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 16px; line-height: 100%; letter-spacing: 0.05em; text-transform: uppercase; } .btn-login:hover { background-color: #d62c1b; color: white; } .hero { padding: 4rem 0; text-align: center; background-color: #0D0F12; } .hero .container { max-width: 1200px; } .hero__title { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; max-width: 750px; margin-left: auto; margin-right: auto; } .hero__description { color: var(--text-muted); max-width: 700px; margin: 0 auto 5rem; font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0.02em; } .hero__content { display: flex; align-items: center; justify-content: center; gap: 4rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; } .hero__earth { flex: 1; max-width: 500px; min-width: 300px; } .hero__earth img { width: 555px; height: 457px; border-radius: 4px; } .hero__features { flex: 1; max-width: 595px; min-width: 300px; width: 595px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 2rem 2.5rem; text-align: center; justify-items: center; } .feature__item { display: flex; flex-direction: column; align-items: center; width: 223px; } .feature__icon-wrapper { height: 64px; display: flex; align-items: flex-start; justify-content: center; margin-bottom: 0.5rem; } .feature__icon { width: 48px; height: 48px; flex-shrink: 0; } .feature__title { color: white; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: 0.02em; width: 223px; } .gallery-section { background-color: #1F242C; padding: 4rem 0; } .gallery-title { text-align: center; margin-bottom: 3rem; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 42px; line-height: 52px; letter-spacing: 0.02em; width: fit-content; margin-left: auto; margin-right: auto; } .gallery-container { max-width: 1121px; margin: 0 auto; padding: 0 20px; } .slider-for { width: 100%; max-width: 945px; margin: 0 auto 2rem; } .slider-for img { width: 100%; height: 529px; object-fit: cover; border-radius: 4px; cursor: pointer; } .slider-nav { max-width: 900px; margin: 20px auto 0; padding: 0 70px; position: relative; } .slider-nav .slick-slide { padding: 0 10px; box-sizing: border-box; } .slider-nav .slick-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; opacity: 0.5; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; } .slider-nav .slick-current img { opacity: 1; border: 2px solid #FFFFFF; } .custom-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background-color: #FF342B; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: background-color 0.2s, transform 0.2s; padding: 0; } .custom-arrow img { width: 24px; height: 24px; opacity: 1 !important; border: none !important; } .flip-arrow { transform: scaleX(-1); } .custom-arrow:hover { background-color: #d62c1b; transform: translateY(-50%) scale(1.05); } .left-arrow { left: 5px; } .right-arrow { right: 5px; } .slider-nav .slick-prev::before, .slider-nav .slick-next::before { display: none !important; } @media (max-width: 768px) { .navbar { height: 60px; padding: 0.5rem 0; } .navbar .container { padding: 0 1rem; } .navbar-brand img { height: 40px; } .navbar-toggler { border: none; padding: 0.25rem 0.5rem; } .navbar-toggler-icon { width: 1.5em; height: 1.5em; } .btn-login { padding: 10px 24px; font-size: 14px; } .hero { padding: 2rem 0; } .hero .container { padding: 0 1rem; } .hero__title { font-size: 2rem; margin-bottom: 1rem; } .hero__description { font-size: 14px; margin-bottom: 2rem; padding: 0 1rem; } .hero__content { flex-direction: column; gap: 2rem; } .hero__earth { max-width: 100%; order: 2; padding: 0 1rem; } .hero__earth img { width: 100%; height: auto; } .hero__features { max-width: 100%; width: 100%; order: 1; gap: 2rem 1.5rem; padding: 0 1rem; } .feature__item { width: 100%; max-width: 180px; } .feature__icon { width: 40px; height: 40px; } .feature__icon-wrapper { height: 56px; } .feature__title { font-size: 14px; line-height: 20px; width: 100%; } .gallery-section { padding: 2rem 0; background-color: #2C3440; } .gallery-title { font-size: 32px; line-height: 40px; margin-bottom: 2rem; } .gallery-container { padding: 0 1rem; max-width: 100%; } .slider-for { max-width: 340px; margin: 0 auto 1.5rem; padding: 0; } .slider-for img { width: 340px; height: 200px; border-radius: 4px; } .slider-nav { max-width: 340px; margin: 0 auto; padding: 0 10px; } .slider-nav .slick-list { margin: 0 -6px; } .slider-nav .slick-slide { padding: 0 6px; } .slider-nav img { width: 80px; height: 80px; border-radius: 8px; } } @media (max-width: 480px) { .hero__title { font-size: 1.75rem; } .hero__description { font-size: 13px; } .feature__title { font-size: 13px; line-height: 18px; } .gallery-title { font-size: 28px; line-height: 36px; } .main-image-display { height: 250px; } .thumb { width: 70px; height: 70px; } } /* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ --- */ @media (max-width: 768px) { .slider-nav { padding: 0; } .slider-nav .slick-slide { padding: 0 5px; } }