/* FOUNDATION */
:root {
  --primary-color: #191b18;
  --secondary-color: #efede5;
  --accent-color: #f16b3c;
  --text-color: #191b18;
  --bg-color: #f7f5ee;
  --card-bg: #efede5;
  --muted-color: #5c5d56;
  --line-color: #d7d6cb;
  --container: 1200px;
  --radius: 8px;
  --section-space: 48px;
  --body-font: Arial, Helvetica, sans-serif;
  --display-font: 'Arial Black', Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text-color); background: var(--bg-color); font: 16px/1.6 var(--body-font); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: var(--display-font); letter-spacing: -.055em; font-weight: 900; }
h2 { font-size: 34px; }
h3 { font-size: 22px; letter-spacing: -.035em; }
p + p { margin-top: 18px; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ac3912; outline-offset: 5px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent-color); }
.muted { color: var(--muted-color); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 30px; padding: 14px 22px; border: 1px solid transparent; border-radius: 3px; font-weight: 700; line-height: 1.3; background: var(--accent-color); transition: transform .3s ease, background .3s ease; }
.button:hover { background: #fa8057; transform: translateY(-3px); }
.button-outline { border-color: var(--primary-color); background: transparent; }
.button-outline:hover { background: var(--secondary-color); }
.button-dark { color: var(--bg-color); background: var(--primary-color); }
.button-dark:hover { background: #3c4036; }
.arrow { font-size: 24px; line-height: 1; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: var(--bg-color); }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line-color); background: var(--bg-color); }
.header-inner { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-symbol { display: grid; flex-shrink: 0; width: 28px; height: 30px; place-items: center; border: 2px solid; font-size: 23px; line-height: 1; font-weight: 900; transform: rotate(-8deg); }
.brand-name { font-size: 13px; line-height: 1; font-weight: 900; letter-spacing: -.06em; white-space: nowrap; }
.brand-name small { display: block; margin-top: 5px; font-size: 7px; font-weight: 400; letter-spacing: .1em; }
.header-phone { display: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-cta { display: none; }
.menu-toggle { min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line-color); background: transparent; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--primary-color); }
.navigation { display: none; position: absolute; top: 80px; left: 0; right: 0; max-height: calc(100dvh - 80px); overflow: auto; padding: 20px; border-bottom: 1px solid var(--line-color); background: var(--bg-color); }
.navigation.is-open { display: grid; }
.navigation a { padding: 10px 0; font-size: 14px; }
.navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
/* HERO */
.hero { padding-top: 28px; }
.hero-layout { display: grid; gap: 30px; }
.hero-copy { padding-block: 20px; animation: enter .7s ease both; }
.hero h1 { margin: 24px 0; font-size: clamp(44px, 9vw, 74px); line-height: .98; }
.hero h1 span { color: #af3b16; }
.hero-description { max-width: 380px; color: var(--muted-color); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-actions .button { flex-grow: 1; }
.hero-meta { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-color); font-size: 13px; }
.rating { font-size: 28px; font-weight: 900; letter-spacing: -.05em; }
.rating span { color: #ae3b17; font-size: 20px; }
.hero-visual { position: relative; min-width: 0; margin: 0; background: #393b35; }
.hero-photo { height: 460px; object-fit: cover; object-position: center 45%; }
.photo-label { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; justify-content: space-between; gap: 16px; padding: 14px; color: #fff; background: #191b18; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.hero-stamp { position: absolute; top: 20px; right: 20px; display: grid; width: 86px; height: 86px; align-content: center; border-radius: 50%; background: var(--accent-color); text-align: center; font-size: 12px; line-height: 1.2; font-weight: 700; transform: rotate(12deg); }
.hero-stamp strong { font-size: 25px; }
.ticker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding: 18px 0; border-block: 1px solid var(--line-color); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.ticker b { color: #af3b16; }
/* BENEFITS */
.benefits { display: grid; gap: 28px; }
.benefit { padding-left: 45px; position: relative; }
.benefit svg { position: absolute; top: 0; left: 0; width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.benefit h3 { margin-bottom: 12px; font-size: 20px; }
.benefit p { font-size: 15px; color: var(--muted-color); }
/* SERVICES */
.services { background: var(--secondary-color); }
.service-grid { display: grid; gap: 20px; }
.service { min-width: 0; overflow: hidden; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--bg-color); transition: transform .3s ease, box-shadow .3s ease; }
.service:hover { transform: translateY(-5px); box-shadow: 0 12px 25px #191b1810; }
.service img { height: 240px; object-fit: cover; }
.service-copy { padding: 24px; }
.service-number { margin-bottom: 18px; color: var(--muted-color); font-size: 12px; letter-spacing: .1em; }
.service h3 { min-height: 48px; margin-bottom: 14px; }
.service p { min-height: 48px; font-size: 15px; color: var(--muted-color); }
.service-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line-color); font-size: 19px; font-weight: 700; }
.service-price a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-color); border-radius: 50%; }
.services-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }
.services-bottom p { max-width: 460px; font-size: 14px; color: var(--muted-color); }
/* ABOUT AND WORKS */
.about-layout { display: grid; gap: 32px; align-items: center; }
.about-copy { order: 2; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p { color: var(--muted-color); }
.about-copy .text-link { display: inline-block; margin-top: 28px; padding-block: 10px; border-bottom: 1px solid; font-weight: 700; }
.about-image { height: 350px; object-fit: cover; }
.work-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 48px 0 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.works figure { margin: 0; }
.works img { height: 240px; object-fit: cover; }
.works figcaption { padding-top: 10px; font-size: 12px; color: var(--muted-color); }
/* REVIEWS */
.reviews { color: var(--bg-color); background: var(--primary-color); }
.reviews .eyebrow { color: #cbcbbf; }
.reviews-summary { color: #cbcbbf; font-size: 14px; }
.reviews-summary strong { color: var(--bg-color); }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 0 18px; }
.review { min-width: 0; padding: 28px; border: 1px solid #4e5148; scroll-snap-align: start; border-radius: var(--radius); }
.stars { color: #ff9b77; font-size: 16px; letter-spacing: .12em; }
.review blockquote { margin: 22px 0 28px; font-size: 16px; overflow-wrap: anywhere; }
.review footer { display: grid; gap: 4px; }
.review time { color: #b7baaf; font-size: 12px; }
.review-controls { display: flex; gap: 10px; margin-top: 16px; }
.review-controls button { width: 48px; height: 48px; border: 1px solid #707367; background: transparent; }
/* CONTACTS */
.contacts-layout { display: grid; gap: 32px; }
.contacts h2 { margin-bottom: 28px; }
.contact-details { display: grid; gap: 24px; margin: 0; }
.contact-details dt { margin-bottom: 4px; color: var(--muted-color); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-size: 19px; }
.contact-details .phone { font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.socials a { min-height: 44px; padding-block: 10px; text-decoration: underline; text-underline-offset: 5px; }
.location { display: flex; flex-direction: column; min-height: 340px; justify-content: space-between; gap: 32px; padding: 32px; background: var(--secondary-color); border: 1px solid var(--line-color); }
.location-mark { font-size: 70px; line-height: 1; color: #a53d1b; }
.location h3 { margin-bottom: 12px; font-size: 28px; }
.location .button { margin-top: 24px; }
/* FOOTER */
.site-footer { border-top: 1px solid var(--line-color); padding-block: 30px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted-color); }
.privacy-button { min-height: 44px; padding: 10px 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
/* DIALOGS */
dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--line-color); border-radius: var(--radius); color: var(--text-color); background: var(--bg-color); }
dialog::backdrop { background: #191b18b8; }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.dialog-top h2 { font-size: 28px; }
.close-button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line-color); font-size: 26px; background: transparent; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; }
.price-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-color); }
.price-list li span { flex: 1 1 260px; }
.price-list li strong { white-space: nowrap; }
/* RESPONSIVE LAYOUT */
@media (min-width: 375px) { .header-phone { display: block; font-size: 12px; } }
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  h2 { font-size: 44px; }
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-copy { padding-block: 30px; }
  .hero h1 { font-size: 56px; }
  .hero-photo { height: 100%; min-height: 590px; }
  .hero-actions .button { flex-grow: 0; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .benefit { padding: 0; }
  .benefit svg { position: static; margin-bottom: 16px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout, .contacts-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
  .about-copy { order: 0; }
  .about-image { height: 480px; }
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works img { height: 280px; }
  .reviews-grid { grid-auto-flow: initial; grid-auto-columns: initial; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .review-controls { display: none; }
}
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .menu-toggle { display: none; }
  .brand-symbol { width: 35px; height: 35px; font-size: 26px; }
  .brand-name { font-size: 17px; }
  .brand-name small { font-size: 9px; letter-spacing: .2em; }
  .navigation, .navigation.is-open { position: static; display: flex; gap: 22px; padding: 0; border: 0; overflow: visible; }
  .navigation .mobile-call { display: none; }
  .header-phone { font-size: 13px; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: 13px; }
  .hero { padding-top: 36px; }
  .hero-layout { gap: 60px; }
  .hero-copy { padding-block: 35px; }
  .hero h1 { font-size: 72px; }
  .hero-photo { min-height: 610px; }
  .hero-actions .button { font-size: 14px; gap: 20px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service:last-child { display: grid; grid-template-columns: 1fr 2fr; grid-column: 1 / -1; }
  .service:last-child img { height: 100%; max-height: 280px; }
  .service:last-child .service-copy { padding: 30px; }
  .service:last-child h3, .service:last-child p { min-height: 0; }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px) { .hero h1 { font-size: 80px; } .hero-copy { padding-block: 42px; } }
/* MOTION */
@keyframes enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-copy { animation: none; } *, *::before, *::after { transition: none; } }
