/* =========================================================
   CONTACTS PAGE
========================================================= */

.contacts-page {
    padding: 16px 0 0;
    overflow: hidden;
    color: var(--color-text);
}

.contacts-page img {
    display: block;
    max-width: 100%;
}

.contacts-page a {
    text-decoration: none;
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.contacts-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: rgba(44, 44, 44, 0.46);
    font-size: 12px;
    line-height: 1.4;
}

.contacts-breadcrumbs a {
    color: inherit;
    transition: color 0.2s ease;
}

.contacts-breadcrumbs a:hover {
    color: var(--color-accent);
}


/* =========================================================
   SHARED SECTION TITLE
========================================================= */

.contacts-section-title {
    max-width: 860px;
    margin: 0;
    color: var(--color-accent);
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: 0.98;
    font-weight: 250;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}


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

.contacts-hero__frame {
    overflow: hidden;
    border-radius: var(--border-radius);
    color: #ffffff;
    background: var(--color-accent);
}

.contacts-hero__container {
    display: grid;
    min-height: 510px;
    grid-template-columns: minmax(0, 1fr) 510px;
    align-items: stretch;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.contacts-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 42px 0;
}

.contacts-hero__title {
    max-width: 650px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 5.4vw, 72px);
    line-height: 0.97;
    font-weight: 250;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.contacts-hero__text {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.contacts-hero__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.04);
}

