@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;700;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .btn {
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.highlight {
    color: #00abd7;
}

/* СКРЫТИЕ СИСТЕМНОГО МУСОРА JOOMLA В СТАТЬЯХ */
.article-info,
.article-info-term,
.page-header,
.icon-edit,
.btn-action,
dl.article-info {
    display: none !important;
}

/* Кнопки в форме листика */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 26px 6px 26px 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn:hover {
    border-radius: 6px 26px 6px 26px;
}

.btn-primary {
    background-color: #00abd7;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 171, 215, 0.35);
}

.btn-primary:hover {
    background-color: #0093ba;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 171, 215, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #00abd7;
    border: 1.5px solid #00abd7;
}

.btn-secondary:hover {
    background: #00abd7;
    color: #ffffff;
}

.btn-header {
    background-color: #00abd7;
    color: #fff;
    padding: 12px 24px;
    font-size: 11px;
    border-radius: 18px 4px 18px 4px;
}

.btn-header:hover {
    background-color: #0093ba;
    border-radius: 4px 18px 4px 18px;
}

/* 1. Header */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 171, 215, 0.12);
    position: relative;
    background: #ffffff;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-img {
    height: auto;
    max-height: 75px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    font-weight: 600;
    font-size: 15px;
    color: #475569;
    transition: color 0.2s;
}

.nav-list a:hover, .nav-list a.active {
    color: #00abd7;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.phone-link {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    color: #00abd7;
    font-size: 15px;
}

/* 2. Hero Screen */
.hero-section {
    padding: 90px 0 100px;
    background: linear-gradient(180deg, #f0faff 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-descr {
    font-size: 19px;
    margin-bottom: 35px;
    color: #475569;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrap img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 36px 8px 36px 8px;
    box-shadow: 0 20px 40px rgba(0, 171, 215, 0.2);
}

/* 3. Promo Banner */
.banner-section {
    padding: 30px 0;
}

.banner-box {
    background: linear-gradient(135deg, #072a38 0%, #00abd7 100%);
    border-radius: 36px 8px 36px 8px;
    padding: 50px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 171, 215, 0.25);
}

.banner-box h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.banner-box p {
    font-size: 18px;
    margin-bottom: 25px;
}

.banner-box .btn {
    background: #ffffff;
    color: #00abd7;
}

.banner-box .btn:hover {
    background: #f0faff;
}

/* 4. БЕГУЩАЯ СТРОКА */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-left 20s linear infinite;
}

.marquee-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 85px;
    font-weight: 900;
    color: #00abd7;
    opacity: 0.12;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding-right: 60px;
}

@keyframes marquee-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* 5. About */
.about-section {
    padding: 90px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 36px 8px 36px 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.about-text h2 {
    font-size: 38px;
    color: #0f172a;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* 6. Catalog */
.catalog-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 40px;
    color: #0f172a;
}

.brands-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    align-items: center;
}

/* Плашки брендов */
.brand-card,
.brand-card-item {
    background-color: #529ee3;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 26px 6px 26px 6px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 115px;
    box-shadow: 0 8px 22px rgba(82, 158, 227, 0.28);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.brand-card:hover,
.brand-card-item:hover {
    background-color: #3784cb;
    border-color: #ffffff;
    border-radius: 6px 26px 6px 26px;
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(55, 132, 203, 0.4);
}

.brand-card img,
.brand-card-item img {
    max-height: 65px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.brand-card:hover img,
.brand-card-item:hover img {
    transform: scale(1.05);
}

/* Карточки каталога в форме листика */
.catalog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.catalog-item-card {
    background: #ffffff;
    border-radius: 36px 8px 36px 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-item-card:hover {
    transform: translateY(-6px);
    border-color: #00abd7;
    border-radius: 8px 36px 8px 36px;
    box-shadow: 0 16px 35px rgba(0, 171, 215, 0.2);
}

.catalog-item-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-item-card:hover .catalog-item-img {
    transform: scale(1.04);
}

.catalog-item-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-item-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0f172a;
    line-height: 1.3;
}

.catalog-item-body p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 22px;
    flex-grow: 1;
    line-height: 1.6;
}

.catalog-item-link {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #00abd7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================================
   СТИЛИ ДЛЯ СХЕМЫ "УСЛОВИЯ РАБОТЫ" (1 В 1 КАК НА МАКЕТЕ)
   =================================================== */
.workflow-scheme-wrap {
    max-width: 1140px;
    margin: 50px auto 80px;
    padding: 0 15px;
    font-family: 'Manrope', sans-serif;
}

.workflow-scheme-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    color: #1e293b;
    margin-bottom: 65px;
    letter-spacing: -0.02em;
}

.workflow-scheme-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.workflow-icon-box {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.workflow-step:hover .workflow-icon-box {
    transform: translateY(-4px);
}

.workflow-icon-box svg {
    width: 82px;
    height: 82px;
    stroke: #00abd7;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workflow-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 35px;
    flex-shrink: 0;
}

.workflow-arrow-box svg {
    width: 38px;
    height: 18px;
    stroke: #334155;
    stroke-width: 1.5;
    fill: none;
}

.workflow-step-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.workflow-step-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    max-width: 220px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .workflow-scheme-flex {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    .workflow-arrow-box {
        transform: rotate(90deg);
        padding: 0;
    }
}

/* 7. Order Form */
.order-section {
    padding: 90px 0;
    background: #ffffff;
}

.order-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #f0faff;
    border: 1px solid #c2edfa;
    border-radius: 36px 8px 36px 8px;
    padding: 50px;
}

.order-info h2 {
    font-size: 34px;
    color: #0f172a;
    margin-bottom: 15px;
}

.order-info p {
    font-size: 18px;
    color: #475569;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 18px 4px 18px 4px;
    background: #ffffff;
    font-family: 'Manrope', sans-serif;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.order-form-control:focus {
    border-color: #00abd7;
    box-shadow: 0 0 0 3px rgba(0, 171, 215, 0.15);
}

/* 8. Footer */
.site-footer {
    padding: 70px 0 40px;
    background: #081b24;
    color: #94a3b8;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-wrap {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.footer-col h4 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    line-height: 2.2;
    font-size: 15px;
}

.footer-col a:hover {
    color: #00abd7;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    font-size: 13px;
    color: #64748b;
}

/* Popup */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 27, 36, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
}

.custom-popup-box {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 36px 8px 36px 8px;
    max-width: 440px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 171, 215, 0.2);
}

.custom-popup-close {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: none;
    color: #839186;
}

.custom-popup-close:hover {
    color: #00abd7;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .order-box, .footer-container {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 30px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .header-logo-img {
        max-height: 60px;
    }
    .hero-image-wrap img, .about-image img {
        height: 300px;
    }
}