.contacts-page {
    --contacts-brown: #663300;
    --contacts-brown-dark: #2c0000;
    --contacts-gold: #cca064;
    --contacts-border: #a9a9a9;
    --contacts-error: #ef3d3d;
    box-sizing: border-box;
    color: #333;
    font-family: Roboto, "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    overflow: visible;
}

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

.contacts-page [hidden] {
    display: none !important;
}

.contacts-hero {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.contacts-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Возрастной шаг не относится к сценарию конфиденциальности. */
.contacts-page--privacy [data-age-gate] {
    display: none !important;
}

.contacts-page h1,
.contacts-page h2,
.contacts-page h3,
.contacts-page p,
.contacts-page fieldset {
    margin: 0;
}

.contacts-page button,
.contacts-page input,
.contacts-page select,
.contacts-page textarea {
    font: inherit;
}

.contacts-container {
    width: min(calc(100% - 30px), 1230px);
    margin: 0 auto;
}

.contacts-intro {
    color: #333;
    margin-top: 3rem;
}

.contacts-intro h2,
.contacts-info h2 {
    margin-bottom: 20px;
    color: var(--contacts-brown);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.contacts-intro p {
    max-width: 1320px;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 400;
}

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 840px) minmax(280px, 320px);
    gap: 60px;
    align-items: start;
    padding: 20px 0 60px;
}

.contacts-form-heading {
    display: flex;
    align-items: baseline;
    gap: 24px;
    color: var(--contacts-brown);
}

.contacts-form-heading h2 {
    font-size: 29px;
    line-height: 1.2;
}

.contacts-form-heading span {
    font-size: 18px;
    font-weight: 700;
}

.contacts-form-lead {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 28px 0 32px;
    color: var(--contacts-brown);
}

.contacts-form-lead__icon {
    flex: 0 0 auto;
    font-size: 48px;
    font-weight: 700;
    line-height: .9;
}

.contacts-form-lead h3 {
    font-size: 24px;
    line-height: 1.2;
}

.contacts-form-lead p {
    margin-top: 8px;
    color: #333;
}

.contacts-section-heading h2 {
    margin: 0;
    color: var(--contacts-brown);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.contacts-panel {
    border-top: 1px solid transparent;
}

.contacts-panel--promotion {
    margin-top: 12px;
}

.contacts-panel--privacy {
    margin-top: 12px;
}

.contacts-panel--privacy .contacts-panel__toggle h2 {
    max-width: calc(100% - 36px);
}

.contacts-panel--reason {
    margin-top: 28px;
}

.contacts-panel--reason .contacts-panel__content {
    padding-top: 24px;
}

.contacts-panel + .contacts-panel {
    margin-top: 24px;
}

.contacts-panel__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid #a9a9a9;
    background: transparent;
    color: var(--contacts-brown);
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
}

.contacts-panel__toggle h2 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1;
}

.contacts-panel__arrow {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 0 5px 5px 18px;
    border: solid currentColor;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.contacts-panel__toggle[aria-expanded="true"] .contacts-panel__arrow {
    margin-bottom: -2px;
    transform: rotate(-135deg);
}

.contacts-panel__content {
    display: none;
    padding: 24px 0 16px;
}

.contacts-panel--open .contacts-panel__content {
    display: block;
}

.contacts-fields {
    display: grid;
    gap: 28px 24px;
}

.contacts-fields > .contacts-field,
.contacts-fields > .contacts-autocomplete {
    margin-bottom: 0;
}

.contacts-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* В ранней части формы поля идут последовательно, как на оригинальном сайте.
   Две колонки остаются только в контактной и адресной части ниже. */
.contacts-panel--promotion .contacts-fields--two,
.contacts-panel--purchase .contacts-fields--two,
[data-saved-product-only] .contacts-fields--two {
    grid-template-columns: minmax(0, 1fr);
}

.contacts-fields--three {
    grid-template-columns: minmax(150px, .5fr) minmax(0, 2fr) minmax(130px, .5fr);
}

.contacts-field {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin-bottom: 24px;
}

.contacts-field--wide {
    width: 100%;
}

.contacts-autocomplete {
    position: relative;
    width: 100%;
}

.contacts-autocomplete--wide {
    width: 100%;
}

.contacts-autocomplete.contacts-field--has-info {
    padding-right: 32px;
}

.contacts-autocomplete > .contacts-info-button {
    right: 0;
}

.contacts-autocomplete__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% - 21px);
    right: 0;
    left: 0;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .24);
}

