﻿:root {
  color-scheme: light;
  --canvas: #f5f4ef;
  --paper: #fff;
  --ink: #202421;
  --muted: #525952;
  --line: #d2d5cc;
  --accent: #9d321b;
  --accent-hover: #7c2715;
  --workshop: #202c28;
  --mist: #e9ede8;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #34716c; outline-offset: 4px; }
.container { width: min(73rem, 100% - 5rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1; top: .5rem; left: .5rem; padding: .75rem; background: var(--paper); }
.skip-link:not(:focus) { clip-path: inset(50%); }

.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; min-height: 4.5rem; gap: clamp(1rem, 4vw, 3rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-inline-end: auto; font-size: 1.375rem; font-weight: 800; text-decoration: none; }
.mark { width: 1.2rem; height: 1.2rem; background: var(--accent); clip-path: polygon(0 0, 29% 0, 29% 42%, 68% 0, 100% 0, 56% 50%, 100% 100%, 66% 100%, 29% 60%, 29% 100%, 0 100%); }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); font-weight: 600; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: .25rem; background: var(--accent); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent-hover); }
.header-action { min-height: 2.75rem; background: transparent; color: var(--ink); border-color: var(--line); }
.header-action:hover { background: var(--mist); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.25rem, 3vw, 3rem); margin-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero-copy { padding-block: .25rem; }
.label { font-size: .875rem; font-weight: 700; }
.hero .label { color: var(--accent); }
h1, h2 { text-wrap: balance; }
h1 { margin-block: 1rem 1.25rem; font-size: clamp(2.4rem, 5.45vw, 5.3rem); line-height: .98; font-weight: 760; letter-spacing: -.066em; }
.hero-copy > p { max-width: 34ch; color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.actions { margin-top: 1.75rem; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; border-radius: .25rem; }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.04; font-weight: 760; letter-spacing: -.054em; }
h3 { font-size: 1.2rem; line-height: 1.2; }

.services { margin-block-end: clamp(3rem, 6vw, 5rem); }
.service-list { margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.service-list article { display: grid; grid-template-columns: 1fr 1.35fr 7rem max-content; gap: 1rem; align-items: center; padding-block: 1.05rem; border-top: 1px solid var(--line); }
.service-list article > p:not(.price), .section-note, .form-note { color: var(--muted); line-height: 1.55; }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.text-link { justify-self: end; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); font-weight: 650; text-underline-offset: .25em; }
.text-link:hover { color: var(--accent-hover); }

.booking-section { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--workshop); color: #fff; }
.booking-section .section-note { color: #d8dfd9; }
.section-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.25rem, 5vw, 5rem); align-items: start; }
.section-note { max-width: 34ch; margin-top: .9rem; }
.panel { padding: clamp(1rem, 3vw, 1.75rem); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .35rem; }
.form { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .9rem; }
.form label { display: grid; min-width: 0; gap: .45rem; font-weight: 650; }
.form select { width: 100%; min-height: 3rem; padding: .5rem .65rem; color: var(--ink); background: var(--paper); border: 1px solid #9aa39a; border-radius: .25rem; }
.form .button, .form-note, .form .result { grid-column: 1 / -1; }
.form .button { justify-self: start; margin-top: .25rem; }
.form-note { font-size: .875rem; }
.result:empty { height: 0; margin: 0; padding: 0; }
.form .result:empty { margin-top: -.9rem; }
.notification { padding: 1rem; border: 1px solid var(--line); border-inline-start: .25rem solid var(--accent); border-radius: .25rem; background: var(--canvas); }
.notification h3 { margin-block: .35rem; }
.notification-source { color: var(--muted); }
.notification-message { margin-top: .65rem; white-space: pre-line; line-height: 1.55; }

.bot-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.bot { padding: 0; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; flex: 0 0 2.6rem; height: 2.6rem; border-radius: .25rem; color: white; background: var(--workshop); font-weight: 800; }
.chat-head strong, .chat-head div span { display: block; }
.chat-head div span { font-size: .875rem; color: var(--muted); }
.reset { margin-inline-start: auto; min-height: 2.75rem; padding: .4rem .65rem; background: transparent; border: 1px solid var(--line); border-radius: .25rem; color: var(--ink); font-weight: 650; }
.reset:hover { background: var(--mist); }
.chat-log { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; min-height: 6rem; max-height: 16rem; overflow-y: auto; padding: 1rem; background: var(--mist); }
.bubble { flex: none; max-width: 92%; padding: .65rem .8rem; line-height: 1.45; border-radius: .35rem; background: var(--paper); overflow-wrap: anywhere; }
.bubble.visitor { align-self: end; background: var(--workshop); color: white; }
.chat-options { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1rem; }
.chat-options:empty { display: none; }
.chat-options button { min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid #a7afa6; border-radius: .25rem; background: var(--paper); color: var(--ink); font-weight: 650; }
.chat-options button:hover { border-color: var(--accent); color: var(--accent-hover); }
.bot .result:not(:empty) { margin: 1rem; }
.footer { padding-block: 1.35rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (max-width: 58rem) {
  .container { width: calc(100% - 3rem); }
  .service-list article { grid-template-columns: 1fr auto; gap: .3rem 1rem; }
  .service-list .price { grid-row: 1; grid-column: 2; justify-self: end; }
  .service-list .text-link { justify-self: start; grid-column: 1 / -1; }
}
@media (max-width: 68rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .form label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 43rem) {
  .container { width: calc(100% - 2rem); }
  .top-inner { min-height: 4rem; gap: .6rem; }
  nav { gap: .75rem; font-size: .875rem; }
  .header-action { display: none; }
  .hero { grid-template-columns: 1fr; margin-block: 1.4rem 2.75rem; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .section-split { grid-template-columns: 1fr; }
}
@media (max-width: 22rem) {
  .form { grid-template-columns: 1fr; }
  .chat-head { gap: .5rem; padding-inline: .75rem; }
  .reset { font-size: .875rem; }
}

