:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f4f6f8;
    --dark-bg: #1a252f;
    --white: #ffffff;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    background-image: radial-gradient(#cbd5e0 1px, transparent 1px);
    background-size: 20px 20px;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: var(--transition);
    transform: skewX(-20deg);
}

.btn:hover::after {
    width: 120%;
}

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
    background-color: var(--accent-color);
    color: var(--white);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
    background-color: var(--accent-color);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-color);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.btn--submit {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 16px;
    margin-top: 10px;
}

.btn--outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn:hover {
    background-color: #2980b9;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn--outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
}

.header--hidden {
    transform: translateY(-100%);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

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

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 10px;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--accent-color);
    opacity: 0.1;
    transition: var(--transition);
    z-index: -1;
    transform: skewX(-20deg);
}

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

.nav a:hover::after {
    width: 100%;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__phone {
    font-weight: 700;
    color: var(--primary-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(26, 37, 47, 0.85), rgba(26, 37, 47, 0.85)),
        url('img/f2.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero__container {
    max-width: 900px;
    z-index: 2;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: 52px;
    margin-bottom: 25px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 80px 0;
}

.section__title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.section__title--white {
    color: var(--white);
}

.about {
    background-color: var(--white);
}

.about__content {
    display: flex;
    justify-content: center;
}

.about__text {
    max-width: 800px;
    text-align: center;
    font-size: 18px;
}

.about__text p {
    margin-bottom: 20px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card__title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.card__text {
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.card__list {
    padding-left: 20px;
}

.card__list li {
    list-style-type: disc;
    margin-bottom: 5px;
    color: #666;
}

.equipment__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.equipment-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

.equipment-card:hover .equipment-img img {
    transform: scale(1.1);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.prices__list {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item__name {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 18px;
}

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

.prices__note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.advantage-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.contacts__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .requisites {
    flex: 1;
    min-width: 250px;
}

.contact-item {
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.requisites {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.requisites h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 30px;
    font-size: 14px;
}

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

.footer__info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer__nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer__nav a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer__nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.equipment {
    background-color: rgba(44, 62, 80, 0.103); 
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.advantages {
    background-color: rgba(52, 152, 219, 0.05); 
}

.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.anim-up {
    transform: translateY(40px);
}

.anim-fade {
}

.anim-zoom {
    transform: scale(0.9);
}

.anim-left {
    transform: translateX(-50px);
}

.anim-right {
    transform: translateX(50px);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

@media (max-width: 768px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .burger-menu {
        display: flex;
        z-index: 1001; 
    }

    .header__container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav--active {
        right: 0; 
        display: flex; 
    }

    .nav a {
        font-size: 24px;
        margin: 15px 0;
        opacity: 0; 
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav--active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav--active a:nth-child(1) { transition-delay: 0.1s; }
    .nav--active a:nth-child(2) { transition-delay: 0.2s; }
    .nav--active a:nth-child(3) { transition-delay: 0.3s; }
    .nav--active a:nth-child(4) { transition-delay: 0.4s; }
    .nav--active a:nth-child(5) { transition-delay: 0.5s; }

    .burger-menu--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-menu--active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .header__contacts {
        display: none; 
    }

    .gallery__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery__grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 0;
        height: 250px;
    }
}