Загрузка данных
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Музей истории и культуры</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<header class="header">
<div class="container header__inner">
<a href="#" class="logo">
<span class="logo__icon">▥</span>
<span class="logo__text">
<strong>МУЗЕЙ</strong>
<small>истории и культуры</small>
</span>
</a>
<nav class="nav">
<a href="#">Посетителям</a>
<a href="#">Выставки</a>
<a href="#">Экспонаты</a>
<a href="#">О музее</a>
<a href="#">Образование</a>
<a href="#">Контакты</a>
</nav>
<div class="header__actions">
<button class="search-btn">⌕</button>
<button class="lang-btn">RU</button>
<a href="#" class="btn btn--small">Купить билет</a>
</div>
<button class="burger">
<span></span>
<span></span>
</button>
</div>
</header>
<main>
<section class="hero">
<video class="hero__video" autoplay muted loop playsinline poster="images/hero.jpg">
<source src="video/hero.mp4" type="video/mp4">
</video>
<div class="hero__overlay"></div>
<div class="container hero__content">
<p class="section-label">Добро пожаловать</p>
<h1>История<br>оживает здесь</h1>
<p class="hero__text">
Откройте для себя уникальные артефакты, рассказывающие о культуре,
искусстве и наследии человечества.
</p>
<div class="hero__buttons">
<a href="#" class="btn">Планируйте визит</a>
<a href="#" class="video-link">
<span>▶</span>
Смотреть видео
</a>
</div>
<div class="hero__sound">
♫ Видео без звука
</div>
</div>
</section>
<section class="visit-info">
<div class="container">
<div class="visit-info__card">
<div class="info-item">
<div class="info-item__icon">⌁</div>
<div>
<h3>Билеты онлайн</h3>
<p>Купите билет заранее и сэкономьте время</p>
</div>
</div>
<div class="info-item">
<div class="info-item__icon">◷</div>
<div>
<h3>Часы работы</h3>
<p>Вт — Вс: 10:00 — 18:00<br>Понедельник — выходной</p>
</div>
</div>
<div class="info-item">
<div class="info-item__icon">⌖</div>
<div>
<h3>Наш адрес</h3>
<p>г. Москва, ул. Примерная, 1<br>м. Культурная</p>
</div>
</div>
</div>
</div>
</section>
</main>
<script src="scripts/main.js"></script>
</body>
</html>
:root {
--bg-main: #07080c;
--bg-secondary: #10131c;
--text-main: #ffffff;
--text-secondary: #b7bccb;
--accent-blue: #3a86ff;
--accent-purple: #8338ec;
--accent-gold: #d4af37;
--border: rgba(255, 255, 255, 0.1);
--gradient: linear-gradient(135deg, #1458ff, #6633ff);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background: var(--bg-main);
color: var(--text-main);
}
a {
color: inherit;
text-decoration: none;
}
.container {
width: min(1320px, calc(100% - 48px));
margin: 0 auto;
}
/* HEADER */
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 20;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border);
transition: 0.3s;
}
.header.scrolled {
background: rgba(0, 0, 0, 0.92);
}
.header__inner {
height: 92px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 14px;
}
.logo__icon {
color: var(--accent-gold);
font-size: 34px;
}
.logo__text {
display: flex;
flex-direction: column;
line-height: 1;
}
.logo__text strong {
font-family: Georgia, serif;
font-size: 25px;
letter-spacing: 1px;
}
.logo__text small {
margin-top: 4px;
color: var(--text-secondary);
font-size: 11px;
text-transform: uppercase;
}
.nav {
display: flex;
gap: 34px;
font-size: 15px;
}
.nav a {
color: #f4f4f4;
transition: 0.2s;
}
.nav a:hover {
color: var(--accent-blue);
}
.header__actions {
display: flex;
align-items: center;
gap: 18px;
}
.search-btn,
.lang-btn,
.burger {
background: none;
border: none;
color: white;
cursor: pointer;
}
.search-btn {
font-size: 28px;
}
.lang-btn {
font-size: 14px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 52px;
padding: 0 28px;
border-radius: 4px;
background: var(--gradient);
color: white;
font-weight: 700;
transition: 0.25s;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 14px 32px rgba(58, 134, 255, 0.28);
}
.btn--small {
min-height: 46px;
padding: 0 22px;
font-size: 14px;
}
.burger {
display: none;
width: 32px;
}
.burger span {
display: block;
height: 2px;
margin: 7px 0;
background: white;
}
/* HERO */
.hero {
position: relative;
min-height: 760px;
padding-top: 92px;
overflow: hidden;
}
.hero__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.hero__overlay {
position: absolute;
inset: 0;
background:
linear-gradient(90deg, rgba(5, 6, 10, 0.94) 0%, rgba(5, 6, 10, 0.65) 38%, rgba(5, 6, 10, 0.25) 100%),
linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
}
.hero__content {
position: relative;
z-index: 2;
min-height: 668px;
display: flex;
flex-direction: column;
justify-content: center;
}
.section-label {
margin-bottom: 24px;
color: var(--accent-blue);
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.hero h1 {
max-width: 640px;
font-family: Georgia, serif;
font-size: clamp(54px, 7vw, 86px);
line-height: 0.95;
font-weight: 400;
}
.hero__text {
max-width: 470px;
margin-top: 28px;
color: var(--text-secondary);
font-size: 18px;
line-height: 1.65;
}
.hero__buttons {
display: flex;
align-items: center;
gap: 32px;
margin-top: 38px;
}
.video-link {
display: inline-flex;
align-items: center;
gap: 12px;
color: white;
font-weight: 600;
}
.video-link span {
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: 50%;
}
.hero__sound {
position: absolute;
left: 0;
bottom: 44px;
color: var(--text-secondary);
font-size: 14px;
}
/* VISIT INFO */
.visit-info {
position: relative;
z-index: 5;
margin-top: -52px;
}
.visit-info__card {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
background:
linear-gradient(135deg, rgba(20, 88, 255, 0.35), rgba(102, 51, 255, 0.18)),
#0c1427;
border: 1px solid rgba(58, 134, 255, 0.4);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}
.info-item {
display: flex;
gap: 24px;
padding: 34px 42px;
border-right: 1px solid var(--border);
}
.info-item:last-child {
border-right: none;
}
.info-item__icon {
color: var(--accent-blue);
font-size: 38px;
}
.info-item h3 {
margin-bottom: 8px;
font-size: 17px;
}
.info-item p {
color: var(--text-secondary);
line-height: 1.5;
font-size: 15px;
}
/* ADAPTIVE */
@media (max-width: 1050px) {
.nav,
.header__actions {
display: none;
}
.burger {
display: block;
}
.nav.active {
position: absolute;
top: 92px;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
gap: 0;
background: rgba(0, 0, 0, 0.96);
border-top: 1px solid var(--border);
}
.nav.active a {
padding: 18px 24px;
border-bottom: 1px solid var(--border);
}
.visit-info__card {
grid-template-columns: 1fr;
}
.info-item {
border-right: none;
border-bottom: 1px solid var(--border);
}
.info-item:last-child {
border-bottom: none;
}
}
@media (max-width: 620px) {
.container {
width: min(100% - 28px, 1320px);
}
.header__inner {
height: 76px;
}
.hero {
min-height: 680px;
padding-top: 76px;
}
.hero__content {
min-height: 604px;
}
.hero h1 {
font-size: 48px;
}
.hero__buttons {
flex-direction: column;
align-items: flex-start;
}
.info-item {
padding: 26px;
}
}