/* Общая для всех страниц зеркала часть правок: палитра, кириллические шрифты, логотип DMST.
   Главная (index.html) держит те же правила внутри <style id="dh-style"> вместе со своими,
   специфичными для первого экрана — её этот файл не подключает. */

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/prata-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/prata-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/prata-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/cormorant-italic300-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/cormorant-italic300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* палитра студии вместо палитры исходного шаблона */
:root{--color-base-blush-pink:#F4E2D8;--color-base-dark-brown:#8E3F20;--color-accent-pink:#B4552F}
[data-theme=neutral]{--color-theme-transparency-primary:color-mix(in srgb,#F4E2D8 30%,transparent)}
::selection{background-color:#B4552F;color:#F4E2D8}

/* кириллица: у Noe Text и Canora её нет */
.font-noe-text{font-family:'Prata','Noe Text',serif}
.font-canora{font-family:'Cormorant Garamond','Canora',serif;font-weight:400;font-style:italic}

/* логотип: марка исходного шаблона (svg viewBox 0 0 448 221) рисуется маской по DMST */
svg[viewBox="0 0 448 221"]{background-color:currentColor;-webkit-mask:url(/images/dmst-logo.png) center/contain no-repeat;mask:url(/images/dmst-logo.png) center/contain no-repeat}
svg[viewBox="0 0 448 221"]>path{display:none}
header svg[viewBox="0 0 448 221"]{width:78px;height:22px}
footer svg[viewBox="0 0 448 221"]{width:100%;height:auto;aspect-ratio:4800/1361}

/* --- чекбоксы согласий в форме заявки --- */
.dh-consent{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}
.dh-consent-row{display:flex;align-items:flex-start;gap:.6rem;cursor:pointer;
  font-size:.8em;line-height:1.35;opacity:.85}
.dh-consent-row:hover{opacity:1}
.dh-consent-box{appearance:none;flex:0 0 auto;width:1.05em;height:1.05em;margin-top:.15em;
  border:1px solid currentColor;background:transparent;cursor:pointer;transition:background .25s}
.dh-consent-box:checked{background:currentColor;
  box-shadow:inset 0 0 0 2px var(--color-theme-bg-secondary,#8E3F20)}
.dh-consent-row a{text-decoration:underline;text-underline-offset:.2em}
.dh-consent-err{display:none;font-size:.8em;color:#C0392B}
.dh-consent[data-err] .dh-consent-err{display:block}
.dh-consent[data-err] .dh-consent-box:not(:checked){border-color:#C0392B}

/* --- /process: блок «Этапы работы» — фото сбоку и поменьше, текст на терракоте --- */
@media (min-width:1024px){
  [data-page-builder-section="imageTextSection"]{grid-template-columns:.85fr 1.6fr;align-items:center}
  [data-page-builder-section="imageTextSection"]>div:first-child{height:74svh}
}

/* --- кнопки со шторкой: состояние нажатия для тач-экранов --- */
a:has(> [data-curtain]):active > [data-curtain],
a.dh-pressed > [data-curtain],
button:has(> [data-curtain]):active > [data-curtain]{transform:translateY(0)!important}
a:has(> [data-curtain]):active, a.dh-pressed,
button:has(> [data-curtain]):active{color:var(--color-theme-text-secondary)!important}
a:has(> [data-curtain]):active > [data-content], a.dh-pressed > [data-content]{transform:translateX(8px)}