.contacts-detail {
    display: flex;
    min-width: 0;
    min-height: 160px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contacts-detail:nth-child(2n) {
    border-right: 0;
}

.contacts-detail:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.contacts-detail__label {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contacts-detail__value {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.contacts-detail__value a,
.contacts-detail__value span {
    color: inherit;
}

.contacts-detail__value a {
    transition: opacity 0.2s ease;
}

.contacts-detail__value a:hover {
    opacity: 0.72;
}


/* =========================================================
   INFORMATION BLOCKS
========================================================= */

.contacts-info {
    padding-top: 88px;
}

.contacts-info__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: var(--border-radius);
    background: #ffffff;
}

.contacts-info__column {
    min-width: 0;
    padding: 34px 32px;
    background: rgba(255, 255, 255, 0.72);
}

.contacts-info__column + .contacts-info__column {
    border-left: 1px solid rgba(44, 44, 44, 0.08);
}

.contacts-info__title {
    max-width: 430px;
    margin: 0 0 22px;
    color: var(--color-accent);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.04;
    font-weight: 300;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.contacts-info__text {
    max-width: 520px;
    color: rgba(44, 44, 44, 0.66);
    font-size: 16px;
    line-height: 1.62;
    letter-spacing: -0.01em;
}

.contacts-info__text > *:first-child {
    margin-top: 0;
}

.contacts-info__text > *:last-child {
    margin-bottom: 0;
}

.contacts-info__text p {
    margin: 0 0 17px;
}

.contacts-info__text ul,
.contacts-info__text ol {
    margin: 18px 0;
    padding-left: 20px;
}

.contacts-info__text li + li {
    margin-top: 8px;
}

.contacts-info__text a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   PAYMENTS
========================================================= */

.contacts-payments {
    padding-top: 88px;
}

.contacts-payments .contacts-section-title {
    margin-bottom: 32px;
}

.contacts-payments__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contacts-payment-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 280px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: var(--border-radius);
    color: var(--color-text);
    background: #ffffff;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.contacts-payment-card:hover {
    border-color: rgba(146, 70, 45, 0.42);
    transform: translateY(-3px);
}

.contacts-payment-card--button {
    color: #ffffff;
    background: var(--color-accent);
}

.contacts-payment-card--button:hover {
    color: #ffffff;
    background: var(--color-text);
}

.contacts-payment-card__number {
    display: block;
    color: currentColor;
    opacity: 0.55;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contacts-payment-card__title {
    display: block;
    max-width: 260px;
    color: currentColor;
    font-size: 23px;
    line-height: 1.16;
    font-weight: 300;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.contacts-payment-card__media {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.contacts-payment-card__image {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 160px;
    object-fit: contain;
}


/* =========================================================
   LEGAL INFORMATION
========================================================= */

.contacts-legal {
    padding-top: 88px;
}

.contacts-legal .contacts-section-title {
    margin-bottom: 32px;
}

.contacts-legal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: var(--border-radius);
    background: #ffffff;
}

.contacts-legal__column {
    min-width: 0;
    padding: 32px;
    color: rgba(44, 44, 44, 0.66);
    font-size: 15px;
    line-height: 1.62;
    letter-spacing: -0.01em;
}

.contacts-legal__column + .contacts-legal__column {
    border-left: 1px solid rgba(44, 44, 44, 0.08);
}

.contacts-legal__column > *:first-child {
    margin-top: 0;
}

.contacts-legal__column > *:last-child {
    margin-bottom: 0;
}

.contacts-legal__column p {
    margin: 0 0 16px;
}

.contacts-legal__column strong {
    color: var(--color-text);
    font-weight: 600;
}

.contacts-legal__column a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   CONTACTS MAP
========================================================= */

.contacts-map {
    padding-top: 88px;
}

.contacts-map__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 34px;
    margin-bottom: 32px;
}

.contacts-map__address {
    max-width: 520px;
    margin: 14px 0 0;
    color: rgba(44, 44, 44, 0.62);
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.contacts-map__route {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid rgba(44, 44, 44, 0.09);
    border-radius: var(--border-radius);
    color: rgba(44, 44, 44, 0.75);
    background: transparent;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.contacts-map__route:hover {
    color: rgba(146, 70, 45, 1);
    background: rgba(247, 208, 108, 1);
    border-color: rgba(247, 208, 108, 1);
}

.contacts-map__route span {
    font-size: 18px;
    line-height: 1;
}

.contacts-map__frame {
    position: relative;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(44, 44, 44, 0.05);
}

.contacts-map__frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.15);
}

.contacts-map__placeholder {
    display: flex;
    width: 100%;
    min-height: 450px;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--color-accent);
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}


/* =========================================================
   CALLBACK SECTION
========================================================= */

.contacts-callback {
    padding-top: 88px;
}

.contacts-callback__frame {
    overflow: hidden;
    border-radius: var(--border-radius);
    color: #ffffff;
    background: var(--color-accent);
}

.contacts-callback__container {
    display: grid;
    min-height: 520px;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: stretch;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.contacts-callback__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 42px 0;
}

.contacts-callback__title {
    max-width: 650px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 5.4vw, 72px);
    line-height: 0.97;
    font-weight: 250;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.contacts-callback__text {
    max-width: 460px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.contacts-callback__form {
    max-width: 590px;
    margin-top: 30px;
}

.contacts-callback__media {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.08);
}

.contacts-callback__image {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CONTACT FORM 7 — GENERAL
========================================================= */

.contacts-callback__form .wpcf7 {
    width: 100%;
}

.contacts-callback__form .wpcf7-form {
    display: grid;
    gap: 14px;
}

.contacts-callback__form .wpcf7-form p {
    margin: 0;
}

.contacts-callback__form label {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.4;
}

.contacts-callback__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contacts-callback__form textarea,
.contacts-callback__form select {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 7px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--border-radius);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.contacts-callback__form textarea {
    min-height: 112px;
    resize: vertical;
}

.contacts-callback__form input::placeholder,
.contacts-callback__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.contacts-callback__form input:focus,
.contacts-callback__form textarea:focus,
.contacts-callback__form select:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.contacts-callback__form input[type="submit"],
.contacts-callback__form button[type="submit"] {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    appearance: none;
    border: 1px solid #ffffff;
    border-radius: var(--border-radius);
    color: var(--color-accent);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.contacts-callback__form input[type="submit"]:hover,
.contacts-callback__form button[type="submit"]:hover {
    color: #ffffff;
    background: transparent;
}

.contacts-callback__form .wpcf7-spinner {
    margin: 10px 0 0;
}

.contacts-callback__form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #ffffff;
    font-size: 12px;
}

.contacts-callback__form .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--border-radius);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.45;
}

.contacts-callback__form .wpcf7 form.invalid .wpcf7-response-output,
.contacts-callback__form .wpcf7 form.unaccepted .wpcf7-response-output,
.contacts-callback__form .wpcf7 form.payment-required .wpcf7-response-output,
.contacts-callback__form .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   CUSTOM CONTACT CALLBACK FORM
========================================================= */

.contacts-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contacts-form__field {
    min-width: 0;
}

.contacts-form__field label {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.4;
}

.contacts-form__field label > span:first-child {
    color: rgba(255, 255, 255, 0.72);
}

.contacts-form__field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contacts-form__field input {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 7px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--border-radius);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.contacts-form__field input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.contacts-form__field input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.contacts-form__submit {
    grid-column: 1 / -1;
}

.contacts-form__button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    appearance: none;
    border: 1px solid #ffffff;
    border-radius: var(--border-radius);
    color: var(--color-accent);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.contacts-form__button:hover {
    color: #ffffff;
    background: transparent;
}

.contacts-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #ffffff;
    font-size: 12px;
}


/* =========================================================
   CALLBACK SOCIALS
========================================================= */

