/* ==========================================================================
   Contacts Page Modern Design — Safina Furniture Factory 2026
   ========================================================================== */

:root {
    --cf-green: #2baa08;
    --cf-green-hover: #249605;
    --cf-green-dark: #186005;
    --cf-green-soft: #edf8ea;
    --cf-green-border: rgba(43, 170, 8, 0.18);
    --cf-ink: #111b2e;
    --cf-muted: #64748b;
    --cf-line: #e2e8f0;
    --cf-bg-soft: #f8faf6;
    --cf-card-shadow: 0 20px 48px rgba(18, 38, 20, 0.07);
    --cf-card-hover-shadow: 0 26px 60px rgba(18, 38, 20, 0.12);
}

.contacts-modern {
    color: var(--cf-ink);
    background: #fff;
    overflow-x: hidden;
}

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

.contacts-modern-shell {
    width: min(calc(100% - 40px), 1480px);
    margin-inline: auto;
}

.contacts-modern-section {
    padding: 86px 0;
}

/* The legacy contacts stylesheet pulls this section 100px over the hero. */
.contacts-channels {
    margin-top: 0;
    padding-top: 118px;
    scroll-margin-top: 110px;
}

/* --------------------------------------------------------------------------
   Typography & Kickers
   -------------------------------------------------------------------------- */
.contacts-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--cf-green-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contacts-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--cf-green);
    box-shadow: 0 0 0 5px rgba(43, 170, 8, 0.16);
    animation: cfPulse 2.4s infinite ease-in-out;
}

@keyframes cfPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(43, 170, 8, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(43, 170, 8, 0.06); }
}

.contacts-kicker--light {
    color: #d9ffd0;
}

.contacts-kicker--light::before {
    background: #5bd532;
    box-shadow: 0 0 0 5px rgba(91, 213, 50, 0.25);
}

.contacts-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.contacts-heading h2 {
    margin: 0;
    font-size: clamp(32px, 3.2vw, 50px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--cf-ink);
}

.contacts-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--cf-muted);
    font-size: 16.5px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   1. Hero Block
   -------------------------------------------------------------------------- */
.contacts-hero {
    padding: 24px 0 0;
}

.contacts-hero__card {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 32px;
    background: #172418;
    box-shadow: 0 24px 64px rgba(12, 28, 14, 0.14);
}

.contacts-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.85);
}

.contacts-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 20, 11, 0.94) 0%,
        rgba(10, 20, 11, 0.85) 38%,
        rgba(10, 20, 11, 0.42) 72%,
        rgba(10, 20, 11, 0.18) 100%
    );
}

.contacts-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 600px;
    width: min(740px, 64%);
    padding: 68px 64px;
    color: #fff;
}

.contacts-hero__content h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 4.2vw, 66px);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #fff;
}

.contacts-hero__content p {
    max-width: 580px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.6;
}

.contacts-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.contacts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.contacts-btn:hover {
    transform: translateY(-2px);
}

.contacts-btn--primary {
    color: #fff !important;
    background: linear-gradient(180deg, #4ecc27 0%, #259e05 100%) !important;
    box-shadow: 0 12px 28px rgba(37, 158, 5, 0.28);
}

.contacts-btn--primary:hover {
    background: linear-gradient(180deg, #57da2e 0%, #208e03 100%) !important;
    box-shadow: 0 16px 34px rgba(37, 158, 5, 0.36);
}

.contacts-btn--white {
    color: var(--cf-green-dark) !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.contacts-btn--white:hover {
    background: #f1f8ee !important;
    color: #104603 !important;
}

.contacts-btn--ghost {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: blur(10px);
}

.contacts-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Floating status badge on hero */
.contacts-hero__status {
    position: absolute;
    top: 36px;
    right: 36px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 100px;
    background: rgba(14, 28, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.contacts-hero__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5bd532;
    box-shadow: 0 0 0 4px rgba(91, 213, 50, 0.3);
}

/* --------------------------------------------------------------------------
   2. Floating Stats Bar
   -------------------------------------------------------------------------- */
.contacts-stats {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: calc(100% - 80px);
    margin: -36px auto 0;
    padding: 22px 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 228, 216, 0.95);
    box-shadow: 0 18px 45px rgba(23, 43, 28, 0.08);
    backdrop-filter: blur(16px);
}

.contacts-stats__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 28px;
    border-right: 1px solid #e3e8e0;
}

.contacts-stats__item:last-child {
    border-right: 0;
}

.contacts-stats__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    color: var(--cf-green);
    background: var(--cf-green-soft);
}

.contacts-stats__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacts-stats__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contacts-stats__text strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--cf-ink);
    line-height: 1.25;
}

