/*
Theme Name: qproject.kz
Template: bootscore
...
*/

/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    --color-primary: #9C8052;
    --color-primary-dark: #7f6743;
    --color-text: #333;
    --color-muted: #777;
    --color-bg: #fff;
    --color-bg-soft: #faf7f2;
    --color-border: rgba(0, 0, 0, .08);
    --bg-gold: linear-gradient(135deg, #ab9a7d 0%, #9C8052 35%, #6f5a3d 100%);

}

.gold-text {
    background: linear-gradient(
        135deg,
        #ab9a7d 0%,
        #9C8052 35%,
        #6f5a3d 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    color: transparent;
}


.instagram-gradient {
    /* Градиент Instagram */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);

    /* Делаем фон прозрачным для иконки */
    -webkit-background-clip: text;
    background-clip: text;

    /* Делаем сам текст прозрачным, чтобы был виден фон */
    color: transparent;

    /* Дополнительно: плавный переход при наведении */
    transition: transform 0.3s ease;
}

.instagram-gradient:hover {
    transform: scale(1.2);
    /* Иконка будет слегка увеличиваться */
}


.whatsapp-gradient {
    /* Градиент от лаймового к ярко-зеленому */
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    /* Добавляем плавность */
    transition: transform 0.3s ease;
}

.whatsapp-gradient:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(28px, 3.2vw, 48px);
}

h2 {
    font-size: clamp(24px, 2.6vw, 40px);
}

h3 {
    font-size: clamp(20px, 2.2vw, 27px);
}

h4 {
    font-size: clamp(18px, 1.9vw, 24px);
}

h5 {
    font-size: clamp(16px, 1.6vw, 21px);
}

h6 {
    font-size: clamp(14px, 1.3vw, 18px);
}

h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 12px;
    border-radius: 2px;
    margin-left: 0;
    margin-right: auto;
}



.home h2::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	background: var(--color-primary);
	margin-top: 12px;
	border-radius: 2px;
	margin-left: 0;
	margin-right: auto;
}


.error404 h1::after {
    display: none;
}

#bootscore-navbar {
    font-family: "Montserrat", sans-serif;
}

.single .entry-content h2 {
    font-size: clamp(24px, 2.6vw, 26px);
}

.single .entry-content h3 {
    font-size: clamp(20px, 2.2vw, 20px);
}

.bg-gold {
    background: var(--bg-gold);
}

.text-gold {
    color: var(--color-primary);
}

.badge,
.alert {
    border-radius: 0 !important;
}

.modal {
    z-index: 20000 !important;
}

.modal-backdrop {
    z-index: 19999 !important;
}

.modal-body h2:after{
    margin-left: auto !important;
}

.modal-content {
    border-radius: 0 !important;
}


#successToast {
    background: var(--bg-gold) !important;
    color: #fff; /* Цвет текста, подбери под свое золото (темный или белый) */
}





/* Если нужно перекрасить крестик закрытия в темный */
#successToast .btn-close {
    color: #fff !important;
}

.wpcf7-response-output {
    display: none !important;
}


.review-card .badge {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.3;
}




/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
    transition: .3s ease;
    padding: 14px 22px;
}

.btn:hover {
    opacity: .8;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 10px 25px rgba(156,128,82,.35);
}

.btn.btn-gold,
.btn-primary {
    background: var(--bg-gold);
    border: 1px solid var(--color-primary);
    color: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.btn.btn-gold:hover,
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 10px 25px rgba(156,128,82,.35);
}

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

.btn-close:focus {
    box-shadow: 0 0 3px var(--color-primary) !important;
    border: 1px solid #9C805263;
}




.btn-check:checked + .btn, :not(.btn-check) + .btn:active, .btn:first-child:active, .btn.active, .btn.show {
	color: var(--bs-btn-active-color);
	background-color: #9C8052AB !important;
    border-color: var(--color-primary);
}


/* ==========================================================================
   4. HEADER & HERO MENU (COMMON & DESKTOP STATE)
   ========================================================================== */
.header-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transition: all .25s ease;
}

.header-hero .navbar {
    background: transparent !important;
}

