/* ═══════════════════════════════════════════════
   GRIBY HERO v3 — #28A77C accent, Houzez-style nav
   ═══════════════════════════════════════════════ */

/* --- Accent color variable --- */
:root {
    --griby-accent: #3EAF85;
    --griby-accent-dark: #339972;
    --griby-accent-light: #5CC49E;
}

/* --- Global font override: Roboto + Roboto Slab (like Houzez Demo 43) --- */
body,
p, a, li, span, b, strong, em, small,
button, input, textarea, select,
.font {
    font-family: 'Roboto', 'Montserrat', sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', 'Roboto', serif !important;
}

/* ═══════════════════════════════════════════════
   TRANSPARENT HEADER (main page)
   ═══════════════════════════════════════════════ */
.griby-header-home { position: relative; }

.griby-header-transparent {
    position: absolute !important;
    top: 0; left: 0; width: 100%;
    z-index: 50;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* White logos */
.griby-header-transparent .griby-logo-white {
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}
/* White text in header */
.griby-header-transparent .menu .tel p,
.griby-header-transparent .menu .tel a,
.griby-header-transparent .menu .logo_dop p {
    color: #fff;
}
/* White messenger icons */
.griby-header-transparent .menu .messenger img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

/* ═══ NAV BAR — transparent, centered, larger font (like Houzez) ═══ */
.griby-header-transparent .navigaciya.desctop {
    background: transparent !important;
    backdrop-filter: none;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.griby-header-transparent .navigaciya.desctop nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.griby-header-transparent .navigaciya.desctop nav a {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 12px 18px;
    transition: color 0.2s;
    text-decoration: none;
}
.griby-header-transparent .navigaciya.desctop nav a:hover {
    color: #fff;
}

/* --- Scrolled: solid white --- */
.griby-header-transparent.animate {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.griby-header-transparent.animate .griby-logo-white {
    filter: none;
}
.griby-header-transparent.animate .menu .tel p,
.griby-header-transparent.animate .menu .tel a,
.griby-header-transparent.animate .menu .logo_dop p {
    color: #333;
}
.griby-header-transparent.animate .menu .messenger img {
    filter: none;
}
.griby-header-transparent.animate .navigaciya.desctop {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.griby-header-transparent.animate .navigaciya.desctop nav a {
    color: #444;
}
.griby-header-transparent.animate .navigaciya.desctop nav a:hover {
    color: var(--griby-accent);
}

/* ═══════════════════════════════════════════════
   HERO BLOCK — 820px
   ═══════════════════════════════════════════════ */
.griby-hero {
    position: relative;
    width: 100%;
    height: 820px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.griby-hero .hero-swiper,
.griby-hero .hero-swiper .swiper-wrapper,
.griby-hero .hero-swiper .swiper-slide {
    width: 100%; height: 100%;
}
.griby-hero .hero-swiper .swiper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.griby-hero .hero-swiper {
    transition: opacity 0.6s ease;
}

/* Gradient overlay */
.griby-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.32) 0%,
        rgba(0,0,0,0.08) 40%,
        rgba(0,0,0,0.04) 65%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ═══ CONTENT OVERLAY ═══ */
.griby-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.griby-hero__overlay .container {
    pointer-events: auto;
}
.griby-hero__content {
    max-width: 720px;
    padding-top: 60px;
}

/* H1 — bold, slightly larger, clean shadow */
.griby-hero__content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

/* Rating */
.griby-hero__rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.griby-hero__rating iframe {
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.griby-hero__rating p {
    color: rgba(255,255,255,0.92);
    font-size: 17px;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* ═══ CTA BUTTON — compact, accent color ═══ */
.griby-hero__cta .button {
    display: inline-block;
    cursor: pointer;
}
.griby-hero__cta .button button {
    background: var(--griby-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(40,167,124,0.35);
}
.griby-hero__cta .button button:hover {
    background: var(--griby-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(40,167,124,0.45);
}
.griby-hero__cta .button button p {
    margin: 0;
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
}

/* Messengers */
.griby-hero__messengers { margin-top: 22px; }
.griby-hero__messengers img {
    width: 42px; height: 42px;
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.25));
    transition: transform 0.2s;
}
.griby-hero__messengers a:hover img {
    transform: scale(1.12);
}

/* ═══ ARROWS ═══ */
.griby-hero__nav {
    position: absolute;
    top: 45%; left: 0; right: 0;
    z-index: 15;
    display: flex;
    justify-content: space-between;
    padding: 0 28px;
    pointer-events: none;
}
.hero-swiper-prev,
.hero-swiper-next {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s;
}
.hero-swiper-prev:hover,
.hero-swiper-next:hover {
    background: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════
   ADVANTAGES — White cards below slider
   ═══════════════════════════════════════════════ */
.griby-advantages {
    position: relative;
    z-index: 20;
    margin-top: -56px;
    padding: 0 20px;
}
.griby-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.griby-advantages__item {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default;
}
.griby-advantages__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
    background: var(--griby-accent);
}

/* Icon circle */
.griby-advantages__icon {
    width: 56px; height: 56px;
    background: #f0ebe7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.3s;
}
.griby-advantages__icon img {
    width: 28px; height: 28px;
    transition: filter 0.3s;
}
/* Hover: invert icon */
.griby-advantages__item:hover .griby-advantages__icon {
    background: rgba(255,255,255,0.2);
}
.griby-advantages__item:hover .griby-advantages__icon img {
    filter: brightness(0) invert(1);
}

/* Text */
.griby-advantages__item b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.35;
    margin-bottom: 6px;
    transition: color 0.3s;
}
.griby-advantages__item span {
    display: block;
    font-size: 13px;
    color: #777;
    line-height: 1.45;
    transition: color 0.3s;
}
.griby-advantages__item:hover b { color: #fff; }
.griby-advantages__item:hover span { color: rgba(255,255,255,0.82); }

/* ═══════════════════════════════════════════════
   GLOBAL ACCENT OVERRIDES
   (buttons elsewhere on site that use original green)
   ═══════════════════════════════════════════════ */
.button button,
.button_forma button {
    background: var(--griby-accent) !important;
    border-color: var(--griby-accent) !important;
}
.button button:hover,
.button_forma button:hover {
    background: var(--griby-accent-dark) !important;
}

/* ═══════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 992px) {
    .griby-advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .griby-hero__content h1 {
        font-size: 36px;
    }
}
@media screen and (max-width: 660px) {
    .griby-hero {
        height: auto;
        min-height: 560px;
    }
    .griby-hero__content {
        padding-top: 100px;
        max-width: 100%;
    }
    .griby-hero__content h1 {
        font-size: 28px;
    }
    .griby-hero__rating { flex-wrap: wrap; }
    .griby-hero__nav { display: none; }
    .griby-advantages {
        margin-top: -40px;
        padding: 0 10px;
    }
    .griby-advantages__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .griby-advantages__item { padding: 20px 16px; }
    .griby-advantages__icon { width: 44px; height: 44px; }
    .griby-advantages__icon img { width: 22px; height: 22px; }
    .griby-advantages__item b { font-size: 13px; }
    .griby-advantages__item span { font-size: 11.5px; }

    /* Mobile nav */
    .griby-header-transparent .navigaciya.desctop {
        border-top: none;
    }
}
@media screen and (max-width: 400px) {
    .griby-advantages__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   ABOUT COMPANY BLOCK — soft green bg, photo + stats
   ═══════════════════════════════════════════════ */
.griby-about {
    background: var(--griby-accent);
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1400px;
    padding: 0;
    overflow: hidden;
    color: #fff;
}

.griby-about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

/* Left — photo with padding and rounded corners */
.griby-about__left {
    position: relative;
    overflow: hidden;
    padding: 24px;
}
.griby-about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}
.griby-about__badge {
    position: absolute;
    top: 38px;
    left: 38px;
    background: #fff;
    color: #222;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.griby-about__badge svg {
    color: var(--griby-accent);
    flex-shrink: 0;
}

/* Right — text */
.griby-about__right {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.griby-about__right h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}
.griby-about__right p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
    margin-bottom: 32px;
}

/* Button — white outline, grays on hover */
.griby-about__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    align-self: flex-start;
    font-family: 'Roboto', sans-serif !important;
}
.griby-about__btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}
.griby-about__btn span {
    font-size: 18px;
    transition: transform 0.2s;
}
.griby-about__btn:hover span {
    transform: translateX(4px);
}

/* Stats row */
.griby-about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.griby-about__stat {
    padding: 30px 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: default;
}
.griby-about__stat:last-child {
    border-right: none;
}
.griby-about__stat:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}
.griby-about__stat svg {
    color: #a0714f;
    margin-bottom: 10px;
}
.griby-about__stat strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}
.griby-about__stat span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
}