.contacts-stats__text span {
    font-size: 13.5px;
    color: var(--cf-muted);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   3. Channels Section (3 Interactive Cards)
   -------------------------------------------------------------------------- */
.contacts-channels__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.05fr;
    gap: 22px;
}

.contacts-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 34px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--cf-line);
    box-shadow: var(--cf-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contacts-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cf-card-hover-shadow);
    border-color: #b8e0ae;
}

.contacts-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.contacts-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    color: var(--cf-green);
    background: var(--cf-green-soft);
}

.contacts-card__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacts-card__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cf-green-dark);
}

.contacts-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--cf-ink);
    line-height: 1.25;
}

.contacts-card__body {
    flex: 1 1 auto;
    margin-bottom: 26px;
}

.contacts-card__desc {
    margin: 0 0 16px;
    font-size: 14.5px;
    color: var(--cf-muted);
    line-height: 1.55;
}

/* Phone list */
.contacts-phones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts-phone-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fbfdf9;
    border: 1px solid #edf3eb;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contacts-phone-entry:hover {
    background: #f3faf0;
    border-color: #c9e8be;
}

.contacts-phone-entry a {
    color: var(--cf-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.contacts-phone-entry:hover a {
    color: var(--cf-green);
}

.contacts-phone-entry span {
    font-size: 12px;
    color: var(--cf-muted);
}

/* Messengers row */
.contacts-messenger-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.contacts-msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.contacts-msg-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contacts-msg-btn--max {
    background: linear-gradient(135deg, #1f75fe 0%, #0052cc 100%);
}

.contacts-msg-btn--tg {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
}

.contacts-msg-btn--wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.contacts-msg-btn img,
.contacts-msg-btn svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.contacts-msg-btn svg {
    fill: currentColor;
}

.contacts-msg-btn span {
    flex: 1 1 auto;
}

.contacts-msg-btn small {
    opacity: 0.85;
    font-size: 11.5px;
    font-weight: 600;
}

/* Email Box */
.contacts-email-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fbfdf9;
    border: 1px solid #edf3eb;
    margin-bottom: 14px;
}

.contacts-email-box a {
    color: var(--cf-ink);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none !important;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contacts-email-box a:hover {
    color: var(--cf-green);
}

.contacts-email-box span {
    font-size: 13px;
    color: var(--cf-muted);
}

.contacts-price-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--cf-green-soft);
    color: var(--cf-green-dark) !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contacts-price-link:hover {
    background: #e0f4db;
    transform: translateY(-1px);
}

.contacts-price-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Card Footers */
.contacts-card__footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #f1f5f0;
}

.contacts-card-btn {
    width: 100%;
    min-height: 48px;
}

/* --------------------------------------------------------------------------
   4. Location & Map Section
   -------------------------------------------------------------------------- */
.contacts-location {
    background: var(--cf-bg-soft);
}

.contacts-location__frame {
    position: relative;
    min-height: 620px;
    border-radius: 30px;
    overflow: hidden;
    background: #e6ede3;
    border: 1px solid var(--cf-line);
    box-shadow: 0 24px 64px rgba(22, 45, 24, 0.09);
}

.contacts-location__map,
.contacts-location__map #map-card {
    width: 100%;
    height: 100%;
    min-height: 620px;
}

/* Floating frosted panel over map */
.contacts-location__panel {
    position: absolute;
    top: 32px;
    right: 32px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(440px, calc(100% - 64px));
    padding: 38px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 24px 60px rgba(18, 40, 20, 0.16);
    backdrop-filter: blur(20px);
}

.contacts-location__panel-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-location__panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cf-green-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contacts-location__panel-badge svg {
    width: 18px;
    height: 18px;
    fill: var(--cf-green);
}

.contacts-location__panel-title {
    margin: 0;
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: var(--cf-ink);
}

.contacts-location__address {
    margin: 16px 0 0;
    padding: 16px;
    border-radius: 14px;
    background: #f4f8f2;
    border: 1px solid #e2ece0;
    color: #263326;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.contacts-location__schedule {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #e6ede2;
    border-bottom: 1px solid #e6ede2;
}

.contacts-location__schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--cf-muted);
}

.contacts-location__schedule-row strong {
    color: var(--cf-ink);
    font-weight: 800;
}

