:root {
    color-scheme: light;
    --paper: #f6f5f2;
    --white: #fff;
    --ink: #191a1e;
    --muted: #565960;
    --line: #dddbd7;
    --dark: #1b1c20;
    --pale: #ececf0;
    --red: #bc1e2d;
    --red-hover: #941522;
    --focus: #2065a6;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 system-ui, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}
.wrap { width: min(1200px, 100% - 80px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 2; background: white; padding: 10px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header-inner {
    min-height: 81px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 36px;
}
.brand { width: 184px; display: block; line-height: 0; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
}
.site-nav a:hover, .site-footer a:hover { color: var(--red); }
.header-phone {
    justify-self: end;
    text-align: right;
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.header-phone small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.header-phone:hover span { color: var(--red); }

.hero { position: relative; color: var(--white); background: var(--dark); isolation: isolate; }
.hero-picture {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 39%;
    display: block;
    overflow: hidden;
}
.hero-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% 56%; }
.hero-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark), rgba(27, 28, 32, .42) 24%, transparent 63%),
        linear-gradient(0deg, rgba(14, 15, 18, .21), transparent 46%);
}
.hero-inner { display: flex; align-items: center; min-height: clamp(432px, 39vw, 570px); }
.hero-copy { width: 53%; padding-block: 56px; }
.hero-address {
    display: inline-block;
    color: var(--pale);
    font-weight: 560;
    font-size: .89rem;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}
.hero-address span { margin-left: .18em; }
h1 {
    font-size: clamp(2.65rem, 4.9vw, 4.65rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.055em;
}
.hero h1 { margin-top: 17px; }
.hero p { margin-top: 20px; max-width: 370px; color: var(--pale); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, .booking-submit input {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.button-primary, .booking-submit input { background: var(--red); color: var(--white); }
.button-primary:hover, .booking-submit input:hover { background: var(--red-hover); }
.button-outline { border-color: #a4a6ae; }
.hero .button-outline:hover, .contacts .button-outline:hover { background: #34353b; color: white; }
.hero a:focus-visible, .contacts a:focus-visible { outline-color: #ffeab0; }

.contact-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.contact-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1.65fr auto;
    gap: 26px;
    align-items: center;
    padding-block: 19px;
}
.contact-strip-inner div { display: grid; gap: 2px; }
.contact-strip-inner div + div { border-left: 1px solid var(--line); padding-left: 26px; }
.contact-strip-inner div > span { font-size: .82rem; color: var(--muted); }
.contact-strip-inner strong { font-weight: 680; }
.text-link {
    color: var(--red-hover);
    font-weight: 680;
    text-underline-offset: .21em;
    text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--ink); }

.section { padding-block: clamp(38px, 6vw, 80px); }
.section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px 20px;
    margin-bottom: 25px;
}
h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}
.service img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #e4e0dc; }
.service > div { padding: 16px 34px 16px 15px; }
.service:hover { border-color: var(--red); }
.service h3 { font-size: 1.04rem; line-height: 1.3; font-weight: 760; }
.service p { margin-top: 5px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.service-arrow { position: absolute; right: 14px; bottom: 16px; color: var(--red); }
.service-more { display: inline-block; margin-top: 18px; }

.contacts { background: var(--dark); color: var(--white); padding-block: clamp(38px, 6vw, 67px); }
.contacts-inner { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 24px; }
.contacts .address { margin: 10px 0 19px; color: var(--pale); }
.contacts-details {
    border-left: 1px solid #777980;
    padding-left: 32px;
    display: grid;
    gap: 5px;
    justify-items: start;
}
.contacts-details p { color: var(--pale); }
.contacts-details a { font-size: 1.32rem; font-weight: 750; text-decoration: none; }
.contacts-details a:hover { text-decoration: underline; }

.booking { padding-bottom: clamp(38px, 6vw, 75px); }
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-block: 22px;
    font-size: .86rem;
    color: var(--muted);
}
.breadcrumbs a { text-underline-offset: .2em; }
.booking-layout {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro form" "help form";
    gap: 26px clamp(35px, 6vw, 86px);
    align-items: start;
}
.booking-intro { grid-area: intro; padding-top: 14px; }
.booking-intro h1 { font-size: clamp(2.4rem, 5vw, 4.05rem); }
.booking-intro p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; max-width: 330px; }
.booking-help { grid-area: help; border-top: 1px solid var(--line); padding-top: 22px; }
.booking-help h2 { font-size: 1.1rem; letter-spacing: -.015em; }
.booking-help .contact-phone {
    display: inline-block;
    margin-block: 6px 0;
    color: var(--ink);
    font-weight: 750;
    font-size: 1.34rem;
    text-decoration: none;
}
.booking-help .contact-phone:hover { text-decoration: underline; }
.booking-help p { color: var(--muted); margin-bottom: 12px; }
.form-panel {
    grid-area: form;
    padding: clamp(17px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(31, 20, 21, .05);
}
.test-note {
    margin-bottom: 22px;
    padding: 9px 11px;
    border-left: 3px solid #936443;
    border-radius: 3px;
    background: #fbf3e8;
    color: #5e4230;
    font-size: .83rem;
}
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.booking-field-wide { grid-column: 1 / -1; }
.booking-field label { display: block; margin-bottom: 5px; font-weight: 680; }
.booking-field > br { display: none; }
.booking-field .wpcf7-form-control-wrap { display: block; }
.booking-field .optional { margin-left: 5px; color: var(--muted); font-weight: 400; font-size: .81rem; }
.booking-field input, .booking-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 9px 10px;
    border: 1px solid #a5a5aa;
    border-radius: 4px;
    color: var(--ink);
    background: #fcfcfb;
}
.booking-field textarea { height: 98px; min-height: 88px; resize: vertical; }
.booking-field input::placeholder, .booking-field textarea::placeholder { color: #64656b; opacity: 1; }
.booking-consent { margin-top: 17px; font-size: .88rem; }
.booking-consent .wpcf7-list-item { margin: 0; }
.booking-consent label { display: inline-flex; min-height: 30px; gap: 8px; align-items: start; cursor: pointer; padding-block: 4px; }
.booking-consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red); }
.booking-consent a { display: block; width: fit-content; color: var(--red-hover); text-underline-offset: .2em; }
.booking-submit { margin-top: 20px; }
.form-panel p:empty, .form-panel img.ajax-loader, .wpcf7-response-output:empty { display: none; }
.form-panel input.wpcf7-not-valid, .form-panel textarea.wpcf7-not-valid { border-color: var(--red); }
.form-panel .wpcf7-not-valid-tip { display: block; margin-top: 5px; color: var(--red-hover); font-size: .81rem; }
.form-panel .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 10px;
    background: #fcf1f1;
    border: 1px solid #dab8bc;
    border-radius: 4px;
    color: #7b1725;
    font-weight: 630;
}
.form-panel .wpcf7-mail-sent-ok { background: #e9f5ec; border-color: #94bb9c; color: #164e26; }
.form-panel .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding-block: 22px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 7px 24px; font-size: .86rem; color: var(--muted); }
.site-footer nav a { text-decoration: none; }