.header-hero .nav-toggler {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.header-hero+.hero-main {
    padding-top: 80px;
}

.header-hero.is-scrolled {
    position: fixed;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.header-hero .navbar a,
.header-hero .navbar .nav-link {
    color: #fff;
    transition: color .25s ease;
}

.header-hero.is-scrolled .navbar a,
.header-hero.is-scrolled .nav-link {
    color: #222 !important;
}


.header-hero.is-scrolled .navbar a:hover,
.header-hero.is-scrolled .nav-link:hover {
    color: #fff !important;
}


.header-hero.is-scrolled .nav-toggler {
    color: #222 !important;
    border-color: rgba(0, 0, 0, .2);
}

.header-hero .offcanvas .nav-link,
.header-hero .offcanvas a {
    color: #222 !important;
}

/* Offcanvas */
.offcanvas {
    background: #fff !important;
}

.offcanvas .nav-link,
.offcanvas a {
    color: #222;
}

.offcanvas .nav-link:hover {
    color: var(--color-primary) !important;
}

.dropdown-item:hover {
    background: var(--bg-gold);
    color: #fff;
}

.dropdown-item{
    font-family: 'Montserrat', sans-serif;
}



/* ==========================================================================
   5. HERO MAIN & VISUAL SLIDER
   ========================================================================== */
.hero-main {
    position: relative;
    min-height: 100vh;
    background: url('/wp-content/themes/qprojectkz/assets/img/mainBack.webp') center/cover no-repeat;
    padding: 120px 0;
    overflow: hidden;
}

.hero-main .container {
    position: relative;
    z-index: 2;
}

.hero-main .btn {
    min-width: 220px;
    border-radius: 0;
    padding: 14px 0;
}

.hero-visual {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-swiper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    will-change: transform;
    transition: transform 10s ease-out;
}

.hero-swiper .swiper-slide-active img {
    transform: scale(1.14);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide img {
        transition: none !important;
        transform: none !important;
    }
}

.navbar .dropdown-menu {
    backdrop-filter: none;
}

/* Cinema Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.35), transparent 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
}

/* Вторая версия overlay (из .hero-main) */
.hero-main .hero-overlay {
    position: absolute;
    inset: 0;
    background: #000000ba;
    z-index: 1;
}

/* Content Layer */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards;
    animation-delay: .4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(51px, 6vw, 78px);
    line-height: 1.05;
    font-weight: 700;
}

.hero-main .hero-title {
    font-size: clamp(42px, 7vw, 88px);
    max-width: 900px;
}

.hero-subtitle {
    margin-top: 15px;
    font-size: clamp(16px, 2vw, 22px);
    opacity: .85;
    max-width: 700px;
}

.hero-main .hero-subtitle {
    font-size: clamp(20px, 2vw, 28px);
    opacity: .9;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   6. SECTIONS & COMPONENTS (WORKS, PACKAGES, TEAM, ETC.)
   ========================================================================== */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
}


/*blog*/
.blog-card {
    transition: .4s ease;
}

.blog-card:hover {
    transform: scale(1.05);
}


/* Works */
.work-card {
    text-decoration: none;
    color: inherit;
    transition: .4s ease;
}

.work-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.work-card:hover {
    transform: scale(1.05);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-title {
    font-size: 20px;
    font-weight: 600;
}

.works-tabs .btn {
    transition: .25s ease;
}

.works-tabs .btn.active {
    background: #111;
    color: #fff;
    border-color: var(--color-primary);
}

.work-item {
    transition: opacity .25s ease, transform .25s ease;
}

.other-works {
    margin-top: 55px;
    padding-top: 80px;
    position: relative;
    background: linear-gradient(to bottom, #ba272700 0, var(--color-bg-soft) 120px);
}

.other-works::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--color-primary);
}

/* Packages */
.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card .btn {
    margin-top: auto;
}

/* How We Work */
#how {
    background: url('/wp-content/uploads/2026/05/interior-design-almaty4-4.webp') center/cover no-repeat fixed;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

#how::before {
    content: "";
    position: absolute;
    inset: 0;
    background:/*rgba(156, 128, 82, .95)*/ #000000b0;
}

#how .container {
    position: relative;
    z-index: 2;
}

#how .step {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 3rem 1rem;
    background: #ffffffe0;
}

/* Why We (Оригинальный блок) */
#why {
    position: relative;
    overflow: hidden;
}

