:root {
    --bg-color: #fcfbfa;
    --text-color: #2c2520;
    --accent-color: #8c6239;
    --accent-hover: #6f4e2c;
    --card-bg: #ffffff;
    --border-color: #e6dfd9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 1. Меню навигации */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(254, 253, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Общие стили секций */
section {
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}

/* 2. Приветствие (Hero) */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(252,251,250,0.75), rgba(252,251,250,0.85)), url('https://unsplash.com') center/cover no-repeat;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    max-width: 900px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* 3. Описание мастера */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 4. Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

.gallery-more {
    text-align: center;
}

/* 5. Отзывы */
.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.reviews-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.review-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.review-date {
    color: #8c827a;
    font-size: 0.9rem;
}

.review-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

/* 6. Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* 7. Кнопка наверх */
.btn-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}

.btn-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; }
    .about-content, .reviews-container { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    section { padding: 8rem 1rem 2rem; }
}