/* Mobile */
@media screen and (max-width: 992px) {
    .griby-about__inner {
        grid-template-columns: 1fr;
    }
    .griby-about__left {
        max-height: 400px;
    }
    .griby-about__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 660px) {
    .griby-about {
        margin: 30px 10px;
        border-radius: 14px;
    }
    .griby-about__right {
        padding: 30px 24px;
    }
    .griby-about__right h2 {
        font-size: 24px;
    }
    .griby-about__stat strong {
        font-size: 28px;
    }
    .griby-about__stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════
   ВИЗУАЛИЗАЦИЯ — centered swiper, sides 30%
   ═══════════════════════════════════════════════ */
.griby-demo-section {
    padding: 50px 0;
    overflow: hidden;
}
.griby-demo-title {
    margin-bottom: 30px;
    font-size: 28px;
}
.griby-demo-title b {
    font-weight: 800;
}

/* Swiper container — full width */
.demo-swiper {
    width: 100%;
    overflow: visible;
    padding: 0 0 20px 0;
}
/* Each slide — 70% width so neighbors show ~30% of their image */
.demo-swiper .swiper-slide {
    width: 70%;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 14px;
    overflow: hidden;
}
/* Side slides slightly dimmed */
.demo-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.55;
    transform: scale(0.93);
}
.demo-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}
.demo-swiper .swiper-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}
.demo-swiper .swiper-slide a {
    display: block;
}

/* Nav arrows */
.demo-swiper .swiper-button-prev,
.demo-swiper .swiper-button-next {
    color: var(--griby-accent);
}
.demo-swiper .swiper-button-prev::after,
.demo-swiper .swiper-button-next::after {
    font-size: 22px;
}