.contacts-callback__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contacts-callback__socials a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--border-radius);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.contacts-callback__socials a:hover {
    border-color: #ffffff;
    color: var(--color-accent);
    background: #ffffff;
}


/* =========================================================
   RESPONSIVE — SMALL DESKTOP
========================================================= */

@media (max-width: 1240px) {
    .contacts-hero__container,
    .contacts-callback__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(420px, 48%);
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991px) {
    .contacts-hero__container,
    .contacts-callback__container {
        min-height: 480px;
        grid-template-columns:
            minmax(0, 1fr)
            44%;
        gap: 22px;
    }

    .contacts-hero__content,
    .contacts-callback__content {
        padding: 34px 0;
    }

    .contacts-hero__text,
    .contacts-callback__text {
        font-size: 15px;
    }

    .contacts-info,
    .contacts-payments,
    .contacts-legal,
    .contacts-map,
    .contacts-callback {
        padding-top: 72px;
    }

    .contacts-info__column {
        padding: 32px 28px;
    }

    .contacts-payments__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
        .contacts-callback__container {
        display: block;
        min-height: 0;
        padding-top: 18px;
        padding-bottom: 42px;
    }

    .contacts-callback__content {
        max-width: 720px;
        padding: 34px 0;
    }

    .contacts-callback__media {
        display: none !important;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 767px) {
    .contacts-page {
        padding-top: 14px;
    }

    .contacts-breadcrumbs {
        margin-bottom: 16px;
    }

    .contacts-hero__frame,
    .contacts-callback__frame {
        border-radius: 16px;
    }

    .contacts-hero__container,
    .contacts-callback__container {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 42px;
    }

    .contacts-hero__content,
    .contacts-callback__content {
        padding: 24px 0 0;
    }

    .contacts-hero__title,
    .contacts-callback__title {
        font-size: 40px;
        line-height: 0.98;
    }

    .contacts-section-title {
        font-size: 38px;
        line-height: 1;
    }

    .contacts-hero__text,
    .contacts-callback__text {
        max-width: none;
        margin-top: 16px;
        font-size: 14px;
    }
    
    .contacts-callback__socials {
    justify-content: center;
	}

    .contacts-hero__details {
        grid-template-columns: 1fr;
    }

    .contacts-detail,
    .contacts-detail:nth-child(2n),
    .contacts-detail:nth-last-child(-n + 2) {
        min-height: 0;
        padding: 22px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .contacts-detail:last-child {
        border-bottom: 0;
    }

    .contacts-info,
    .contacts-payments,
    .contacts-legal,
    .contacts-map,
    .contacts-callback {
        padding-top: 58px;
    }

    .contacts-info__grid,
    .contacts-legal__grid {
        grid-template-columns: 1fr;
    }

    .contacts-info__column + .contacts-info__column,
    .contacts-legal__column + .contacts-legal__column {
        border-top: 1px solid rgba(44, 44, 44, 0.08);
        border-left: 0;
    }

    .contacts-info__column,
    .contacts-legal__column {
        padding: 26px 20px;
    }

    .contacts-info__title {
        font-size: 28px;
    }

    .contacts-payments .contacts-section-title,
    .contacts-legal .contacts-section-title {
        margin-bottom: 24px;
    }

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

    .contacts-payment-card {
        min-height: 230px;
        padding: 20px;
    }

    .contacts-payment-card__media {
        min-height: 140px;
    }

    .contacts-payment-card__title {
        font-size: 21px;
    }

    .contacts-map__head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        margin-bottom: 24px;
    }

    .contacts-map__route {
        width: 100%;
    }

    .contacts-map__frame,
    .contacts-map__placeholder {
        min-height: 380px;
    }

    .contacts-callback__form {
        margin-top: 26px;
    }

    .contacts-form {
        grid-template-columns: 1fr;
    }

    .contacts-form__submit {
        grid-column: auto;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .contacts-hero__title,
    .contacts-callback__title,
    .contacts-section-title {
        font-size: 34px;
    }

    .contacts-info__text,
    .contacts-legal__column {
        font-size: 14px;
    }

    .contacts-map__frame,
    .contacts-map__placeholder {
        min-height: 340px;
    }

    .contacts-callback__media {
        min-height: 300px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .contacts-breadcrumbs a,
    .contacts-payment-card,
    .contacts-map__route,
    .contacts-callback__socials a,
    .contacts-callback__form input,
    .contacts-callback__form textarea,
    .contacts-callback__form select,
    .contacts-callback__form input[type="submit"],
    .contacts-form__field input,
    .contacts-form__button {
        transition: none;
    }
}