:root {
    --bg: #06182c;
    --bg-light: #0b2742;
    --bg-card: #0d3153;
    --accent: #198be0;
    --accent-hover: #42a8f2;
    --text: #f4f9ff;
    --muted: #b5cbe0;
    --border: rgba(174, 220, 255, 0.2);
    --dark-overlay: rgba(2, 14, 28, 0.68);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 110px 8%;
    scroll-snap-align: start;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    max-width: 920px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Шапка сайта */
.header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8%;
    background: rgba(3, 17, 32, 0.86);
    border-bottom: 1px solid rgba(174, 220, 255, 0.1);
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

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

.nav {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 0.9rem;
}

.nav a {
    transition: color 0.2s ease;
}

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

/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 15px 24px;
    color: #fff;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--accent);
    cursor: pointer;
    transition: 0.2s ease;
}

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

.button-outline {
    margin-left: 12px;
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    margin-bottom: 14px;
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Главный экран */
.hero {
    background:
        linear-gradient(90deg, rgba(2, 14, 28, 0.94) 0%, rgba(2, 14, 28, 0.7) 47%, rgba(2, 14, 28, 0.3) 100%),
        url("../images/bg/index.jpg") center / cover no-repeat;
}

.hero-content {
    z-index: 2;
    max-width: 880px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 13px;
    color: #ccecff;
    font-size: 0.85rem;
    border: 1px solid rgba(90, 185, 255, 0.45);
    border-radius: 5px;
    background: rgba(25, 139, 224, 0.16);
    font-size: 1.2rem;
}

.hero h1 span {
    color: #64bfff;
}

.hero-description {
    max-width: 670px;
    font-size: 1.17rem;
}

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-contact small {
    color: #a9c7df;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-contact a {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

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

.hero-number {
    position: absolute;
    right: 7%;
    bottom: 3%;
    z-index: 1;
    color: rgba(255, 255, 255, 0.13);
    font-size: clamp(8rem, 18vw, 17rem);
    font-weight: 800;
}

/* О компании */
.about {
    background:
        radial-gradient(circle at 82% 20%, rgba(25, 139, 224, 0.18), transparent 30%),
        var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat {
    padding: 29px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.stat strong {
    display: block;
    margin-bottom: 8px;
    color: #69c2ff;
    font-size: 2.2rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    min-height: 285px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, #103b61, #092541);
    transition: 0.25s ease;
}

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 27px;
    border-radius: 14px;
    background: rgba(25, 139, 224, 0.22);
    color: #9dddff;
    font-size: 1.55rem;
}

.service-card h3 {
    margin-bottom: 13px;
    font-size: 1.28rem;
}

/* Проекты / фотогалереи */
.projects {
    background:
        radial-gradient(circle at 20% 0%, rgba(25, 139, 224, 0.18), transparent 28%),
        var(--bg-light);
}

.projects-intro {
    max-width: 700px;
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 38px;
}

.gallery-group {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.gallery-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 145px 145px;
    gap: 5px;
    height: 295px;
}

.gallery-image {
    display: block;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.04);
}

.gallery-image:first-child {
    grid-row: span 2;
}

.gallery-image:nth-child(1) {
    background-image: url("https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?auto=format&fit=crop&w=900&q=85");
}

.gallery-image:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1565610222536-ef125c59da2e?auto=format&fit=crop&w=700&q=85");
}

.gallery-image:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=700&q=85");
}

.gallery-group:nth-child(2) .gallery-image:nth-child(1) {
    background-image: url("https://images.unsplash.com/photo-1586191582151-f73872dfd183?auto=format&fit=crop&w=900&q=85");
}

.gallery-group:nth-child(2) .gallery-image:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=700&q=85");
}

.gallery-group:nth-child(2) .gallery-image:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1494412574643-ff11b0f739a9?auto=format&fit=crop&w=700&q=85");
}

.gallery-group:nth-child(3) .gallery-image:nth-child(1) {
    background-image: url("https://images.unsplash.com/photo-1580674684081-7617fbf3d745?auto=format&fit=crop&w=900&q=85");
}

.gallery-group:nth-child(3) .gallery-image:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=700&q=85");
}

.gallery-group:nth-child(3) .gallery-image:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=700&q=85");
}

.gallery-group:nth-child(4) .gallery-image:nth-child(1) {
    background-image: url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=900&q=85");
}

