.home-reasons {
    padding: 90px 0 75px;
    color: #55554e;
    background: #fff;
}

.home-reasons h2 {
    margin: 0 0 55px;
    font-family: "Arsenal", Georgia, serif;
    font-size: 2em;
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.02em;
}

.home-reasons__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 198px);
    gap: 7px;
}

.home-reason {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    place-items: center;
    padding: 28px;
    text-align: center;
    font-family: "Arsenal", Georgia, serif;
    font-size: clamp(18px, 1.55vw, 25px);
    line-height: 1.2;
}

.home-reason--tall { grid-row: span 2; }
.home-reason--last { grid-column: 4; grid-row: 1 / span 2; }
.home-reason--accent { background: #e4e64f; }
.home-reason--plain { background: #f4f4f3; }
.home-reason--brand { background: #f5f5ea; }

.home-reason--photo {
    align-items: end;
    color: #fff;
}

.home-reason--photo:not(.home-reason--tall) {
    align-items: center;
}

.home-reason--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.home-reason--photo::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0,0,0,.02) 35%, rgba(0,0,0,.64) 100%);
}

.home-reason--photo span { position: relative; z-index: 1; }
.home-reason--photo:hover img { transform: scale(1.045); }

.home-reason__monogram {
    position: absolute;
    top: -45px;
    right: -16px;
    color: rgba(255,255,255,.8);
    font-size: 180px;
    line-height: 1;
}

.home-reason--brand > span:last-child { position: relative; z-index: 1; }

.home-reasons__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 28px;
}

.home-reasons__footer p {
    margin: 0;
    color: #484842;
    font-size: 16px;
    line-height: 1.35;
}

.home-reasons__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 430px;
    min-height: 52px;
    padding: 10px 20px 10px 28px;
    border: 0;
    border-radius: 999px;
    color: #4c4c45;
    background: #e4e64f;
    font: 14px "TT Interfaces", Arial, sans-serif;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-reasons__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(129,131,34,.18);
}

body.home-consult-open { overflow: hidden; }