.contacts-autocomplete__option {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.contacts-autocomplete__option:hover,
.contacts-autocomplete__option:focus,
.contacts-autocomplete__option.is-active,
.contacts-autocomplete__option.is-selected {
    background: #e6ddd4;
    color: var(--contacts-brown);
    outline: 0;
}

.contacts-autocomplete__empty {
    padding: 13px 15px;
    color: #777;
}

.contacts-autocomplete__match {
    background: #e5e5e5;
    color: inherit;
}

.contacts-autocomplete::after {
    position: absolute;
    right: 7px;
    bottom: 28px;
    width: 0;
    height: 0;
    border-top: 8px solid var(--contacts-brown);
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    content: "";
    pointer-events: none;
}

/* append-outer из оригинальной формы: подсказка занимает отдельное место,
   поэтому линия и стрелка не заходят под золотую иконку. */
.contacts-autocomplete.contacts-field--has-info::after {
    right: 33px;
}

.contacts-autocomplete.contacts-field--has-info > .contacts-autocomplete__menu {
    right: 32px;
}

.contacts-autocomplete:focus-within::after {
    transform: rotate(180deg);
}

.contacts-flavor-field {
    margin-top: 4px;
}

.contacts-field--half {
    max-width: calc(50% - 16px);
}

.contacts-autocomplete--required {
    min-width: 0;
}

.contacts-field__label {
    min-height: 24px;
    color: var(--contacts-brown);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.contacts-field__label b,
.contacts-form-footer p {
    color: var(--contacts-error);
}

.contacts-field input,
.contacts-field select,
.contacts-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--contacts-border);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--contacts-brown-dark);
    font-size: 16px;
    line-height: 20px;
}

.contacts-field input:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.contacts-date-control {
    position: relative;
    display: block;
}

.contacts-date-control input {
    padding-right: 38px;
}

.contacts-date-control input::-webkit-calendar-picker-indicator {
    width: 32px;
    height: 32px;
    opacity: 0;
    cursor: pointer;
}

.contacts-date-button {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    width: 36px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--contacts-brown);
    cursor: pointer;
}

.contacts-date-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.contacts-date-button .fa {
    font-size: 18px;
}

.contacts-field select {
    appearance: none;
    padding-right: 28px;
    background: linear-gradient(45deg, transparent 50%, var(--contacts-brown) 50%) calc(100% - 12px) 20px / 10px 10px no-repeat,
        linear-gradient(135deg, var(--contacts-brown) 50%, transparent 50%) calc(100% - 5px) 20px / 10px 10px no-repeat;
}

.contacts-field--has-info select {
    /* Родитель уже зарезервировал 32 px под append-outer; стрелка
       должна оставаться у правого края самой линии, а не уезжать
       дополнительно влево. */
    padding-right: 28px;
    background-position: calc(100% - 12px) 20px, calc(100% - 5px) 20px;
}

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

.contacts-field input:focus,
.contacts-field select:focus,
.contacts-field textarea:focus {
    border-bottom: 2px solid var(--contacts-brown);
}

.contacts-field.is-invalid input,
.contacts-field.is-invalid select,
.contacts-field.is-invalid textarea {
    border-bottom-color: var(--contacts-error);
}

.contacts-field--has-info {
    padding-right: 32px;
}

.contacts-info-button {
    position: absolute;
    right: 0;
    bottom: 25px;
    z-index: 3;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--contacts-gold);
    cursor: pointer;
    line-height: 1;
}

