/* Подключаем шрифт через Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(270deg, #a1c4fd, #c2e9fb, #fbc2eb, #a6c1ee);
    background-size: 800% 800%;
    animation: gradientShift 20s ease infinite;
}

/* Анимация градиента */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Динамичная шапка */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(76, 175, 80, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.site-header.scrolled {
    background-color: rgba(56, 142, 60, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Логотип и название */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Свечение за логотипом */
.logo-container::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(15px);
    z-index: 0;
    left: 0;
    top: 50%;
    transform: translate(-30%, -50%);
}

/* Логотип */
.logo img {
    height: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.7));
    position: relative;
    z-index: 1;
}

.logo img:hover {
    transform: scale(1.2);
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.8));
}

/* Название компании */
.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    font-weight: 700;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    z-index: 1;
}

.site-title:hover {
    transform: scale(1.15);
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
}

/* Навигация */
.main-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-nav a:hover {
    color: #ffeb3b;
    transform: scale(1.05);
}

/* Секции */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Заголовки */
h1, h2 {
    margin: 0 0 20px 0;
}

h2 {
    color: #4CAF50;
}

/* Портфолио */
.portfolio-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-grid div {
    flex: 1 1 calc(33% - 20px);
    text-align: center;
}

.portfolio-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.portfolio-grid img:hover {
    transform: scale(1.05);
}

/* Услуги */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/* Контактная форма */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

form button {
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #45a049;
}

/* Отзывы */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.review p:first-child {
    font-style: italic;
    margin-bottom: 10px;
}

.review p:last-child {
    text-align: right;
    font-weight: bold;
    margin: 0;
}

/* Футер */
footer {
    background-color: rgba(238,238,238,0.95);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid #ccc;
}

/* Адаптивность */
@media (max-width: 768px) {
    .portfolio-grid div {
        flex: 1 1 100%;
    }
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .main-nav a {
        margin-left: 0;
    }
    .logo-container {
        justify-content: center;
    }
}
