/* ========== СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: #2A5C8F;
    min-height: 100vh;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    padding: 20px 0;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: 20px;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: 10px;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}
.nav-menu {
    display: flex;
    list-style: none;
}
.nav-menu li {
    margin-left: 30px;
}
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}
header.scrolled .nav-menu a {
    color: #333;
}
.nav-menu a:hover {
    color: #ed1c24;
}
/* Hero Section */
.hero {
    position: relative;
    height: 100dvh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease;
}
.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ed1c24;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
/* Секции */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2A5C8F;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ed1c24;
    margin: 15px auto 0;
    border-radius: 2px;
}
/* Категории */
.categories {
    background: #f9f9f9;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.category-card {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.category-card i {
    font-size: 48px;
    color: #2A5C8F;
    margin-bottom: 20px;
}
.category-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}
.category-card p {
    color: #777;
}
/* О компании */
.about {
    background: #fff;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h3 {
    font-size: 28px;
    color: #2A5C8F;
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 20px;
    color: #555;
}
.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.benefit-item {
    display: flex;
    align-items: center;
}
.benefit-item i {
    font-size: 24px;
    color: #ed1c24;
    margin-right: 15px;
}
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    will-change: transform;
}
/* Параллакс секция */
.parallax-cta {
    position: relative;
    background-image: url('../images/footer.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}
.parallax-cta .overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* Контакты */
.contact {
    background: #fff;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
}
.contact-item i {
    font-size: 24px;
    color: #2A5C8F;
    width: 50px;
    height: 50px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.contact-item p {
    color: #555;
}
.contact-form {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}
.form-group {
    margin-bottom: 20px;
}
input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    background: rgba(255,255,255,0.8);
    transition: border 0.3s, background 0.3s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #2A5C8F;
    background: #fff;
}
textarea {
    min-height: 120px;
    resize: vertical;
}
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}
.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}
.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}
/* Футер */
footer {
    background: #2A5C8F;
    color: #fff;
    padding: 40px 0 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ed1c24;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-col ul li a:hover {
    opacity: 1;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: background 0.3s;
}
.social-links a:hover {
    background: #ed1c24;
    color: #333;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}
/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Адаптивность */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu li {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .parallax-cta h2 {
        font-size: 32px;
    }
    .benefits {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    .nav-menu {
        width: 100%;
        justify-content: space-around;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-menu a {
        font-size: 15px;
        padding: 5px 0;
    }
    .logo img {
        max-width: 120px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .section-title {
        font-size: 28px;
    }
    .hero-buttons {
        gap: 15px;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        font-size: 14px;
        padding: 4px 0;
    }
}
@media (max-width: 768px) {
    .parallax-bg,
    .parallax-cta {
        background-attachment: scroll;
    }
}

/* ========== Modern UI overrides (2026) ========== */
:root {
    --bg: #070a12;
    --bg2: #0b1630;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --brand: #ed1c24;
    --brand2: #ff6a00;
    --ring: rgba(237, 28, 36, 0.35);
    --radius: 16px;
    --shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1200px 800px at 15% 10%, rgba(42, 92, 143, 0.55), rgba(42, 92, 143, 0) 55%),
        radial-gradient(900px 700px at 85% 15%, rgba(237, 28, 36, 0.35), rgba(237, 28, 36, 0) 55%),
        radial-gradient(900px 700px at 70% 85%, rgba(255, 106, 0, 0.24), rgba(255, 106, 0, 0) 60%),
        linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Header & nav */
.header-inner {
    gap: 16px;
}
.logo img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}
.nav {
    display: flex;
    align-items: center;
}
header.scrolled {
    background: rgba(10, 14, 25, 0.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
header.scrolled .nav-menu a {
    color: rgba(255,255,255,0.92);
}
.nav-menu a {
    color: rgba(255,255,255,0.92);
    position: relative;
    padding: 6px 0;
}
.nav-menu a:hover {
    color: #fff;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    transition: transform 0.25s ease;
    border-radius: 2px;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.parallax-bg {
    filter: saturate(1.1) contrast(1.05);
}
.overlay {
    background:
        radial-gradient(800px 500px at 50% 35%, rgba(255,255,255,0.10), rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.62));
    backdrop-filter: blur(3px);
}
.hero h1 {
    font-size: clamp(28px, 3.2vw, 56px);
    letter-spacing: -0.02em;
}
.hero p {
    font-size: clamp(16px, 1.35vw, 20px);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 18px 40px rgba(237, 28, 36, 0.18);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -50%;
    width: 50%;
    height: 220%;
    transform: rotate(25deg) translateX(-40%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: transform 0.6s ease;
}
.btn:hover::before {
    transform: rotate(25deg) translateX(260%);
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.btn-secondary:hover {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

/* Secondary button on light sections */
.categories .btn-secondary,
.contact .btn-secondary,
.about .btn-secondary {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    box-shadow: var(--shadow-soft);
}
.categories .btn-secondary:hover,
.contact .btn-secondary:hover,
.about .btn-secondary:hover {
    box-shadow: 0 18px 50px rgba(0,0,0,0.16);
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px;
}

.section-title--inverted {
    color: #fff;
}

/* Equipment details */
.equipment-details {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 10% 20%, rgba(42, 92, 143, 0.55), rgba(42, 92, 143, 0) 55%),
        radial-gradient(900px 600px at 90% 0%, rgba(237, 28, 36, 0.35), rgba(237, 28, 36, 0) 55%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.detail-card {
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 200px at 0% 0%, rgba(237, 28, 36, 0.10), transparent 55%);
    opacity: 0.85;
    pointer-events: none;
}
.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}
.detail-title {
    font-size: 18px;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 14px;
    text-align: center;
}
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.detail-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    color: #334155;
}
.detail-list i {
    color: var(--brand2);
    margin-top: 2px;
}

/* Reveal animation (stagger-ready) */
.fade-in {
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav-menu {
        position: absolute;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        top: calc(100% + 10px);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        background: rgba(10, 14, 25, 0.72);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 16px;
        box-shadow: 0 26px 70px rgba(0,0,0,0.35);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        margin-top: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-menu a {
        padding: 12px 12px;
        border-radius: 12px;
    }
    .nav-menu a:hover {
        background: rgba(255,255,255,0.06);
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
}