/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Темно-серый фон для основного сайта */
    color: #fff; /* Белый цвет текста для читаемости на темном фоне */
}

section {
    padding: 2rem;
    margin: 1rem;
    background-color: #1e1e1e; /* Чуть светлее фон для секций */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Более выраженная тень */
}

/* Стили для шапки (верхнего колонтитула) */
header {
    background-color: #fff; /* Белый фон */
    color: #333; /* Темный цвет текста для контраста */
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.7); /* Светящаяся тень */
    text-align: center;
    position: relative; /* for glowing effect */
    overflow: hidden;
}

/* Стили для нижнего колонтитула */
footer {
    background-color: #fff; /* Белый фон */
    color: #333; /* Темный цвет текста для контраста */
    text-align: center;
    padding: 1rem 0;
    position: relative; /* for glowing effect */
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.7); /* Светящаяся тень сверху */
    overflow: hidden;
}

/* Header Content */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* По умолчанию, размер логотипа 50px */
.logo-image {
    width: 100px; /* Увеличиваем ширину логотипа */
    height: auto;
    margin-right: 0.5rem;
    border-radius: 5px;
  }

/* На больших экранах (например, на компьютерах) */
@media (min-width: 768px) {
  .logo-image {
    width: 100px; /* Увеличиваем размер логотипа на больших экранах */
  }
}

/* Навигация */
nav a {
    color: #333; /* Темный цвет текста для контраста */
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover {
    color: #555; /* Чуть светлее при наведении */
    background-color: rgba(0, 0, 0, 0.1); /* Небольшой оттенок фона */
}

nav a.active {
    font-weight: bold;
    background-color: #ccc; /* Более светлый фон для активной ссылки */
    color: #333; /* Ensure the active link text remains readable */
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 3rem 2rem;
}

/*Hero Image */
.hero-image img {
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Content */
.hero-content {
    max-width: 600px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff; /* Исходный цвет кнопки */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease; /* Добавляем плавный переход для всех свойств */
    font-weight: bold;
    box-shadow: 0 0 5px #007bff; /* Изначальная тень */
    position: relative; /* Для позиционирования псевдоэлемента */
    overflow: hidden; /* Обрезаем все, что выходит за границы кнопки */
}

.cta-button:hover {
    background-color: #0056b3; /* Цвет при наведении */
    box-shadow: 0 0 20px #007bff; /* Усиливаем тень при наведении */
}

.cta-button::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: all 0.6s ease;
}

.cta-button:hover::before {
    left: 100%; /* Запускаем анимацию свечения при наведении */
}

/* Services section */
.services {
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.service-card {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

/* Contacts page */
.contact-info {
    text-align: center;
}

.contact-details {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 600px;
    background-color: #252525;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the elements horizontally */
    margin-bottom: 1rem;
}

.contact-header h3 {
    margin-right: 1rem; /* Space between name and photo */
}

.contact-photo {
    width: 100px; /* Adjust size as needed */
    height: 100px;
    border-radius: 50%; /* Make it round */
    object-fit: cover; /* Ensure image fills the circle */
    border: 3px solid #bbb; /* Optional border */
}

/* Цены */
.prices-section {
    text-align: center;
}

.price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.price-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    background-color: #252525;
}

.price-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.price-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-item .price {
    font-size: 2rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 1rem;
}

.price-item .description {
    color: #ccc;
    margin-bottom: 2rem;
}

/* Portfolio Page */
.portfolio-section {
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    background-color: #252525;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
}

.portfolio-item p {
    padding: 0 1rem 1rem;
    color: #ccc;
}

.portfolio-item a {
    display: block;
    text-align: center;
    padding: 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.portfolio-item a:hover {
    background-color: #252525;
}
.auth-section {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #252525;
    text-align: center;
}

.auth-section h2 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.auth-section label {
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
    color: #ccc;
}

.auth-section input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    box-sizing: border-box;
}

.auth-section button {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-section button:hover {
    background-color: #0056b3;
}

.auth-section p {
    margin-top: 1rem;
    color: #ccc;
}

.auth-section a {
    color: #007bff;
    text-decoration: none;
}

.auth-section a:hover {
    text-decoration: underline;
}

/* Profile Styles */
.profile-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #252525;
    color: #fff;
}

.profile-section h2 {
    margin-bottom: 1.5rem;
}

.profile-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.profile-section ul {
    list-style-type: none;
    padding: 0;
}

.profile-section li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background-color: #333;
}

/* Admin Styles */
.admin-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #252525;
    color: #fff;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.admin-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.admin-section ul {
    list-style-type: none;
    padding: 0;
}

.admin-section li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-section select,
.admin-section button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    background-color: #444;
    color: #fff;
    cursor: pointer;
}

.admin-section select:hover,
.admin-section button:hover {
    background-color: #555;
}
.error-message {
    color: red;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid red;
    border-radius: 4px;
    background-color: #ffebee;
}

.success-message {
    color: green;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid green;
    border-radius: 4px;
    background-color: #e8f5e9;
}
.privacy-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4CAF50; /* Зеленый цвет (можешь изменить) */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.privacy-button:hover {
    background-color: #367C39; /* Более темный зеленый цвет при наведении */
}

/* Стили для section на странице privacy.html */
.privacy-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #252525;
    color: #fff;
    text-align: left;
}

.privacy-section h2 {
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ccc;
}
.garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px; /* Высота гирлянды */
    z-index: 1000; /* Отображаем поверх всего контента */
    pointer-events: none; /* Чтобы не мешать взаимодействию с сайтом */
    overflow: hidden; /* Скрываем элементы, выходящие за границы */
}

.garland span {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: gold; /* Цвет лампочек (можно изменить) */
    box-shadow: 0 0 10px gold; /* Эффект свечения (можно изменить) */
    animation: garland-glow 1s linear infinite; /* Анимация свечения */
}
/* Настраиваем положение каждой лампочки */
.garland span:nth-child(1) { left: 5%; animation-delay: 0.1s; }
.garland span:nth-child(2) { left: 10%; animation-delay: 0.2s; }
.garland span:nth-child(3) { left: 15%; animation-delay: 0.3s; }
.garland span:nth-child(4) { left: 20%; animation-delay: 0.4s; }
.garland span:nth-child(5) { left: 25%; animation-delay: 0.5s; }
.garland span:nth-child(6) { left: 30%; animation-delay: 0.6s; }
.garland span:nth-child(7) { left: 35%; animation-delay: 0.7s; }
.garland span:nth-child(8) { left: 40%; animation-delay: 0.8s; }
.garland span:nth-child(9) { left: 45%; animation-delay: 0.9s; }
.garland span:nth-child(10) { left: 50%; animation-delay: 1.0s; }
.garland span:nth-child(11) { left: 55%; animation-delay: 0.1s; }
.garland span:nth-child(12) { left: 60%; animation-delay: 0.2s; }
.garland span:nth-child(13) { left: 65%; animation-delay: 0.3s; }
.garland span:nth-child(14) { left: 70%; animation-delay: 0.4s; }
.garland span:nth-child(15) { left: 75%; animation-delay: 0.5s; }
.garland span:nth-child(16) { left: 80%; animation-delay: 0.6s; }
.garland span:nth-child(17) { left: 85%; animation-delay: 0.7s; }
.garland span:nth-child(18) { left: 90%; animation-delay: 0.8s; }
.garland span:nth-child(19) { left: 95%; animation-delay: 0.9s; }
.garland span:nth-child(20) { left: 100%; animation-delay: 1.0s; }

@keyframes garland-glow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}