.contacts-info-button:hover,
.contacts-info-button:focus-visible,
.contacts-info-button.is-open {
    color: #b7854a;
    outline: 0;
}

.contacts-info-button__icon {
    font-family: FontAwesome, Arial, sans-serif;
    font-size: 23px;
}

.contacts-info-button--inline {
    position: relative;
    right: auto;
    bottom: auto;
    width: 22px;
    height: 22px;
    margin-left: 7px;
    vertical-align: middle;
}

.contacts-info-button--inline .contacts-info-button__icon {
    font-size: 21px;
}

.contacts-tooltip {
    position: fixed;
    z-index: 1001;
    display: block;
    width: min(310px, calc(100vw - 24px));
    padding: 10px 13px;
    border-radius: 2px;
    background: rgba(51, 51, 51, .96);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
}

.contacts-info-button.is-open .contacts-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.contacts-calendar {
    position: absolute;
    display: inline-block;
    z-index: 1000;
    width: 290px;
    min-width: auto;
    max-width: 80%;
    overflow-y: auto;
    overflow-x: hidden;
    contain: content;
    transform-origin: left top;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2),
        0 8px 10px 1px rgba(0, 0, 0, .14),
        0 3px 14px 2px rgba(0, 0, 0, .12);
    color: #333;
}

.contacts-calendar[hidden] {
    display: none !important;
}

.contacts-calendar__title {
    min-height: 88px;
    box-sizing: border-box;
    padding: 16px;
    background-color: #663300 !important;
    border-color: #663300 !important;
    color: #fff !important;
}

.contacts-calendar__title.primary {
    background-color: #663300 !important;
    border-color: #663300 !important;
}

.contacts-calendar__year {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.contacts-calendar__date {
    display: block;
    min-height: 34px;
    padding-bottom: 8px;
    margin-bottom: -8px;
    color: #fff;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
}

.contacts-calendar__header {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
}

.contacts-calendar__month {
    flex: 1;
    color: rgba(0, 0, 0, .87);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.contacts-calendar__nav {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.contacts-calendar__nav .fa {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.contacts-calendar__nav:disabled {
    cursor: not-allowed;
    opacity: .25;
}

.contacts-calendar__table {
    position: relative;
    height: 242px;
    width: 100%;
    padding: 0 12px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.contacts-calendar__table th {
    height: 34px;
    padding: 8px 0;
    color: rgba(0, 0, 0, .38);
    font-size: 12px;
    font-weight: 600;
}

.contacts-calendar__table td {
    width: 45px;
    height: 40px;
    padding: 0;
    text-align: center;
}

.contacts-calendar__day {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 12px;
}

.contacts-calendar__day:hover,
.contacts-calendar__day:focus-visible,
.contacts-calendar__day.is-selected {
    border-color: #663300;
    color: #663300;
    outline: 0;
}

.contacts-calendar__day.is-today {
    background: #eee5dc;
}

.contacts-calendar__day.is-outside {
    color: #bbb;
}

.contacts-field__hint,
.contacts-counter {
    color: #777;
    font-size: 12px;
}

.contacts-message-description {
    display: block;
    margin: 0 0 16px;
    color: #777;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
}

.contacts-counter {
    align-self: flex-end;
    margin-top: 4px;
}

.contacts-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.contacts-choice legend {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding-right: 32px;
    color: #333;
}

.contacts-choice legend > .contacts-info-button--inline {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    transform: translateY(-50%);
}

.contacts-choice label,
.contacts-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777;
    cursor: pointer;
}

.contacts-choice input[type="radio"] {
    width: 23px;
    height: 23px;
    margin: 0;
    border: 2px solid #858585;
    border-radius: 50%;
    appearance: none;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}

.contacts-choice input[type="radio"]:checked {
    border-color: var(--contacts-brown);
    background: var(--contacts-brown);
}

.contacts-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--contacts-brown);
}

.contacts-note {
    margin: 8px 0 16px;
}

.contacts-underage-fields {
    margin-bottom: 24px;
}

.contacts-check {
    line-height: 1.4;
}

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

.contacts-file {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--contacts-brown);
    font-size: 13px;
}

.contacts-file strong {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #5c2f0c;
    border-radius: 3px;
    background: #8a4b17;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
}

.contacts-file__icon {
    font-family: FontAwesome, Arial, sans-serif;
    font-size: 20px;
}

.contacts-file strong i {
    font-style: normal;
}

.contacts-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contacts-privacy {
    margin: 32px 0 24px;
    color: #333;
}

.contacts-page a {
    color: var(--contacts-brown);
    text-decoration: underline;
}

.contacts-captcha {
    display: flex;
    width: min(100%, 304px);
    min-height: 76px;
    align-items: center;
    gap: 12px;
    margin: 20px 0 28px;
    padding: 12px;
    border: 1px solid #d4d4d4;
    background: #fafafa;
    color: #555;
    font-size: 12px;
}

.contacts-captcha__box {
    width: 28px;
    height: 28px;
    border: 2px solid #555;
    background: #fff;
}

.contacts-captcha small {
    display: block;
    margin-top: 3px;
    color: #888;
}

.contacts-check--privacy {
    margin: 20px 0;
    font-size: 16px;
}

.contacts-check.is-invalid {
    color: var(--contacts-error);
    outline: 1px solid var(--contacts-error);
    outline-offset: 5px;
}

.contacts-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
}

