/*
 * Цветочный город — architectural editorial direction.
 * One palette, one button geometry, no overlapping promotional UI.
 */

.cg3-home {
    --cg3-ink: #13233a;
    --cg3-muted: #667182;
    --cg3-blue: #316bff;
    --cg3-blue-dark: #1d4fc9;
    --cg3-sky: #dfe9ff;
    --cg3-paper: #ffffff;
    --cg3-milk: #f4f6f9;
    --cg3-line: rgba(19, 35, 58, .12);
    --cg3-shadow: 0 28px 80px rgba(20, 43, 79, .11);
    padding-top: 88px;
    background: var(--cg3-milk);
    color: var(--cg3-ink);
}

.cg3-home .wrap {
    width: min(1440px, calc(100% - 96px));
    min-width: 0;
    max-width: 1440px;
    padding: 0;
}

.cg3-eyebrow {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 22px;
    color: var(--cg3-blue-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cg3-eyebrow::before {
    width: 30px;
    height: 2px;
    background: var(--cg3-blue);
    content: "";
}

.cg3-hero {
    padding: 26px 0 0;
}

.cg3-hero__grid {
    display: grid;
    grid-template-columns: minmax(420px, .82fr) minmax(0, 1.18fr);
    min-height: 670px;
    overflow: hidden;
    border: 1px solid var(--cg3-line);
    border-radius: 34px;
    background: var(--cg3-paper);
    box-shadow: var(--cg3-shadow);
}

.cg3-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(50px, 5.4vw, 86px);
}

.cg3-hero__title {
    max-width: 660px;
    margin: 0;
    color: var(--cg3-ink);
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: clamp(48px, 4.8vw, 76px);
    font-weight: 570;
    letter-spacing: -.065em;
    line-height: .98;
}

.cg3-hero__title span {
    color: var(--cg3-blue);
}

.cg3-hero__lead {
    max-width: 540px;
    margin: 30px 0 0;
    color: var(--cg3-muted);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.55;
}

.cg3-hero__actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 38px;
}

.cg3-button {
    display: inline-flex;
    min-height: 56px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.cg3-button--primary {
    background: var(--cg3-blue);
    color: #fff;
    box-shadow: 0 14px 30px rgba(49, 107, 255, .24);
}

.cg3-button--primary:hover {
    background: var(--cg3-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.cg3-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--cg3-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cg3-link span {
    color: var(--cg3-blue);
    font-size: 18px;
    transition: transform .2s ease;
}

.cg3-link:hover {
    color: var(--cg3-blue);
}

.cg3-link:hover span {
    transform: translate(2px, -2px);
}

.cg3-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 50px 0 0;
    padding: 25px 0 0;
    border-top: 1px solid var(--cg3-line);
}

.cg3-hero__facts div {
    padding-right: 16px;
}

.cg3-hero__facts dt {
    margin: 0 0 6px;
    color: var(--cg3-ink);
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 550;
    letter-spacing: -.04em;
}

.cg3-hero__facts dd {
    margin: 0;
    color: var(--cg3-muted);
    font-size: 12px;
    line-height: 1.35;
}

.cg3-hero__media {
    position: relative;
    min-width: 0;
    min-height: 670px;
    margin: 0;
    overflow: hidden;
    background: #cbd7e3;
}

.cg3-hero__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(8, 26, 43, .58));
    content: "";
}

.cg3-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
    transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.cg3-hero__grid:hover .cg3-hero__media img {
    transform: scale(1.018);
}

.cg3-hero__media figcaption {
    position: absolute;
    z-index: 2;
    right: 36px;
    bottom: 32px;
    left: 36px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    color: #fff;
}

.cg3-hero__media figcaption strong {
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 520;
}

.cg3-hero__media figcaption span {
    max-width: 260px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.45;
    text-align: right;
}

.cg3-mortgage {
    padding: 22px 0 0;
}

.cg3-mortgage__inner {
    display: grid;
    grid-template-columns: auto auto minmax(260px, 1fr) auto;
    gap: 34px;
    align-items: center;
    min-height: 116px;
    padding: 24px 34px;
    border-radius: 22px;
    background: var(--cg3-blue);
    color: #fff;
}

.cg3-mortgage__label {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cg3-mortgage__rate {
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: 42px;
    font-weight: 560;
    letter-spacing: -.06em;
}

.cg3-mortgage p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}

.cg3-mortgage a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.cg3-mortgage a span {
    font-size: 20px;
}

.cg3-offers {
    padding: 104px 0 116px;
}

.cg3-section-head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 34px;
}

