/* TOKENS AND BASE */
:root {
  --primary-color: #172127;
  --secondary-color: #25343e;
  --accent-color: #ff8b45;
  --text-color: #1c292f;
  --muted-color: #536169;
  --bg-color: #f3f5f5;
  --card-bg: #fff;
  --line-color: #d8dfe1;
  --radius: 8px;
  --container: 1200px;
  --section-space: 48px;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text-color); background: var(--bg-color); }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b9470a; outline-offset: 5px; }
button, a, summary { touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h2 { margin-bottom: 24px; font-size: 32px; }
h3 { font-size: 23px; }
p { margin-bottom: 20px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); scroll-margin-top: 20px; }
.eyebrow { margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.icon { flex: 0 0 auto; width: 32px; height: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border: 1px solid var(--accent-color); border-radius: 4px; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; color: var(--primary-color); background: var(--accent-color); transition: background .3s ease, transform .3s ease; }
.button:hover { background: #ffa16c; transform: translateY(-2px); }
.button-outline { border-color: #8c979e; color: #fff; background: transparent; }
.button-outline:hover { background: #33434e; }
.button-dark { border-color: var(--primary-color); color: #fff; background: var(--primary-color); }
.button-dark:hover { background: var(--secondary-color); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; color: #fff; background: var(--primary-color); }
.skip-link:focus { top: 12px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line-color); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; line-height: 1; letter-spacing: -.04em; font-weight: 900; text-decoration: none; }
.brand-symbol { display: grid; place-items: center; width: 39px; height: 42px; font-size: 34px; font-style: italic; color: var(--primary-color); background: var(--accent-color); clip-path: polygon(17% 0,100% 0,83% 100%,0 100%); }
.brand small { display: block; margin-top: 8px; font-size: 9px; letter-spacing: .11em; font-weight: 600; }
.header nav { display: flex; flex-wrap: wrap; width: 100%; gap: 4px 18px; }
.header nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.header nav a:hover { text-decoration: underline; }
.header-phone { font-weight: 700; font-size: 15px; text-decoration: none; }
.header-phone small { display: block; color: var(--muted-color); font-size: 11px; font-weight: 400; }
.header-cta { display: none; }
.menu-toggle { display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--line-color); border-radius: 4px; background: transparent; }
.menu-toggle span { width: 24px; height: 2px; background: var(--primary-color); }
.js .header nav { display: none; }
.js .header nav.is-open { display: flex; }
/* HERO SECTION */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--primary-color); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 62% 50%; opacity: .45; }
.hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(14,24,30,.96), rgba(14,24,30,.67) 55%, rgba(14,24,30,.1)); }
.hero-content { position: relative; z-index: 1; padding-block: 48px 40px; animation: arrive .7s ease both; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; color: #e6e9eb; font-size: 11px; }
.accent-line { width: 25px; height: 3px; background: var(--accent-color); }
.hero h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(36px, 6.2vw, 76px); line-height: 1.06; letter-spacing: -.045em; }
.hero h1 span { color: var(--accent-color); }
.hero-content > p { max-width: 480px; color: #d4dce0; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button { width: 100%; }
.rating { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 13px; line-height: 1.4; text-decoration: none; }
.rating-value { padding-right: 16px; border-right: 1px solid #78848b; font-size: 32px; font-weight: 700; }
.rating-value span { color: var(--accent-color); font-size: 24px; }
.rating small { display: block; color: #bdc8ce; font-size: 12px; }
.hero-bottom { position: relative; z-index: 1; padding-block: 16px; border-top: 1px solid #ffffff26; }
.hero-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; letter-spacing: .1em; color: #c5cdd2; }
@keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
/* BENEFITS */
.benefits { padding-block: 32px; background: #fff; border-bottom: 1px solid var(--line-color); }
.benefits-grid { display: grid; gap: 28px; }
.benefits article { display: flex; gap: 18px; }
.benefits .icon { width: 28px; color: #9b3906; }
.benefits h2 { margin: 3px 0 9px; font-size: 18px; letter-spacing: -.02em; }
.benefits p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-color); }
/* SERVICES */
.section-heading { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 16px; }
.section-intro { color: var(--muted-color); }
.services-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--card-bg); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #1721270d; }
.service-card .icon { margin-bottom: 24px; color: #a54009; }
.service-card h3 { margin-bottom: 16px; }
.service-card p { color: var(--muted-color); font-size: 16px; line-height: 1.65; }
.service-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-color); }
.service-bottom strong { font-size: 27px; letter-spacing: -.04em; }
.service-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.service-help { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radius); color: #fff; background: var(--secondary-color); }
.big-mark { margin-bottom: 20px; font-size: 48px; line-height: 1; color: var(--accent-color); }
.service-help p { font-size: 15px; color: #cbd5db; }
.service-help .button { margin-top: auto; }
.catalog-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-block: 24px; }
.catalog-actions p { max-width: 600px; margin: 0; font-size: 14px; color: var(--muted-color); }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.price-row { display: grid; gap: 12px; padding-block: 20px; border-bottom: 1px solid var(--line-color); }
.price-row p { margin: 0; }
.price-row strong { white-space: nowrap; }
.catalog-note { margin-top: 24px; font-size: 14px; color: var(--muted-color); }
/* ABOUT */
.about { background: #e6ebed; }
.about-grid { display: flex; flex-direction: column-reverse; gap: 32px; }
.about-copy > p:not(.eyebrow) { color: #47565f; }
.about-hours { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #bdc8ce; }
.about-hours span { font-weight: 700; }
.about-hours small { display: block; font-size: 14px; font-weight: 400; }
.about-photos figure { position: relative; margin: 0; }
.about-photos figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.about-photos figcaption { position: absolute; bottom: 12px; left: 12px; padding: 6px 12px; border-radius: 3px; color: #fff; background: #172127; font-size: 12px; }
.workshop-photo { width: 70%; height: auto; margin: -15px 0 0 auto; border: 6px solid #e6ebed; border-radius: var(--radius); position: relative; }
/* REVIEWS */
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; align-items: start; gap: 16px; max-height: 510px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 3px 3px 18px; }
.review-card { max-height: 480px; overflow-y: auto; padding: 26px; border: 1px solid var(--line-color); border-radius: var(--radius); background: #fff; scroll-snap-align: start; }
.stars { margin-bottom: 20px; color: #a6470b; font-size: 19px; letter-spacing: 3px; }
.review-card blockquote { margin: 0 0 24px; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.review-author { border-top: 1px solid var(--line-color); padding-top: 16px; font-size: 14px; font-weight: 700; }
.review-author time { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted-color); }
.mobile-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted-color); }
/* CONTACTS */
.contacts { color: #fff; background: var(--primary-color); }
.contacts .eyebrow { color: var(--accent-color); }
.contacts-grid { display: grid; gap: 32px; }
address { font-style: normal; color: #ced7dc; }
.contact-address { font-size: 18px; }
.phone-list { display: flex; flex-direction: column; align-items: flex-start; }
.phone-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 700; text-decoration: none; color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.location-card { align-self: center; overflow: hidden; border: 1px solid #53616a; border-radius: var(--radius); }
.location-card img { width: 100%; height: auto; aspect-ratio: 16 / 11; }
.location-card > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 18px; background: var(--secondary-color); }
.location-card span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.location-card .icon { width: 21px; color: var(--accent-color); }
.location-card a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
/* FOOTER */
.footer { padding-block: 28px; color: #c4ced3; background: #111b21; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.footer .brand { color: #fff; }
.privacy-link { min-height: 44px; padding: 0; border: 0; color: inherit; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; }
/* DIALOGS */
dialog { position: fixed; width: min(780px, calc(100% - 24px)); max-height: 86dvh; padding: 24px; border: 0; border-radius: var(--radius); color: var(--text-color); background: #fff; }
dialog::backdrop { background: #0a141dd9; }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-top h2 { font-size: 27px; }
.close-dialog { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line-color); border-radius: 4px; font-size: 30px; line-height: 1; background: #f3f5f5; }
/* TABLET */
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .header-inner { flex-wrap: nowrap; }
  .header-phone { margin-left: auto; }
  .header nav { position: absolute; top: 100%; left: 0; padding: 16px 24px; border-top: 1px solid var(--line-color); background: #fff; }
  .hero-content { padding-block: 64px 48px; }
  .hero-actions .button { width: auto; }
  .hero-photo { opacity: .85; object-position: right center; }
  .hero-content > p { font-size: 18px; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .benefits article { display: block; }
  .benefits .icon { margin-bottom: 12px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-actions { flex-direction: row; justify-content: space-between; align-items: center; }
  .price-row { grid-template-columns: 1fr 90px; gap: 24px; }
  .price-row strong { text-align: right; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
  .section-heading > * { flex: 1; }
  .section-heading h2 { margin-bottom: 0; }
  .section-intro { margin-bottom: 0; }
  .reviews-grid { grid-auto-flow: row; grid-template-columns: repeat(2,1fr); max-height: none; overflow: visible; padding: 0; }
  .review-card { max-height: none; overflow: visible; }
  .mobile-hint { display: none; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  h2 { font-size: 42px; }
  .header-inner { gap: 24px; padding-block: 20px; }
  .menu-toggle { display: none; }
  .js .header nav, .header nav { position: static; display: flex; flex-wrap: nowrap; width: auto; padding: 0; border: 0; gap: 20px; }
  .header nav a { font-size: 13px; }
  .header-phone { font-size: 14px; }
  .header .brand { font-size: 24px; }
  .hero-content { padding-block: 72px 56px; }
  .hero-photo { left: 28%; width: 72%; object-position: 50% 45%; }
  .hero::after { background: linear-gradient(90deg,#172127 5%,#172127f2 32%,#17212780 65%,#17212715); }
  .hero .eyebrow { font-size: 12px; }
  .hero-bottom .container { font-size: 11px; }
  .benefits { padding-block: 36px; }
  .benefits article { display: flex; gap: 20px; }
  .benefits h2 { font-size: 18px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .section-intro { max-width: 380px; }
  .about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
  .about-photos figure img { aspect-ratio: 4 / 3; }
  .workshop-photo { margin-top: -50px; margin-right: -16px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .review-card:last-child { grid-column: span 3; }
  .contacts-grid { gap: 80px; }
}
@media (min-width: 1440px) {
  .header-cta { display: inline-flex; }
  .hero-content { padding-block: 82px 64px; }
}
/* SMALL SCREENS AND REDUCED MOTION */
@media (max-width: 374px) {
  .header-phone { width: 100%; margin-top: -8px; }
  .header-phone small { display: inline; margin-left: 12px; font-size: 10px; }
  .service-card, .service-help { padding: 22px; }
  .hero h1 { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
  .hero-content { animation: none; }
  .button, .service-card { transition: none; }
}