.contacts-submit {
    min-width: 150px;
    min-height: 44px;
    padding: 8px 22px;
    border: 0;
    border-radius: 3px;
    background: var(--contacts-brown);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.contacts-submit:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.contacts-form-footer p {
    font-size: 15px;
    text-align: right;
}

.contacts-status {
    min-height: 24px;
    margin-top: 20px !important;
    color: var(--contacts-brown);
    font-weight: 700;
}

.contacts-info {
    color: #333;
}

.contacts-info h2 {
    margin-bottom: 30px;
}

.contacts-info__block {
    margin-bottom: 28px;
}

.contacts-info__block p + p {
    margin-top: 12px;
}

.contacts-info__icon {
    display: block;
    margin: 0 0 24px;
    color: var(--contacts-gold);
    font-size: 58px;
    line-height: 1;
}

.contacts-info__block--separated {
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

@media (max-width: 1250px) and (min-width: 901px) {
    .contacts-layout {
        grid-template-columns: minmax(0, 2.35fr) minmax(280px, .9fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .contacts-container {
        width: min(100% - 32px, 840px);
    }

    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .contacts-info {
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .contacts-page {
        margin: 0 12px;
        border: 1px solid var(--contacts-brown);
        border-radius: 30px;
        padding: 2em .5em;
    }

    .contacts-container {
        width: 100%;
    }

    .contacts-intro {
        padding-top: 24px;
    }

    .contacts-form-heading,
    .contacts-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .contacts-form-heading {
        gap: 8px;
    }

    .contacts-fields--two,
    .contacts-fields--three,
    .contacts-files {
        grid-template-columns: 1fr;
    }

    .contacts-field--half {
        max-width: none;
    }

    .contacts-panel__toggle {
        font-size: 21px;
    }

    .contacts-form-lead__icon {
        font-size: 38px;
    }

    .contacts-intro p,
    .contacts-info,
    .contacts-form-lead p {
        font-size: 14px;
    }

    .contacts-form-footer p {
        text-align: left;
    }

    .contacts-field--has-info {
        margin-right: 0;
    }

    .contacts-autocomplete.contacts-field--has-info {
        margin-right: 0;
    }

    .contacts-info-button {
        right: 0;
        bottom: 25px;
    }

    .contacts-tooltip {
        width: min(280px, calc(100vw - 24px));
    }

    .contacts-calendar {
        width: min(290px, calc(100vw - 24px));
    }
}


.contacts-autocomplete_half::after {
    bottom: 55px;
}