.cg3-section-head h2 {
    margin: 0;
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: clamp(34px, 3.4vw, 54px);
    font-weight: 550;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.cg3-offers__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cg3-offer {
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--cg3-line);
    border-radius: 24px;
    background: var(--cg3-paper);
    color: var(--cg3-ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cg3-offer:hover {
    border-color: rgba(49, 107, 255, .3);
    box-shadow: 0 22px 55px rgba(20, 43, 79, .1);
    color: var(--cg3-ink);
    transform: translateY(-5px);
}

.cg3-offer--accent {
    border-color: transparent;
    background: var(--cg3-ink);
    color: #fff;
}

.cg3-offer--accent:hover {
    color: #fff;
}

.cg3-offer--accent h3 {
    color: #fff;
}

.cg3-offer__number {
    color: var(--cg3-blue);
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 550;
}

.cg3-offer h3 {
    max-width: 400px;
    margin: auto 0 14px;
    font-family: Unbounded, Montserrat, sans-serif;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 520;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.cg3-offer p {
    max-width: 390px;
    margin: 0;
    color: var(--cg3-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cg3-offer--accent p {
    color: rgba(255, 255, 255, .66);
}

.cg3-offer__arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--cg3-line);
    border-radius: 12px;
    color: var(--cg3-blue);
    font-size: 19px;
}

.cg3-offer--accent .cg3-offer__arrow {
    border-color: rgba(255, 255, 255, .18);
}

/* Existing homepage sections, normalized into the same system. */
.cg3-home .section {
    padding: 100px 0;
    background: var(--cg3-paper);
}

.cg3-home .section.about {
    padding-top: 112px;
}

.cg3-home .section-row {
    gap: 70px;
    justify-content: space-between;
}

.cg3-home .section-row-cell._40 {
    width: 42%;
    margin-bottom: 0;
}

.cg3-home .section-row-cell._60 {
    width: 50%;
    margin-bottom: 0;
    padding: 16px 0 0;
}

.cg3-home .section-kicker {
    margin-bottom: 12px;
    color: var(--cg3-blue-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cg3-home .section-title,
.cg3-home .section-row-cell-title {
    color: var(--cg3-ink);
    font-family: Unbounded, Montserrat, sans-serif;
    font-weight: 540;
    letter-spacing: -.055em;
    line-height: 1.06;
}

.cg3-home .section-title {
    font-size: clamp(34px, 3.5vw, 56px);
}

.cg3-home .gradient-text {
    background: none !important;
    color: var(--cg3-blue) !important;
    -webkit-text-fill-color: currentColor !important;
}

.cg3-home .hero-card-addon-title {
    margin: 28px 0 34px;
    color: var(--cg3-muted);
    font-size: 18px;
    line-height: 1.55;
}

.cg3-home .after-hero,
.cg3-home .section-text {
    color: var(--cg3-muted);
    font-size: 17px;
    line-height: 1.75;
}

.cg3-home .section-hero {
    width: min(1440px, calc(100% - 96px));
    height: min(720px, 70vw);
    min-height: 520px;
    margin: 0 auto 100px;
    overflow: hidden;
    border-radius: 30px;
    background: #dce4ec;
}

.cg3-home .section-hero-content,
.cg3-home .hero-bg {
    border-radius: 30px;
}

.cg3-home .special-features-grid {
    display: grid;
    gap: 22px;
}

.cg3-home .special-features-grid-row {
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--cg3-line);
    border-radius: 28px;
    background: var(--cg3-milk);
}

.cg3-home .special-features-grid-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg3-home .special-features-grid-item__content {
    padding: clamp(40px, 5vw, 76px);
}

.cg3-home .special-features-grid-item__content p {
    color: var(--cg3-muted);
    font-size: 16px;
    line-height: 1.65;
}

.cg3-home .section.slider {
    padding: 0 0 100px;
}

.cg3-home .gallery-slide {
    overflow: hidden;
    border-radius: 28px;
}

.cg3-home .gallery-slide img {
    min-height: 620px;
    object-fit: cover;
}

.cg3-home .transport {
    background: var(--cg3-milk);
}

.cg3-home .transport-header {
    margin-bottom: 46px;
}

.cg3-home .transport-items {
    overflow: hidden;
    border: 1px solid var(--cg3-line);
    border-radius: 24px;
    background: var(--cg3-paper);
}

.cg3-home .transport-image {
    overflow: hidden;
}

.cg3-home .transport-image img {
    height: 250px;
    object-fit: cover;
}

.cg3-home .transport-items-list {
    padding: 26px;
}

.cg3-home .transport-items-list-item strong {
    color: var(--cg3-ink);
}

.cg3-home .transport-items-list-item p {
    color: var(--cg3-muted);
}

.cg3-filter-card,
.cg3-contact-card {
    margin-bottom: 40px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--cg3-line);
    border-radius: 28px;
    background: var(--cg3-paper);
    box-shadow: 0 18px 54px rgba(20, 43, 79, .07);
}

.cg3-home .r-filters-btn,
.cg3-home .r-filters-btn a,
.cg3-home .r-filters-submit,
.cg3-home button,
.cg3-home input[type="submit"] {
    border-radius: 12px !important;
}

.cg3-home .r-filters-btn.active,
.cg3-home .r-filters-submit,
.cg3-home input[type="submit"] {
    background: var(--cg3-blue) !important;
}

.cg3-home .c-card-list.special-features {
    gap: 20px;
}

.cg3-home .c-card {
    border-color: var(--cg3-line);
    background: var(--cg3-paper);
}

.cg3-home .c-card.special-feature-img,
.cg3-home .c-card-list-col .c-card {
    border-radius: 24px !important;
}

.cg3-home .special-feature-bg {
    border-radius: 24px !important;
}

.cg3-home .contact {
    background: var(--cg3-milk);
}

.cg3-home input,
.cg3-home textarea,
.cg3-home select {
    border-radius: 12px !important;
}

@media (max-width: 1180px) {
    .cg3-home .wrap,
    .cg3-home .section-hero {
        width: calc(100% - 48px);
    }

    .cg3-hero__grid {
        grid-template-columns: minmax(370px, .9fr) minmax(0, 1.1fr);
    }

    .cg3-hero__copy {
        padding: 48px;
    }

    .cg3-hero__media,
    .cg3-hero__grid {
        min-height: 610px;
    }
}

@media (max-width: 900px) {
    .cg3-home {
        padding-top: 74px;
    }

    .cg3-hero__grid {
        grid-template-columns: 1fr;
    }

    .cg3-hero__copy {
        padding: 54px 42px;
    }

    .cg3-hero__media {
        min-height: 520px;
        order: -1;
    }

    .cg3-mortgage__inner {
        grid-template-columns: auto auto 1fr;
    }

    .cg3-mortgage a {
        grid-column: 1 / -1;
    }

    .cg3-offers__grid {
        grid-template-columns: 1fr;
    }

    .cg3-offer {
        min-height: 250px;
    }

    .cg3-home .section-row-cell._40,
    .cg3-home .section-row-cell._60 {
        width: 100%;
    }

    .cg3-home .section-row-cell._60 {
        padding: 0;
    }
}

@media (max-width: 620px) {
    .cg3-home .wrap,
    .cg3-home .section-hero {
        width: calc(100% - 24px);
    }

    .cg3-hero {
        padding-top: 12px;
    }

    .cg3-hero__grid {
        border-radius: 22px;
    }

    .cg3-hero__copy {
        padding: 36px 24px 30px;
    }

    .cg3-hero__title {
        font-size: clamp(38px, 11vw, 50px);
    }

    .cg3-hero__lead {
        margin-top: 22px;
        font-size: 15px;
    }

    .cg3-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 28px;
    }

    .cg3-button {
        width: 100%;
    }

    .cg3-hero__facts {
        gap: 14px;
        margin-top: 34px;
        padding-top: 22px;
    }

    .cg3-hero__facts dt {
        font-size: 15px;
    }

    .cg3-hero__facts dd {
        font-size: 10px;
    }

    .cg3-hero__media {
        min-height: 330px;
    }

    .cg3-hero__media figcaption {
        right: 20px;
        bottom: 18px;
        left: 20px;
        display: block;
    }

    .cg3-hero__media figcaption span {
        display: block;
        margin-top: 5px;
        text-align: left;
    }

    .cg3-mortgage {
        padding-top: 12px;
    }

    .cg3-mortgage__inner {
        grid-template-columns: 1fr auto;
        gap: 12px 20px;
        padding: 24px;
        border-radius: 18px;
    }

    .cg3-mortgage__rate {
        font-size: 34px;
    }

    .cg3-mortgage p,
    .cg3-mortgage a {
        grid-column: 1 / -1;
    }

    .cg3-offers {
        padding: 70px 0 78px;
    }

    .cg3-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cg3-offer {
        min-height: 230px;
        padding: 24px;
        border-radius: 20px;
    }

    .cg3-home .section {
        padding: 72px 0;
    }

    .cg3-home .section-hero {
        min-height: 430px;
        margin-bottom: 72px;
        border-radius: 22px;
    }

    .cg3-home .special-features-grid-row {
        min-height: 0;
        border-radius: 22px;
    }

    .cg3-home .special-features-grid-item__image {
        min-height: 280px;
    }

    .cg3-home .special-features-grid-item__content {
        padding: 32px 24px;
    }

    .cg3-home .gallery-slide img {
        min-height: 360px;
    }

    .cg3-filter-card,
    .cg3-contact-card {
        padding: 24px;
        border-radius: 22px;
    }
}
