/* FOUNDATION */
:root {
  --primary-color: #161a1c;
  --secondary-color: #2b3336;
  --accent-color: #ff743c;
  --text-color: #202629;
  --muted-color: #566064;
  --bg-color: #f3f5f5;
  --card-bg: #fff;
  --line-color: #dce1e2;
  --radius: 8px;
  --container: 1200px;
  --section-space: 48px;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text-color); background: var(--bg-color); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; object-fit: cover; }
svg { width: 28px; height: 28px; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -1.3px; }
h3 { font-size: 20px; letter-spacing: -.4px; }
p + p { margin-top: 18px; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #007aab; outline-offset: 5px; }
[hidden] { display: none; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { margin-bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted-color); }
.eyebrow.light { color: #e5eaec; }
.eyebrow::before { display: inline-block; width: 24px; height: 3px; margin: 0 10px 4px 0; content: ''; background: var(--accent-color); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; color: var(--primary-color); background: var(--accent-color); transition: transform .3s ease, background .3s ease; }
.button:hover { background: #ff9063; transform: translateY(-2px); }
.button-outline { border-color: #a5adaf; color: #fff; background: #161a1c80; }
.button-outline:hover { background: var(--secondary-color); }
.button-dark { color: #fff; background: var(--primary-color); }
.button-dark:hover { background: #384246; }
.button-bordered { border-color: #aab3b6; background: transparent; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; font-weight: 700; line-height: 1.5; background: none; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px; color: #fff; background: var(--primary-color); }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 10; color: #fff; background: var(--primary-color); border-bottom: 1px solid #ffffff20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 76px; gap: 10px; }
.logo { display: inline-flex; align-items: baseline; min-height: 44px; font-size: 29px; font-weight: 800; line-height: 1.5; letter-spacing: -1.5px; }
.logo span { color: var(--accent-color); }
.logo i { width: 6px; height: 6px; margin-left: 4px; background: var(--accent-color); }
.header-phone { padding-block: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.header-phone span { display: block; font-size: 12px; font-weight: 400; color: #b8c2c6; }
.menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 44px; height: 44px; border: 1px solid #ffffff60; border-radius: 4px; color: #fff; background: transparent; }
.menu-toggle span { width: 20px; height: 2px; background: currentColor; }
nav { display: flex; flex-wrap: wrap; order: 4; width: 100%; gap: 4px 20px; padding-bottom: 12px; font-size: 14px; }
nav a { display: flex; align-items: center; min-height: 44px; }
nav a:hover { color: var(--accent-color); }
.enhanced .menu-toggle { display: flex; }
.enhanced nav { display: none; }
.enhanced nav.is-open { display: flex; flex-direction: column; max-height: calc(100dvh - 90px); overflow-y: auto; }
/* HERO SECTION */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--primary-color); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 66% center; opacity: .52; }
.hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #101719f5 0%, #101719b0 45%, #10171910 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 58px 45px; animation: enter .8s ease both; }
.hero h1 { max-width: 730px; margin-bottom: 24px; font-size: clamp(36px, 5.2vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -1.8px; }
.hero h1 span { color: var(--accent-color); }
.hero-content > p { max-width: 490px; margin-bottom: 30px; font-size: 17px; color: #dce2e4; }
.hero .actions { align-items: stretch; }
.hero-rating { display: inline-flex; align-items: center; gap: 14px; margin-top: 38px; }
.hero-rating > strong { font-size: 38px; line-height: 1; letter-spacing: -2px; }
.hero-rating > span > span { display: block; font-size: 12px; }
.hero-rating .stars { font-size: 16px; }
.stars { color: #b33d0b; letter-spacing: 3px; }
.hero .stars { color: var(--accent-color); }
.hero-bottom { position: relative; z-index: 1; border-top: 1px solid #ffffff30; background: #161a1c70; }
.hero-bottom-inner { display: flex; flex-direction: column; gap: 12px; padding-block: 18px; font-size: 14px; }
.hero-bottom-inner > span:first-child { display: flex; align-items: center; gap: 10px; }
.hero-bottom svg { width: 20px; height: 20px; color: var(--accent-color); }
.hero-bottom b { margin-inline: 4px; color: var(--accent-color); }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
/* ADVANTAGES */
.advantages { display: grid; gap: 28px; padding-block: 38px; }
.advantages article { display: flex; gap: 18px; }
.advantages svg { width: 34px; height: 34px; color: #b74719; }
.advantages h2 { margin-bottom: 10px; font-size: 20px; letter-spacing: -.5px; }
.advantages p { font-size: 16px; line-height: 1.6; color: var(--muted-color); }
/* SERVICES */
.services { border-top: 1px solid var(--line-color); }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.section-heading > p { max-width: 350px; color: var(--muted-color); }
.service-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); box-shadow: 0 5px 18px #15202503; transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #15202510; }
.service-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 50%; color: #b74719; background: #fff1eb; }
.service-card h3 { margin-bottom: 12px; overflow-wrap: anywhere; }
.service-card p { margin-bottom: 24px; color: var(--muted-color); }
.price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-color); font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.8px; }
.enhanced #catalog-home .service-card:nth-child(n+7) { display: none; }
.catalog-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
.catalog-footer p { color: var(--muted-color); }
/* ABOUT */
.about { color: #fff; background: var(--primary-color); }
.about-grid { display: grid; gap: 32px; }
.about .eyebrow { color: #b9c3c6; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: #c2cbce; }
.about-copy .text-link { margin-top: 24px; color: var(--accent-color); }
.about-photo { order: -1; }
.about-photo img { width: 100%; height: 300px; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 12px; font-size: 14px; color: #b9c3c6; }
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.photo-strip img { width: 100%; height: 180px; border-radius: var(--radius); }
.photo-strip p { grid-column: 1 / -1; padding-top: 12px; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.photo-strip p span { color: var(--accent-color); }
/* REVIEWS */
.review-grid { display: grid; grid-auto-columns: 90%; grid-auto-flow: column; gap: 16px; overflow-x: auto; padding: 4px 4px 20px; scroll-snap-type: x mandatory; }
.review-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--card-bg); scroll-snap-align: start; }
.review-card .stars { margin-bottom: 18px; }
blockquote { margin: 0 0 30px; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-author h3 { font-size: 16px; line-height: 1.4; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; font-weight: 700; color: #465358; background: #e8edef; }
time { font-size: 14px; color: var(--muted-color); }
.swipe-hint { margin-top: 10px; font-size: 14px; color: var(--muted-color); }
/* CONTACTS */
.contacts { border-top: 1px solid var(--line-color); background: #fff; }
.contacts-grid { display: grid; gap: 36px; }
address { margin-top: 26px; font-style: normal; }
.address { margin-bottom: 24px; color: var(--muted-color); }
.contact-phone { display: block; font-size: clamp(23px, 3vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: -1px; }
.second-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-color); }
.hours { display: grid; gap: 10px; max-width: 410px; margin-block: 24px; }
.hours span { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hours b { white-space: nowrap; }
.map-panel { min-height: 390px; border: 1px solid var(--line-color); border-radius: var(--radius); overflow: hidden; background: #e9eeee; }
.map-placeholder { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; min-height: 390px; padding: 30px; }
.map-placeholder > svg { width: 40px; height: 40px; margin-bottom: 20px; color: #ad4317; }
.map-placeholder h3 { margin-bottom: 16px; font-size: 30px; }
.map-placeholder p { margin-bottom: 24px; color: var(--muted-color); }
.map-placeholder .text-link { margin-top: 12px; }
.map-panel iframe { display: block; width: 100%; height: 100%; min-height: 450px; border: 0; }
/* FOOTER AND PRIVACY */
.footer { padding-block: 30px; color: #c3cccf; background: var(--primary-color); }
.footer-inner { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; font-size: 14px; }
.footer .logo { color: #fff; }
.footer a:not(.logo) { display: inline-flex; align-items: center; min-height: 44px; }
.privacy { padding-block: 30px; }
.privacy h2 { margin-bottom: 15px; font-size: 22px; letter-spacing: -.5px; }
.privacy p { max-width: 900px; color: var(--muted-color); }
/* DIALOG */
dialog { width: min(1120px, calc(100% - 24px)); max-height: 90dvh; padding: 24px; border: 0; border-radius: var(--radius); color: var(--text-color); background: var(--bg-color); }
dialog::backdrop { background: #080d12bc; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 28px; }
.close-dialog { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid var(--line-color); border-radius: 50%; font-size: 30px; line-height: 1; background: #fff; }
dialog > .button { margin-top: 24px; }
/* TABLET */
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .header-phone { font-size: 18px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-block: 80px 56px; }
  .hero-image { opacity: .85; object-position: center 55%; }
  .hero-content > p { font-size: 18px; }
  .hero-bottom-inner { flex-direction: row; justify-content: space-between; }
  .hero-bottom-inner > span:first-child { gap: 12px; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .catalog-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .photo-strip { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .photo-strip img { height: 220px; }
  .photo-strip p { grid-column: auto; align-self: center; padding: 0 0 0 20px; font-size: 34px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; overflow: visible; }
  .swipe-hint { display: none; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { flex-wrap: nowrap; min-height: 86px; }
  .logo { font-size: 32px; }
  .enhanced .menu-toggle { display: none; }
  nav, .enhanced nav, .enhanced nav.is-open { display: flex; order: initial; flex-direction: row; justify-content: center; width: auto; padding: 0; gap: 24px; }
  .hero-content { padding-block: 88px 55px; }
  .hero::after { background: linear-gradient(90deg, #101719fa 0%, #101719ce 30%, #10171930 70%, #10171900 100%); }
  .hero-image { object-position: center 57%; }
  .hero h1 { letter-spacing: -3px; }
  .hero-rating { margin-top: 45px; }
  .advantages { grid-template-columns: repeat(3, 1fr); gap: 36px; padding-block: 45px; }
  .advantages article + article { padding-left: 26px; border-left: 1px solid var(--line-color); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { min-height: 300px; padding: 30px; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .about-photo { order: initial; }
  .about-photo img { height: 430px; }
  .photo-strip { margin-top: 48px; }
  .photo-strip p { font-size: 38px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .review-card:last-child { grid-column: 1 / -1; }
  .contacts-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .map-placeholder { padding: 48px; }
}
@media (min-width: 1440px) { .hero-content { padding-block: 100px 60px; } }
/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
}
