/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

body {
    position: relative;
    background-size: cover;
    height: 100vh;
    overflow-y: auto;
    color: white;
}

/* Затемнение фона для читаемости текста */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* Верхняя панель */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
}

.top-bar a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Основной контейнер */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

/* Контент */
.content {
    max-width: 650px;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 35px;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.3em;
    margin: 10px 0;
    text-align: center;
    color: #ffd89b;
    font-weight: 400;
}

.content > p {
    font-size: 0.95em;
    margin: 8px 0;
    line-height: 1.4;
    text-align: center;
    color: #f5f5f5;
}

/* Детали */
.details {
    margin-top: 12px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.details p {
    margin: 5px 0;
    line-height: 1.3;
    font-size: 0.9em;
}

.details p strong {
    color: #ffd89b;
}

/* Секция с временем работы */
.contacts {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
}

.contacts font[size="6"] {
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
}

#workTime {
    font-size: 1.1em;
    display: inline-block;
    margin-left: 10px;
    color: #ffd89b;
}

.contacts br {
    display: none;
}

/* Анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-height: 700px) {
    .content {
        padding: 15px 30px;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 5px;
    }
    
    h2 {
        font-size: 1.1em;
        margin: 5px 0;
    }
    
    .details {
        margin-top: 8px;
        padding: 6px 12px;
    }
    
    .details p {
        font-size: 0.85em;
        margin: 3px 0;
    }
    
    .content > p {
        font-size: 0.85em;
        margin: 5px 0;
    }
}

@media (max-height: 600px) {
    .content {
        padding: 12px 25px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .details {
        margin-top: 6px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0 20px;
        height: 45px;
    }
    
    .top-bar a {
        font-size: 0.85em;
        padding: 5px 15px;
    }
    
    .container {
        padding: 55px 15px 55px;
    }
    
    .content {
        padding: 20px 25px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .contacts {
        padding: 10px 15px;
    }
    
    .contacts font[size="6"] {
        font-size: 0.95em;
    }
    
    #workTime {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1em;
    }
    
    .details p {
        font-size: 0.8em;
    }
}

/* Стилизация скролла */
.container::-webkit-scrollbar {
    width: 4px;
}

.container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}