/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --border: #475569;
    --success: #10b981;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    margin-bottom: 32px;
    text-align: center;
}

/* ===== ШАПКА ===== */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    color: var(--accent);
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone {
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.phone:hover {
    color: var(--accent-hover);
}

.address {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

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

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
}

/* ===== СЕКЦИИ ===== */
.features, .services, .masters, .gallery, .reviews, .booking, .contacts {
    padding: 80px 0;
}

.features {
    background: var(--bg-card);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-dark);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== УСЛУГИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent);
}

.service-name {
    font-size: 18px;
    font-weight: 600;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

/* ===== МАСТЕРА ===== */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.master-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.master-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.master-photo {
    width: 100%;
    height: 280px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.master-info {
    padding: 20px;
}

.master-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.master-specialty {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 12px;
}

.master-exp {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.gallery-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.review-stars {
    font-size: 20px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.review-author {
    color: var(--accent);
    font-weight: 600;
}

/* ===== ФОРМА ЗАПИСИ ===== */
.booking {
    background: var(--bg-card);
}

.booking-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.booking-header h2 {
    margin-bottom: 8px;
}

.booking-header p {
    color: var(--text-secondary);
}

.booking-step {
    margin-bottom: 24px;
}

.booking-step h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent);
}

.masters-select, .services-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.master-option, .service-option {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    user-select: none;
}

.master-option:hover, .service-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.master-option.selected, .service-option.selected {
    border-color: var(--accent) !important;
    background: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 0 0 2px var(--accent);
}

.master-option-name, .service-option-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.master-option-spec, .service-option-price {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}


.datetime-select {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.time-slot {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.time-slot:hover {
    border-color: var(--accent);
}

.time-slot.selected {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.booking-summary {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.contact-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--accent);
}

.contact-card p, .contact-card a {
    color: var(--text-secondary);
    font-size: 16px;
}

.contact-card a {
    text-decoration: none;
}

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

.map-placeholder {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--bg-card);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .booking-wrapper {
        padding: 24px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}