#why .container {
    position: relative;
    z-index: 2;
}

#why .step {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 3rem 1rem;
    background: #ffffffe0;
}

.border-why {
    position: relative;
    padding: 18px 20px 18px 65px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all .25s ease;
    overflow: hidden;
}

.border-why::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.06), transparent 60%);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}


#team-section {
    background-color: #9c805208;
    ;
}


/* Border My Custom Component (Новый блок) */
.border-my {
    position: relative;
    padding: 18px 20px 18px 65px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all .25s ease;
    overflow: hidden;
    z-index: 1;
}

.border-my::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.06), transparent 60%);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.border-my::before {
    content: "✦";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    z-index: 1;
}

.border-my>* {
    position: relative;
    z-index: 2;
}

.border-my:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(0, 0, 0, 0.03));
}

.border-my.without-before::before {
    display: none !important;
    /* Принудительно скрываем after */
    content: none !important;
}

.border-my.without-before {
    padding: 1.5rem !important;
}



/* Team Section */
.team-card-premium {
    position: relative;
    height: 515px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border-radius: 0;
}

.team-image {
    position: absolute;
    inset: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .80), rgba(0, 0, 0, .25) 45%, transparent 75%);
}

.team-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
    transition: transform .35s ease;
}

.team-info h5 {
    color: #fff;
    font-weight: 600;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #d4af37;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(212, 175, 55, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
}

.team-card-premium:hover img {
    transform: scale(1.08);
}

.team-card-premium:hover .team-info {
    transform: translateY(-4px);
}

.team-swiper {
    /*max-width: 900px;*/
}



/*SEO-Text*/

.seo-text {
    background-color: rgba(156, 128, 82, 0.03);
}


.seo-text h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 12px;
    border-radius: 2px;
    margin-left: 0;
    margin-right: auto;
}


/* About Section */
.about-image img {
    min-height: 500px;
    object-fit: cover;
}

.about-content {
    max-width: 760px;
}

.about-stat-card {
    padding: 28px 20px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: #fff;
    transition: .3s;
}

.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.about-stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--color-primary);
}

/* Project CTA Box */
.project-cta-box {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.project-cta-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 760px;
}

.project-copyright {
    opacity: .8;
    line-height: 1.7;
}

/* Underline decoration */
.underline-accent {
    position: relative;
    text-align: center;
}

.underline-accent::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   SWIPER / SLIDER UI COMPONENTS
   ========================================================================== */
.team-swiper {
    padding-bottom: 50px;
}

/* ИСПРАВЛЕНИЕ: Принудительный вертикальный стек для контента внутри слайдов */
.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column !important;
}

.reviews-swiper .swiper-slide p {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
}


@supports (-moz-appearance: none) {
    .review-card {
        height: calc(100% - 1px) !important;
    }
}


.post-gallery-swiper .swiper-slide img {
    object-fit: cover;
    height: 100%;
}

.works-swiper {
    overflow: hidden;
    padding-bottom: 50px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 22px;
}

.swiper-pagination-bullet {
    background: #999;
    opacity: .5;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
}

/* ==========================================================================
   FORMS & CONTACT FORM 7 (CF7) INTEGRATION
   ========================================================================== */
.form-control {
    border-radius: 0;
    border: 1px solid var(--color-border);
}

.form-control:focus {
    border-color: rgba(156, 128, 82, .4);
    box-shadow: 0 0 0 0.25rem rgba(156, 128, 82, .2);
}

input[type="tel"]:focus,
input[type="tel"]:focus-visible {
    border-color: rgba(156, 128, 82, .4) !important;
    box-shadow: 0 0 0 0.25rem rgba(156, 128, 82, .2) !important;
    outline: none !important;
}

.form-wrapper {
    background: var(--color-bg-soft);
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

/* CF7 + Bootstrap */
.wpcf7-form input:not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
}

.wpcf7-form input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: auto !important;
    display: inline-block !important;
}

/* Policy checkboxes layout */
.policy-check .wpcf7-acceptance {
    display: block;
}

.policy-check .wpcf7-list-item {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
}

.policy-check input[type="checkbox"] {
    margin: 2px 0 0 0;
    flex: 0 0 auto;
}

