/*
Theme Name: Duna Modern
Theme URI: https://duna-orsk.ru/
Author: Duna 2.0
Description: Современная блочная тема для типографии и магазина «Дюна».
Version: 1.6.1
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: duna-modern
*/

:root {
  --duna-ink: #14241b;
  --duna-muted: #5f6c64;
  --duna-green: #2f6b3b;
  --duna-green-dark: #1f4e2a;
  --duna-lime: #b9d54a;
  --duna-sand: #f4f1e8;
  --duna-paper: #fffdf8;
  --duna-line: #dce3dc;
  --duna-accent: #f4b942;
  --duna-danger: #a82a2a;
  --duna-radius: 22px;
  --duna-shadow: 0 18px 55px rgba(25, 55, 35, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { color: var(--duna-ink); background: var(--duna-paper); overflow-x: clip; }
a { text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--duna-accent); outline-offset: 3px; }

.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > header.wp-block-template-part { position: sticky; z-index: 40; top: 0; }
#order, #map { scroll-margin-top: 96px; }

.wp-block-post-content::after { content: ""; display: block; clear: both; }
.wp-block-post-content img.alignleft { float: left; margin: 0 24px 18px 0; }
.wp-block-post-content img.alignright { float: right; margin: 0 0 18px 24px; }
.wp-block-post-content img.aligncenter { display: block; margin: 20px auto; }
.wp-block-post-content img.alignnone { display: inline-block; margin: 10px 14px 10px 0; vertical-align: top; }

.duna-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.duna-section { padding: clamp(56px, 8vw, 104px) 0; }
.duna-section--soft { background: var(--duna-sand); }
.duna-section--dark { color: #fff; background: var(--duna-ink); }
.duna-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.duna-section__head h2 { max-width: 760px; margin: 0; font-size: clamp(1.75rem, 4.1vw, 3.05rem); line-height: 1.06; letter-spacing: -.04em; }
.duna-eyebrow { margin: 0 0 12px; color: var(--duna-green); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.duna-section--dark .duna-eyebrow,
.duna-hero .duna-eyebrow,
.duna-sticky .duna-eyebrow,
.duna-order-head .duna-eyebrow { color: var(--duna-lime); }
.duna-section--dark a:not(.duna-button) { color: var(--duna-lime); }
.duna-lead { max-width: 720px; color: var(--duna-muted); font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.65; }
.duna-section--dark .duna-lead { color: #cbd5ce; }

.duna-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--duna-green); font-weight: 800; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.duna-button:hover { color: #fff; background: var(--duna-green-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 78, 42, .18); }
.duna-button--light { color: var(--duna-ink); background: #fff; }
.duna-button--light:hover { color: var(--duna-ink); background: var(--duna-lime); }
.duna-button--ghost { color: var(--duna-ink); border-color: var(--duna-line); background: transparent; }
.duna-button--ghost:hover { color: var(--duna-green-dark); background: #fff; }
.duna-hero .duna-button--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.duna-hero .duna-button--ghost:hover { color: var(--duna-green-dark); background: #fff; }

.duna-site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(14, 27, 19, .97); box-shadow: 0 8px 28px rgba(9,22,13,.16); backdrop-filter: blur(18px); }
.duna-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.duna-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--duna-ink); font-weight: 900; font-size: 1.45rem; letter-spacing: -.04em; text-decoration: none; }
.duna-brand__image { display: block; width: 140px; height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.24)); }
.duna-nav { display: flex; align-items: center; gap: clamp(12px, 1.45vw, 22px); }
.duna-nav a, .duna-nav summary { color: #f2f6f2; font-size: .9rem; font-weight: 700; text-decoration: none; }
.duna-nav a:hover { color: var(--duna-lime); }
.duna-nav-dropdown { position: relative; }
.duna-nav-dropdown summary { cursor: pointer; list-style: none; }
.duna-nav-dropdown summary::-webkit-details-marker { display: none; }
.duna-nav-dropdown summary::after { content: "⌄"; margin-left: 5px; color: var(--duna-lime); }
.duna-nav-dropdown__panel { position: absolute; top: calc(100% + 18px); left: -18px; width: min(310px, 90vw); display: grid; gap: 2px; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: #0e1b13; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.duna-nav-dropdown__panel a { padding: 10px 12px; border-radius: 9px; }
.duna-nav-dropdown__panel a:hover { background: rgba(255,255,255,.08); }
.duna-nav__email { color: var(--duna-lime) !important; }
.duna-nav .duna-button { color: var(--duna-ink); background: var(--duna-lime); }
.duna-nav .duna-button:hover { color: var(--duna-ink); background: #d1e878; }
.duna-nav__shop { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.duna-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 800; }

.duna-hero { position: relative; isolation: isolate; min-height: 670px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--duna-ink); }
.duna-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 78% 35%, rgba(185,213,74,.32), transparent 25%), radial-gradient(circle at 90% 78%, rgba(244,185,66,.16), transparent 24%), linear-gradient(125deg, #14241b 0%, #193523 54%, #244b2d 100%); }
.duna-hero::after { content: "Д"; position: absolute; z-index: -1; right: max(-70px, -3vw); bottom: -210px; color: rgba(255,255,255,.055); font-size: min(56vw, 720px); font-weight: 900; line-height: 1; }
.duna-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(44px, 8vw, 100px); align-items: center; padding-block: 86px; }
.duna-hero h1 { max-width: 850px; margin: 0 0 24px; font-size: clamp(2.65rem, 6vw, 5.1rem); line-height: .97; letter-spacing: -.055em; text-wrap: balance; }
.duna-hero h1 span { color: var(--duna-lime); }
.duna-hero__text { max-width: 660px; margin: 0 0 34px; color: #d7ded9; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.65; }
.duna-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.duna-hero__facts { display: grid; gap: 14px; }
.duna-fact { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--duna-radius); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.duna-fact strong { display: block; color: var(--duna-lime); font-size: 1.3rem; }
.duna-fact span { color: #d7ded9; }

.duna-section--promos { padding-block: clamp(42px, 6vw, 72px); background: #eef3e5; }
.duna-promo-carousel { position: relative; }
.duna-promo { min-height: 350px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); border-radius: 28px; color: #fff; background: var(--duna-ink); overflow: hidden; }
.duna-promo__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 6vw, 68px); }
.duna-promo__counter { color: var(--duna-lime); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.duna-promo h3 { max-width: 680px; margin: 12px 0 14px; color: #fff; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.02; }
.duna-promo p { max-width: 620px; margin: 0 0 18px; color: #d7ded9; font-size: 1.05rem; line-height: 1.6; }
.duna-promo strong { display: block; margin-bottom: 24px; color: var(--duna-lime); font-size: 1.18rem; }
.duna-promo__media { min-height: 350px; margin: 0; background: #233d2c; }
.duna-promo__media img { width: 100%; height: 100%; object-fit: cover; }
.duna-promo-carousel__controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.duna-promo-carousel__controls > button { width: 44px; height: 44px; border: 1px solid var(--duna-line); border-radius: 50%; color: var(--duna-ink); background: #fff; font-size: 1.15rem; cursor: pointer; }
.duna-promo-carousel__dots { display: flex; gap: 7px; }
.duna-promo-carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #aeb8ae; cursor: pointer; }
.duna-promo-carousel__dots button[aria-current="true"] { width: 28px; border-radius: 99px; background: var(--duna-green); }

.duna-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.duna-card { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--duna-line); border-radius: var(--duna-radius); background: #fff; box-shadow: 0 1px 0 rgba(20,36,27,.02); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.duna-card:hover { border-color: #b8c9bb; transform: translateY(-4px); box-shadow: var(--duna-shadow); }
.duna-card__media { aspect-ratio: 16 / 10; margin: 0; overflow: hidden; background: var(--duna-sand); }
.duna-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.duna-card:hover .duna-card__media img { transform: scale(1.035); }
.duna-card__body { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 26px; }
.duna-card__index { display: inline-grid; width: 40px; height: 40px; place-items: center; margin-bottom: 20px; border-radius: 12px; color: var(--duna-green-dark); background: #eaf1da; font-weight: 900; }
.duna-card h3 { margin: 0 0 11px; font-size: 1.22rem; line-height: 1.2; }
.duna-card p { margin: 0 0 22px; color: var(--duna-muted); line-height: 1.55; }
.duna-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--duna-line); color: var(--duna-muted); font-size: .9rem; }
.duna-card__price { color: var(--duna-green-dark); font-weight: 900; }
.duna-card__link { color: var(--duna-green-dark); font-weight: 800; text-decoration: none; }
.duna-card__link::after { content: " →"; }

.duna-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.duna-step { counter-increment: step; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.18); }
.duna-step::before { content: "0" counter(step); display: block; margin-bottom: 28px; color: var(--duna-lime); font-weight: 900; font-size: 1.1rem; }
.duna-step h3 { margin: 0 0 12px; font-size: 1.28rem; }
.duna-step p { margin: 0; color: #cbd5ce; line-height: 1.6; }

.duna-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.duna-work { position: relative; isolation: isolate; min-height: 320px; display: flex; flex-direction: column; justify-content: end; padding: 28px; border-radius: var(--duna-radius); color: #fff; background: linear-gradient(145deg, #2f6b3b, #14241b); overflow: hidden; text-decoration: none; }
.duna-work::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(8,20,12,.92) 0%, rgba(8,20,12,.26) 66%, rgba(8,20,12,.12) 100%); }
.duna-work__media { position: absolute; z-index: -2; inset: 0; margin: 0; }
.duna-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.duna-work:hover .duna-work__media img { transform: scale(1.04); }
.duna-work:nth-child(3n+2) { background: linear-gradient(145deg, #8d5b24, #34230f); }
.duna-work:nth-child(3n+3) { background: linear-gradient(145deg, #4f596f, #1e2430); }
.duna-work__type { margin-bottom: auto; color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.duna-work h3 { margin: 0; color: #fff; font-size: 1.42rem; }

.duna-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duna-location { padding: 32px; border: 1px solid var(--duna-line); border-radius: var(--duna-radius); background: #fff; }
.duna-location__label { color: var(--duna-green); font-weight: 900; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.duna-location h3 { margin: 10px 0 18px; font-size: 1.42rem; }
.duna-location p { margin: 8px 0; color: var(--duna-muted); }
.duna-location__phone { display: inline-block; margin: 10px 0 18px; color: var(--duna-ink); font-size: 1.2rem; font-weight: 900; text-decoration: none; }
.duna-map { margin-top: 24px; border: 1px solid var(--duna-line); border-radius: var(--duna-radius); background: #fff; overflow: hidden; }
.duna-map__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.duna-map__head h3 { margin: 0; font-size: 1.42rem; }
.duna-map__head a { color: var(--duna-green-dark); font-weight: 800; }
.duna-map__switcher { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px 20px; }
.duna-map__location-button { min-height: 42px; padding: 9px 16px; border: 1px solid var(--duna-line); border-radius: 999px; color: var(--duna-ink); background: #fff; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.duna-map__location-button:hover { border-color: var(--duna-green); color: var(--duna-green-dark); }
.duna-map__location-button.is-active { border-color: var(--duna-green); color: #fff; background: var(--duna-green); }
.duna-map__stage { position: relative; }
.duna-map__frame { height: clamp(320px, 40vw, 480px); background: var(--duna-sand); }
.duna-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.duna-map__balloons { position: absolute; z-index: 2; top: 22px; left: 22px; width: min(360px, calc(100% - 44px)); pointer-events: none; }
.duna-map-balloon { position: relative; padding: 24px; border: 1px solid rgba(20,36,27,.1); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 18px 55px rgba(20,36,27,.22); pointer-events: auto; backdrop-filter: blur(12px); }
.duna-map-balloon::after { content: ""; position: absolute; left: 30px; bottom: -10px; width: 18px; height: 18px; border-right: 1px solid rgba(20,36,27,.1); border-bottom: 1px solid rgba(20,36,27,.1); background: #fff; transform: rotate(45deg); }
.duna-map-balloon__label { color: var(--duna-green); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.duna-map-balloon h4 { margin: 6px 0 8px; font-size: 1.3rem; }
.duna-map-balloon > p { margin: 0 0 14px; color: var(--duna-muted); line-height: 1.45; }
.duna-map-balloon dl { display: grid; gap: 8px; margin: 0; }
.duna-map-balloon dl div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.duna-map-balloon dt { color: var(--duna-muted); font-size: .82rem; }
.duna-map-balloon dd { margin: 0; font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }
.duna-map-balloon dd a { color: var(--duna-green-dark); }
.duna-map-balloon__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--duna-line); }
.duna-map-balloon__actions a { color: var(--duna-green-dark); font-size: .86rem; font-weight: 900; }
.duna-requisites { display: grid; gap: 12px; margin: 28px 0 0; }
.duna-requisites div { display: grid; grid-template-columns: minmax(150px, .6fr) 1fr; gap: 20px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.duna-requisites dt { color: #9fb0a4; }
.duna-requisites dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.duna-social-links { display: flex; flex-wrap: wrap; gap: 14px; }

.duna-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.duna-filter a { padding: 10px 15px; border: 1px solid var(--duna-line); border-radius: 999px; color: var(--duna-ink); font-weight: 700; text-decoration: none; }
.duna-filter a[aria-current="page"], .duna-filter a:hover { color: #fff; border-color: var(--duna-green); background: var(--duna-green); }

.duna-page-hero { padding: clamp(36px, 5vw, 56px) 0 48px; background: var(--duna-sand); }
.duna-page-hero h1 { max-width: 920px; margin: 0 0 22px; font-size: clamp(2.3rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.duna-service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 56px; align-items: start; }
.duna-service-content { min-width: 0; font-size: 1rem; line-height: 1.7; }
.duna-service-content h2 { margin-top: 2.15em; font-size: 1.72rem; }
.duna-service-image, .duna-work-single-image { aspect-ratio: 16 / 9; margin: 0 0 30px; border-radius: var(--duna-radius); overflow: hidden; background: var(--duna-sand); }
.duna-service-image img, .duna-work-single-image img { width: 100%; height: 100%; object-fit: cover; }
.duna-gallery { margin: 34px 0 46px; }
.duna-gallery h2 { margin: 0 0 18px; }
.duna-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.duna-gallery figure { min-width: 0; margin: 0; }
.duna-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 15px; background: var(--duna-sand); overflow: hidden; }
.duna-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.duna-gallery a:hover img { transform: scale(1.03); }
.duna-gallery figcaption { margin-top: 7px; color: var(--duna-muted); font-size: .84rem; line-height: 1.4; }
.duna-pricing { margin: 36px 0 48px; padding: clamp(22px, 4vw, 36px); border: 1px solid #cbd8cd; border-radius: var(--duna-radius); background: #f7f9f2; }
.duna-pricing__head h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.3vw, 1.95rem); }
.duna-pricing__head > p:last-child { margin: 0 0 24px; color: var(--duna-muted); }
.duna-price-sections { display: grid; gap: 30px; }
.duna-price-section { min-width: 0; }
.duna-price-section h3 { margin: 0; font-size: 1.14rem; line-height: 1.35; }
.duna-price-section + .duna-price-section { padding-top: 28px; border-top: 1px solid #d9e4d7; }
.duna-price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.duna-price-list li { padding: 14px 16px; border: 1px solid #d9e4d7; border-radius: 13px; background: #fff; color: var(--duna-ink); font-weight: 700; line-height: 1.45; }
.duna-price-table-wrap { width: 100%; min-width: 0; max-width: 100%; margin-top: 18px; overflow-x: auto; border: 1px solid #d9e4d7; border-radius: 14px; background: #fff; }
.duna-price-table-wrap table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; font-size: .9rem; }
.duna-price-table-wrap table.duna-price-table--two-col { min-width: 0; table-layout: fixed; }
.duna-price-table-wrap table.duna-price-table--wide { min-width: 760px; }
.duna-price-table-wrap table.duna-price-table--very-wide { min-width: 940px; }
.duna-price-table-wrap th, .duna-price-table-wrap td { padding: 12px 14px; border: 1px solid #e1e7e0; text-align: left; vertical-align: top; }
.duna-price-table-wrap th { color: var(--duna-green-dark); background: #edf3e4; font-weight: 900; }
.duna-price-table-wrap th:not(:first-child), .duna-price-table-wrap td:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.duna-price-table-wrap tr:not(.is-header):nth-child(odd) td { background: #fbfcf9; }
.duna-price-table-wrap tr:not(.is-header) th[scope="row"] { color: var(--duna-ink); background: #f9faf7; }
.duna-price-table-wrap tr.is-group-header th { color: #fff; background: var(--duna-green-dark); text-align: center; }
.duna-price-table--two-col th:first-child, .duna-price-table--two-col td:first-child { width: 68%; }
.duna-price-table--two-col th:last-child, .duna-price-table--two-col td:last-child { width: 32%; }
.duna-price-table-wrap:focus { outline: 3px solid rgba(47,107,59,.22); outline-offset: 3px; }
.duna-price-note { margin: 12px 0 0; color: var(--duna-muted); font-size: .92rem; line-height: 1.55; }
.duna-table-hint { margin: 8px 0 -8px; color: var(--duna-muted); font-size: .82rem; }
.duna-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0; }
.duna-spec { padding: 18px; border-radius: 15px; background: var(--duna-sand); }
.duna-spec small { display: block; margin-bottom: 5px; color: var(--duna-muted); }
.duna-spec strong { font-size: 1rem; }
.duna-sticky { position: sticky; top: 100px; padding: 28px; border-radius: var(--duna-radius); color: #fff; background: var(--duna-ink); }
.duna-sticky h2 { margin-top: 0; }

.duna-order-wrap { border-radius: 30px; background: #fff; box-shadow: var(--duna-shadow); overflow: hidden; }
.duna-order-head { padding: clamp(28px, 5vw, 52px); color: #fff; background: var(--duna-green-dark); }
.duna-order-head h2 { margin: 0 0 10px; font-size: clamp(1.75rem, 3.3vw, 2.65rem); }
.duna-order-head p { max-width: 700px; margin: 0; color: #d9e5dc; }
.duna-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(24px, 5vw, 52px); }
.duna-field { min-width: 0; }
.duna-field--wide { grid-column: 1 / -1; }
.duna-field label, .duna-field legend { display: block; margin: 0 0 8px; font-weight: 800; }
.duna-field input:not([type="checkbox"]), .duna-field select, .duna-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cbd5ce; border-radius: 12px; color: var(--duna-ink); background: #fff; font: inherit; }
.duna-field textarea { min-height: 130px; resize: vertical; }
.duna-field input:focus, .duna-field select:focus, .duna-field textarea:focus { border-color: var(--duna-green); outline: 3px solid rgba(47,107,59,.14); }
.duna-file-field input[type="file"] { min-height: 64px; padding: 7px; border: 2px dashed #b8c8ba; border-radius: 14px; color: var(--duna-muted); background: #f8faf6; font-size: .9rem; line-height: 46px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.duna-file-field input[type="file"]:hover { border-color: var(--duna-green); background: #f1f6ec; }
.duna-file-field input[type="file"]::file-selector-button { min-height: 46px; margin: 0 14px 0 0; padding: 10px 18px; border: 0; border-radius: 10px; color: #fff; background: var(--duna-green); font: inherit; font-weight: 800; line-height: 1; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.duna-file-field input[type="file"]::file-selector-button:hover { background: var(--duna-green-dark); }
.duna-field__hint { display: block; margin-top: 6px; color: var(--duna-muted); font-size: .86rem; }
.duna-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--duna-muted); font-size: .92rem; }
.duna-alert { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; font-weight: 700; }
.duna-alert--success { color: #174220; background: #e4f2e7; }
.duna-alert--error { color: #792020; background: #fae4e4; }
.duna-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.duna-site-footer { padding: 52px 0 24px; color: #cbd5ce; background: #0e1b13; }
.duna-footer-logo { display: block; width: 140px; height: auto; margin-bottom: 18px; }
.duna-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(2, 1fr); gap: 42px; }
.duna-site-footer h2, .duna-site-footer h3 { color: #fff; }
.duna-site-footer a { color: #e7eee9; }
.duna-footer-nav { display: grid; gap: 10px; }
.duna-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #93a198; font-size: .86rem; }

.duna-empty { padding: 36px; border: 1px dashed #b8c4bb; border-radius: var(--duna-radius); text-align: center; }

@media (max-width: 1120px) {
  .duna-nav { display: none; position: absolute; top: 76px; right: 0; left: 0; max-height: calc(100vh - 76px); padding: 20px; flex-direction: column; align-items: stretch; overflow-y: auto; border-bottom: 1px solid rgba(255,255,255,.12); background: #0e1b13; }
  .duna-nav.is-open { display: flex; }
  .duna-nav__shop { padding: 14px 0 0; border-top: 1px solid var(--duna-line); border-left: 0; }
  .duna-nav-dropdown__panel { position: static; width: 100%; margin-top: 10px; padding-left: 14px; border-radius: 10px; box-shadow: none; }
  .duna-menu-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .duna-hero__grid, .duna-service-layout { grid-template-columns: 1fr; }
  .duna-promo { grid-template-columns: 1fr; }
  .duna-promo__media { min-height: 260px; order: -1; }
  .duna-hero__facts { grid-template-columns: repeat(3, 1fr); }
  .duna-grid, .duna-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duna-sticky { position: static; }
  .duna-price-table:not(.duna-price-table--two-col) th:first-child,
  .duna-price-table:not(.duna-price-table--two-col) td:first-child { position: sticky; z-index: 2; left: 0; box-shadow: 7px 0 12px -12px rgba(20,36,27,.7); }
}

@media (max-width: 640px) {
  .duna-brand__image { width: 118px; }
  .duna-shell { width: min(100% - 28px, 1180px); }
  .duna-section__head { display: block; }
  .duna-section__head .duna-button { margin-top: 20px; }
  .duna-hero { min-height: auto; }
  .duna-hero__grid { padding-block: 62px; }
  .duna-hero h1 { font-size: clamp(2.25rem, 10.5vw, 2.8rem); }
  .duna-hero__facts, .duna-grid, .duna-work-grid, .duna-locations, .duna-steps, .duna-form, .duna-footer-grid { grid-template-columns: 1fr; }
  .duna-fact { padding: 18px; }
  .duna-field--wide { grid-column: auto; }
  .duna-specs { grid-template-columns: 1fr; }
  .duna-price-list { grid-template-columns: 1fr; }
  .duna-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duna-page-hero { padding: 30px 0 32px; }
  .duna-page-hero h1 { font-size: clamp(1.85rem, 8.3vw, 2.45rem); line-height: 1.04; letter-spacing: -.035em; overflow-wrap: break-word; hyphens: auto; }
  .duna-service-content { font-size: 1rem; line-height: 1.65; }
  .duna-service-content h2 { margin-top: 1.9em; font-size: 1.45rem; }
  .duna-pricing { margin: 28px 0 38px; padding: 20px 14px; border-radius: 18px; }
  .duna-price-sections { gap: 24px; }
  .duna-price-section + .duna-price-section { padding-top: 22px; }
  .duna-price-table-wrap { border-radius: 10px; scrollbar-color: var(--duna-green) #eef2eb; }
  .duna-price-table-wrap th, .duna-price-table-wrap td { padding: 10px 12px; }
  .duna-price-table--two-col th:first-child, .duna-price-table--two-col td:first-child { width: 62%; }
  .duna-price-table--two-col th:last-child, .duna-price-table--two-col td:last-child { width: 38%; }
  .duna-file-field input[type="file"] { line-height: 1.35; }
  .duna-file-field input[type="file"]::file-selector-button { display: block; width: 100%; margin: 0 0 7px; }
  .duna-map__head { display: block; padding: 20px; }
  .duna-map__head a { display: inline-block; margin-top: 12px; }
  .duna-map__switcher { padding: 0 20px 18px; }
  .duna-map__frame { height: 360px; }
  .duna-map__stage { display: flex; flex-direction: column; }
  .duna-map__frame { order: 2; height: 320px; }
  .duna-map__balloons { position: static; order: 1; width: auto; pointer-events: auto; }
  .duna-map-balloon { border-width: 1px 0 0; border-radius: 0; padding: 20px; box-shadow: none; backdrop-filter: none; }
  .duna-map-balloon::after { display: none; }
  .duna-map-balloon dl div { grid-template-columns: 96px minmax(0, 1fr); }
  .duna-footer-bottom { flex-direction: column; }
  .duna-requisites div { grid-template-columns: 1fr; gap: 4px; }
  .duna-work { min-height: 260px; }
  .wp-block-post-content img.alignleft,
  .wp-block-post-content img.alignright,
  .wp-block-post-content img.aligncenter,
  .wp-block-post-content img.alignnone { float: none; display: block; width: auto; max-width: 100%; margin: 18px auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
