/* TOKENS AND BASE */
:root {
  --primary-color: #182e29;
  --secondary-color: #24463e;
  --accent-color: #ff874b;
  --text-color: #1e312b;
  --muted-color: #58645d;
  --bg-color: #fafbf8;
  --card-bg: #fff;
  --line-color: #dce2d9;
  --radius: 8px;
  --container: 1200px;
  --section-space: 48px;
  --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); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button, input { max-width: 100%; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.035em; font-weight: 650; }
p + p { margin-top: 18px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.icon { flex-shrink: 0; }
.eyebrow { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #456353; }
.eyebrow.light { color: #c6d7c9; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; font-size: 15px; font-weight: 650; line-height: 1.4; text-align: center; border: 1px solid transparent; border-radius: 4px; transition: background .3s ease, transform .3s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: #182e29; background: var(--accent-color); }
.primary:hover { background: #ff9d6d; }
.outline { color: #fff; border-color: #7f9487; background: transparent; }
.outline:hover { background: #ffffff15; }
.dark { color: #fff; background: var(--primary-color); }
.dark:hover { background: var(--secondary-color); }
:focus-visible { outline: 3px solid #b44b16; outline-offset: 5px; }
.hero :focus-visible, .contacts :focus-visible { outline-color: #ffb382; }
.skip-link { position: fixed; top: -90px; left: 10px; z-index: 100; padding: 14px; background: white; }
.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 { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 90px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand > .icon { width: 36px; height: 36px; }
.brand b { display: block; font-size: 17px; letter-spacing: .025em; line-height: 1.1; }
.brand small { display: block; margin-top: 7px; font-size: 8px; letter-spacing: .12em; line-height: 1.2; }
.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 10px; color: var(--primary-color); border: 1px solid var(--line-color); background: transparent; border-radius: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: currentColor; }
.header-phone { margin-left: auto; font-size: 14px; font-weight: 700; }
.header-phone small { display: none; }
.navigation { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.navigation a { padding: 10px; font-size: 14px; }
.navigation a:hover { color: #a34b22; }
.js .navigation { display: none; }
.js .navigation.is-open { position: absolute; top: 100%; left: -5px; right: -5px; display: flex; flex-direction: column; width: auto; padding: 16px; border: 1px solid var(--line-color); background: var(--bg-color); box-shadow: 0 12px 20px #182e291a; }
/* HERO */
.hero { overflow: hidden; color: #fff; background: var(--primary-color); }
.hero-grid { display: grid; }
.hero-content { padding-block: 42px; animation: arrive .65s ease both; }
.hero h1 { max-width: 650px; font-size: clamp(34px, 4.15vw, 58px); line-height: 1.08; letter-spacing: -.04em; font-weight: 650; }
.hero h1 em { color: #ffad7e; font-style: normal; }
.hero-description { max-width: 420px; margin-top: 24px; color: #d2ded7; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; color: #d2ded7; font-size: 13px; }
.hero-meta > span { display: flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 17px; }
.hero-meta a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-meta b { color: white; }
.star { color: #ffad7e; }
.hero-photo { position: relative; min-height: 270px; margin-inline: -20px; }
.hero-photo > img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; object-position: 55% center; }
.photo-label { position: absolute; left: 20px; bottom: 46px; display: flex; align-items: center; gap: 12px; padding: 13px 18px; color: var(--primary-color); background: var(--bg-color); border-radius: 3px; box-shadow: 0 5px 30px #0002; font-weight: 650; }
.photo-label small { display: block; font-size: 12px; font-weight: 400; }
.photo-caption { position: absolute; left: 20px; bottom: 16px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: white; background: #182e29d9; padding: 4px 7px; }
/* ADVANTAGES */
.benefits { border-bottom: 1px solid var(--line-color); background: #edf1e9; }
.benefits-grid { display: grid; gap: 24px; padding-block: 32px; }
.benefits article { display: flex; gap: 16px; }
.benefits .icon { width: 27px; height: 27px; color: #41674f; }
.benefits h2 { margin-bottom: 8px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.benefits p { font-size: 16px; color: #4c5c50; }
/* CATALOG */
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-heading > p { max-width: 370px; color: var(--muted-color); font-size: 16px; }
.category-gallery { display: grid; gap: 16px; }
.category-gallery figure { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-color); background: white; }
.category-gallery img { width: 100%; height: 220px; object-fit: contain; padding: 14px; }
.category-gallery figcaption { padding: 15px 20px; font-size: 20px; line-height: 1.3; font-weight: 650; border-top: 1px solid var(--line-color); }
.category-gallery figcaption span { display: block; margin-top: 5px; font-size: 13px; font-weight: 400; color: var(--muted-color); }
.catalog-intro { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block: 38px 20px; }
.catalog-intro h3 { font-size: 24px; letter-spacing: -.03em; }
.catalog-intro span { font-size: 14px; color: var(--muted-color); }
.products { display: grid; gap: 16px; }
.product { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--card-bg); transition: transform .3s ease, box-shadow .3s ease; }
.product:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #182e2910; }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.tag { padding: 3px 9px; font-size: 12px; color: #40563e; background: #edf1e9; border-radius: 3px; }
.product-top .icon { color: #547255; }
.product h3 { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.product > p { margin-top: 10px; color: var(--muted-color); font-size: 16px; }
.product-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; }
.product-bottom strong { font-size: 22px; font-weight: 650; white-space: nowrap; }
.product-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: #98451d; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.catalog-footer { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 30px; text-align: center; }
.catalog-footer p { font-size: 14px; color: var(--muted-color); }
/* ABOUT */
.about { background: #e9eee5; }
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-content { order: 2; }
.about-content > p:not(.eyebrow) { margin-top: 24px; max-width: 470px; color: #455247; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.about-hours { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #c9d3c4; font-size: 14px; }
.about-hours b { display: block; font-size: 20px; }
.about-photo { order: 1; }
.about-photo img { width: 100%; height: 310px; object-fit: cover; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 12px; font-size: 12px; color: var(--muted-color); }
/* REVIEWS */
.rating-summary { display: flex; gap: 16px; align-items: center; }
.rating-summary strong { font-size: 38px; line-height: 1.2; letter-spacing: -.04em; }
.rating-summary .star { color: #a95520; }
.rating-summary > span { color: var(--muted-color); font-size: 13px; line-height: 1.5; }
.mobile-hint { margin-bottom: 16px; color: var(--muted-color); font-size: 13px; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: 16px; overflow-x: auto; padding: 4px 4px 20px; margin-inline: -4px; scroll-snap-type: x mandatory; }
.review { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line-color); background: var(--card-bg); border-radius: var(--radius); scroll-snap-align: start; }
.stars { color: #a95520; font-size: 18px; letter-spacing: .13em; }
.review blockquote { margin-top: 18px; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.review-person { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 24px; }
.avatar { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; color: #42604a; border-radius: 50%; background: #edf1e9; }
.review h3 { font-size: 14px; line-height: 1.5; }
.review-person p { font-size: 12px; color: var(--muted-color); }
/* CONTACTS */
.contacts { color: white; background: var(--primary-color); }
.contacts-grid { display: grid; gap: 36px; }
.contact-intro { margin-top: 22px; color: #ccd9d0; }
address { margin-top: 30px; font-style: normal; }
address > div { display: flex; gap: 14px; margin-bottom: 18px; color: #e0e8e1; font-size: 16px; }
.contact-phone { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.02em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.location-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px; min-height: 360px; color: var(--primary-color); border-radius: var(--radius); background: #e9eee5; isolation: isolate; }
.location-card > .icon { width: 42px; height: 42px; margin-bottom: 25px; color: #486749; }
.location-card h3 { max-width: 350px; margin-bottom: 18px; font-size: 28px; letter-spacing: -.03em; }
.location-card > p { font-size: 16px; }
.location-card .button { margin-top: 24px; }
.location-card .location-note { margin-top: 20px; font-size: 13px; color: #52624f; }
.location-lines { position: absolute; right: -170px; top: -120px; z-index: -1; width: 400px; height: 600px; border: 1px solid #c4d0bf; border-radius: 45%; transform: rotate(35deg); box-shadow: 0 0 0 25px #d6dfd0, 0 0 0 26px #c4d0bf, 0 0 0 60px #dce4d7, 0 0 0 61px #c4d0bf; opacity: .55; }
/* FOOTER */
.footer { padding-block: 28px; border-top: 1px solid var(--line-color); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer p, .footer > div > a:last-child, .privacy-link { font-size: 12px; }
.footer p { color: var(--muted-color); }
.privacy-link { min-height: 44px; padding: 0; color: var(--muted-color); border: 0; background: transparent; text-align: left; text-decoration: underline; }
.footer > div > a:last-child { display: inline-flex; align-items: center; min-height: 44px; }
/* DIALOGS */
dialog { width: min(760px, calc(100% - 24px)); max-height: 85dvh; padding: 24px; color: var(--text-color); border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--bg-color); }
dialog::backdrop { background: #0a1b16bb; }
.dialog-open { overflow: hidden; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-header h2 { font-size: 28px; }
.close-dialog { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--text-color); border: 1px solid var(--line-color); border-radius: 4px; background: white; }
.price-list { margin-block: 20px; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 17px; border-bottom: 1px solid var(--line-color); }
.price-row span { flex: 1 1 250px; overflow-wrap: anywhere; }
.price-row strong { white-space: nowrap; }
html:not(.js) dialog { position: static; display: block; margin: 24px auto; }
html:not(.js) dialog .close-dialog, html:not(.js) [data-dialog], html:not(.js) .menu-toggle { display: none; }
/* RESPONSIVE AND MOTION */
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 375px) {
  .header-phone { font-size: 15px; }
}
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .header-inner { min-height: 85px; }
  .header-phone { margin-left: auto; font-size: 17px; }
  .header-phone small { display: block; font-size: 11px; font-weight: 400; text-align: right; color: var(--muted-color); }
  .menu-toggle { order: 3; }
  .brand b { font-size: 20px; }
  .brand small { font-size: 9px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; }
  .hero-content { padding-block: 65px; }
  .hero-photo { margin-inline: 0; }
  .hero-photo img { position: absolute; height: 100%; object-position: 65% center; }
  .hero-meta { flex-direction: column; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .benefits article { display: block; }
  .benefits h2 { margin-top: 12px; }
  .category-gallery { grid-template-columns: repeat(3, 1fr); }
  .category-gallery img { height: 185px; }
  .category-gallery figcaption { font-size: 19px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-content { order: 1; }
  .about-photo { order: 2; }
  .about-photo img { height: 460px; }
  .reviews-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .mobile-hint { display: none; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .location-card { padding: 32px; }
  dialog { padding: 36px; }
}
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { flex-wrap: nowrap; gap: 20px; }
  .menu-toggle { display: none; }
  .navigation, .js .navigation, .js .navigation.is-open { position: static; display: flex; flex-direction: row; justify-content: center; flex: 1; width: auto; padding: 0; border: 0; box-shadow: none; }
  .navigation a { padding: 12px 9px; }
  .header-phone { margin-left: 0; white-space: nowrap; }
  .hero-grid { grid-template-columns: 1.12fr 1fr; gap: 35px; }
  .hero-content { padding-block: 76px 65px; }
  .hero-photo { margin-right: min(0px, calc((1200px - 100vw) / 2)); }
  .hero-meta { flex-direction: row; gap: 20px; }
  .hero-meta a { display: block; }
  .hero-meta a b { margin-right: 6px; }
  .benefits-grid { padding-block: 36px; gap: 36px; }
  .benefits article { display: flex; }
  .benefits h2 { margin-top: 0; }
  .benefits article + article { padding-left: 28px; border-left: 1px solid #cdd7c7; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .category-gallery img { height: 220px; }
  .about-grid { gap: 80px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { gap: 80px; }
  .location-card { padding: 44px; }
}
@media (min-width: 1440px) {
  .hero-content { padding-block: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  .button, .product { transition: none; }
  *, *::before, *::after { animation: none; transition: none; }
}