.contacts-location__note {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: #556555;
    line-height: 1.5;
}

.contacts-location__route-btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   5. Bottom Grid (Requisites & Fast Request Form)
   -------------------------------------------------------------------------- */
.contacts-bottom__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
}

.contacts-requisites-card,
.contacts-form-card {
    padding: 44px;
    border-radius: 28px;
    border: 1px solid var(--cf-line);
    box-shadow: var(--cf-card-shadow);
}

.contacts-requisites-card {
    background: linear-gradient(160deg, #ffffff 0%, #f7faf5 100%);
}

.contacts-requisites-card h3,
.contacts-form-card h3 {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cf-ink);
    line-height: 1.15;
}

.contacts-requisites-card p,
.contacts-form-card p {
    margin: 0 0 26px;
    color: var(--cf-muted);
    font-size: 15px;
    line-height: 1.6;
}

.contacts-requisites-list {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.contacts-req-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6ece3;
}

.contacts-req-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contacts-req-row span {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #829280;
}

.contacts-req-row strong {
    font-size: 15.5px;
    font-weight: 750;
    color: var(--cf-ink);
}

/* Form Card */
.contacts-form-card {
    background: linear-gradient(160deg, #ffffff 0%, #edf7e9 100%);
    border-color: #d7ebd1;
}

.contacts-form {
    display: grid;
    gap: 16px;
}

.contacts-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contacts-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contacts-field label {
    font-size: 13px;
    font-weight: 750;
    color: #273824;
    margin: 0;
}

.contacts-field input,
.contacts-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid #cbe0c6;
    background: rgba(255, 255, 255, 0.94);
    color: var(--cf-ink);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contacts-field textarea {
    min-height: 108px;
    resize: vertical;
}

.contacts-field input:focus,
.contacts-field textarea:focus {
    border-color: var(--cf-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 170, 8, 0.15);
}

.contacts-form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.contacts-form-footer .contacts-btn {
    flex: 0 0 auto;
}

.contacts-form-privacy {
    margin: 0;
    font-size: 12px;
    color: #697d66;
    line-height: 1.45;
}

.contacts-form-privacy a {
    color: var(--cf-green-dark);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .contacts-hero__content {
        width: 75%;
        padding: 56px 48px;
    }
    .contacts-channels__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contacts-location__panel {
        width: min(400px, calc(100% - 48px));
        padding: 32px;
    }
    .contacts-bottom__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .contacts-modern-section {
        padding: 68px 0;
    }
    .contacts-channels {
        margin-top: 0;
        padding-top: 92px;
    }
    .contacts-hero__status {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 22px;
        align-self: flex-start;
    }
    .contacts-hero__content {
        width: 100%;
        padding: 50px 36px;
    }
    .contacts-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .contacts-heading p {
        max-width: none;
    }
    .contacts-stats {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 20px;
    }
    .contacts-stats__item {
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px solid #e3e8e0;
    }
    .contacts-stats__item:last-child {
        border-bottom: 0;
    }
    .contacts-location__frame {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .contacts-location__map,
    .contacts-location__map #map-card {
        min-height: 440px;
        height: 440px;
    }
    .contacts-location__panel {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: -24px 0 0;
        border-radius: 24px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .contacts-modern-shell {
        width: min(calc(100% - 24px), 1480px);
    }
    .contacts-modern-section {
        padding: 54px 0;
    }
    .contacts-channels {
        margin-top: 0;
        padding-top: 76px;
        scroll-margin-top: 84px;
    }
    .contacts-hero {
        padding-top: 14px;
    }
    .contacts-hero__card {
        border-radius: 24px;
        min-height: 520px;
    }
    .contacts-hero__content {
        padding: 38px 22px 42px;
    }
    .contacts-hero__content h1 {
        font-size: clamp(32px, 8.6vw, 44px);
    }
    .contacts-hero__content p {
        font-size: 15.5px;
        margin-bottom: 24px;
    }
    .contacts-hero__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .contacts-btn {
        width: 100%;
    }
    .contacts-card {
        padding: 28px 22px;
        border-radius: 22px;
    }
    .contacts-requisites-card,
    .contacts-form-card {
        padding: 30px 22px;
        border-radius: 22px;
    }
    .contacts-form__row {
        grid-template-columns: 1fr;
    }
    .contacts-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .contacts-form-footer .contacts-btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .contacts-phone-entry a {
        font-size: 17px;
    }
    .contacts-email-box a {
        font-size: 18px;
    }
}
