/*
Theme Name: Южное кладбище
Author: Южное кладбище
Description: Автономная тема для сайта памятников и благоустройства Южного кладбища.
Version: 1.0.0
Text Domain: south-cemetery
*/

:root {
  --ink: #493b31;
  --forest: #644d3c;
  --forest-dark: #44342b;
  --sage: #e5d5bb;
  --sage-dark: #cdb89a;
  --paper: #fbf7ef;
  --sand: #eee3d2;
  --gold: #a66a45;
  --white: #fff;
  --line: rgba(73, 59, 49, .16);
  --serif: "Prata", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mobile-only { display: none; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 24px; padding: 10px 16px; color: white; background: var(--forest); }
.skip-link:focus { top: 12px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--forest); font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; }
h1 { margin-bottom: 25px; font-size: clamp(50px, 5.2vw, 78px); }
h2 { margin-bottom: 0; font-size: clamp(41px, 4.4vw, 62px); }
.section { padding: 112px 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: #7a6553; font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: var(--gold); }
.eyebrow-light { color: #eadac4; }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 15px; padding: 14px 24px; border: 1px solid transparent; font-size: 12px; font-weight: 800; letter-spacing: .045em; line-height: 1.25; text-align: center; text-transform: uppercase; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.button-primary { color: white; background: var(--forest); }
.button-primary:hover { background: var(--forest-dark); }
.button-outline { color: var(--forest); border-color: rgba(100, 77, 60, .42); }
.button-outline:hover { color: white; border-color: var(--forest); background: var(--forest); }
.button-light { color: var(--forest); background: var(--paper); }
.button-light:hover { background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.text-link span { color: var(--gold); font-size: 20px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(100, 77, 60, .12); background: linear-gradient(104deg, rgba(251, 242, 227, .97), rgba(244, 226, 198, .97)); backdrop-filter: blur(13px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 5px 20px rgba(73, 59, 49, .08); }
.header-content { display: flex; min-height: 82px; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; line-height: 1.1; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.brand small { margin-top: 4px; color: #826e5d; font-size: 10px; letter-spacing: .035em; }
.main-nav { display: flex; flex: 1; justify-content: center; gap: clamp(12px, 1.8vw, 24px); }
.main-nav a { position: relative; padding: 7px 0; color: #5e4b3d; font-size: 12px; font-weight: 700; letter-spacing: .015em; white-space: nowrap; }
.main-nav a::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: var(--gold); content: ""; opacity: 0; transform: scaleX(.5); transition: opacity .2s, transform .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { opacity: 1; transform: scaleX(1); }
.nav-phone { display: none; }
.header-phone { color: var(--forest); font-size: clamp(15px, 1.45vw, 19px); font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.header-phone:hover { color: var(--gold); }
.menu-toggle { display: none; }

.hero { overflow: hidden; min-height: 655px; min-height: max(655px, calc(100svh - 54px)); padding: 16px 0 0; background: linear-gradient(112deg, #fbf2e3 0%, var(--paper) 51%, #ead8bd 100%); }
.hero-grid { display: grid; min-height: 642px; min-height: max(642px, calc(100svh - 67px)); grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.hero-copy { align-self: center; padding-bottom: 34px; transform: translateY(-12px); }
.hero-lead { max-width: 510px; margin-bottom: 31px; color: #675546; font-size: 18px; line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 24px; }
.hero-perks span { padding: 8px 11px; color: var(--forest); border: 1px solid rgba(100, 77, 60, .28); font-size: 10px; font-weight: 800; letter-spacing: .035em; line-height: 1.3; text-transform: uppercase; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 31px 0 0; list-style: none; }
.hero-facts li { min-width: 0; padding-right: 11px; margin-right: 11px; border-right: 1px solid var(--line); }
.hero-facts li:last-child { padding: 0; margin: 0; border: 0; }
.hero-facts li > span:last-child { display: block; color: #705e4e; font-size: 11px; font-weight: 700; line-height: 1.5; }
.feature-check { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 11px; color: var(--gold); border: 1px solid currentColor; border-radius: 50%; font-size: 15px; font-weight: 800; line-height: 1; }
.hero-visual { position: relative; min-height: 560px; align-self: end; }
.hero-visual img { position: absolute; z-index: 1; right: 8%; bottom: 0; width: min(100%, 530px); height: 545px; object-fit: contain; object-position: bottom center; }
.hero-caption { position: absolute; z-index: 2; top: 104px; left: 4%; max-width: 180px; color: #806a58; font-size: 10px; font-weight: 700; line-height: 1.65; }
.hero-caption strong { color: var(--forest); font-size: 12px; }
.hero-note { position: absolute; z-index: 3; right: 1%; bottom: 43px; padding: 18px 21px; color: white; background: var(--forest); box-shadow: 0 15px 35px rgba(73, 59, 49, .17); }
.hero-note span, .hero-note strong { display: block; }
.hero-note span { margin-bottom: 5px; color: #ead7bd; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-note strong { font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.32; }

.trust-bar { color: white; background: var(--forest); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-items p { display: flex; min-height: 90px; align-items: center; gap: 10px; padding: 19px 22px; margin: 0; border-right: 1px solid rgba(255, 255, 255, .15); color: #d8e2d9; font-size: 12px; font-weight: 600; line-height: 1.55; }
.trust-items p:first-child { border-left: 1px solid rgba(255, 255, 255, .15); }
.trust-check { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; margin-top: 1px; color: #e3bbb0; border: 1px solid rgba(227, 187, 176, .72); border-radius: 50%; font-size: 11px; font-weight: 800; line-height: 1; }

.section-heading { display: grid; grid-template-columns: .95fr 1.05fr; gap: 84px; align-items: end; margin-bottom: 54px; }
.section-heading > p { max-width: 500px; margin: 0 0 5px; color: #566359; font-size: 16px; line-height: 1.72; }
.catalog-preview { background: #fffefa; }
.catalog-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 270px 270px; gap: 15px; }
.preview-card { position: relative; display: block; overflow: hidden; color: white; background: #d5c2a6; isolation: isolate; }
.preview-card--large { grid-row: span 2; }
.preview-card img { width: 100%; height: 100%; object-fit: contain; object-position: center center; mix-blend-mode: multiply; transition: opacity .35s; }
.preview-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 21, .03) 27%, rgba(8, 24, 21, .72) 100%); content: ""; }
.preview-card:hover img { opacity: .9; }
.preview-overlay { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 25px; }
.preview-overlay b, .preview-overlay small { display: block; }
.preview-overlay b { margin-bottom: 4px; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.25; }
.preview-overlay small { color: #e1e7df; font-size: 10px; font-weight: 600; }
.catalog-preview-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 31px; }
.catalog-preview-footer p { margin: 0; color: #526058; font-size: 14px; }

.services-section { padding: 54px 0; background: var(--sand); }
.services-section > .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; }
.services-intro > p:last-child { max-width: 390px; margin: 24px 0 0; color: #566359; font-size: 16px; line-height: 1.72; }
.services-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.service-check { display: grid; width: 27px; height: 27px; place-items: center; margin-top: 3px; color: var(--gold); border: 1px solid currentColor; border-radius: 50%; font-size: 14px; font-weight: 800; line-height: 1; }
.service-item h3 { margin-bottom: 6px; color: var(--forest); font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.3; }
.service-item p { max-width: 570px; margin: 0; color: #58655c; font-size: 14px; line-height: 1.65; }

.about-section { padding: 102px 0; color: white; background: var(--forest); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.about-title h2 { color: white; }
.about-title > p:last-child { max-width: 395px; margin: 25px 0 0; color: #c3d0c5; font-size: 16px; line-height: 1.7; }
.about-content > p { max-width: 660px; margin-bottom: 21px; color: #d1ddd2; font-size: 16px; line-height: 1.75; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 43px; border-top: 1px solid rgba(255,255,255,.2); }
.about-facts article { min-height: 106px; padding: 18px 15px 0 0; border-right: 1px solid rgba(255,255,255,.2); }
.about-facts article + article { padding-left: 19px; }
.about-facts article:last-child { border: 0; }
.about-facts strong, .about-facts span { display: block; }
.about-facts strong { color: #ead0ad; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.3; }
.about-facts span { margin-top: 5px; color: #c4d1c5; font-size: 11px; font-weight: 700; line-height: 1.55; }

.map-section { padding: 110px 0; overflow: hidden; background: #f8efe1; }
.map-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 78px; align-items: center; }
.map-copy > p:not(.eyebrow) { max-width: 420px; margin: 24px 0; color: #705e4e; font-size: 16px; line-height: 1.72; }
.map-legend { display: grid; gap: 10px; margin: 0 0 31px; }
.map-legend div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; align-items: baseline; }
.map-legend dt { color: var(--forest); font-size: 12px; font-weight: 800; }
.map-legend dd { margin: 0; color: #806c5b; font-size: 12px; }
.map-preview { margin: 0; overflow: hidden; width: 100%; padding: 0; background: #fffdfa; box-shadow: 0 16px 45px rgba(73, 59, 49, .13); }
.map-preview img { width: 100%; height: auto; }

.contacts-section { padding: 86px 0; color: white; background: var(--forest-dark); }
.contacts-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 120px; align-items: center; }
.contacts-section h2 { color: white; }
.contacts-grid > div > p:last-child { max-width: 500px; margin: 23px 0 0; color: #e7d7c1; font-size: 16px; line-height: 1.72; }
.contacts-card { padding: 37px 43px; border: 1px solid rgba(255,255,255,.24); }
.contacts-card > span, .contacts-card strong { display: block; }
.contacts-card > span { color: #e6d4bc; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contacts-card strong { margin-top: 12px; color: #f0ddc1; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.25; }
.contacts-card > p { margin: 17px 0 24px !important; color: #efdfca !important; font-size: 14px !important; }

.site-footer { padding: 30px 0; background: #382a23; color: #dfcfba; }
.footer-content { display: grid; grid-template-columns: 1.15fr 1.4fr 1fr .8fr auto auto; gap: 18px; align-items: center; }
.site-footer .brand strong { color: white; }
.site-footer .brand small { color: #cbbba8; }
.footer-content > p { margin: 0; font-size: 11px; line-height: 1.55; }
.footer-email { color: #f1e4d1; font-size: 11px; line-height: 1.4; transition: color .2s; }
.footer-email:hover, .footer-email:focus-visible { color: white; }
.footer-policy { color: rgba(223, 207, 186, .78); font-size: 10px; line-height: 1.4; text-decoration: underline; text-decoration-color: rgba(223, 207, 186, .4); text-underline-offset: 2px; transition: color .2s; }
.footer-policy:hover, .footer-policy:focus-visible { color: white; }
.footer-legal { color: rgba(223, 207, 186, .67); font-size: 10px; line-height: 1.55; }
.footer-legal summary { width: fit-content; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal summary::-webkit-details-marker { display: none; }
.footer-legal summary:hover, .footer-legal summary:focus-visible { color: white; }
.footer-legal[open] { grid-column: 1 / -1; }
.footer-legal > div { max-width: 680px; padding-top: 8px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .16); }
.footer-legal p { margin: 0; }

.privacy-policy { padding: 84px 0; background: #fffaf1; }
.privacy-policy-layout { width: min(100%, 800px); }
.privacy-policy-heading { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.privacy-policy-heading h1 { margin-bottom: 14px; }
.privacy-policy-heading p:last-child { max-width: 680px; margin: 0; color: #705d4d; font-size: 15px; }
.privacy-policy-content { display: grid; gap: 31px; padding-top: 36px; }
.privacy-policy-content section { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.privacy-policy-content section:last-child { padding-bottom: 0; border-bottom: 0; }
.privacy-policy-content h2 { margin: 0 0 11px; color: var(--forest); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.3; }
.privacy-policy-content p, .privacy-policy-content li { color: #705d4d; font-size: 14px; line-height: 1.7; }
.privacy-policy-content p { margin: 0; }
.privacy-policy-content p + p { margin-top: 12px; }
.privacy-policy-content ul { display: grid; gap: 7px; padding-left: 20px; margin: 14px 0 0; }
.privacy-policy-contact { padding: 19px 21px; border-left: 2px solid var(--gold); background: #f2e4d1; }
.privacy-policy-contact a, .contact-form-consent a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(100, 77, 60, .48); text-underline-offset: 2px; }
.privacy-policy-contact a:hover, .privacy-policy-contact a:focus-visible, .contact-form-consent a:hover, .contact-form-consent a:focus-visible { color: var(--gold); }

.catalog-hero { overflow: hidden; padding: 20px 0 0; background: linear-gradient(112deg, #f4f0e5 0%, var(--paper) 51%, #dce5d8 100%); }
.catalog-hero-grid { display: grid; min-height: 554px; grid-template-columns: .85fr 1.15fr; gap: 86px; align-items: center; }
.catalog-hero h1 { margin: 20px 0 22px; }
.catalog-hero p:not(.eyebrow) { max-width: 520px; margin-bottom: 30px; color: #4e5e54; font-size: 16px; line-height: 1.75; }
.catalog-hero .button { position: relative; top: -18px; }
.back-link { display: inline-flex; align-items: center; color: var(--forest); transition: color .2s, transform .2s; }
.back-link-icon { font-size: 36px; line-height: 1; transition: transform .2s; }
.back-link:hover { color: var(--gold); transform: translateX(-3px); }
.catalog-hero-image { position: relative; align-self: end; min-height: 510px; margin: 0; }
.catalog-hero-image::before { position: absolute; top: 10px; right: -90px; width: 480px; height: 480px; border-radius: 50%; background: #cedccf; content: ""; }
.catalog-hero-image img { position: relative; z-index: 1; width: 100%; height: 500px; object-fit: contain; object-position: center bottom; }
.catalog-hero-image figcaption { position: absolute; z-index: 2; bottom: 24px; left: 0; max-width: 245px; color: #657167; font-size: 11px; line-height: 1.5; }
.catalog-section { background: var(--sand); }
.catalog-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 35px; }
.catalog-toolbar > p { max-width: 480px; margin: 0; color: #566359; font-size: 16px; line-height: 1.65; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.catalog-filters button { padding: 10px 15px; color: #536158; border: 1px solid rgba(31,43,39,.23); background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.catalog-filters button:hover, .catalog-filters button.is-active { color: white; border-color: var(--forest); background: var(--forest); }
.monument-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; padding-top: 34px; }
.monument-card { min-width: 0; background: #fffefa; box-shadow: 0 8px 20px rgba(73, 59, 49, .05); transition: opacity .2s, transform .2s; }
.monument-card[hidden] { display: none; }
.monument-card:hover { transform: translateY(-4px); }
.monument-card-link { display: flex; height: 100%; min-height: 100%; flex-direction: column; }
.monument-image { display: grid; height: 278px; place-items: center; padding: 18px 16px 24px; overflow: hidden; background: #eadbc5; }
.monument-image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center center; mix-blend-mode: multiply; }
.monument-card-link > div:last-child { display: flex; min-height: 170px; flex: 1; flex-direction: column; padding: 18px; }
.monument-card p { margin-bottom: 7px; color: #78847b; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.monument-card h3 { margin-bottom: 9px; color: var(--forest); font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.3; }
.monument-card span { margin-top: auto; color: #657168; font-size: 12px; line-height: 1.55; }
.monument-card .monument-card-price { display: block; padding-top: 10px; color: var(--forest); border-top: 1px solid rgba(100, 77, 60, .18); font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.035em; line-height: 1.25; }
.catalog-empty { margin: 32px 0 0; color: #647168; }
.catalog-cta-section { color: white; background: var(--forest); }
.catalog-cta-grid { display: grid; grid-template-columns: 1fr .8fr auto; gap: 70px; align-items: center; padding: 68px 0; }
.catalog-cta-section h2 { color: white; }
.catalog-cta-grid > p { max-width: 360px; margin: 0; color: #c4d1c6; font-size: 15px; line-height: 1.7; }

.product-detail-section { padding: 56px 0 96px; background: linear-gradient(112deg, #fbf2e3 0%, var(--paper) 60%, #ead8bd 100%); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(42px, 7vw, 96px); align-items: start; }
.product-detail-image { display: grid; min-height: 570px; place-items: center; margin: 0; }
.product-detail-image img { width: 100%; max-height: 515px; object-fit: contain; mix-blend-mode: multiply; }
.product-detail-back-link { display: inline-block; margin: 0 0 14px; color: var(--forest); font-size: 46px; line-height: .7; transition: color .2s, transform .2s; }
.product-detail-back-link--mobile { display: none; }
.product-detail-back-link:hover { color: var(--gold); transform: translateX(-5px); }
.product-detail-category { margin-bottom: 12px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-detail-copy h1 { margin-bottom: 22px; font-size: clamp(42px, 4.7vw, 66px); }
.product-detail-lead { max-width: 570px; margin-bottom: 18px; color: #6d5949; font-size: 18px; line-height: 1.72; }
.product-detail-price { margin-bottom: 26px; color: var(--forest); font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.product-detail-list { display: grid; gap: 10px; padding: 0; margin: 0 0 34px; list-style: none; color: #705d4d; font-size: 14px; }
.product-detail-list li { position: relative; padding-left: 24px; }
.product-detail-list li::before { position: absolute; top: .1em; left: 0; color: var(--gold); content: "✓"; font-weight: 800; }
.product-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-detail-missing { width: min(620px, calc(100% - 48px)); padding: 48px; margin: 80px auto; text-align: center; background: #fffdfa; box-shadow: 0 18px 44px rgba(73, 59, 49, .1); }
.product-detail-missing p { margin-bottom: 28px; color: #705d4d; }

/* Южное кладбище: тёплая бежевая палитра. */
.eyebrow { color: #7c6756; }
.eyebrow-light { color: #eadbc6; }
.button-outline { border-color: rgba(100, 77, 60, .42); }
.site-header { background: linear-gradient(104deg, rgba(251, 242, 227, .97), rgba(244, 226, 198, .97)); }
.site-header.is-scrolled { box-shadow: 0 5px 20px rgba(73, 59, 49, .08); }
.brand small { color: #806b5b; }
.main-nav a { color: #5f4c3e; }
.hero { background: linear-gradient(112deg, #fbf2e3 0%, var(--paper) 51%, #ead8bd 100%); }
.hero h1 { max-width: 575px; font-size: clamp(48px, 4.25vw, 60px); letter-spacing: -.055em; }
.hero-lead { color: #6a5647; }
.hero-facts li > span:last-child { color: #715d4d; }
.hero-visual img { right: -5%; bottom: 135px; width: min(110%, 625px); height: 585px; object-position: center bottom; mix-blend-mode: multiply; }
.hero-caption { top: 10px; left: 3%; color: #806b5b; font-size: 14px; line-height: 1.55; }
.hero-caption strong { font-size: 16px; }
.hero-note { bottom: 96px; box-shadow: 0 15px 35px rgba(68, 52, 43, .17); }
.hero-note span { color: #eadbc6; }
.trust-items p { color: #f1e5d4; }
.section-heading > p, .services-intro > p:last-child, .map-copy > p:not(.eyebrow), .catalog-toolbar > p { color: #6d5949; }
.catalog-preview { padding: 48px 0 94px; }
.catalog-preview, .catalog-intro-section, .monument-card { background: #fffaf1; }
.preview-card::after { background: linear-gradient(180deg, rgba(62, 43, 30, .03) 27%, rgba(62, 43, 30, .78) 100%); }
.preview-overlay small { color: #f2e7d8; }
.catalog-preview-footer p { color: #705d4d; }
.service-item p { color: #6e5b4c; }
.about-title > p:last-child { color: #ead9c3; }
.about-content > p { color: #f0e2d1; }
.about-facts span { color: #e8d8c2; }
.map-section { background: #f8efe1; }
.map-legend dd { color: #806c5b; }
.contacts-grid > div > p:last-child { color: #e8d8c3; }
.contacts-card > span { color: #ead8c0; }
.contacts-card > p { color: #efdfca !important; }
.contacts-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-outline-light { color: white; border-color: rgba(255, 255, 255, .55); }
.button-outline-light:hover { color: var(--forest); border-color: var(--paper); background: var(--paper); }
.contact-fab-group { position: fixed; z-index: 40; right: 26px; bottom: 28px; display: grid; gap: 10px; }
.contact-fab { display: grid; width: 58px; height: 58px; place-items: center; color: white; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; box-shadow: 0 9px 24px rgba(68, 52, 43, .25); transition: transform .2s, box-shadow .2s; }
.contact-fab:hover { box-shadow: 0 13px 28px rgba(68, 52, 43, .34); transform: translateY(-3px); }
.contact-fab--vk { background: #0077ff; }
.contact-fab--max { background: linear-gradient(145deg, #6a2fe6 0%, #5548e8 48%, #119eea 100%); }
.contact-fab--phone { border-color: white; background: var(--forest); box-shadow: 0 0 0 4px rgba(166, 106, 69, .75), 0 9px 24px rgba(68, 52, 43, .25); }
.contact-fab--vk svg { width: 36px; height: 36px; fill: currentColor; }
.contact-fab--max svg { width: 31px; height: 31px; fill: currentColor; }
.contact-fab--phone svg, .hero-phone-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.contact-choice-dialog { position: fixed; z-index: 100; inset: 0; display: grid; padding: 24px; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.contact-choice-dialog.is-open { opacity: 1; pointer-events: auto; }
.contact-choice-backdrop { position: absolute; inset: 0; border: 0; background: rgba(56, 42, 35, .76); cursor: default; }
.contact-choice-content { position: relative; z-index: 1; width: min(100%, 500px); max-height: calc(100vh - 48px); padding: 42px; overflow-y: auto; background: #fffaf1; box-shadow: 0 24px 70px rgba(56, 42, 35, .32); transform: translateY(12px); transition: transform .2s; }
.contact-choice-dialog.is-open .contact-choice-content { transform: translateY(0); }
.contact-choice-close { position: absolute; top: 12px; right: 15px; width: 36px; height: 36px; padding: 0; color: var(--forest); border: 0; background: transparent; cursor: pointer; font-size: 30px; font-weight: 300; line-height: 1; }
.contact-choice-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact-choice-content h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 40px); }
.contact-choice-content > p:not(.eyebrow) { margin: 0 0 20px; color: #705d4d; font-size: 14px; line-height: 1.6; }
.contact-choice-selected strong { color: var(--forest); }
.contact-form { display: grid; gap: 12px; }
.contact-form-field { display: grid; gap: 5px; color: var(--forest); font-size: 12px; font-weight: 800; }
.contact-form-field input, .contact-form-field select, .contact-form-field textarea { width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid rgba(100, 77, 60, .34); border-radius: 2px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.45; }
.contact-form-field textarea { min-height: 76px; resize: vertical; }
.contact-form-field input:focus, .contact-form-field select:focus, .contact-form-field textarea:focus { border-color: var(--forest); outline: 2px solid rgba(166, 106, 69, .35); outline-offset: 1px; }
.contact-form-consent { display: flex; align-items: flex-start; gap: 9px; color: #705d4d; font-size: 11px; font-weight: 500; line-height: 1.45; }
.contact-form-consent input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--forest); }
.contact-form-submit { width: 100%; min-height: 50px; margin-top: 3px; }
.contact-form-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.contact-form-status { min-height: 1.5em; margin: 0; color: #705d4d; font-size: 12px; line-height: 1.45; }
.contact-form-status.is-success { color: #286445; }
.contact-form-status.is-error { color: #993e35; }
.contact-form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.contact-choice-actions .button { min-height: 48px; padding-right: 10px; padding-left: 10px; }
.contact-choice-contact-note { margin-bottom: 0 !important; }
body.has-contact-choice { overflow: hidden; }
.site-footer { background: #382a23; color: #dfcfba; }
.site-footer .brand small { color: #cbbba8; }
.catalog-hero { background: linear-gradient(112deg, #fbf2e3 0%, var(--paper) 51%, #ead8bd 100%); }
.catalog-hero p:not(.eyebrow) { color: #6d5949; }
.back-link, .catalog-hero-image figcaption { color: #806c5b; }
.catalog-hero-image::before { background: #e2c9a4; }
.catalog-hero-image img { width: 108%; height: 535px; mix-blend-mode: multiply; transform: translateY(-18px); }
.catalog-intro-grid p { color: #705d4d; }
.catalog-filters button { color: #6d5949; border-color: rgba(100, 77, 60, .28); }
.monument-card { box-shadow: 0 8px 20px rgba(73, 59, 49, .05); }
.monument-card p { color: #8b7562; }
.monument-card span, .catalog-empty { color: #786351; }
.monument-card .monument-card-price { color: var(--forest); }
.catalog-cta-grid > p { color: #ead9c4; }

@media (max-width: 1050px) {
  .header-content { gap: 16px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 10px; }
  .header-phone { font-size: 15px; }
  .hero-grid { gap: 30px; }
  .services-section > .container, .about-grid, .contacts-grid { gap: 60px; }
  .monument-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px 28px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 71px; }
  .container { width: min(100% - 32px, 1180px); }
  .section { padding: 68px 0; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  h2 { font-size: 39px; }
  .site-header { min-height: 70px; }
  .header-content { min-height: 70px; justify-content: space-between; gap: 14px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 7px; }
  .menu-toggle { display: grid; z-index: 3; width: 41px; height: 41px; place-content: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.visually-hidden) { display: block; width: 23px; height: 1px; background: var(--forest); transition: transform .2s, opacity .2s; }
  .menu-toggle.is-open > span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open > span:nth-child(3) { opacity: 0; }
  .menu-toggle.is-open > span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: fixed; z-index: 2; top: 70px; right: 0; left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 0; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 13px 21px rgba(17, 37, 31, .08); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .2s, transform .2s; }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav a { padding: 13px 8px; font-size: 12px; }
  .main-nav a::after { right: auto; width: 25px; }
  .header-phone { display: none; }
  .main-nav .nav-phone { display: block; grid-column: 1 / -1; margin-top: 4px; padding: 14px 8px 0; border-top: 1px solid var(--line); color: var(--forest); font-size: 16px; font-weight: 800; }
  .hero { min-height: 0; padding-top: 22px; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 34px; transform: none; }
  .hero-lead { margin-bottom: 26px; font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-actions .button { min-width: 0; gap: 7px; padding-right: 7px; padding-left: 7px; }
  .hero-actions .button svg { flex: 0 0 auto; }
  .button { min-height: 52px; padding-right: 12px; padding-left: 12px; font-size: 11px; }
  .hero-perks { margin: 17px 0 20px; }
  .hero-perks span { flex: 1 1 0; padding: 8px 9px; font-size: 9px; text-align: center; }
  .hero-facts { width: calc(100% - 24px); max-width: 390px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px auto 0; text-align: center; }
  .hero-facts li { min-width: 0; padding: 0; margin: 0; border: 0; }
  .hero h1 { max-width: 100%; font-size: clamp(38px, 10.4vw, 48px); }
  .mobile-only { display: block; }
  .hero-facts li > span:last-child { font-size: 9px; }
  .feature-check { width: 24px; height: 24px; margin: 0 auto 8px; font-size: 12px; }
  .hero-visual { min-height: 390px; margin: 0 -16px; }
  .hero-visual img { right: 0; bottom: 45px; width: 112%; height: 410px; }
  .hero-caption { top: 50px; left: 8%; font-size: 8px; }
  .hero-caption strong { font-size: 10px; }
  .hero-note { right: 8%; bottom: 18px; padding: 13px 15px; }
  .hero-note strong { font-size: 13px; }
  .trust-items { grid-template-columns: 1fr 1fr; }
  .trust-items p { min-height: 82px; gap: 7px; padding: 13px 14px; border: 0; font-size: 10px; }
  .trust-items p:first-child { border: 0; }
  .trust-items p:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .trust-items p:nth-child(-n + 2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .trust-check { width: 17px; height: 17px; flex-basis: 17px; font-size: 9px; }
  .section-heading, .services-section > .container, .about-grid, .map-layout, .contacts-grid, .catalog-hero-grid, .catalog-intro-grid, .catalog-toolbar, .catalog-cta-grid, .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { margin-bottom: 31px; }
  .section-heading > p { margin: 0; font-size: 14px; }
  .catalog-preview-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 175px 175px; gap: 9px; }
  .catalog-preview { padding: 38px 0 32px; }
  .preview-card--large { grid-column: span 2; grid-row: auto; }
  .preview-overlay { padding: 17px 14px; }
  .preview-overlay b { font-size: 16px; }
  .preview-overlay small { font-size: 8px; }
  .catalog-preview-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 21px; }
  .services-section { padding: 32px 0 30px; }
  .services-intro > p:last-child { margin: 18px 0 0; font-size: 15px; }
  .service-item { grid-template-columns: 36px 1fr; padding: 17px 0; }
  .service-item h3 { font-size: 21px; }
  .service-item p { font-size: 13px; }
  .service-check { width: 24px; height: 24px; font-size: 12px; }
  .about-section { padding: 32px 0 34px; }
  .map-section { padding: 34px 0 0; }
  .about-title > p:last-child { margin-top: 18px; font-size: 15px; }
  .about-content > p { font-size: 15px; }
  .about-facts { margin-top: 30px; }
  .about-facts article { min-height: 83px; padding-right: 8px; }
  .about-facts article + article { padding-left: 9px; }
  .about-facts strong { font-size: 16px; }
  .about-facts span { font-size: 9px; }
  .map-copy > p:not(.eyebrow) { margin: 18px 0; font-size: 15px; }
  .map-legend { margin-bottom: 18px; }
  .map-preview { width: calc(100% + 32px); margin: 0 -16px; box-shadow: none; }
  .map-preview img { min-height: 0; }
  .contacts-section { padding: 34px 0 54px; }
  .contacts-grid > div > p:last-child { font-size: 15px; }
  .contacts-card { padding: 28px 23px; }
  .contacts-card strong { font-size: 23px; }
  .footer-content { grid-template-columns: 1fr; gap: 13px; }
  .privacy-policy { padding: 60px 0; }
  .privacy-policy-heading { padding-bottom: 25px; }
  .privacy-policy-heading p:last-child, .privacy-policy-content p, .privacy-policy-content li { font-size: 13px; }
  .privacy-policy-content { gap: 25px; padding-top: 28px; }
  .privacy-policy-content section { padding-bottom: 24px; }
  .privacy-policy-content h2 { font-size: 23px; }
  .catalog-hero { padding: 16px 0 0; }
  .catalog-hero-grid { min-height: 0; }
  .catalog-hero h1 { margin: 16px 0 18px; }
  .catalog-hero p:not(.eyebrow) { margin-bottom: 23px; font-size: 15px; }
  .catalog-hero-image { min-height: 330px; margin: 0 -16px; }
  .catalog-hero-image::before { top: 8px; right: -110px; width: 340px; height: 340px; }
  .catalog-hero-image img { width: 110%; height: 360px; transform: translateY(-8px); }
  .catalog-hero-image figcaption { bottom: 14px; left: 16px; font-size: 8px; }
  .catalog-toolbar { margin-bottom: 24px; }
  .catalog-toolbar > p { font-size: 14px; }
  .catalog-filters { gap: 6px; padding-bottom: 23px; }
  .catalog-filters button { padding: 8px 10px; font-size: 9px; }
  .monument-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 24px; }
  .monument-image { height: 225px; padding: 14px 12px 20px; }
  .monument-card-link > div:last-child { min-height: 155px; padding: 13px; }
  .monument-card p { font-size: 8px; }
  .monument-card h3 { font-size: 17px; }
  .monument-card span { font-size: 10px; }
  .monument-card .monument-card-price { padding-top: 8px; font-size: 17px; }
  .catalog-cta-grid { padding: 53px 0; }
  .product-detail-section { padding: 24px 0 54px; }
  .product-detail-section .product-detail-container { width: min(100% - 48px, 1180px); }
  .product-detail-grid { gap: 16px; }
  .product-detail-image { min-height: 350px; grid-template-rows: auto minmax(0, 1fr); justify-items: center; align-items: center; }
  .product-detail-image .product-detail-back-link--mobile { display: inline-block; justify-self: start; align-self: start; margin: 0; font-size: 40px; }
  .product-detail-image img { max-height: 304px; align-self: end; }
  .product-detail-copy > .product-detail-back-link { display: none; }
  .product-detail-copy { width: min(100%, 430px); margin: 0 auto; }
  .product-detail-copy h1 { font-size: clamp(35px, 9.8vw, 42px); }
  .product-detail-lead { font-size: 16px; }
  .product-detail-actions { display: grid; grid-template-columns: 1fr; }
  .contacts-actions { display: grid; grid-template-columns: 1fr; }
  .contact-fab-group { right: 17px; bottom: 18px; gap: 8px; }
  .contact-fab { width: 52px; height: 52px; }
  .contact-fab--vk svg { width: 32px; height: 32px; }
  .contact-fab--max svg { width: 28px; height: 28px; }
  .contact-fab--phone svg { width: 18px; height: 18px; }
  .contact-choice-dialog { padding: 0; }
  .contact-choice-content { width: 100%; height: 100%; max-height: none; padding: 34px 24px 28px; }
  .contact-choice-actions { grid-template-columns: 1fr; }
  .product-detail-missing { width: min(100% - 32px, 620px); padding: 34px 22px; margin: 46px auto; }
}

@media (max-width: 380px) {
  .hero-actions { grid-template-columns: 1fr; }
  .catalog-preview-grid { grid-template-rows: 230px 160px 160px; }
  .monument-image { height: 195px; }
}
