:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --accent-light: #a8dadc;
    --light-bg: #f8f9fa;
    --text-color: #2b2d42;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    scroll-behavior: smooth;
}

h1, h2, h3, .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
    font-weight: 900;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 10px;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-accent {
    color: var(--primary-color);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.phone {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.phone:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('img/13.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.9) 0%, rgba(29, 53, 87, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--accent-light);
    font-weight: 600;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    opacity: 0.9;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 20px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #4a4a4a;
}

.features-list {
    list-style: none;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.features-list li {
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.features-list li:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.features-list li::before {
    content: '➔';
    color: var(--primary-color);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 10px solid var(--accent-light);
    border-radius: 20px;
    z-index: 1;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item::after {
    content: '🔍 Посмотреть';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contacts-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.contact-details strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-details a, .contact-details span {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.1);
}

.contact-form button {
    margin-top: 10px;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.footer-inner p {
    margin-bottom: 15px;
    opacity: 0.7;
    font-size: 1rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-reveal="bottom"] {
    transform: translateY(50px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile Adaptive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .about-grid, .contacts-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image::after {
        display: none;
    }
    .about-image img {
        max-width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1b26;
        --text-color: #f8f9fa;
        --text-muted: #a0a0a0;
        --white: #121212;
    }

    body {
        background-color: #121212;
        color: var(--text-color);
    }

    .header {
        background: rgba(18, 18, 18, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .logo-text {
        background: linear-gradient(45deg, var(--white), var(--primary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-link, .phone {
        color: var(--white);
    }

    .phone {
        border-color: var(--primary-color);
    }

    .phone:hover {
        color: #ffffff;
    }

    .about-text p {
        color: var(--text-color);
    }

    .features-list li {
        background: #1a1b26;
        color: var(--text-color);
    }

    .service-card {
        background: #1a1b26;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .service-card h3 {
        color: var(--white);
    }

    .contact-form {
        background: #1a1b26;
    }

    .contact-form input, .contact-form textarea {
        background: #121212;
        border-color: #333;
        color: white;
    }

    .contact-details strong {
        color: var(--white);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .header-inner {
       
        gap: 15px;
        text-align: center;
    }
    .logo-text {
        font-size: 1rem;
    }
    .phone {
        font-size: 1rem;
        padding: 8px 20px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
        display: block;
        text-align: center;
    }
}
