/* FOUNDATION */
:root {
  --primary-color: #d92e25;
  --secondary-color: #17191b;
  --accent-color: #fa5448;
  --text-color: #242628;
  --bg-color: #f5f4f1;
  --card-bg: #fff;
  --muted: #626568;
  --line: #deded9;
  --radius: 6px;
  --container: 1200px;
  --section-space: 48px;
  --font: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 146px; }
body { margin: 0; color: var(--text-color); background: var(--bg-color); font: 16px/1.65 var(--font); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #cc3328; outline-offset: 5px; }
img { display: block; max-width: 100%; object-fit: cover; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: 34px; font-weight: 650; letter-spacing: -1.2px; }
h3 { font-weight: 650; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: var(--section-space) 0; }
.eyebrow { margin-bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.icon { flex-shrink: 0; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 22px; padding: 13px 22px; color: #fff; background: var(--primary-color); border: 1px solid var(--primary-color); border-radius: var(--radius); font-size: 14px; font-weight: 650; transition: background .3s ease, transform .3s ease; }
.button:hover { background: #b5221b; transform: translateY(-2px); }
.button.outline { color: var(--text-color); background: transparent; border-color: #b7b9b8; }
.button.outline:hover { background: #e8e7e3; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--accent-color); }
.text-link.dark { border-bottom: 1px solid #babcb9; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px; background: white; color: black; }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 10; color: #fff; background: #17191b; border-bottom: 1px solid #333538; }
.header-inner { display: grid; grid-template-columns: 1fr 44px; min-height: 78px; padding-block: 14px 10px; align-items: center; justify-content: space-between; gap: 12px 18px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.brand-symbol { display: grid; width: 43px; height: 39px; place-items: center; color: white; background: var(--primary-color); border-radius: 3px; font-style: italic; font-size: 25px; letter-spacing: -4px; padding-right: 4px; }
.brand small { display: block; margin-top: 7px; color: #c0c1c1; font-size: 7px; font-weight: 500; letter-spacing: 1.5px; }
.header-contact { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #3a3c3e; }
.header-phone { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 650; }
.small { min-height: 44px; padding: 5px 12px; font-size: 12px; gap: 10px; }
.small .icon { width: 16px; }
.menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid #4c4e50; border-radius: 4px; background: transparent; }
.menu-toggle span { width: 20px; height: 1px; background: white; }
.navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 20px; background: #202224; border-bottom: 1px solid #555; }
.navigation.open { display: grid; }
.navigation a { min-height: 44px; padding: 10px 0; font-size: 14px; color: #e4e5e5; }
.navigation a:hover { color: var(--accent-color); }
/* HERO */
.hero { position: relative; overflow: hidden; color: white; background: var(--secondary-color); }
.hero-photo { height: 270px; }
.hero-photo img { width: 100%; height: 100%; object-position: 55% 52%; }
.hero-inner { position: relative; }
.hero-copy { padding: 34px 0 36px; animation: enter .7s ease both; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; color: #d4d5d5; }
.red-line { width: 27px; height: 2px; background: var(--accent-color); }
h1 { margin-bottom: 22px; font-size: clamp(37px, 8vw, 62px); font-weight: 650; letter-spacing: -1.8px; }
h1 span { color: var(--accent-color); }
.hero-lead { max-width: 440px; color: #cccecf; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; margin-top: 30px; }
.hero-hours { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: #b9bcbd; font-size: 12px; }
.hero-hours .icon { width: 17px; }
.hero-hours b { margin-left: 12px; color: #f0f0f0; font-weight: 500; }
.photo-caption { display: none; }
.hero-baseline { border-top: 1px solid #454749; }
.baseline-inner { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: #c3c5c5; }
.baseline-inner>span { display: flex; gap: 10px; align-items: center; }
.baseline-inner .icon { width: 17px; }
.baseline-inner>a { display: none; font-size: 9px; letter-spacing: 1.5px; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* ADVANTAGES */
.advantages { display: grid; padding-block: 14px; }
.advantages article { display: flex; align-items: flex-start; gap: 18px; padding: 28px 0; }
.advantages article+article { border-top: 1px solid var(--line); }
.advantages .icon { width: 27px; height: 27px; color: var(--primary-color); }
.advantages h2 { margin: 2px 0 10px; font-size: 18px; letter-spacing: -.3px; }
.advantages p { color: var(--muted); font-size: 14px; line-height: 1.65; }
/* SERVICES */
.services { background: #eaeae6; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.heading-note { max-width: 330px; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; gap: 14px; }
.service-card { display: flex; flex-direction: column; min-width: 0; min-height: 290px; padding: 27px; background: var(--card-bg); border: 1px solid #dedfdb; border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px #2020200c; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: var(--primary-color); }
.card-top .icon { width: 29px; height: 29px; }
.serial { color: #686b6d; font: 12px Consolas, monospace; }
.service-card h3 { max-width: 310px; margin-bottom: 12px; font-size: 20px; line-height: 1.25; letter-spacing: -.4px; }
.service-card p { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.service-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #e9e9e6; }
.service-bottom strong { font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
.service-bottom a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.service-bottom a:hover { color: white; background: var(--primary-color); }
.services-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.services-footer p { max-width: 450px; color: var(--muted); font-size: 14px; }
/* ABOUT */
.about-grid { display: grid; gap: 32px; }
.about-copy { order: 2; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy>p:not(.eyebrow) { max-width: 470px; margin-bottom: 18px; color: var(--muted); }
.about-copy .text-link { margin-top: 10px; }
.about-label { display: flex; align-items: center; gap: 20px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 1.5px; }
.about-label>span { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -3px; color: var(--primary-color); }
.about-photo img { width: 100%; height: 350px; border-radius: var(--radius) var(--radius) 0 0; }
.about-photo figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 15px; color: #e9e9e9; background: var(--secondary-color); font-size: 8px; letter-spacing: 1px; }
.details-grid { display: grid; gap: 24px; margin-top: 38px; }
.details-grid img { width: 100%; height: 240px; border-radius: var(--radius); }
.details-grid figcaption { margin-top: 10px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.detail-note { display: none; }
/* REVIEWS */
.reviews { background: #eaeae6; }
.review-grid { display: flex; gap: 16px; overflow-x: auto; align-items: stretch; scroll-snap-type: x mandatory; padding: 5px 2px 20px; }
.review-card { display: flex; flex: 0 0 94%; flex-direction: column; padding: 26px; background: var(--card-bg); border-radius: var(--radius); scroll-snap-align: start; }
.stars { margin-bottom: 20px; color: #ae281e; font-size: 17px; letter-spacing: 3px; }
.review-card blockquote { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.avatar { display: grid; width: 38px; height: 38px; flex-shrink: 0; place-items: center; background: #eeefeb; border-radius: 50%; font-size: 14px; font-weight: 600; }
.review-author h3 { font-size: 13px; line-height: 1.4; }
.review-author time { color: var(--muted); font-size: 11px; }
.mobile-hint { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
/* CONTACTS */
.contacts { color: white; background: var(--secondary-color); }
.contacts-grid { display: grid; gap: 40px; }
.contacts .eyebrow { color: #bfc1c2; }
.contacts h2 { margin-bottom: 24px; }
.contact-copy>p:not(.eyebrow) { max-width: 330px; color: #c2c4c5; }
.contact-lines { display: grid; gap: 23px; margin: 30px 0; }
.contact-lines>div { display: flex; align-items: flex-start; gap: 18px; }
.contact-lines .icon { margin-top: 5px; color: var(--accent-color); width: 20px; }
.contact-lines a { display: block; font-size: 21px; line-height: 1.8; }
.contact-lines a:hover { color: var(--accent-color); }
address { font-style: normal; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.light { color: white; border-color: #626567; }
.button.light:hover { background: #36393b; }
.viber-link { display: inline-block; margin-top: 20px; color: #c3c5c6; font-size: 12px; padding-block: 6px; }
.map-panel { display: flex; min-width: 0; flex-direction: column; background: #d8d9d4; border-radius: var(--radius); overflow: hidden; }
.map-panel iframe { width: 100%; min-height: 360px; flex: 1; border: 0; }
.map-link { display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 16px 24px; color: var(--text-color); background: white; font-size: 14px; font-weight: 600; }
.map-link:hover { background: #f2f2f0; }
/* FOOTER */
.footer { padding: 32px 0; color: #aeb0b1; background: #121416; border-top: 1px solid #353739; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; font-size: 11px; }
.footer .brand { color: white; }
.privacy-link { min-height: 44px; padding: 0; border: 0; color: #b8babc; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.back-top { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #484a4c; border-radius: 50%; font-size: 20px; }
/* DIALOGS */
dialog { width: min(1060px, calc(100% - 24px)); max-height: calc(100dvh - 40px); padding: 24px; color: var(--text-color); background: var(--bg-color); border: 0; border-radius: 8px; }
dialog::backdrop { background: #050607cc; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.dialog-header h2 { font-size: 28px; }
.dialog-close { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; padding: 0; border: 1px solid #bbb; border-radius: 50%; background: transparent; font-size: 30px; line-height: 1; }
.dialog-note { margin-top: 24px; }
.dialog-note a { text-decoration: underline; }
#privacy-dialog { max-width: 650px; }
#privacy-dialog p+p { margin-top: 16px; }
/* TABLET */
@media (min-width: 768px) {
  html { scroll-padding-top: 96px; }
  :root { --section-space: 64px; }
  .header-inner { display: flex; padding-block: 0; }
  .header-contact { gap: 20px; margin-left: auto; padding-top: 0; border: 0; }
  .header-phone { font-size: 14px; font-weight: 650; }
  .small { min-height: 44px; padding: 8px 15px; font-size: 12px; gap: 14px; }
  .small .icon { width: 16px; }
  .menu-toggle { order: 3; }
  .hero-photo { position: absolute; inset: 0 0 0 32%; height: auto; }
  .hero-photo::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg,#17191b 0%,#17191bcc 18%,#17191b0d 74%),linear-gradient(0deg,#17191b55,transparent 35%); }
  .hero-copy { position: relative; z-index: 1; padding: 70px 0; }
  .hero-copy h1 { font-size: 58px; }
  .hero-lead { max-width: 360px; }
  .hero-baseline { position: relative; background: #17191bc4; }
  .baseline-inner>a { display: flex; gap: 22px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; padding: 0; }
  .mobile-hint { display: none; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .about-photo img { height: 460px; }
  dialog { padding: 36px; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  h2 { font-size: 46px; letter-spacing: -1.8px; }
  .header-inner { min-height: 88px; gap: 26px; }
  .brand { font-size: 23px; }
  .navigation { position: static; display: flex; gap: 24px; padding: 0; border: 0; background: transparent; margin-left: auto; }
  .navigation a { font-size: 12px; }
  .menu-toggle { display: none; }
  .header-contact { margin-left: 0; gap: 15px; }
  .hero-photo { left: 35%; }
  .hero-copy { padding: 83px 0 66px; }
  .hero-copy h1 { font-size: 66px; line-height: 1.06; }
  .hero-lead { max-width: 410px; }
  .hero-actions { margin-top: 34px; }
  .hero-hours { margin-top: 40px; }
  .photo-caption { position: absolute; bottom: 30px; right: 0; display: flex; align-items: center; gap: 12px; padding: 10px 15px; background: #17191bbf; font-size: 8px; letter-spacing: 2px; }
  .caption-cross { font-size: 22px; font-weight: 300; }
  .advantages { grid-template-columns: repeat(3,minmax(0,1fr)); padding-block: 38px; gap: 32px; }
  .advantages article { padding: 10px 0; }
  .advantages article+article { padding-left: 30px; border-top: 0; border-left: 1px solid var(--line); }
  .service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .service-card { padding: 30px; min-height: 310px; }
  .section-heading { margin-bottom: 42px; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
  .about-copy { order: 0; }
  .about-photo img { height: 500px; }
  .about-photo figcaption { padding: 18px; font-size: 9px; }
  .details-grid { grid-template-columns: 1fr 1fr .8fr; gap: 28px; margin-top: 56px; }
  .details-grid img { height: 235px; }
  .detail-note { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-left: 20px; }
  .detail-note>span { color: var(--primary-color); font-size: 64px; line-height: 1; }
  .detail-note p { margin-top: 18px; color: var(--muted); font-size: 16px; }
  .review-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .review-card { padding: 30px; }
  .contacts-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
}
@media (min-width: 1440px) {
  .hero-copy { padding-block: 96px 78px; }
  .hero-copy h1 { font-size: 72px; }
}
/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
  .hero-copy { animation: none; }
  .button, .service-card { transition: none; }
}
