/* assets/css/style.css */

/* Кольори бренду DKS */
:root {
    --dks-blue: #0b2b74;
    --dks-blue-dark: #050f33;
    --dks-blue-light: #2f71ff;
    --dks-accent: #00c2ff;
    --dks-bg: #f3f4f6;
    --dks-text: #0f172a;
}

/* Базові налаштування */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dks-text);
    background-color: var(--dks-bg);
    font-size: clamp(15px, 0.95rem + 0.25vw, 18px);
    line-height: 1.6;
}


/* ================= NAVBAR ================= */

.navbar {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    background: linear-gradient(90deg, var(--dks-blue-dark), var(--dks-blue));
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    max-height: 80px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.98rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--dks-accent);
}

.header-phones {
    font-size: 0.9rem;
}

.header-phones a {
    display: inline-flex;
    align-items: center;
    margin: 0.15rem 0.2rem 0.15rem 0;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.header-phones a span {
    font-weight: 600;
}

.header-phones a:hover {
    background-color: rgba(0, 194, 255, 0.2);
    border-color: var(--dks-accent);
}

/* ================= HERO ================= */

.hero {
    position: relative;
    color: #ffffff;
    padding-top: 7rem;
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--trash {
    background-image:
        linear-gradient(135deg, rgba(5, 15, 51, 0.94), rgba(11, 43, 116, 0.86)),
        url("../images/bg-trash-truck.jpg");
}

.hero--assenizator {
    background-image:
        linear-gradient(135deg, rgba(5, 15, 51, 0.94), rgba(171, 34, 25, 0.86)),
        url("../images/bg-assenizator.jpg");
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.5);
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.8rem);
    line-height: 1.08;
    margin-top: 1rem;
    margin-bottom: 0.9rem;
}

.hero-subtitle {
    font-size: 1.08rem;
    max-width: 580px;
    opacity: 0.95;
}

.hero-list {
    list-style: none;
    margin: 1.1rem 0 1.9rem;
    padding: 0;
}

.hero-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.hero-list li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--dks-accent);
    margin-right: 0.65rem;
    box-shadow: 0 0 0 6px rgba(0, 194, 255, 0.25);
}

.hero-buttons .btn {
    border-radius: 999px;
    padding: 0.9rem 1.7rem;
    font-weight: 600;
    font-size: 0.98rem;
}

.hero-buttons .btn-outline-light {
    border-width: 1px;
}

/* Карточка форми в Hero */

.form-card {
    border-radius: 1.4rem;
    border: none;
    padding: 2rem 1.8rem;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.55);
    background: radial-gradient(circle at top left, #ffffff, #e5edff);
}

.form-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
}

.form-control,
.form-select {
    border-radius: 0.95rem;
    border-color: #d1d5db;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--dks-blue-light);
    box-shadow: 0 0 0 0.16rem rgba(47, 113, 255, 0.25);
}

.form-text {
    font-size: 0.8rem;
}

.form-alert {
    display: none;
    margin-bottom: 0.8rem;
}

/* ================ SECTIONS ================ */

.section {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
}

.section-light {
    background-color: #f9fafb;
}

.section-title {
    font-weight: 800;
    font-size: 2.05rem;
    margin-bottom: 0.7rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 2.1rem;
}

/* ================ CARDS / ICONS ================ */

.icon-circle {
    width: 58px;
    height: 58px;
    aspect-ratio: 1 / 1; 
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 113, 255, 0.12);
    color: var(--dks-blue);
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
}

.feature-card,
.review-card {
    border-radius: 1.4rem;
    border: none;
    padding: 1.9rem 1.6rem;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature-card p,
.review-card p {
    font-size: 0.98rem;
}

/* ========= IMAGE BLOCKS / GALLERY ========= */

.about-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.about-image img {
    width: 100%;
    display: block;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent 60%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover::after {
    opacity: 0.3;
}

/* ========= PROCESS ========= */

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.process-step-number {
    width: 34px;
    height: 34px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--dks-accent), var(--dks-blue-light));
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.process-step-title {
    font-weight: 600;
    font-size: 0.98rem;
}

.process-step .small {
    font-size: 0.9rem;
}

/* ========= "FOR WHOM" ========= */

.for-whom-card {
    border-radius: 1.4rem;
    border: none;
    padding: 1.8rem 1.6rem;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
    text-align: center;
}

/* ========= REVIEWS ========= */

.review-name {
    font-weight: 600;
    margin-top: 0.7rem;
}

.review-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ========= FAQ ========= */

.faq-accordion .accordion-item {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    margin-bottom: 0.8rem;
}

.faq-accordion .accordion-button {
    font-weight: 500;
    font-size: 0.98rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--dks-blue);
    background-color: #e5edff;
}

