/* СБРОС */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ОСНОВНОЙ СТИЛЬ */
body {
    font-family: 'Roboto', sans-serif;
    background: url('../images/oboi.webp') repeat center center fixed;
    color: #333;
    line-height: 1.6;
}

header, footer, nav, section {
    padding: 20px;
    text-align: center;
}

header {
    background-color: #cce7f0;
    color: white;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Соцсети в шапке */
header .social-icons.top-icons {
    display: flex;
    justify-content: center;
}

header .social-icons.top-icons a {
    color: #f5c8a4;
    font-size: 64px;
    margin: 0 15px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

header .social-icons.top-icons a:hover {
    transform: scale(1.2);
}

header .social-icons.top-icons a span {
    margin-left: 8px;
    font-size: 16px;
}

nav {
    background-color: #2c3e50;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li a {
    color: #f5c8a4;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a:hover {
    color: #f39c12;
    transform: scale(1.1);
}

section {
    background: linear-gradient(to bottom, #fef6e4, #e8f5e9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
}

section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.work-area,
.articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.work-card,
.article {
    background: linear-gradient(to bottom, #fef6e4, #e3f2fd);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover,
.article:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.work-card img,
.article img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
}

.work-card img:hover,
.article img:hover {
    transform: scale(1.1);
}

.work-card h3,
.article h3 {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 10px;
}

.work-card p,
.article p {
    font-size: 14px;
    line-height: 1.4;
}

#prices .work-area {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

#prices .work-card {
    width: 250px;
}

#prices .work-card img {
    width: 80px;
    height: 80px;
}

#prices .work-card p {
    font-size: 16px;
    color: #555;
    font-weight: bold;
}

.about-image {
    width: 195px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.8);
}

.section-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    font-size: 14px;
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}

/* ПЛАВАЮЩИЙ БЛОК (только 3 иконки без подписей) */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f9f6f1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000; /* Чтобы блок был поверх других элементов */
}

/* Стили для основных плавающих иконок (главная страница) */
.floating-button a {
    color: #5cb85c;
    text-decoration: none;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid #5cb85c;
    border-radius: 5px;
    padding: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-button a:hover {
    background-color: #e6f3e6;
    color: #4cae4c;
}

/* Дополнительные стили для плавающего блока с кнопкой и меню (второстепенные страницы) */
.floating-button button {
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.floating-button button:hover {
    background-color: #4cae4c;
}

.floating-button #questionMenu {
    display: none; /* Скрыто по умолчанию */
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.floating-button #questionMenu a {
    display: flex;
    align-items: center;
    color: #5cb85c;
    text-decoration: none;
    font-size: 18px;
    border: 1px solid #5cb85c;
    border-radius: 5px;
    padding: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-button #questionMenu a:hover {
    background-color: #e6f3e6;
    color: #4cae4c;
}

.floating-button #questionMenu form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-button #questionMenu form input,
.floating-button #questionMenu form textarea {
    border: 1px solid #5cb85c;
    border-radius: 4px;
    padding: 5px;
    width: 100%;
}

.floating-button #questionMenu form button {
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.floating-button #questionMenu form button:hover {
    background-color: #4cae4c;
}

/* ПЛАВАЮЩИЙ БЛОК: Скрытие/отображение меню */
.hidden {
    display: none;
}

/* АДАПТИВНОСТЬ */

/* До 992px */
@media (max-width: 992px) {
    .work-card,
    .article {
        width: 200px;
    }
}

/* До 768px */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    nav ul li a {
        font-size: 16px;
        justify-content: center;
    }
    header h1 {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px;
    }
    header p {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    .work-area,
    .articles {
        flex-direction: column;
        align-items: center;
    }
    .work-card,
    .article {
        width: 80%;
        max-width: 400px;
    }

    /* Уменьшаем иконки наверху на ~20% */
    header .social-icons.top-icons a {
        font-size: 50px;
    }
    header .social-icons.top-icons a span {
        font-size: 14px;
    }

    /* Уменьшаем плавающие кнопки социальных сетей */
    .floating-button {
        width: 140px;
        padding: 8px;
        gap: 8px;
    }

    .floating-button a {
        font-size: 20px;
        padding: 6px;
    }

    /* Стили для плавающего блока с кнопкой и меню */
    .floating-button button {
        font-size: 18px;
        padding: 6px;
    }

    .floating-button #questionMenu a {
        font-size: 16px;
    }
}

/* До 480px */
@media (max-width: 480px) {
    section {
        padding: 10px;
    }
    .work-card,
    .article {
        width: 100%;
        max-width: 350px;
        margin: 10px 0;
        padding: 15px;
    }

    /* Дополнительные изменения для плавающих кнопок */
    .floating-button {
        width: 120px;
        padding: 6px;
        gap: 5px;
    }

    .floating-button a {
        font-size: 18px;
        padding: 5px;
    }

    /* Изменение расположения меню плавающего блока на маленьких экранах */
    .floating-button #questionMenu {
        flex-direction: column;
    }

    /* Изменение расположения иконок в плавающем блоке */
    .floating-button a,
    .floating-button #questionMenu a {
        font-size: 16px;
    }

    /* Изменение размера иконок в плавающем блоке */
    .floating-button button i,
    .floating-button #questionMenu a i {
        font-size: 18px;
    }
}

/* Дополнительные стили для плавного изменения */
@media (max-width: 480px) {
    .floating-button a {
        font-size: 16px;
    }
}