@media screen and (max-width: 992px) {
    .demo-swiper .swiper-slide {
        width: 75%;
    }
    .demo-swiper .swiper-slide img {
        height: 380px;
    }
}
@media screen and (max-width: 660px) {
    .demo-swiper .swiper-slide {
        width: 82%;
    }
    .demo-swiper .swiper-slide img {
        height: 280px;
    }
    .griby-demo-title {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════
   TEAM — Houzez-style horizontal cards
   ═══════════════════════════════════════════════ */
.griby-team-section {
    padding: 60px 0;
    background: #f5f6f8;
}
.griby-team-title {
    font-size: 32px;
    margin-bottom: 8px;
    color: #222;
}
.griby-team-subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 40px;
}

.griby-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Card */
.griby-team-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    gap: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}
.griby-team-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

/* Photo */
.griby-team-card__photo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}
.griby-team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.griby-team-card__info {
    flex: 1;
    min-width: 0;
}
.griby-team-card__info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    font-family: 'Roboto', sans-serif !important;
}
.griby-team-card__role {
    font-size: 13px;
    color: var(--griby-accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.griby-team-card__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}
.griby-team-card__phone svg {
    color: #999;
    flex-shrink: 0;
}

/* Action buttons */
.griby-team-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.griby-team-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--griby-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s;
    text-decoration: none;
}
.griby-team-btn:hover {
    background: var(--griby-accent-dark);
    transform: scale(1.08);
}
.griby-team-btn svg {
    color: #fff;
}
.griby-team-btn img {
    filter: brightness(0) invert(1);
}

/* Mobile */
@media screen and (max-width: 992px) {
    .griby-team-grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 660px) {
    .griby-team-card {
        flex-wrap: wrap;
    }
    .griby-team-card__photo {
        width: 80px;
        height: 80px;
    }
    .griby-team-card__actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: -8px;
    }
    .griby-team-title {
        font-size: 24px;
    }
}

/* ═══════════════════════════════════════════════
   INFRASTRUCTURE — Bento Grid (explicit placement)
   ═══════════════════════════════════════════════ */
.griby-infra-section {
    padding: 60px 0 80px;
    background: #fff;
}
.griby-infra-title {
    font-size: 32px;
    color: #222;
    margin-bottom: 10px;
}
.griby-infra-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Grid: 4 columns, 3 rows */
.griby-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px 260px;
    gap: 14px;
}

/* Item base */
.griby-bento__item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.griby-bento__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.15);
}
.griby-bento__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.griby-bento__item:hover img {
    transform: scale(1.05);
}

/* Overlay label */
.griby-bento__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 50px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.griby-bento__overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    font-family: 'Roboto', sans-serif !important;
}

/* === Placement ===
   Row 1-2: big(2×2) | medium(1×2) | small-top(1×1)
                                     | small-bottom(1×1)
   Row 3:   wide-left(2×1) | wide-right(2×1)
*/
.griby-bento__item--big {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.griby-bento__item--big .griby-bento__overlay {
    padding: 70px 22px 20px;
}
.griby-bento__item--big .griby-bento__overlay span {
    font-size: 19px;
    font-weight: 700;
}
.griby-bento__item--medium {
    grid-column: 3;
    grid-row: 1 / 3;
}
.griby-bento__item--small-top {
    grid-column: 4;
    grid-row: 1;
}
.griby-bento__item--small-bottom {
    grid-column: 4;
    grid-row: 2;
}
.griby-bento__item--wide-left {
    grid-column: 1 / 3;
    grid-row: 3;
}
.griby-bento__item--wide-right {
    grid-column: 3 / 5;
    grid-row: 3;
}

/* === Mobile === */
@media screen and (max-width: 992px) {
    .griby-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 260px 200px 200px 200px;
    }
    .griby-bento__item--big       { grid-column: 1 / 3; grid-row: 1; }
    .griby-bento__item--medium    { grid-column: 1;     grid-row: 2; }
    .griby-bento__item--small-top { grid-column: 2;     grid-row: 2; }
    .griby-bento__item--small-bottom { grid-column: 1;  grid-row: 3; }
    .griby-bento__item--wide-left { grid-column: 2;     grid-row: 3; }
    .griby-bento__item--wide-right { grid-column: 1 / 3; grid-row: 4; }
}
@media screen and (max-width: 660px) {
    .griby-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 180px);
        gap: 10px;
    }
    .griby-bento__item--big       { grid-column: 1 / 3; height: auto; }
    .griby-bento__item--wide-right { grid-column: 1 / 3; }
    .griby-infra-title { font-size: 24px; }
    .griby-infra-subtitle { font-size: 11px; }
}

/* ═══════════════════════════════════════════════
   CATALOG — Houzez-style property cards
   ═══════════════════════════════════════════════ */
.griby-catalog-section {
    padding: 60px 0;
    background: #f8f8f8;
}
.griby-catalog-title {
    font-size: 32px;
    color: #222;
    margin-bottom: 6px;
}
.griby-catalog-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

.griby-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.griby-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}
.griby-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Main image */
.griby-card__main-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.griby-card__main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.griby-card:hover .griby-card__main-img img {
    transform: scale(1.04);
}
.griby-card__main-img a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Thumbnail row */
.griby-card__thumbs {
    display: flex;
    gap: 4px;
    padding: 4px 4px 0;
}
.griby-card__thumbs a {
    flex: 1;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
}
.griby-card__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.griby-card__thumbs a:hover img {
    opacity: 0.75;
}

/* Info section */
.griby-card__info {
    padding: 14px 16px 10px;
    flex: 1;
}
.griby-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: 'Roboto Slab', serif !important;
}

/* Specs row */
.griby-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.griby-card__specs span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #777;
}
.griby-card__specs svg {
    color: #999;
    flex-shrink: 0;
}