.gallery-group:nth-child(4) .gallery-image:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=700&q=85");
}

.gallery-group:nth-child(4) .gallery-image:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1586864387789-628af9feed72?auto=format&fit=crop&w=700&q=85");
}

.gallery-info {
    padding: 21px 23px 24px;
}

.gallery-info span {
    display: block;
    margin-bottom: 8px;
    color: #76caff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-info h3 {
    font-size: 1.18rem;
}

/* Контакты */
.contacts {
    background:
        linear-gradient(90deg, rgba(3, 18, 35, 0.92), rgba(3, 18, 35, 0.8)),
        url("../images/bg/bottom.jpg") center / cover no-repeat;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.contact-item {
    padding: 19px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(4, 23, 42, 0.72);
}

.contact-item small {
    display: block;
    margin-bottom: 7px;
    color: #a9c7df;
    font-size: 0.79rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-item a,
.contact-item strong {
    font-size: 1.05rem;
}
.contact-item p {
    margin-bottom: 15px;
    line-height: 1.1;
}
.contact-item p strong {
    color: #fff;
    margin-bottom: 10px;
}

.contact-form {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(5, 26, 47, 0.9);
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    margin-bottom: 24px;
    font-size: 1.45rem;
}

.field {
    width: 100%;
    margin-bottom: 15px;
    padding: 14px 16px;
    color: var(--text);
    font: inherit;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(1, 15, 30, 0.7);
}

.field:focus {
    border-color: var(--accent-hover);
}

textarea.field {
    min-height: 115px;
    resize: vertical;
}

.contact-form .button {
    width: 100%;
    margin-top: 0;
}

/* Боковая навигация */
.dots {
    position: fixed;
    z-index: 15;
    top: 50%;
    right: 27px;
    display: grid;
    gap: 12px;
    transform: translateY(-50%);
}

.dots a {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: 0.2s ease;
}

.dots a:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-list {
        grid-template-columns: 1fr;
    }

    .dots {
        display: none;
    }
}

@media (max-width: 600px) {
    html {
        scroll-snap-type: none;
    }

    section {
        min-height: auto;
        padding: 105px 7% 75px;
    }

    .header {
        padding: 18px 7%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero-contacts {
        flex-direction: column;
        gap: 15px;
    }

    .button,
    .button-outline {
        width: 100%;
        margin-left: 0;
    }

    .button-outline {
        margin-top: 12px;
    }

    .gallery-images {
        grid-template-rows: 110px 110px;
        height: 225px;
    }
}

/* Галереи перевозок */
.gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 38px;
}

.gallery-group {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 145px 145px;
    gap: 5px;
    height: 295px;
}

.gallery-image {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background-color: #0b2742;
    cursor: pointer;
}

.gallery-image:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-image:hover img {
    filter: brightness(0.75);
    transform: scale(1.08);
}

.gallery-image:nth-child(5) {
    position: relative;
}

.gallery-image:nth-child(5)::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(2, 14, 28, 0.55);
    content: attr(data-more);
}

.gallery-info {
    padding: 21px 23px 24px;
}

.gallery-info span {
    display: block;
    margin-bottom: 8px;
    color: #76caff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-info h3 {
    font-size: 1.18rem;
}

/* Полноэкранный просмотр */
.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 50px 90px;
    background: rgba(0, 8, 18, 0.94);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 145px);
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
    margin-top: 17px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.lightbox-counter {
    margin-top: 8px;
    color: #8db7d6;
    font-size: 0.85rem;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.lightbox-close {
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
    background: transparent;
}

.lightbox-arrow {
    top: 50%;
    width: 55px;
    height: 80px;
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    color: #71c9ff;
    background: rgba(25, 139, 224, 0.24);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .gallery-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .gallery-images {
        grid-template-rows: 105px 105px;
        height: 215px;
    }

    .lightbox {
        padding: 60px 15px 90px;
    }

    .lightbox-image {
        max-height: calc(100vh - 170px);
    }

    .lightbox-arrow {
        top: auto;
        bottom: 16px;
        width: 58px;
        height: 50px;
        font-size: 3rem;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 65px);
    }

    .lightbox-next {
        right: calc(50% - 65px);
    }

    .lightbox-close {
        top: 12px;
        right: 14px;
    }
}