.home-consult {
    position: fixed;
    inset: 0;
    width: min(1240px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    color: #52524b;
    background: transparent;
    overflow: visible;
}

.home-consult::backdrop {
    background: rgba(20,20,17,.62);
    backdrop-filter: blur(3px);
}

.home-consult__panel {
    position: relative;
    display: grid;
    grid-template-columns: 56% 44%;
    min-height: 620px;
    background: #f6f6eb;
    box-shadow: 0 26px 80px rgba(0,0,0,.24);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.home-consult__close {
    position: absolute;
    z-index: 8;
    top: 28px;
    right: 28px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.home-consult__close::before,
.home-consult__close::after {
    position: absolute;
    top: 24px;
    left: 14px;
    width: 22px;
    height: 1px;
    content: "";
    background: #55554e;
}

.home-consult__close::before { transform: rotate(45deg); }
.home-consult__close::after { transform: rotate(-45deg); }

.home-consult__intro {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    padding: 50px 45px;
}

.home-consult__mark {
    position: absolute;
    top: 0;
    left: -42px;
    width: min(90%, 620px);
    height: 100%;
    object-fit: contain;
    opacity: .055;
    transform: scale(1.22);
}

.home-consult__intro-content { position: relative; z-index: 1; }

.home-consult__intro h2 {
    margin: 0;
    font-family: "Arsenal", Georgia, serif;
    font-size: clamp(49px, 4.6vw, 72px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.home-consult__intro p {
    margin: 34px 0 0;
    color: #484842;
    font-size: 19px;
    line-height: 1.25;
}

.home-consult__form {
    align-self: center;
    padding: 80px 56px 40px 28px;
}

.home-consult__success {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 64px 56px 48px 28px;
    text-align: center;
}

.home-consult__success-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 30px;
    border-radius: 50%;
    place-items: center;
    color: #4c4c45;
    background: #e4e64f;
    font-size: 38px;
}

.home-consult__success h3 {
    margin: 0;
    font-family: "Arsenal", Georgia, serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.home-consult__success p {
    margin: 24px 0 0;
    color: #4c4c45;
    font-size: 17px;
    line-height: 1.45;
}

.home-consult__field {
    position: relative;
    display: block;
    margin-bottom: 28px;
    color: #191916;
    font-size: 18px;
}

.home-consult__field > span { display: block; }

.home-consult__field input:not([type="hidden"]),
.home-consult__control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid #77776f;
    outline: 0;
    color: #191916;
    background: transparent;
    font: inherit;
    text-align: left;
}

.home-consult__control { height: 42px; cursor: pointer; }
.home-consult__field input:focus,
.home-consult__control:focus-visible { border-bottom-color: #d7da35; }

.home-consult__field small {
    display: none;
    margin-top: 5px;
    color: #a03d31;
    font-size: 12px;
}

.home-consult__field.is-error small { display: block; }

.home-consult__time-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-consult__chevron {
    width: 11px;
    height: 11px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translate(-3px,-4px) rotate(45deg);
}

.home-consult__times {
    display: flex;
    gap: 24px;
    padding: 13px 0 4px;
    overflow-x: auto;
}

.home-consult__times[hidden], .home-calendar[hidden] { display: none; }

.home-consult__times button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    color: #151512;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.home-consult__times button.is-selected { color: #d7da35; font-weight: 600; }
.home-consult__times button.is-selected::before { content: "✓ "; }
.home-consult__times button:disabled { color: #bdbdb5; cursor: not-allowed; }
.home-consult__times button:disabled::before { content: none; }

.home-calendar {
    position: absolute;
    z-index: 12;
    top: 43px;
    left: 0;
    width: min(330px, 100%);
    padding: 15px 18px 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.home-calendar__head,
.home-calendar__week,
.home-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    text-align: center;
}

.home-calendar__head {
    grid-template-columns: 36px 1fr 36px;
    margin-bottom: 17px;
    color: #66665f;
    font-size: 15px;
}

.home-calendar__head button,
.home-calendar__days button { border: 0; background: transparent; cursor: pointer; }
.home-calendar__head button { font-size: 25px; line-height: 1; }
.home-calendar__week { margin-bottom: 7px; color: #aaa9a1; font-size: 13px; }

.home-calendar__days button,
.home-calendar__days span {
    display: grid;
    height: 36px;
    place-items: center;
    color: #55554e;
    font: inherit;
    font-size: 14px;
}

.home-calendar__days button:hover,
.home-calendar__days button.is-selected { background: #e4e64f; }
.home-calendar__days button:disabled { color: #c8c8c1; cursor: not-allowed; }
.home-calendar__days button:disabled:hover { background: transparent; }

.home-consult__consent {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 15px;
    align-items: start;
    margin: 4px 0 24px;
    color: #999990;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.home-consult__consent input { position: absolute; opacity: 0; pointer-events: none; }
.home-consult__consent-box { position: relative; width: 22px; height: 22px; border: 1px solid #9e9e96; border-radius: 50%; }

.home-consult__consent input:checked + .home-consult__consent-box::after {
    position: absolute;
    top: 4px;
    left: 5px;
    width: 9px;
    height: 5px;
    border-bottom: 1px solid #707069;
    border-left: 1px solid #707069;
    content: "";
    transform: rotate(-45deg);
}

.home-consult__consent a { text-decoration: underline; text-underline-offset: 2px; }
.home-consult__consent.is-error { color: #a03d31; }

.home-consult__captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -8px 0 18px;
}

.home-consult__captcha input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 34px;
    border: 0;
    border-bottom: 1px solid #77776f;
    background: transparent;
}

.home-consult__submit {
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: #e4e64f;
    font: 18px "TT Interfaces", Arial, sans-serif;
    cursor: pointer;
}

.home-consult__status { margin-top: 12px; text-align: center; font-size: 13px; }
.home-consult__status.is-error { color: #a03d31; }
.home-consult__status.is-success { color: #68701b; }

@media (max-width: 980px) {
    .home-reasons__grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(4,190px); }
    .home-reason--tall:first-child { grid-column: 1; grid-row: 1 / span 2; }
    .home-reason--last { grid-column: 2; grid-row: 3 / span 2; }
    .home-reasons__footer { align-items: flex-start; flex-direction: column; }
    .home-reasons__button { min-width: min(100%,430px); }
}

@media (max-width: 900px) {
    .home-consult { width: min(720px,calc(100% - 24px)); }
    .home-consult__panel { grid-template-columns: 1fr; max-height: calc(100vh - 30px); overflow-y: auto; }
    .home-consult__intro { min-height: 330px; padding: 68px 28px 38px; }
    .home-consult__mark { width: 70%; }
    .home-consult__intro h2 { font-size: clamp(45px,9vw,66px); }
    .home-consult__form, .home-consult__success { padding: 40px 28px; }
}

@media (max-width: 640px) {
    .home-reasons { padding: 58px 0 50px; }
    .home-reasons h2 { margin-bottom: 34px; }
    .home-reasons__grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; gap: 6px; }
    .home-reason, .home-reason--tall, .home-reason--last { grid-row: auto; min-height: 155px; padding: 18px 12px; font-size: 17px; }
    .home-reason--photo, .home-reason--tall, .home-reason--last { grid-column: 1 / -1; min-height: 330px; }
    .home-reason--tall:first-child { grid-column: 1 / -1; grid-row: auto; order: 1; }
    .home-reason--accent { order: 2; }
    .home-reason--brand { order: 3; }
    .home-reason--plain { grid-column: auto; min-height: 155px; order: 4; }
    .home-reason--photo:not(.home-reason--tall) { grid-column: auto; min-height: 155px; order: 5; }
    .home-reason--last { order: 6; }
    .home-reason--photo img { object-position: center top; }
    .home-reasons__footer p br { display: none; }
    .home-reasons__button { min-width: 100%; font-size: 13px; }
}

@media (max-width: 520px) {
    .home-consult__close { top: 14px; right: 14px; width: 42px; height: 42px; }
    .home-consult__close::before, .home-consult__close::after { top: 20px; left: 11px; }
    .home-consult__intro { min-height: 285px; padding: 62px 20px 28px; }
    .home-consult__intro h2 { font-size: 39px; }
    .home-consult__intro p { margin-top: 22px; font-size: 15px; }
    .home-consult__intro p br, .home-consult__consent br { display: none; }
    .home-consult__form, .home-consult__success { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-reason--photo img, .home-reasons__button { transition: none; }
}
