:root {
    --blue: #1e3a8a;
    --red: #d32f2f;
    --dark: #0b1220;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--dark);
    color: #fff;
}

/* ---------- NAVBAR ---------- */

.navbar {
    position: fixed;
    width: 100%;
    height: 70px;
    backdrop-filter: blur(10px);
    background: rgba(184, 22, 22, 0.759);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links a {
    margin-left: 28px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: 0.3s;
}

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

.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ---------- HERO ---------- */

.hero {
    min-height: calc(130vh - 120px);
    background-image: url("images/banner2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    pointer-events: none;	
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: 8%;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero > * {
    position: relative;
    z-index: 1;
}


/* ---------- BUTTONS ---------- */

.hero-buttons {
    display: flex;
    gap: 20px;
    pointer-events: auto;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: rgba(184, 22, 22, 0.759);
    border: #fff;
    color: #fff;
}


.page-content {
    padding-top: 70px; /* высота navbar */
}


.btn-primary:hover {
    background: #fff;
    color: #000;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* ---------- ANIMATION ---------- */

.fade-in {
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero-content {
        margin: auto;
        padding: 0 20px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(10,15,30,0.95);
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links a {
        display: block;
        margin: 16px 0;
        font-size: 18px;
    }

    .burger {
        display: block;
    }

    .nav-links.active {
        display: block;
    }
}

/* ---------- PRODUCT CATALOG ---------- */

.catalog-page {
    max-width: 1300px;
    margin: auto;
    padding: 60px 24px;
}

.catalog-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
}

.filters {
    text-align: center;
    margin-bottom: 40px;
}

.filters a {
    margin: 0 12px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    opacity: 0.8;
}

.filters a:hover {
    opacity: 1;
    color: var(--red);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #9db1db;   /* фон для пустых зон */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.no-image {
    opacity: 0.5;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 14px;
    font-size: 20px;
}

.product-info ul {
    list-style: none;
    margin-bottom: 16px;
}

.product-info li {
    margin-bottom: 6px;
    font-size: 14px;
}

.btn.small {
    padding: 8px 18px;
    font-size: 14px;
}
/* ---------- DOCS ---------- */

.docs-page {
    max-width: 1000px;
    margin: auto;
    padding: 60px 24px;
}

.docs-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-card {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.doc-icon {
    font-size: 40px;
}

.doc-info h3 {
    margin-bottom: 6px;
}

.doc-info p {
    opacity: 0.85;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .doc-card {
        flex-direction: column;
        text-align: center;
    }
}
/* ---------- CONTACTS ---------- */

.contacts-page {
    max-width: 1200px;
    margin: auto;
    padding: 60px 24px;
}

.contacts-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacts-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.contacts-header p {
    font-size: 18px;
    opacity: 0.85;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.contacts-card h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.contacts-card p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.contacts-card a {
    color: #90caf9;
    text-decoration: none;
}

.contacts-card input,
.contacts-card textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.contacts-card input::placeholder,
.contacts-card textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-header h1 {
        font-size: 34px;
    }
}
/* =========================
   ANCHOR CALCULATOR PAGE
   ========================= */

.calculator {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ---------- TITLE ---------- */

.calculator h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 0.4px;
}

/* ---------- FORM ---------- */

.calculator form {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);

    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- LABEL ---------- */

.calculator label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- INPUTS & SELECT ---------- */

.calculator input,
.calculator select {
    width: 100%;
    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;

    color: #ffffff;
    font-size: 15px;

    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.calculator input:focus,
.calculator select:focus {
    border-color: var(--red);
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- SELECT ARROW FIX ---------- */

.calculator select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='white'%3E%3Cpath d='M2 4l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

/* ---------- BUTTON ---------- */

.calculator button.btn {
    margin-top: 24px;
    align-self: center;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 42px;
    border-radius: 30px;

    background: var(--red);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;

    border: none;
    cursor: pointer;

    line-height: 1;
    box-sizing: border-box;

    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.calculator button.btn:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.calculator button.btn:active {
    transform: translateY(0);
}

/* ---------- RESULT ---------- */

.result {
    margin-top: 40px;
    padding: 28px;

    background: rgba(144, 202, 249, 0.08);
    border: 1px solid rgba(144, 202, 249, 0.25);
    border-radius: 16px;

    text-align: center;
}

.result h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result p {
    font-size: 28px;
    font-weight: 700;
    color: #90caf9;
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {
    .calculator h2 {
        font-size: 30px;
    }

    .calculator form {
        padding: 28px 22px;
    }
}
/* =========================
   CALCULATOR GRID LAYOUT
   ========================= */

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT */
.calculator-form form {
    height: 100%;
}

/* RIGHT */
.calculator-result {
    height: 100%;
}

/* Placeholder result */
.result.placeholder {
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

.result.placeholder p {
    font-size: 16px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}
/* ---------- SELECT OPTIONS FIX ---------- */

.calculator select option {
    background-color: #0b1220; /* тёмный фон сайта */
    color: #ffffff;
}

header {
    position: relative;
    z-index: 1000;
}

nav {
    position: relative;
    z-index: 9999;
}


/* бургер */
.menu-toggle,
.burger,
.menu-icon {
    position: relative;
    z-index: 10000;
}


header, nav {
    position: relative !important;
    z-index: 99999 !important;
}

.menu-toggle, .burger {
    position: relative !important;
    z-index: 100000 !important;
}

