/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
    --primary: #d32f2f;        /* Красный металлик */
    --primary-dark: #b71c1c;    /* Тёмно-красный */
    --secondary: #ff6b00;       /* Оранжевый */
    --metal: #2c2c2c;          /* Тёмный металл */
    --metal-light: #5a5a5a;     /* Светлый металл */
    --steel: #4a4a4a;           /* Сталь */
    --dark: #1a1a1a;            /* Почти чёрный */
    --light: #f5f5f5;           /* Светлый */
    --gray: #9e9e9e;            /* Серый */
    --white: #ffffff;
    
    --gradient-metal: linear-gradient(145deg, #3a3a3a, #1e1e1e);
    --gradient-red: linear-gradient(145deg, #d32f2f, #b71c1c);
    --shadow-metal: 0 5px 15px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.1);
    --shadow-inset: inset 0 2px 5px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== МЕТАЛЛИЧЕСКИЕ ЭФФЕКТЫ ===== */
.metal-text {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(145deg, #5a5a5a, #2c2c2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ===== ШАПКА ===== */
.header {
    background: var(--gradient-metal);
    color: var(--white);
    position: relative;
    border-bottom: 3px solid var(--primary);
}

.header-top {
    background: rgba(0,0,0,0.3);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--metal-light);
}

.header-contact {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
}

.header-contact i {
    color: var(--primary);
    margin-right: 8px;
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    box-shadow: var(--shadow-metal);
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.logo-icon i {
    transform: rotate(-45deg);
}

.logo:hover .logo-icon {
    transform: rotate(90deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    line-height: 1;
}

.logo-sub {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 3px;
}

.header-phones {
    display: flex;
    gap: 20px;
}

.phone-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--metal-light);
    border-radius: 30px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
}

.phone-card:hover {
    border-color: var(--primary);
    background: rgba(211,47,47,0.2);
}

.phone-card i {
    color: var(--primary);
}

/* ===== НАВИГАЦИЯ ===== */
.nav {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--metal-light);
    border-bottom: 1px solid var(--metal-light);
    padding: 10px 0;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::before {
    width: 100%;
}

/* ===== ГЕРОЙ ===== */
.hero {
    min-height: 80vh;
    background: url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg, var(--primary), var(--primary) 10px, transparent 10px, transparent 20px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.text-highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(211,47,47,0.5);
}

.hero-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--gray);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: var(--shadow-metal);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(211,47,47,0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
    background: var(--dark);
}

.divider-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider-icon {
    color: var(--primary);
    font-size: 24px;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== СЕКЦИИ ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-text {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== УСЛУГИ ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    perspective: 1000px;
    cursor: pointer;
    height: 300px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-metal);
}

.service-front {
    background: var(--gradient-metal);
    color: var(--white);
    border: 1px solid var(--metal-light);
}

.service-back {
    background: var(--gradient-red);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-back p {
    font-size: 16px;
    line-height: 1.6;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--primary);
    border: 2px solid var(--metal-light);
}

.service-front h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Информация об услуге */
.service-info {
    margin-top: 40px;
    padding: 30px;
    background: var(--gradient-metal);
    border-radius: 15px;
    color: var(--white);
    border-left: 5px solid var(--primary);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-info p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.service-info strong {
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery {
    padding: 100px 0;
    background: var(--light);
}

.fotorama {
    border: 5px solid var(--dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-metal);
}

/* ===== ГРАФИК ===== */
.schedule {
    padding: 100px 0;
    background: var(--white);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-card {
    background: var(--gradient-metal);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--metal-light);
    box-shadow: var(--shadow-metal);
    transition: all 0.3s;
}

.schedule-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.schedule-card.sunday {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.schedule-day {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.schedule-day i {
    color: var(--primary);
}

.schedule-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 500;
    color: var(--primary);
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
}

.contacts .section-title {
    color: var(--white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contacts-list {
    margin: 40px 0;
}

.contacts-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s;
}

.contacts-item:hover {
    background: rgba(211,47,47,0.1);
    transform: translateX(10px);
}

.contacts-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.contacts-item h4 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacts-link {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}

.contacts-link:hover {
    color: var(--primary);
}

.contacts-text {
    color: var(--white);
    font-size: 18px;
}

.contacts-image {
    text-align: center;
}

.contacts-img {
    max-width: 80%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
    letter-spacing: 1px;
}

.footer h4 span {
    color: var(--white);
}

.footer-about p {
    color: var(--gray);
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contacts p {
    color: var(--gray);
    margin-bottom: 10px;
}

.footer-contacts i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--metal-light);
    color: var(--gray);
    font-size: 14px;
}

/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-metal);
    transition: all 0.3s;
    z-index: 99;
}

.scroll-top:hover {
    transform: translateY(-5px) rotate(360deg);
}

.scroll-top.show {
    display: flex;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contacts-item {
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-phones {
        flex-direction: column;
        width: 100%;
    }
    
    .phone-card {
        justify-content: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}