/* Full-width CTA button */
.griby-card__btn {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 14px;
    padding: 12px;
    background: var(--griby-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    text-align: center;
    font-family: 'Roboto', sans-serif !important;
}
.griby-card__btn:hover {
    background: var(--griby-accent-dark);
}

/* Mobile */
@media screen and (max-width: 1100px) {
    .griby-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 660px) {
    .griby-catalog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .griby-catalog-title {
        font-size: 24px;
    }
    .griby-card__title {
        font-size: 15px;
    }
}

/* 2-column variant for rental cards */
.griby-catalog-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 660px) {
    .griby-catalog-grid--2col {
        grid-template-columns: 1fr;
    }
}

/* Room details inside rental cards */
.griby-card__rooms {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.griby-card__floor {
    margin-bottom: 8px;
}
.griby-card__floor b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif !important;
}
.griby-card__floor span {
    display: inline-block;
    font-size: 12px;
    color: #777;
    margin-right: 12px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   CATALOG CARD — 2 buttons row + popup
   ═══════════════════════════════════════════════ */
.griby-card__buttons {
    display: flex;
    gap: 8px;
    padding: 0 12px 14px;
}
.griby-card__btn--outline {
    background: #fff !important;
    color: var(--griby-accent) !important;
    border: 2px solid var(--griby-accent) !important;
}
.griby-card__btn--outline:hover {
    background: #f0faf5 !important;
}
.griby-card__buttons .griby-card__btn {
    flex: 1;
    width: auto;
    margin: 0;
}

/* Popup */
.griby-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.griby-popup__inner {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.griby-popup__inner::-webkit-scrollbar { display: none; }
.griby-popup__close {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.griby-popup__close:hover { color: #333; }
.griby-popup__inner h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #222;
}
.griby-popup__specs p {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}
.griby-popup__specs {
    margin-bottom: 20px;
}
.griby-popup__inner .griby-card__btn {
    width: 100%;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   GUARANTEE — modern split
   ═══════════════════════════════════════════════ */
.griby-guarantee {
    max-width: 1400px;
    margin: 60px auto;
    overflow: hidden;
}
.griby-guarantee__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
}
.griby-guarantee__text {
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.griby-guarantee__text h2 {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin-bottom: 28px;
    line-height: 1.25;
}
.griby-guarantee__text h2 span {
    color: var(--griby-accent);
    font-weight: 400;
}
.griby-guarantee__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.griby-guarantee__item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.griby-guarantee__item svg {
    flex-shrink: 0;
}
.griby-guarantee__item span {
    font-size: 14px;
    color: #555;
    font-family: 'Roboto', sans-serif !important;
}
.griby-guarantee__img {
    overflow: hidden;
}
.griby-guarantee__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media screen and (max-width: 992px) {
    .griby-guarantee__inner { grid-template-columns: 1fr; }
    .griby-guarantee__img { max-height: 300px; }
}
@media screen and (max-width: 660px) {
    .griby-guarantee__text { padding: 30px 24px; }
    .griby-guarantee__text h2 { font-size: 22px; }
    .griby-guarantee__list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   REVIEWS — Houzez-style text cards
   ═══════════════════════════════════════════════ */
.griby-reviews-section {
    padding: 60px 0;
    background: #f5f6f8;
}
.griby-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}
.griby-reviews-stars {
    font-size: 28px;
    color: #f5a623;
    letter-spacing: 4px;
    margin-bottom: 10px;
}
.griby-reviews-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
}

.griby-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 10px;
}
.griby-review-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}
.griby-review-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.griby-review-card__quote {
    font-size: 48px;
    line-height: 1;
    color: var(--griby-accent);
    opacity: 0.3;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}
.griby-review-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}
.griby-review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.griby-review-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--griby-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.griby-review-card__author b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.griby-review-card__author span {
    font-size: 12px;
    color: #999;
}

/* Otzivi photo swiper (smaller) */
.otzivi-swiper .swiper-slide img {
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

@media screen and (max-width: 992px) {
    .griby-reviews-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 660px) {
    .griby-reviews-header h2 { font-size: 24px; }
}

/* Review card avatar from plugin (actual image) */
.griby-review-card__avatar-img {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   CARD META (floors + rooms under title)
   ═══════════════════════════════════════════════ */
.griby-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 4px;
}
.griby-card__meta span {
    font-size: 12.5px;
    color: #888;
}

/* ═══════════════════════════════════════════════
   POPUP — large variant with gallery
   ═══════════════════════════════════════════════ */
.griby-popup__inner--lg {
    max-width: 850px;
}
.griby-popup__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.griby-popup__gallery a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.griby-popup__gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
    cursor: pointer;
}
/* First image — larger, maintain aspect ratio */
.griby-popup__gallery a:first-child {
    grid-column: 1 / -1;
}
.griby-popup__gallery a:first-child img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #f5f5f5;
}
.griby-popup__gallery a:hover img { opacity: 0.8; }

@media screen and (max-width: 660px) {
    .griby-popup__inner--lg { max-width: 95%; padding: 20px; }
    .griby-popup__gallery img { height: 120px; }
    .griby-popup__gallery a:first-child img { max-height: 260px; }
}

/* ═══════════════════════════════════════════════
   RENTAL — smaller cards, uniform thumbnails
   ═══════════════════════════════════════════════ */