@media (max-width: 950px) {
    .wrap { width: calc(100% - 48px); }
    .site-header-inner { gap: 19px; }
    .brand { width: 147px; }
    .site-nav { gap: 17px; }
    .hero-copy { width: 58%; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .wrap { width: calc(100% - 32px); }
    .site-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 11px;
        padding-top: 9px;
    }
    .brand { width: min(145px, 100%); }
    .header-phone { grid-column: 2; grid-row: 1; font-size: .88rem; }
    .header-phone small { font-size: .69rem; }
    .site-nav { grid-column: 1 / -1; justify-content: space-between; gap: 10px; }
    .site-nav a { font-size: .83rem; }
    .hero { display: flex; flex-direction: column; }
    .hero-inner { min-height: 0; order: -1; }
    .hero-copy { width: 100%; padding-block: 26px 22px; }
    .hero h1 { font-size: clamp(2.25rem, 9.6vw, 3.65rem); margin-top: 13px; }
    .hero p { font-size: .99rem; margin-top: 13px; }
    .hero-address { font-size: .8rem; }
    .actions { margin-top: 20px; gap: 8px; }
    .actions .button { padding-inline: 12px; gap: 7px; font-size: .87rem; }
    .hero-picture { position: relative; inset: auto; width: 100%; height: clamp(180px, 47vw, 260px); }
    .hero-picture img { object-position: 50% 56%; }
    .hero-picture::after { background: linear-gradient(180deg, rgba(27, 28, 32, .35), transparent 43%); }
    .contact-strip-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-block: 13px; }
    .contact-strip-inner div:nth-child(2) { display: none; }
    .contact-strip-inner div:last-child { border-left: 0; padding-left: 0; }
    .contact-strip-inner strong, .contact-strip-inner a { font-size: .82rem; }
    .section-heading { margin-bottom: 17px; }
    .service-grid { gap: 10px; }
    .service > div { padding: 10px 20px 10px 9px; }
    .service h3 { font-size: .94rem; }
    .service p { font-size: .8rem; }
    .service-arrow { right: 7px; bottom: 7px; }
    .contacts-inner { grid-template-columns: 1fr; }
    .contacts-details { border-left: 0; border-top: 1px solid #777980; padding: 14px 0 0; }
    .breadcrumbs { padding-block: 13px; }
    .booking-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "help"; gap: 17px; }
    .booking-intro { padding-top: 0; }
    .booking-intro p { font-size: .96rem; margin-top: 9px; }
    .form-panel { padding: 14px; }
    .test-note { margin-bottom: 15px; }
    .booking-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .booking-field .optional { display: block; margin-left: 0; }
    .booking-submit input { width: 100%; }
    .site-footer-inner { padding-block: 16px; }
}