.policy-check .wpcf7-list-item-label {
    display: inline;
    line-height: 1.4;
}

/* ==========================================================================
   PRICING TABLES & CARDS
   ========================================================================== */
.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #eaeaea;
    overflow: hidden;
}

.pricing-row {
    display: flex;
}

.pricing-cell {
    flex: 1;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.pricing-cell:first-child {
    flex: 2;
    font-weight: 500;
}

.pricing-head .pricing-cell {
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-row.alt {
    background: #fafafa;
}

.pricing-cell.check {
    text-align: center;
    font-size: 18px;
    color: var(--color-primary);
}

.pricing-cell.empty {
    text-align: center;
    color: #aaa;
}

.pricing-total .pricing-cell {
    font-weight: 700;
    font-size: 16px;
}

.pricing-actions .pricing-cell {
    border-bottom: none;
}

.pricing-cell.price {
    text-align: center;
    font-weight: 700;
}

.pricing-card {
    transition: 0.25s ease;
    background: #fff;
}

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

.pricing-modern .display-6 {
    font-size: 2.2rem;
}

.pricing-footer {
    opacity: 0;
    transform: translateY(6px);
    transition: .25s ease;
}

.pricing-card:hover .pricing-footer {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SOCIAL MEDIA & FOOTER
   ========================================================================== */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: .3s;
}

.footer-social .social-link {
    display: inline-flex;
    transition: transform .25s ease, color .25s ease, filter .25s ease;
    will-change: transform;
}

.footer-social .social-link:hover {
    transform: translateY(-4px) scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .12));
}

#breadcrumbs {
    font-size: .8rem;
    margin: 2rem 0;
    font-family: 'Montserrat', sans-serif;
}

#footer-menu {
    display: flex;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}

#footer-menu a {
    color: #333;
}

/* ==========================================================================
  BOOTSTRAP FIXES & LIKES LOGIC
   ========================================================================== */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--color-primary);
}

.preloader-custom {
    color: var(--color-primary) !important;
}

/* Likes */
.project-like {
    border: 1px solid var(--color-border);
    background: transparent;
    border-radius: 50px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
    overflow: visible;
}

.project-like:hover {
    transform: translateY(-2px);
    border-color: rgba(156, 128, 82, .5);
}

.project-like.active {
    background: rgba(156, 128, 82, .08);
    color: var(--color-primary);
}

.project-like i {
    font-size: 1.1rem;
}

.like-float {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0;
    pointer-events: none;
    animation: likeFloat 0.8s ease-out forwards;
}

@keyframes likeFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* ==========================================================================
   FEEDBACK (MASONRY GRID)
   ========================================================================== */
.feedback-grid {
    column-count: 4;
    column-gap: 20px;
}

.feedback-item {
    display: block;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
}

.feedback-item:hover {
    transform: translateY(-4px);
}

.feedback-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   12. CUSTOM FLOATING ACTION BUTTON (FAB) WIDGET
   ========================================================================== */
