/* TOKENS AND BASE */
:root {
  --primary-color: #202322;
  --secondary-color: #343936;
  --accent-color: #f38a58;
  --text-color: #252925;
  --bg-color: #f5f4ef;
  --card-bg: #fff;
  --muted: #62665f;
  --line: #d8dad2;
  --light: #f5f4ef;
  --radius: 8px;
  --container: 1200px;
  --section-space: 44px;
  --font: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text-color); background: var(--bg-color); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 30px; letter-spacing: -.035em; }
em { font-style: normal; color: var(--accent-color); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a9461c; outline-offset: 5px; }
.hero :focus-visible, .header :focus-visible, .footer :focus-visible, .about :focus-visible { outline-color: var(--accent-color); }
.container { width: min(100%, var(--container)); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-space) 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; }
.section-heading { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 14px; color: var(--muted); }
.section-heading > p { color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 22px; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; transition: background .3s ease, transform .3s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #202322; background: var(--accent-color); }
.button-primary:hover { background: #ffa77c; }
.button-outline { border-color: #8a8f85; background: transparent; }
.button-outline:hover { background: #e6e7df; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px; background: white; }
/* HEADER */
.header { position: sticky; z-index: 20; top: 0; color: var(--light); background: var(--primary-color); border-bottom: 1px solid #424640; }
.header-inner { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: .1em; }
.brand-sub { display: block; margin-top: 7px; font-size: 10px; font-weight: 500; letter-spacing: .36em; }
.brand-mark { position: relative; display: flex; align-items: center; width: 37px; height: 40px; color: var(--accent-color); font-size: 42px; font-weight: 900; letter-spacing: -.2em; }
.brand-mark > span { position: absolute; top: 5px; right: 0; font-size: 22px; }
.menu-toggle { display: none; justify-content: center; flex-direction: column; gap: 7px; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 1px solid #70756d; border-radius: 4px; background: transparent; }
.js .menu-toggle { display: flex; }
.menu-toggle > span { display: block; height: 2px; width: 22px; background: var(--light); }
#navigation { display: flex; flex-wrap: wrap; gap: 6px 17px; order: 3; width: 100%; padding-bottom: 12px; }
.js #navigation { display: none; }
.js #navigation.is-open { display: flex; }
#navigation a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
#navigation a:hover { color: var(--accent-color); }
.header-phone { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-phone span { display: block; color: var(--accent-color); text-align: right; font-size: 11px; }
/* HERO SECTION */
.hero { overflow: hidden; color: var(--light); background: var(--primary-color); }
.hero-grid { display: grid; }
.hero-copy { padding: 36px 0; animation: arrive .7s ease both; }
.hero .eyebrow { color: #c2c7bd; font-size: 10px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent-color); }
h1 { margin-top: 23px; font-size: clamp(32px, 8.4vw, 62px); font-weight: 650; line-height: 1.08; letter-spacing: -.05em; }
.hero-description { margin: 25px 0 28px; color: #c1c6bd; font-size: 17px; }
.hero .text-link { color: var(--light); }
.rating { display: inline-flex; align-items: center; gap: 16px; margin-top: 32px; }
.rating > strong { font-size: 28px; letter-spacing: -.05em; }
.rating strong span { margin-left: 4px; font-size: 21px; color: var(--accent-color); }
.rating > span { padding-left: 16px; border-left: 1px solid #62675d; font-size: 12px; }
.rating small { display: block; color: #c1c6bd; font-size: 12px; }
.hero-photo { position: relative; min-height: 310px; }
.hero-photo > img { height: 100%; min-height: 310px; object-position: 53% center; }
.photo-tag { position: absolute; top: 16px; left: 16px; padding: 6px 9px; color: white; background: #202322; font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.photo-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; color: white; background: #202322ed; }
.photo-caption > span { font-size: 10px; letter-spacing: .07em; }
.photo-caption strong { font-size: 16px; letter-spacing: 0; }
.photo-caption a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #91958b; border-radius: 50%; font-size: 24px; }
.hero-foot { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; color: #c1c6bd; font-size: 9px; letter-spacing: .05em; }
.hero-foot > span:first-child { display: none; }
.hero-foot i { margin: 0 6px; color: var(--accent-color); font-style: normal; }
/* ADVANTAGES */
.advantages { padding: 32px 0; border-bottom: 1px solid var(--line); }
.advantages-grid { display: grid; gap: 28px; }
.advantages article { display: flex; align-items: flex-start; gap: 18px; }
.advantages svg { flex: 0 0 32px; width: 32px; height: 32px; stroke: #a7471e; fill: none; stroke-width: 1.4; }
.advantages h2 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.02em; }
.advantages p { color: var(--muted); font-size: 16px; }
/* SERVICES */
.services-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; min-width: 0; min-height: 290px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px #2529250d; }
.service-card:first-child { border-top: 3px solid #b64f22; }
.service-number { margin-bottom: 26px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.service-card h3 { margin-bottom: 14px; font-size: 22px; letter-spacing: -.025em; }
.service-card p { margin-bottom: 25px; color: var(--muted); }
.service-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.service-bottom strong { font-size: 24px; }
.service-bottom a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f0f0e9; font-size: 23px; }
.catalog-footer { margin-top: 24px; }
.catalog-footer > p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.catalog { margin-top: 25px; }
.catalog h3 { margin-bottom: 15px; font-size: 26px; }
.catalog p { margin-bottom: 20px; color: var(--muted); }
.catalog p a { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 5px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody th { width: 70%; font-weight: 500; overflow-wrap: anywhere; }
td:last-child { white-space: nowrap; text-align: right; font-weight: 600; }
/* ABOUT */
.about { color: var(--light); background: var(--primary-color); }
.about-grid { display: grid; gap: 35px; }
.about-copy { order: 2; }
.about-copy .eyebrow { margin-bottom: 20px; color: #c1c6bd; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p:not(.eyebrow) { margin-bottom: 18px; color: #c1c6bd; }
.about-copy .text-link { margin-top: 8px; color: var(--accent-color); }
.about-photos { position: relative; padding-bottom: 35px; }
.workshop-photo { width: 78%; height: 330px; object-position: 50% 50%; border-radius: 4px; }
.small-photo { position: absolute; right: 0; bottom: 0; width: 43%; border: 7px solid var(--primary-color); border-radius: 4px; }
.small-photo img { height: 155px; }
.small-photo > span { display: block; padding-top: 10px; font-size: 9px; letter-spacing: .08em; }
/* REVIEWS */
.reviews-hint { margin: -8px 0 18px; color: var(--muted); font-size: 13px; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; align-items: start; gap: 16px; padding-bottom: 15px; overflow-x: auto; scroll-snap-type: x mandatory; }
.review { min-width: 0; max-height: 420px; padding: 24px; overflow-y: auto; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); scroll-snap-align: start; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #ebece4; border-radius: 50%; font-weight: 600; }
.review h3 { font-size: 15px; }
.review time { color: var(--muted); font-size: 11px; }
.stars { color: #a8471e; font-size: 12px; letter-spacing: .03em; }
.review blockquote { margin: 20px 0 0; font-size: 16px; line-height: 1.65; }
/* CONTACTS */
.contacts { border-top: 1px solid var(--line); }
.contacts-grid { display: grid; gap: 30px; }
.contact-info h3 { margin-bottom: 18px; font-size: 25px; }
address { font-style: normal; font-size: 20px; line-height: 1.5; }
.contact-hours { display: grid; gap: 10px; margin: 25px 0; }
.contact-hours span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.contact-hours strong { color: var(--text-color); font-size: 16px; font-weight: 500; }
.contact-phones { display: flex; flex-direction: column; margin: 22px 0; gap: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.contact-phones a { min-height: 44px; }
.contact-info .actions { gap: 12px; }
.location { position: relative; min-height: 330px; }
.location > img { height: 100%; min-height: 330px; object-position: 40% center; border-radius: var(--radius); }
.location-card { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--bg-color); border-radius: 4px; }
.location-card .eyebrow { font-size: 10px; color: var(--muted); }
.location-card strong { font-size: 21px; }
.location-card a { min-height: 44px; padding-top: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
/* FOOTER AND DIALOGS */
.footer { padding: 30px 0; color: var(--light); background: var(--primary-color); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; }
.footer p, .footer a:not(.brand), .privacy-link { font-size: 12px; color: #c1c6bd; }
.footer a:not(.brand), .privacy-link { display: inline-flex; align-items: center; min-height: 44px; }
.privacy-link { padding: 0; border: 0; background: transparent; text-decoration: underline; }
dialog { position: fixed; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 40px); padding: 52px 20px 25px; overflow: auto; color: var(--text-color); background: var(--bg-color); border: none; border-radius: var(--radius); box-shadow: 0 20px 100px #0005; }
dialog::backdrop { background: #111a; }
dialog .catalog { margin-top: 0; }
.dialog-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: none; border-radius: 50%; background: #e2e4db; }
#privacy-dialog h2, #privacy-dialog p { margin-bottom: 20px; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* TABLET */
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .container { padding: 0 32px; }
  .hero-foot { padding-top: 22px; padding-bottom: 22px; }
  h2 { font-size: 38px; }
  .header-inner { flex-wrap: nowrap; }
  .header-phone { font-size: 17px; }
  .js #navigation.is-open { position: absolute; top: 82px; left: 0; padding: 20px 32px; background: var(--primary-color); }
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 35px; padding-bottom: 35px; }
  .hero-copy { padding: 30px 20px 25px 0; }
  h1 { font-size: 43px; }
  .hero-photo { min-height: 440px; }
  .hero-photo > img { position: absolute; height: 100%; }
  .hero-foot > span:first-child { display: block; }
  .hero-foot { font-size: 10px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contacts-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; }
  .about-copy { order: 0; }
  .workshop-photo { height: 420px; }
  .small-photo img { height: 175px; }
  .reviews-grid { grid-auto-flow: initial; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .reviews-hint { display: none; }
  .review { max-height: none; overflow: visible; }
  .location { align-self: stretch; }
  .footer p { margin-left: auto; }
  dialog { padding: 50px 35px 30px; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { min-height: 95px; }
  .js .menu-toggle { display: none; }
  #navigation, .js #navigation, .js #navigation.is-open { position: static; display: flex; justify-content: center; order: 0; width: auto; margin: 0 auto; padding: 0; gap: 22px; }
  .header-phone { margin: 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; padding-top: 48px; padding-bottom: 44px; }
  h1 { font-size: 58px; }
  .hero-copy { padding: 30px 25px 25px 0; }
  .hero .eyebrow { font-size: 11px; }
  .hero-description { font-size: 18px; }
  .hero-photo { min-height: 490px; }
  .hero-photo > img { object-position: 48% center; }
  .rating { margin-top: 44px; }
  .hero-foot { border-top: 1px solid #424640; }
  .advantages { padding: 35px 0; }
  .advantages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .advantages p { font-size: 14px; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 36px; }
  .section-heading > p { font-size: 14px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { padding: 30px; }
  .catalog-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .catalog-footer > p { margin: 0; }
  #price-details[open] { width: 100%; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 85px; }
  .about-copy h2 { font-size: 42px; }
  .workshop-photo { height: 465px; }
  .small-photo img { height: 205px; }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contacts-grid { gap: 60px; }
  .contact-hours span { flex-direction: row; justify-content: space-between; max-width: 370px; }
  .footer-inner { gap: 30px; }
}
/* WIDE SCREENS AND MOTION PREFERENCES */
@media (min-width: 1440px) { h1 { font-size: 64px; } .hero-photo { min-height: 510px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  *, *::before, *::after { animation: none; transition: none; }
}
