/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===== CONTAINER ===== */

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== HEADER ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: rgba(15, 23, 42, 0.95);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,.05);
}

.header .container {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;

    font-size: 22px;
    font-weight: 800;

    line-height: 1.1;
}

.logo span {
    display: block;

    color: #f59e0b;

    font-size: 12px;
    letter-spacing: 3px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    color: white;
    font-weight: 500;

    transition: .3s;
}

.nav a:hover {
    color: #f59e0b;
}

.header-phone {
    background: #f59e0b;

    color: white;

    padding: 12px 18px;

    border-radius: 12px;

    font-weight: 700;

    transition: .3s;
}

.header-phone:hover {
    background: #ffb11c;
    transform: translateY(-2px);
}

/* ===== HERO ===== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(15,23,42,.75),
            rgba(15,23,42,.75)
        ),
        url("../images/hero.webp");

    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;

    color: #f59e0b;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 20px;
}

.hero h1 {
    color: white;

    font-size: 64px;

    line-height: 1.1;

    margin-bottom: 25px;
}

.hero p {
    color: #cbd5e1;

    font-size: 22px;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #f59e0b;

    color: white;

    padding: 16px 28px;

    border-radius: 12px;

    font-weight: 700;

    transition: .3s;
}

.btn-primary:hover {
    background: #ffb020;
}

.btn-secondary {
    border: 2px solid white;

    color: white;

    padding: 16px 28px;

    border-radius: 12px;

    font-weight: 700;

    transition: .3s;
}

.btn-secondary:hover {
    background: white;
    color: #0f172a;
}

/* ===== SECTIONS ===== */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    color: #f59e0b;

    text-transform: uppercase;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 42px;

    margin-top: 12px;
}

/* ===== ADVANTAGES ===== */

.advantages {
    background: white;
}

.advantages-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.advantage-card {
    background: #f8fafc;

    border-radius: 20px;

    padding: 35px 25px;

    text-align: center;

    transition: .3s;
}

.advantage-card:hover {
    transform: translateY(-8px);
}

.advantage-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    background: #f59e0b;

    color: white;

    border-radius: 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 28px;
}

.advantage-card h3 {
    margin-bottom: 12px;
}

.advantage-card p {
    color: #64748b;
}

