sayt-magazina-muzhskoy-sovre/style.css

403 lines
6.0 KiB
CSS

:root {
--navy: #1a2a3a;
--navy-light: #2c3e50;
--gold: #c9a962;
--gold-light: #dcc688;
--gray: #6b7280;
--gray-light: #f3f4f6;
--white: #ffffff;
--black: #111111;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: var(--navy);
background: var(--white);
line-height: 1.6;
}
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 24px;
}
.header {
background: var(--white);
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 100;
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
}
.logo {
font-family: 'Playfair Display', serif;
font-size: 28px;
font-weight: 700;
color: var(--navy);
letter-spacing: 2px;
}
.nav a {
color: var(--navy);
text-decoration: none;
margin-left: 32px;
font-weight: 600;
font-size: 15px;
transition: color 0.3s;
}
.nav a:hover {
color: var(--gold);
}
.hero {
background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
color: var(--white);
padding: 100px 24px;
text-align: center;
}
.hero h1 {
font-family: 'Playfair Display', serif;
font-size: 56px;
font-weight: 700;
line-height: 1.1;
margin-bottom: 24px;
}
.hero p {
font-size: 20px;
color: #d1d5db;
max-width: 600px;
margin: 0 auto 32px;
}
.btn {
display: inline-block;
background: var(--gold);
color: var(--navy);
padding: 14px 32px;
border-radius: 4px;
font-weight: 600;
text-decoration: none;
border: none;
cursor: pointer;
transition: background 0.3s;
font-size: 16px;
}
.btn:hover {
background: var(--gold-light);
}
.btn-whatsapp {
background: #25D366;
color: var(--white);
margin-top: 16px;
}
.btn-whatsapp:hover {
background: #20bd5a;
}
.section {
padding: 80px 24px;
}
.section h2 {
font-family: 'Playfair Display', serif;
font-size: 42px;
text-align: center;
margin-bottom: 48px;
color: var(--navy);
}
.filter-tabs {
display: flex;
justify-content: center;
gap: 12px;
margin-bottom: 40px;
flex-wrap: wrap;
}
.filter-btn {
background: var(--white);
border: 2px solid var(--gray-light);
padding: 10px 24px;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
color: var(--gray);
transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
border-color: var(--gold);
color: var(--navy);
background: var(--gold-light);
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 32px;
}
.product-card {
background: var(--white);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
transition: transform 0.3s, box-shadow 0.3s;
cursor: pointer;
}
.product-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.product-image {
width: 100%;
height: 320px;
object-fit: cover;
background: var(--gray-light);
}
.product-info {
padding: 20px;
}
.product-category {
font-size: 12px;
color: var(--gold);
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
margin-bottom: 8px;
}
.product-name {
font-size: 18px;
font-weight: 600;
color: var(--navy);
margin-bottom: 8px;
}
.product-price {
font-size: 20px;
font-weight: 700;
color: var(--gold);
}
.about {
background: var(--gray-light);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 32px;
}
.feature-card {
background: var(--white);
padding: 32px;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.feature-icon {
font-size: 48px;
margin-bottom: 16px;
}
.feature-card h3 {
font-size: 20px;
color: var(--navy);
margin-bottom: 12px;
}
.feature-card p {
color: var(--gray);
font-size: 15px;
}
.contacts-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
align-items: start;
}
.contact-item {
margin-bottom: 24px;
}
.contact-item strong {
display: block;
color: var(--navy);
font-size: 16px;
margin-bottom: 4px;
}
.contact-item p {
color: var(--gray);
font-size: 16px;
}
.contact-item a {
color: var(--navy);
text-decoration: none;
}
.contact-item a:hover {
color: var(--gold);
}
.footer {
background: var(--navy);
color: var(--white);
padding: 32px 24px;
text-align: center;
}
.footer p {
color: #9ca3af;
font-size: 14px;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
}
.modal-window {
position: relative;
background: var(--white);
padding: 40px;
border-radius: 8px;
max-width: 450px;
width: 90%;
z-index: 1001;
}
.modal-close {
position: absolute;
top: 12px;
right: 16px;
background: none;
border: none;
font-size: 32px;
cursor: pointer;
color: var(--gray);
}
.modal-close:hover {
color: var(--navy);
}
.modal h3 {
font-family: 'Playfair Display', serif;
font-size: 28px;
color: var(--navy);
margin-bottom: 12px;
}
.modal p {
color: var(--gray);
margin-bottom: 24px;
}
.modal form input {
width: 100%;
padding: 14px;
margin-bottom: 16px;
border: 2px solid var(--gray-light);
border-radius: 4px;
font-size: 16px;
font-family: inherit;
}
.modal form input:focus {
outline: none;
border-color: var(--gold);
}
.modal form .btn {
width: 100%;
}
.reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
opacity: 1;
transform: none;
}
@media (max-width: 768px) {
.hero h1 {
font-size: 36px;
}
.hero p {
font-size: 18px;
}
.section h2 {
font-size: 32px;
}
.nav {
display: none;
}
.contacts-grid {
grid-template-columns: 1fr;
}
.header-inner {
justify-content: center;
}
}