.griby-card--rental .griby-card__main-img { aspect-ratio: 16 / 9; }
.griby-card--rental .griby-card__title { font-size: 15px; }
.griby-card--rental .griby-card__thumbs a {
    aspect-ratio: 4 / 3;
}
.griby-card--rental .griby-card__thumbs img {
    object-fit: cover;
    height: 100%;
}

/* ═══════════════════════════════════════════════
   REDUCE SPACING between sections
   ═══════════════════════════════════════════════ */
.griby-catalog-section { padding: 40px 0; }
.griby-infra-section { padding: 40px 0 50px; }
.griby-team-section { padding: 40px 0; }
.griby-reviews-section { padding: 40px 0; }
.griby-guarantee { margin: 30px auto; }
.griby-about { margin: 40px auto; }
.griby-rielt-section { padding: 20px 0; }
.griby-demo-section { padding: 30px 0; }

section { margin-bottom: 0; }
section + section { margin-top: 0; }

/* ═══════════════════════════════════════════════
   CONTACTS SECTION (above footer)
   ═══════════════════════════════════════════════ */
.griby-contacts-section {
    padding: 50px 0;
    background: #fff;
}
.griby-contacts-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}
.griby-contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.griby-contacts-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.griby-contacts-item svg { flex-shrink: 0; margin-top: 2px; }
.griby-contacts-item small {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}
.griby-contacts-item b {
    font-size: 15px;
    color: #222;
    font-weight: 600;
}
.griby-contacts-socials {
    display: flex;
    gap: 12px;
}
.griby-contacts-socials img {
    width: 36px;
    height: 36px;
    transition: opacity 0.2s;
}
.griby-contacts-socials a:hover img { opacity: 0.7; }
.griby-contacts-cta {
    background: var(--griby-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    align-self: flex-start;
    font-family: 'Roboto', sans-serif !important;
}
.griby-contacts-cta:hover { background: var(--griby-accent-dark); }
.griby-contacts-map {
    border-radius: 14px;
    overflow: hidden;
    min-height: 360px;
    background: #eee;
}
@media screen and (max-width: 992px) {
    .griby-contacts-row { grid-template-columns: 1fr; }
    .griby-contacts-map { min-height: 300px; }
}

/* ═══════════════════════════════════════════════
   FOOTER BAR — light with accent border
   ═══════════════════════════════════════════════ */
.griby-footer {
    background: linear-gradient(to bottom, #432f26, #825440) !important;
    border-top: none;
    padding: 50px 0 40px;
}
.griby-footer__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.griby-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.griby-footer__logo {
    height: 50px;
    width: auto;
}
.griby-footer__logo-art {
    height: 50px;
    width: auto;
    opacity: 0.7;
}
.griby-footer__col-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    font-family: 'Roboto', sans-serif !important;
}
.griby-footer__legal p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.7;
}
.griby-footer__docs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.griby-footer__docs a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.griby-footer__docs a:hover {
    color: #fff;
    text-decoration: underline;
}
.griby-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.griby-footer__contact a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.griby-footer__contact small {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
/* White logos */
.griby-footer__logo,
.griby-footer__logo-art {
    filter: brightness(0) invert(1);
}
@media screen and (max-width: 992px) {
    .griby-footer__row { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 660px) {
    .griby-footer__row { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════
   BROWN THEME for footer + accent blocks
   ═══════════════════════════════════════════════ */
/* Footer — brown bg, white text */
.griby-footer__legal p { color: rgba(255,255,255,0.6); }
.griby-footer__docs a { color: rgba(255,255,255,0.75); }
.griby-footer__docs a:hover { color: #fff; }
.griby-footer__logo { filter: brightness(0) invert(1); }
.griby-footer__logo-art { filter: brightness(0) invert(1); opacity: 0.6; }

/* About block — footer gradient */
.griby-about { background: linear-gradient(to bottom, #432f26, #825440) !important; }

/* Rielt block — footer gradient */
.griby-rielt-section .rielt { background: linear-gradient(to bottom, #432f26, #825440) !important; }

/* About stats SVGs — golden yellow */
.griby-about__stat svg { color: #f5c842 !important; }

/* About stats numbers and text stay white */
.griby-about__stat strong { color: #fff; }
.griby-about__stat span { color: rgba(255,255,255,0.65); }

/* About badge star — brown */
.griby-about__badge svg { color: #a0714f; }

/* ═══════════════════════════════════════════════
   MODERN MICRO-ANIMATIONS (Houzez-style)
   ═══════════════════════════════════════════════ */

/* Smooth hover lift on all cards */
.griby-card,
.griby-review-card,
.griby-team-card,
.griby-bento__item,
.griby-advantages__item {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

/* Image zoom on card hover (global) */
.griby-card:hover .griby-card__main-img img,
.griby-bento__item:hover img {
    transform: scale(1.06);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Buttons — modern press effect */
.griby-card__btn,
.griby-about__btn,
.griby-contacts-cta {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.griby-card__btn:active,
.griby-about__btn:active,
.griby-contacts-cta:active {
    transform: scale(0.97);
}

/* Links — underline slide-in */
.griby-footer__docs a,
.griby-team-card__role {
    position: relative;
}
.griby-footer__docs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.griby-footer__docs a:hover::after {
    width: 100%;
}
.griby-footer__docs a:hover {
    text-decoration: none !important;
}

/* Section titles — accent underline animation */
.griby-catalog-title,
.griby-infra-title,
.griby-team-title,
.griby-reviews-header h2 {
    position: relative;
    display: inline-block;
}
.griby-catalog-title::after,
.griby-infra-title::after,
.griby-team-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--griby-accent);
    border-radius: 2px;
    transition: width 0.6s ease;
}
.griby-catalog-title.aos-animate::after,
.griby-infra-title.aos-animate::after,
.griby-team-title.aos-animate::after {
    width: 80px;
}

/* Stat counter — pulse on appear */
@keyframes countPulse {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.griby-about__stat.aos-animate strong {
    animation: countPulse 0.6s ease forwards;
}

/* Hero arrows — breathe */
@keyframes arrowBreathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.hero-swiper-prev,
.hero-swiper-next {
    animation: arrowBreathe 2.5s ease-in-out infinite;
}
.hero-swiper-prev:hover,
.hero-swiper-next:hover {
    animation: none;
    opacity: 1;
}

/* Demo swiper — smooth slide transition */
.demo-swiper .swiper-slide {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

/* Guarantee items — stagger */
.griby-guarantee__item:nth-child(1) { transition-delay: 0.05s; }
.griby-guarantee__item:nth-child(2) { transition-delay: 0.1s; }
.griby-guarantee__item:nth-child(3) { transition-delay: 0.15s; }
.griby-guarantee__item:nth-child(4) { transition-delay: 0.2s; }
.griby-guarantee__item:nth-child(5) { transition-delay: 0.25s; }

/* Smooth page sections — subtle fade bg */
.griby-catalog-section,
.griby-infra-section,
.griby-team-section,
.griby-reviews-section {
    transition: background-color 0.5s ease;
}

/* CTA button glow on hero */
.griby-hero__cta .button button {
    position: relative;
    overflow: hidden;
}
.griby-hero__cta .button button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}

/* Social icons — bounce on hover */
.griby-contacts-socials a:hover img,
.griby-team-btn:hover {
    animation: socialBounce 0.4s ease;
}
@keyframes socialBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1.08); }
}

/* Review quote — float animation */
.griby-review-card__quote {
    transition: transform 0.3s ease;
}
.griby-review-card:hover .griby-review-card__quote {
    transform: translateY(-4px) scale(1.1);
}

/* Popup entrance */
.griby-popup__inner {
    animation: popupSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupSlideIn {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Prefers reduced motion — disable all animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES (320px–768px)
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
    /* Hero — prevent text overflow */
    .griby-hero__content h1 {
        font-size: 26px;
        letter-spacing: 0;
    }
    .griby-hero__cta .button button {
        padding: 12px 24px;
        font-size: 14px;
    }
    .griby-hero__rating p {
        font-size: 14px;
    }

    /* Bento grid — 2 columns, auto rows */
    .griby-bento {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
    }
    .griby-bento__item--big { grid-column: 1 / 3 !important; grid-row: auto !important; height: 200px; }
    .griby-bento__item--medium { grid-column: auto !important; grid-row: auto !important; height: 180px; }
    .griby-bento__item--small-top,
    .griby-bento__item--small-bottom { grid-column: auto !important; grid-row: auto !important; height: 160px; }
    .griby-bento__item--wide-left,
    .griby-bento__item--wide-right { grid-column: 1 / 3 !important; grid-row: auto !important; height: 180px; }

    /* Catalog — single column */
    .griby-catalog-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .griby-catalog-grid--2col { grid-template-columns: 1fr !important; }

    /* Card buttons — stack if too narrow */
    .griby-card__buttons {
        flex-wrap: wrap;
    }
    .griby-card__buttons .griby-card__btn {
        font-size: 13px;
        padding: 10px 8px;
    }

    /* About block */
    .griby-about { margin: 20px 10px !important; }
    .griby-about__left { padding: 16px; }
    .griby-about__right { padding: 24px 20px; }
    .griby-about__right h2 { font-size: 22px; }
    .griby-about__btn { font-size: 12px; padding: 12px 20px; }

    /* Team — single column */
    .griby-team-grid { grid-template-columns: 1fr !important; }
    .griby-team-card { padding: 12px; gap: 12px; }

    /* Reviews — single column */
    .griby-reviews-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .griby-reviews-header h2 { font-size: 22px; }

    /* Guarantee — single column */
    .griby-guarantee__inner { grid-template-columns: 1fr !important; }
    .griby-guarantee__text { padding: 24px 20px; }
    .griby-guarantee__text h2 { font-size: 20px; }
    .griby-guarantee__list { grid-template-columns: 1fr !important; gap: 10px; }
    .griby-guarantee__img { max-height: 250px; }

    /* Demo slider */
    .demo-swiper .swiper-slide { width: 85% !important; }
    .demo-swiper .swiper-slide img { height: 260px; }

    /* Popup — full width on mobile */
    .griby-popup { padding: 10px; }
    .griby-popup__inner { padding: 20px; border-radius: 12px; }
    .griby-popup__inner--lg { max-width: 100%; }
    .griby-popup__gallery img { height: 100px; }
    .griby-popup__gallery a:first-child img { max-height: 200px; }

    /* Footer contacts */
    .griby-contacts-row { grid-template-columns: 1fr !important; }
    .griby-contacts-map { min-height: 250px; }

    /* Footer bar */
    .griby-footer__row { grid-template-columns: 1fr !important; gap: 20px; }
    .griby-footer { padding: 30px 0; }

    /* Rielt block */
    .griby-rielt-section .rielt { padding: 24px !important; }
    .griby-rielt-section .rielt h3 { font-size: 18px !important; }

    /* Section padding — tighter on mobile */
    .griby-catalog-section,
    .griby-infra-section,
    .griby-team-section,
    .griby-reviews-section { padding: 30px 0; }

    /* Disable some AOS animations on mobile for performance */
    [data-aos="fade-left"],
    [data-aos="fade-right"],
    [data-aos="zoom-in"],
    [data-aos="zoom-in-up"] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Extra small screens (320px) */
@media screen and (max-width: 400px) {
    .griby-hero__content h1 { font-size: 22px; }
    .griby-hero__content { padding-top: 80px; }
    .griby-about__stat strong { font-size: 24px; }
    .griby-about__stats { grid-template-columns: 1fr 1fr; }
    .griby-bento__item--big { height: 180px; }
    .griby-card__title { font-size: 15px; }
    .griby-footer__logo { height: 36px; }
}

/* ═══════════════════════════════════════════════
   ABOUT — guarantee tags
   ═══════════════════════════════════════════════ */
.griby-about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.griby-about__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: background 0.2s;
    font-family: 'Roboto', sans-serif !important;
}
.griby-about__tag:hover {
    background: rgba(255,255,255,0.2);
}
.griby-about__tag svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   HAMBURGER MENU (mobile)
   ═══════════════════════════════════════════════ */
.griby-hamburger {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1000;
    width: 36px;
    height: 30px;
    cursor: pointer;
    display: none;
}
.griby-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
    margin-bottom: 6px;
}
/* Scrolled — dark bars */
.griby-header-transparent.animate .griby-hamburger span,
.subpage-header .griby-hamburger span {
    background: #333;
}
/* Open state — X */
.griby-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.griby-hamburger.open span:nth-child(2) { opacity: 0; }
.griby-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile dropdown menu */
.griby-mob-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 70px 24px 24px;
    z-index: 999;
    overflow-y: auto;
}
.griby-mob-menu.active { display: flex; }
.griby-mob-menu a {
    padding: 14px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}
.griby-mob-menu a:hover { color: var(--griby-accent); }

@media screen and (max-width: 992px) {
    .griby-hamburger { display: block; }
    .navigaciya.mobile .container > ul,
    .navigaciya.mobile .nav.tutorial { display: none !important; }
}

/* ═══════════════════════════════════════════════
   MOBILE FIXES — additional
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
    /* 2. Bento — 1 big + 4 small (2x2) + 1 big */
    .griby-bento {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 10px !important;
    }
    .griby-bento__item--big,
    .griby-bento__item--wide-left,
    .griby-bento__item--wide-right {
        grid-column: 1 / 3 !important;
        height: 200px !important;
    }
    .griby-bento__item--medium,
    .griby-bento__item--small-top,
    .griby-bento__item--small-bottom {
        grid-column: auto !important;
        height: 160px !important;
    }

    /* 3. Rielt block — much smaller on mobile */
    .griby-rielt-section .rielt {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }
    .griby-rielt-section .rielt h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    .griby-rielt-section .rielt .cont img { width: 44px !important; height: 44px !important; }

    /* 4. Video — bigger */
    .vid_otz { margin-top: 24px !important; }
    .vid_otz > div { padding-top: 56.25% !important; min-height: 240px; }

    /* 5. Map fix */
    .griby-contacts-map {
        min-height: 280px !important;
        border-radius: 10px;
    }
    .griby-contacts-map script { display: block; width: 100% !important; height: 280px; }

    /* Hero — remove white spots (messenger icons with missing images) */
    .griby-hero__messengers img {
        background: transparent !important;
    }
    .messenger img {
        background: transparent !important;
    }

    /* Hero slider — ensure visible */
    .griby-hero .hero-swiper {
        opacity: 1 !important;
    }
}

/* Map fix for desktop too */
.griby-contacts-map {
    position: relative;
    min-height: 360px;
}
.griby-contacts-map script {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ═══════════════════════════════════════════════
   FIX: Hero slider mobile — force visible
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 992px) {
    /* Force swiper visible even if JS hasn't run yet */
    .griby-hero .hero-swiper {
        opacity: 1 !important;
    }
    /* Ensure slides stack correctly */
    .griby-hero .hero-swiper .swiper-slide {
        width: 100% !important;
        flex-shrink: 0;
    }
}

/* FIX: Hide messenger icons if image fails to load */
.griby-hero__messengers img,
.messenger img {
    background: transparent !important;
}
/* Hide broken images — only show if loaded */
.griby-hero__messengers a,
.menu .messenger a {
    width: 42px;
    height: 42px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* If img fails — hide the container on mobile */
@media screen and (max-width: 768px) {
    .griby-hero__messengers {
        display: none !important;
    }
    .menu .messenger {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════
   HAMBURGER MENU — messengers & phone
   ═══════════════════════════════════════════════ */
.griby-mob-menu__divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}
.griby-mob-menu__phone {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--griby-accent) !important;
    border-bottom: none !important;
    padding: 10px 0 !important;
}
.griby-mob-menu__socials {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}
.griby-mob-menu__socials a {
    display: inline-block;
    padding: 8px 16px !important;
    background: var(--griby-accent);
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 600;
    border-bottom: none !important;
    text-decoration: none;
}
.griby-mob-menu__socials a:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════
   BENTO FIX — mobile: proper grid placement
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .griby-bento {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 10px !important;
    }
    /* Row 1: big full width */
    .griby-bento__item--big {
        grid-column: 1 / 3 !important;
        grid-row: auto !important;
        height: 220px !important;
    }
    /* Row 2: medium + small-top side by side */
    .griby-bento__item--medium {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 180px !important;
    }
    .griby-bento__item--small-top {
        grid-column: 2 !important;
        grid-row: auto !important;
        height: 180px !important;
    }
    /* Row 3: small-bottom + wide-left side by side (both square-ish) */
    .griby-bento__item--small-bottom {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 180px !important;
    }
    .griby-bento__item--wide-left {
        grid-column: 2 !important;
        grid-row: auto !important;
        height: 180px !important;
    }
    /* Row 4: wide-right (Закрытая территория) full width */
    .griby-bento__item--wide-right {
        grid-column: 1 / 3 !important;
        grid-row: auto !important;
        height: 220px !important;
    }

    /* Video — much bigger on mobile */
    .vid_otz {
        margin-top: 20px !important;
    }
    .vid_otz > div {
        padding-top: 75% !important;
    }
}

/* ═══════════════════════════════════════════════
   HERO SWIPER — hidden class (replaces inline opacity:0)
   ═══════════════════════════════════════════════ */
.griby-hero-swiper-hidden {
    opacity: 0;
    transition: opacity 0.6s ease;
}
/* On mobile — always show swiper immediately (no flash prevention needed) */
@media screen and (max-width: 992px) {
    .griby-hero-swiper-hidden {
        opacity: 1 !important;
    }
}

/* VIDEO — force larger on mobile (override inline style) */
@media screen and (max-width: 768px) {
    .vid_otz > div[style] {
        padding-top: 80% !important;
        min-height: 300px !important;
    }
}

/* Video wrapper — replaces inline style */
.griby-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
}
.griby-video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
@media screen and (max-width: 768px) {
    .griby-video-wrapper {
        padding-top: 80%;
    }
}
@media screen and (max-width: 480px) {
    .griby-video-wrapper {
        padding-top: 90%;
    }
}

/* ═══════════════════════════════════════════════
   HERO MOBILE — vertical slides, 80vh, no bg leak
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 992px) {
    /* Remove background image — swiper handles everything */
    .griby-hero {
        background-image: none !important;
        height: 80vh !important;
        min-height: 500px;
        max-height: 800px;
    }

    /* Swiper fills entire hero */
    .griby-hero .hero-swiper {
        position: absolute !important;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
    }
    .griby-hero .swiper-wrapper {
        height: 100% !important;
    }
    .griby-hero .swiper-slide {
        height: 100% !important;
        width: 100% !important;
    }
    /* Images fill vertically — cover the slide */
    .griby-hero .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center;
    }

    /* Overlay text on top */
    .griby-hero__overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        z-index: 5;
    }

    /* Navigation arrows — hide on mobile */
    .griby-hero__nav {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════
   VIDEO SECTION — mobile: full width, hide decorations
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 992px) {
    /* Hide decorative car/crane images */
    .video_main .car1,
    .video_main .car2 {
        display: none !important;
    }
    /* Video block — full width */
    .video_main .video {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Video wrapper — taller on mobile */
    .video_main .griby-video-wrapper {
        padding-top: 70% !important;
    }
    /* Also handle the review video */
    .vid_otz .griby-video-wrapper {
        padding-top: 70% !important;
    }
}
@media screen and (max-width: 480px) {
    .video_main .griby-video-wrapper {
        padding-top: 85% !important;
    }
    .vid_otz .griby-video-wrapper {
        padding-top: 85% !important;
    }
}

/* ═══════════════════════════════════════════════
   VIDEO MOBILE — NUCLEAR FIX (override everything)
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 992px) {
    .container.video_main .video {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    .container.video_main .video .griby-video-wrapper,
    .vid_otz .griby-video-wrapper {
        padding-top: 75% !important;
        width: 100% !important;
        position: relative !important;
    }
    .container.video_main .car1,
    .container.video_main .car2 {
        display: none !important;
    }
}
@media screen and (max-width: 600px) {
    .container.video_main .video .griby-video-wrapper,
    .vid_otz .griby-video-wrapper {
        padding-top: 90% !important;
    }
}

/* ═══════════════════════════════════════════════
   VIDEO — force override original styles
   ═══════════════════════════════════════════════ */
.video_main .video {
    display: block !important;
    overflow: visible !important;
}
.griby-video-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}
.griby-video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
/* Also fix the review video wrapper */
.vid_otz {
    width: 100% !important;
}

@media screen and (max-width: 992px) {
    .video_main .video {
        width: 100% !important;
        max-width: 100% !important;
    }
    .griby-video-wrapper {
        padding-top: 75% !important;
    }
}
@media screen and (max-width: 480px) {
    .griby-video-wrapper {
        padding-top: 90% !important;
    }
}

/* ═══════════════════════════════════════════════
   CRITICAL: Override original container width on mobile
   Original style.css forces max-width: 350px at ≤700px
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 700px) {
    .container,
    .container2 {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 0 16px !important;
    }
    /* Video — full width, break out of any container limits */
    .video_main {
        width: 100% !important;
    }
    .video_main .video {
        width: 100% !important;
        display: block !important;
    }
    .griby-video-wrapper {
        padding-top: 75% !important;
    }
    /* Also fix body overflow that blocks scrolling */
    body {
        overflow: visible !important;
        overflow-x: hidden !important;
    }
}
@media screen and (max-width: 480px) {
    .griby-video-wrapper {
        padding-top: 90% !important;
    }
}