/* ===== SERVICES ===== */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;

    text-decoration: none; /* убираем подчёркивание */
    color: inherit;        /* наследуем цвет текста */

    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: .4s;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-body {
    padding: 25px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-model {
    color: #f59e0b;
    font-weight: 700;

    margin-bottom: 15px;
}

.service-body ul {
    margin-bottom: 25px;
}

.service-body li {
    padding: 8px 0;
}

.service-btn {
    margin-top: auto;

    background: #0f172a;
    color: white;

    padding: 14px;

    text-align: center;

    border-radius: 12px;

    font-weight: 600;

    transition: .3s;
}

.service-btn:hover {
    background: #1e293b;
}

/* ===== ABOUT ===== */

.about {
    background: white;
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.about-image img {
    border-radius: 24px;
}

.about-content span {
    color: #f59e0b;

    font-weight: 700;

    text-transform: uppercase;
}

.about-content h2 {
    font-size: 42px;

    margin: 15px 0 25px;
}

.about-content p {
    margin-bottom: 20px;

    color: #475569;
}

/* ===== CONTACTS ===== */

.contacts-wrapper {
    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 50px;

    align-items: center;
}

.contacts-map iframe {
    width: 100%;
    height: 550px;

    border: none;

    border-radius: 24px;
}

.contacts-label {
    color: #f59e0b;

    font-weight: 700;

    text-transform: uppercase;
}

.contacts-info h2 {
    font-size: 42px;

    margin: 15px 0 40px;
}

.contact-item {
    display: flex;

    gap: 18px;

    margin-bottom: 28px;
}

.contact-item i {
    width: 55px;
    height: 55px;

    background: #f59e0b;

    color: white;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 22px;
}

.contact-item h3 {
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: #64748b;
}

.contact-item a {
    font-weight: 700;
}

.contacts-btn {
    display: inline-block;

    margin-top: 15px;

    background: #0f172a;

    color: white;

    padding: 16px 28px;

    border-radius: 12px;

    font-weight: 700;

    transition: .3s;
}

.contacts-btn:hover {
    background: #1e293b;
}

/* ===== FOOTER ===== */

.footer {
    background: #0f172a;

    color: white;

    text-align: center;

    padding: 30px 0;
}

/* ===== MOBILE CALL ===== */

.mobile-call {
    display: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .about-grid,
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }

    .contacts-map {
        order: 2;
    }

    .contacts-info {
        order: 1;
    }
}

@media (max-width: 768px) {

    .hero {
        min-height: 85vh;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2,
    .about-content h2,
    .contacts-info h2 {
        font-size: 32px;
    }

    .header-phone {
        display: none;
    }

    .mobile-call {
        display: flex;

        position: fixed;

        bottom: 15px;
        left: 15px;
        right: 15px;

        justify-content: center;
        align-items: center;
        gap: 10px;

        background: #f59e0b;

        color: white;

        padding: 16px;

        border-radius: 14px;

        font-weight: 700;

        z-index: 9999;

        box-shadow: 0 10px 30px rgba(0,0,0,.2);
    }

    body {
        padding-bottom: 90px;
    }
}

/* =======================================
   СТРАНИЦА ПОГРУЗЧИКА
======================================= */

.service-hero {
    padding-top: 140px;
    padding-bottom: 80px;

    background: #ffffff;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-label {
    display: inline-block;

    color: #f59e0b;

    text-transform: uppercase;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.service-hero h1 {
    font-size: 54px;
    line-height: 1.1;

    margin-bottom: 20px;

    color: #0f172a;
}

.service-hero p {
    font-size: 20px;

    color: #64748b;

    margin-bottom: 35px;
}

.service-buttons {
    display: flex;
    gap: 15px;
}

.service-main-image {
    width: 100%;

    border-radius: 24px;

    box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

/* =======================================
   ХАРАКТЕРИСТИКИ
======================================= */

.service-specs {
    background: #f8fafc;
}

.specs-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.spec-card {
    background: white;

    padding: 30px;

    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(0,0,0,.05);

    transition: .3s;
}

.spec-card:hover {
    transform: translateY(-6px);
}

.spec-card h3 {
    color: #64748b;

    font-size: 15px;

    margin-bottom: 10px;
}

.spec-card p {
    font-size: 20px;
    font-weight: 700;

    color: #0f172a;
}

/* =======================================
   НАВЕСНОЕ ОБОРУДОВАНИЕ
======================================= */

.equipment {
    background: white;
}

.equipment-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.equipment-card {
    background: #0f172a;

    color: white;

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    font-size: 20px;
    font-weight: 600;

    transition: .3s;
}

.equipment-card:hover {
    transform: translateY(-6px);
}

.equipment-card i {
    display: block;

    color: #f59e0b;

    font-size: 36px;

    margin-bottom: 15px;
}

/* =======================================
   ОПИСАНИЕ
======================================= */

.about-machine {
    background: #f8fafc;
}

.machine-text {
    max-width: 950px;
    margin: auto;
}

.machine-text p {
    margin-bottom: 20px;

    font-size: 18px;

    color: #475569;

    line-height: 1.9;
}

/* =======================================
   SERVICE USAGE
======================================= */

.service-usage {
    background: white;
}

.service-usage .section-header {
    margin-bottom: 40px;
}

.service-usage-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.service-usage-card {
    background: linear-gradient(135deg, #fffdf8 0%, #f8fafc 100%);
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-left: 4px solid #f59e0b;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.service-usage-card h3 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 22px;
}

.service-usage-card p,
.service-usage-card li {
    color: #475569;
    line-height: 1.8;
}

.service-usage-card ul {
    padding-left: 22px;
    margin-bottom: 14px;
}

.service-usage-card li {
    margin-bottom: 8px;
    list-style: disc;
    color: #475569;
}

/* =======================================
   CTA
======================================= */

.cta {
    background:
        linear-gradient(
            rgba(15,23,42,.9),
            rgba(15,23,42,.9)
        ),
        url("../images/hero.webp");

    background-size: cover;
    background-position: center;

    text-align: center;

    color: white;
}

.cta h2 {
    font-size: 44px;

    margin-bottom: 15px;
}

.cta p {
    font-size: 20px;

    color: #cbd5e1;

    margin-bottom: 30px;
}

/* =======================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
======================================= */

@media (max-width: 992px) {

    .service-hero-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .service-hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .service-hero {
        padding-top: 120px;
    }

    .service-buttons {
        flex-direction: column;
    }

    .service-hero h1 {
        font-size: 34px;
    }

    .service-hero p {
        font-size: 18px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .service-usage-grid {
        grid-template-columns: 1fr;
    }

    .spec-card {
        padding: 25px;
    }

    .equipment-card {
        padding: 25px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 18px;
    }

    .machine-text p {
        font-size: 16px;
    }
}

/* ===== GALLERY ===== */

.gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;       /* убираем выход за границы */

    border-radius: 24px;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.7);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.3s;
    z-index: 2;
}

.gallery-btn:hover {
    background: rgba(245, 158, 11, 0.9);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

.gallery img {
    width: 100%;
    height: 100%;

    object-fit: cover;   /* 🔥 ключевое */
    object-position: center;

    border-radius: 24px;
}

.service-more {
    margin-top: auto; /* прижимает вниз карточки */

    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-weight: 700;
    font-size: 15px;

    color: #f59e0b;

    transition: 0.3s;
}

.service-card:hover .service-more {
    gap: 12px; /* стрелка “уезжает” при наведении */
    color: #ffb020;
}

.service-hero .btn-secondary {
    border: 2px solid #0f172a;
    color: #0f172a;
    background: transparent;
}

.service-hero .btn-secondary:hover {
    background: #0f172a;
    color: white;
}

.other-machines {
    background: #f8fafc;
}