.fab-chat {
    position: fixed;
    right: 123px;
    bottom: 224px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fab-main {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: var(--bg-gold);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transition: .25s ease;
}

.fab-main:hover {
    transform: translateY(-2px);
}

.fab-icon {
    position: absolute;
    font-size: 24px;
    color: #fff;
    transition: opacity .25s ease, transform .25s ease;
}

.fab-icon-chat {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.fab-icon-close {
    opacity: 0;
    transform: scale(.5) rotate(-90deg);
}

/* FAB Active States */
.fab-chat.active .fab-icon-chat {
    opacity: 0;
    transform: scale(.5) rotate(90deg);
}

.fab-chat.active .fab-icon-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.fab-chat.active .fab-label {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    pointer-events: none;
}

.fab-items {
    position: absolute;
    right: 0;
    bottom: 72px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .25s ease;
}

.fab-chat.active .fab-items {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-item {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    transition: .2s ease;
}

.fab-item:hover {
    transform: translateX(-4px);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================================
   13. GLOBAL MEDIA QUERIES (DESKTOP / LAPTOPS)
   ========================================================================== */
@media (min-width: 992px) {

    /* Базовое состояние выпадающего списка */
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
        margin-top: 0;
        background: #fff;
        /* glass effect */
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    }

    /* Открытое состояние выпадающего списка */
    .navbar .dropdown.show>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Ссылки только в десктопном меню */
    .header-hero:not(.is-scrolled) .navbar a,
    .header-hero:not(.is-scrolled) .nav-link {
        color: #fff !important;
    }

    .header-hero:not(.is-scrolled) .dropdown-menu .nav-link,
    .header-hero:not(.is-scrolled) .dropdown-menu a,
    .header-hero:not(.is-scrolled) .dropdown-item {
        color: #222 !important;
    }

    .header-hero:not(.is-scrolled) .dropdown-menu .nav-link:hover,
    .header-hero:not(.is-scrolled) .dropdown-menu a:hover,
    .header-hero:not(.is-scrolled) .dropdown-item:hover {
        color: #fff !important;
    }



    /* Выравнивание заголовков на десктопе */
    .hero-main .underline-accent {
        text-align: left;
    }

    .hero-main .underline-accent::after {
        margin-left: 0;
        margin-right: auto;
    }
}


/* ==========================================================================
   14. GLOBAL MEDIA QUERIES (TABLETS & MOBILE ONES)
   ========================================================================== */
@media (max-width: 991px) {
    .navbar .offcanvas .nav-link {
        color: #222 !important;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-main {
        text-align: center;
        min-height: 700px;
    }

    .hero-main .hero-title {
        margin: 0 auto;
    }

    .project-cta-box {
        text-align: center;
    }

    .feedback-grid {
        column-count: 3;
    }

    /* ИСПРАВЛЕНИЕ: Переносим адаптацию fixed-фона в брейкпоинт */
    #how {
        background-attachment: scroll !important;
    }
}

@media (max-width: 767px) {
    .feedback-grid {
        column-count: 2;
        column-gap: 12px;
    }

    .feedback-item {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .home h2::after {
        margin-left: auto;
    }
}

@media (min-width: 577px) {

    /* CHAT — выше и правее (но чуть левее, чем был) */
    #chaty-widget-0 .chaty-widget {
        right: 60px !important;
        bottom: 140px !important;
        left: auto !important;
        z-index: 9999;
    }

    /* TOP — ниже и левее */
    .top-button {
        right: 120px;
        bottom: 20px;
        left: auto;
        z-index: 9998;
    }

    .chaty-i-trigger .chaty-channel {
        right: 57px !important;
    }

    .chaty-channel-list {
        right: 53px !important;
    }
}

@media (max-width: 576px) {


    .top-button {
        left: 16px;
        right: auto;
        bottom: 16px;
    }

    /* Border components adaptations */
    .border-why {
        padding-left: 18px;
    }

    .border-my {
        padding-left: 18px;
    }

    .border-my::before {
        display: none;
    }

    /* FAB Floating widget adjustments */
    .fab-chat {
        right: 16px;
        bottom: 16px;
    }

    .fab-label {
        right: 68px;
        font-size: 11px;
        padding: 10px 12px;
    }

    .fab-item {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}


@media (max-width: 991.98px) {

    #menu-item-236 a::after {
        content: " WhatsApp";
        margin-left: 8px;
    }

    #menu-item-499 a::after {
        content: " Instagram";
        margin-left: 8px;
    }

}


.hero-b {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-b__inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero-b__content {
    max-width: 520px;
}

.hero-b__title {
    font-size: 52px;
    line-height: 1.05;
}

.hero-b__subtitle {
    margin-top: 20px;
    opacity: .8;
    font-size: 18px;
}

.hero-b__buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.hero-b__visual {
    
    overflow: hidden;
    transform: scale(1.02);
}

.hero-b__swiper {
    height: 75vh;
}

.hero-b__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@media (max-width: 576px) {
    .toast-container {
        /* Поднимаем над чатом */
        bottom: 80px !important; 
        
        /* Центрируем контейнер по горизонтали */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        
        /* Задаем фиксированную ширину, чтобы он не растягивался на весь экран */
        width: calc(100% - 30px) !important; 
        max-width: 350px !important;
    }
    
    /* Делаем сам тост внутри контейнера на всю доступную ширину */
    .toast-container .toast {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}


.dropdown-menu,
.navbar .dropdown-menu{
    border-radius: 0 !important;
}