/* ========= FOOTER ========= */

.site-footer {
    background: radial-gradient(circle at top, #1f2937, #020617);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 2.8rem;
    padding-bottom: 1.8rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--dks-accent);
}

.badge-pill {
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

/* ========= BACK TO TOP ========= */

.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 50;
    display: none;
    width: 46px;
    height: 46px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* ========= ANIMATIONS ========= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========= HONEYPOT ========= */

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 991.98px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .form-card {
        margin-top: 1.8rem;
    }

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

@media (max-width: 767.98px) {
    .navbar .navbar-collapse {
        padding-top: 0.7rem;
    }

    .hero {
        padding-top: 8.4rem;   
        padding-bottom: 3.6rem;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-list li {
        font-size: 0.96rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .header-phones {
        margin-top: 0.4rem;
    }

    .section {
        padding-top: 3.4rem;
        padding-bottom: 3.4rem;
    }

    .feature-card,
    .review-card,
    .for-whom-card {
        padding: 1.6rem 1.4rem;
    }
}

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

    .hero-title {
        font-size: 2.3rem;
    }
}

@media (min-width: 1400px) {
    .hero {
        padding-top: 7.5rem;
        padding-bottom: 5.5rem;
    }
    .section {
        padding-top: 4.8rem;
        padding-bottom: 4.8rem;
    }
}

/* ========= IMAGE MODAL (ZOOM) ========= */

img.js-zoomable {
    cursor: zoom-in;
}

#imageModal .modal-dialog {
    max-width: 900px;
}

#imageModal .modal-content {
    background: transparent;
    box-shadow: none;
}

/* ========= HOVER EFFECTS FOR CARDS ========= */

.feature-card,
.review-card,
.for-whom-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover,
.review-card:hover,
.for-whom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.navbar .nav-link.nav-link-assenizator {
    position: relative;
    padding-inline: 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 194, 255, 0.6);
    background: radial-gradient(circle at 0% 0%, rgba(0, 194, 255, 0.35), rgba(0, 194, 255, 0.08));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
    color: #fff;
}

.navbar .nav-link.nav-link-assenizator::before {
    content: "🚰";
    margin-right: 0.35rem;
    font-size: 1rem;
}

.navbar .nav-link.nav-link-assenizator:hover,
.navbar .nav-link.nav-link-assenizator:focus {
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(0, 194, 255, 0.9),
        0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Клікабельні зображення в галереї */
.gallery-item::after {
    pointer-events: none;
}

/* ========= STATS SECTION ========= */

.section-stats {
    background: radial-gradient(circle at top, #0b2b74 0, #020617 60%);
    color: #ffffff;
}

.section-stats .section-title {
    color: #ffffff;
}

.section-stats .section-subtitle {
    color: rgba(226, 232, 240, 0.9);
    max-width: 720px;
}

/* чтобы колонки шли плотнее и были по центру */
.section-stats .row {
    justify-content: center;
}

.stat-card {
    border-radius: 1.8rem;
    padding: 2.2rem 1.6rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.5);
    text-align: center;
    height: 100%;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 1);
    border-color: rgba(56, 189, 248, 0.9);
}

.stat-number {
    font-weight: 800;
    font-size: clamp(3rem, 4vw, 4.1rem); /* Гораздо больше цифры */
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.stat-number span {
    display: inline-block;
}

.stat-label {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.9);
}

/* чуть компактнее на мобилках */
@media (max-width: 767.98px) {
    .stat-card {
        padding: 1.8rem 1.4rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
