﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
    --bg: #eaf0f5;
    --bg-soft: #dde7ef;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --ink: #1e2f3f;
    --ink-muted: #5b7084;
    --brand: #0d4f82;
    --brand-strong: #08395e;
    --accent: #cf6a28;
    --line: #d1dce8;
    --line-soft: #e2eaf1;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-lg: 0 20px 50px rgba(8, 39, 64, 0.14);
    --shadow-md: 0 10px 24px rgba(8, 39, 64, 0.1);
}

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

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.container,
.content-wrapper,
.footer-content {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    background: linear-gradient(130deg, #163f62 0%, #0a2f4d 100%);
    color: #fff;
    padding: 26px 0 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    text-transform: none;
    letter-spacing: 0.015em;
    font-size: clamp(2.1rem, 4.6vw, 3.25rem);
    line-height: 1.08;
    text-align: center;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.header .contacts {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.header .phone,
.header .email {
    font-size: 0.98rem;
    color: #eaf3fb;
    font-weight: 600;
}

.header .email {
    font-weight: 500;
}

.header .contacts a,
.header .contacts a:visited {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.header .contacts a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.85);
    opacity: 0.95;
}

.navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 47, 75, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-container {
    width: min(1220px, calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.navigation a {
    color: #eef5fb;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.navigation a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.navigation a.active {
    background: linear-gradient(120deg, var(--accent) 0%, #e18448 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(207, 106, 40, 0.35);
}

.content-wrapper {
    flex: 1;
    padding: 30px 0 36px;
}

.main-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 254, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 4vw, 42px);
}

.page-title {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--brand-strong);
    font-size: clamp(1.8rem, 3.7vw, 2.55rem);
    margin-bottom: 10px;
}

.page-title::after {
    content: "";
    display: block;
    width: 94px;
    height: 4px;
    border-radius: 999px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.page-subtitle {
    text-align: center;
    color: var(--ink-muted);
    font-size: 1.03rem;
    margin: 0 auto 24px;
}

.intro-text,
.company-info > p {
    text-align: center;
    margin: 0 auto;
    color: #30465a;
    max-width: 860px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 30px;
}

.hero-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero-side,
.request-side,
.calculator-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 18px rgba(10, 48, 76, 0.08);
    padding: 18px;
}

.info-card h3 {
    color: var(--brand-strong);
    margin-bottom: 10px;
    font-size: 1.02rem;
}

.info-card p {
    color: #355068;
    margin-bottom: 8px;
    word-break: break-word;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.quick-links {
    list-style: none;
}

.quick-links li + li {
    margin-top: 7px;
}

.quick-links a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.quick-links a:hover {
    text-decoration: underline;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 16px;
    margin: 10px 0 28px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(10, 52, 82, 0.08);
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.service-card h3 {
    color: var(--brand-strong);
    font-size: 1.04rem;
    margin-bottom: 11px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    color: #355068;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.64em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.products-section {
    margin-top: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.product-item {
    background: linear-gradient(145deg, #0f4774 0%, #0a3558 100%);
    color: #f4f9ff;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    text-align: center;
    font-weight: 700;
    padding: 14px 10px;
    box-shadow: 0 8px 16px rgba(10, 53, 88, 0.24);
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(10, 53, 88, 0.3);
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 86px;
}

.catalog-main {
    min-width: 0;
}

.request-layout,
.calculator-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.45fr);
    gap: 16px;
    align-items: start;
}

.request-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #2f455a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #c6d4e3;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(13, 79, 130, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.order-form {
    max-width: 100%;
}

.form-actions {
    text-align: center;
    margin-top: 8px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(120deg, var(--brand) 0%, #10639f 100%);
    color: #fff;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    font-weight: 800;
    padding: 12px 22px;
    box-shadow: 0 10px 20px rgba(13, 79, 130, 0.28);
    transition: transform 0.16s ease, filter 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn-secondary {
    background: linear-gradient(120deg, #0b2f4b 0%, #184d74 100%);
    box-shadow: 0 10px 20px rgba(11, 47, 75, 0.28);
}

.filters-section {
    border-radius: var(--radius-lg);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.filters-section .form-group {
    margin-bottom: 0;
}

.filters-section label {
    font-size: 0.9rem;
}

.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.price-table th {
    background: linear-gradient(120deg, var(--brand-strong) 0%, #0f4f82 100%);
    color: #f4f9ff;
    text-align: left;
    font-size: 0.94rem;
    padding: 13px 12px;
}

.price-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line-soft);
    color: #2e465c;
}

.price-table tbody tr:nth-child(odd) {
    background: #f8fbfe;
}

.price-table tbody tr:hover {
    background: #edf4fa;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table td[colspan] {
    text-align: center;
    color: var(--ink-muted);
    padding: 28px 12px;
}

.quantity-cell,
.price-cell {
    text-align: center;
    color: #1f3f5c;
    font-weight: 600;
}

#loading {
    display: none;
    text-align: center;
    padding: 14px;
    background: #eef4fa;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #35536a;
    margin-bottom: 12px;
}

.bg-light {
    background: var(--surface-soft) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.bg-light h3 {
    color: var(--brand-strong);
    margin-bottom: 8px;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 8px 20px rgba(10, 52, 82, 0.08);
}

.contact-card h3 {
    color: var(--brand-strong);
    margin-bottom: 11px;
}

.wide-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.contact-info {
    color: #355068;
    line-height: 1.75;
    flex: 1;
}

.contact-info p {
    margin-bottom: 14px;
}

.contact-info a,
.info-card a,
.bg-light a,
a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.contact-info a:hover,
.info-card a:hover,
.bg-light a:hover,
a:hover {
    color: var(--brand-strong);
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 400px;
    min-height: 320px;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    flex: 0 0 auto;
}

.map-address {
    text-align: center;
    margin-top: 10px;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-code {
    background: linear-gradient(135deg, #ecf3f9 0%, #d9e8f4 100%);
    border: 1px solid #aac3d8;
    border-radius: 10px;
    color: #173f63;
    min-width: 120px;
    text-align: center;
    font-family: 'Oswald', 'Courier New', monospace;
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    padding: 10px 12px;
    font-weight: 600;
}

.captcha-refresh {
    background: linear-gradient(120deg, var(--accent) 0%, #df8751 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.2s ease;
}

.captcha-refresh:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

#captchaInput {
    flex: 1;
    min-width: 190px;
}

.calculator-widget-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;
    display: flex;
    justify-content: center;
}

#mp_calc {
    width: min(100%, 400px) !important;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
}

#mp_calc_zag {
    width: 100% !important;
    background: linear-gradient(120deg, #f0a13c 0%, #df7f22 100%) !important;
    color: #172a3c !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    padding: 9px 8px !important;
}

#mp_calc_zag a {
    color: #172a3c !important;
}

#mp_calc_fr {
    width: 100% !important;
    display: block;
    border: none;
}

.text-center {
    text-align: center;
}

.p-4 {
    padding: 20px;
}

.mt-4 {
    margin-top: 18px;
}

.error {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    color: #8f2330;
    border: 1px solid #f2b7c0;
    background: #feeef1;
}

.no-results {
    text-align: center;
    color: var(--ink-muted);
    font-style: italic;
    padding: 24px;
}

.footer {
    background: linear-gradient(120deg, #0b2f4b 0%, #153f62 100%);
    border-top: 3px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    padding: 24px 0;
    margin-top: 24px;
}

.footer-content {
    text-align: center;
}

.footer-info p {
    margin: 7px 0;
    color: #d8e6f4;
}

.copyright {
    margin-top: 10px !important;
    font-size: 0.88rem;
    color: #adc9e0 !important;
}

@media (max-width: 1020px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .request-layout,
    .calculator-layout {
        grid-template-columns: 1fr;
    }

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

    .wide-card {
        min-height: auto;
    }

    .map-container {
        height: 320px;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .container,
    .content-wrapper,
    .footer-content {
        width: min(1220px, calc(100% - 20px));
    }

    .header {
        padding: 22px 0 16px;
    }

    .header .phone,
    .header .email {
        font-size: 0.94rem;
    }

    .navigation {
        position: static;
    }

    .nav-container {
        justify-content: stretch;
        gap: 6px;
        padding: 8px 0 10px;
    }

    .navigation a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
        font-size: 0.74rem;
        padding: 9px 8px;
    }

    .content-wrapper {
        padding: 16px 0 24px;
    }

    .main-content {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .hero-main,
    .request-main,
    .info-card,
    .contact-card,
    .calculator-widget-wrap {
        padding: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .p-4 {
        padding: 14px;
    }

    .map-container {
        height: 280px;
        min-height: 280px;
    }
}
