/
Sivodedov
/
dev2
Обзор
Документация
Войти
/
Sivodedov
/
dev2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/css/styles.css
473 строки
8 KB
Your Name
first_commit
01 апр 2025, 11:02
01 апр 2025, 11:02
3d885e8
Код
Авторство
О чём код?
/* Основные стили и сброс */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #f472b6; /* Розовый */ --primary-dark: #e45d9e; /* Темно-розовый */ --secondary-color: #9d4e6f; /* Темный розово-фиолетовый */ --light-color: #fcf2f7; /* Очень светлый розовый */ --text-color: #4a2c35; /* Темный текст */ --light-text: #fff; /* Белый текст */ --border-color: #f8d7e9; /* Светло-розовая граница */ --shadow-color: rgba(244, 114, 182, 0.15); /* Тень с розовым оттенком */ } body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text-color); background-color: #fff; } .container { max-width: 1200px; margin: 0 auto; background-color: #fff; box-shadow: 0 0 10px var(--shadow-color); } /* Общие стили для всех блоков */ .block { padding: 20px; } /* Кнопки */ .btn { display: inline-block; padding: 10px 20px; background-color: var(--primary-color); color: var(--light-text); border: none; border-radius: 4px; cursor: pointer; font-weight: 500; transition: background-color 0.3s; text-align: center; } .btn:hover { background-color: var(--primary-dark); } /* Верхний блок (top) */ .top { background-color: var(--light-text); border-bottom: 1px solid var(--border-color); } .top-wrapper { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; } .logo a { display: flex; align-items: center; color: var(--secondary-color); text-decoration: none; font-weight: bold; } .logo img { height: 50px; margin-right: 10px; } .contacts { display: flex; gap: 20px; } .contact-item { display: flex; align-items: center; } .contact-item i { margin-right: 8px; color: var(--primary-color); } .contact-item a { color: var(--text-color); text-decoration: none; } /* Меню навигации */ .menu { background-color: var(--primary-color); padding: 0; border-radius: 4px; } .menu-list { display: flex; list-style: none; } .menu-item { position: relative; } .menu-item a { display: block; padding: 15px 20px; color: var(--light-text); text-decoration: none; transition: background-color 0.3s; } .menu-item a:hover, .menu-item.active a { background-color: var(--primary-dark); } /* Баннер */ .banner { background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/banner.jpg'); background-size: cover; background-position: center; padding: 80px 20px; text-align: center; color: var(--light-text); } .banner h1 { font-size: 2.5em; margin-bottom: 15px; } .banner p { font-size: 1.2em; margin-bottom: 30px; } /* Обёртка для контента */ .content-wrapper { display: flex; } /* Левый блок (left) */ .left { width: 25%; background-color: var(--light-color); border-right: 1px solid var(--border-color); } /* Центральный блок (main) */ .main { width: 50%; background-color: #fff; } /* Правый блок (right) */ .right { width: 25%; background-color: var(--light-color); border-left: 1px solid var(--border-color); } /* Секции */ .section { margin-bottom: 30px; } .section-title { color: var(--secondary-color); font-size: 1.5em; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 2px solid var(--primary-color); } .section-content { padding: 5px 0; } /* Стили для блока О мастере */ .master-photo img { width: 100%; border-radius: 5px; margin-bottom: 15px; } .master-profession { color: var(--primary-color); margin-bottom: 10px; } .certificates { display: flex; gap: 10px; margin-top: 15px; } .certificates img { width: calc(50% - 5px); border-radius: 3px; } /* Услуги */ .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; } .service-card { background-color: var(--light-color); padding: 20px; border-radius: 5px; text-align: center; transition: transform 0.3s; } .service-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px var(--shadow-color); } .service-icon { font-size: 2em; color: var(--primary-color); margin-bottom: 15px; } .service-card h3 { margin-bottom: 10px; color: var(--secondary-color); } .price { font-weight: bold; color: var(--primary-color); margin-top: 10px; } /* Галерея работ */ .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .portfolio-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 5px; transition: transform 0.3s; } .portfolio-item img:hover { transform: scale(1.05); } .more-button { text-align: center; margin-top: 20px; } /* Отзывы */ .reviews { display: flex; flex-direction: column; gap: 20px; } .review-item { background-color: var(--light-color); padding: 15px; border-radius: 5px; position: relative; } .review-text { font-style: italic; margin-bottom: 10px; } .review-author { text-align: right; font-weight: bold; } /* Контакты */ .contact-block { display: flex; margin-bottom: 20px; } .contact-icon { font-size: 1.5em; color: var(--primary-color); margin-right: 15px; min-width: 30px; } .contact-info h3 { margin-bottom: 5px; color: var(--secondary-color); } .contact-info a { color: var(--text-color); text-decoration: none; } .contact-info a:hover { color: var(--primary-color); } .social-links { display: flex; gap: 10px; } .social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--primary-color); color: var(--light-text); border-radius: 50%; transition: background-color 0.3s; } .social-link:hover { background-color: var(--primary-dark); } /* Нижний блок (bottom) */ .bottom { background-color: var(--secondary-color); color: var(--light-text); text-align: center; padding: 15px 20px; } .bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .footer-links a { color: var(--light-text); text-decoration: none; opacity: 0.8; } .footer-links a:hover { opacity: 1; } /* Модальное окно */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; } .modal-content { position: relative; background-color: var(--light-text); width: 90%; max-width: 500px; margin: 50px auto; padding: 30px; border-radius: 8px; } .close-modal { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; } .modal h2 { margin-bottom: 20px; color: var(--secondary-color); text-align: center; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; } .form-group textarea { height: 100px; resize: vertical; } /* Адаптивный дизайн */ @media (max-width: 992px) { .content-wrapper { flex-direction: column; } .left, .main, .right { width: 100%; border: none; } .left, .right { background-color: var(--light-color); } } @media (max-width: 768px) { .top-wrapper { flex-direction: column; gap: 15px; text-align: center; } .menu-list { display: none; flex-direction: column; } .menu-list.active { display: flex; } .contacts { flex-direction: column; gap: 10px; } }