/* ===========================
   Домиус — Общие стили
   =========================== */
:root{
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #f8fafc;
  --primary: #752520;
  --primary-600:#752520d9;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --shadow-1: 0 8px 20px rgba(15, 23, 42, .06);
  --shadow-2: 0 16px 40px rgba(15, 23, 42, .10);
  --wa:#25D366;           /* WhatsApp зелёный */
  --wa-hover:#1ebe57;
  --max:#3761fd;          
  --max-hover:#1b8ec6;    /* Чуть темнее для hover */
  --tg:#26A5E4;          
  --tg-hover:#1b8ec6;    /* Чуть темнее для hover */
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .9; }

h1,h2,h3{ margin: 0 0 10px; font-weight: 800; color: #0f172a; }
h1{ font-size: 36px; line-height: 1.15; }
h2{ font-size: 28px; line-height: 1.2; }
h3{ font-size: 20px; line-height: 1.3; }

.muted{ color: var(--muted); }

.container{
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}

.section-head{
  text-align: center;
  margin: 0 0 26px;
}
.section-head p{ margin: 6px 0 0; }

/* Кнопки */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid transparent;
  font-weight: 700; transition: .2s ease; cursor: pointer; white-space: nowrap;
}
.btn-primaryW{ background: var(--wa); color:#fff; box-shadow: var(--shadow-1); }
.btn-primaryM{ background: var(--max); color:#fff; box-shadow: var(--shadow-1); }
.btn-primaryT{ background: var(--tg); color:#fff; box-shadow: var(--shadow-1); }
.btn-primary:hover{ background: var(--primary-600); }
.btn-outline{ background: #fff; border-color: var(--line); color: #0f172a; }
.btn-outline:hover{ background: #fafafa; }

/* ===========================
   Шапка
   =========================== */
.top-bar{ border-bottom: 1px solid var(--line); background: #fff; }
.header-row{
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.logo img{ max-height: 120px; }

.main-nav ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.main-nav a{
  display: block; padding: 10px 12px; border-radius: 8px; color: #283043; font-weight: 700;
}
.main-nav a:hover{ background: #f3f4f6; }
.badge-new{ color: green; font-weight: 800; font-size: 10px; margin-left: 2px; position: relative; top: -6px; }

.head-contacts{ display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.head-contacts .city{ font-size: 14px; color: var(--muted); }
.head-contacts .head-phone{ font-size: 20px; font-weight: 900; color: #0f172a; }

/* Бургер */
.menu-toggle{
  display: none; width: 42px; height: 36px; border: 0; background: transparent; cursor: pointer;
}
.menu-toggle span{ display: block; height: 3px; background: #0f172a; margin: 7px 0; border-radius: 2px; }

/* ===========================
   Hero
   =========================== */
.slider-container{ position: relative; width: 100%; background: #000; }
.slider-container img{ width: 100%; max-height: 70vh; object-fit: cover; }
.onslider{
  position: absolute; left: 16px; right: 16px; bottom: 22px;
  background: rgba(0,0,0,.35); color: #fff; padding: 16px; border-radius: var(--radius-m);
  max-width: 760px; box-shadow: var(--shadow-1);
}
.onslider p{ font-weight: 900; font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.onslider span{ font-size: 16px; }

/* ===========================
   Карточки работ
   =========================== */
.works{ padding: 28px 0 10px; background: var(--bg); }

.work-grid{ display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 768px){ .work-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .work-grid{ grid-template-columns: 1fr 1fr 1fr; } }

.work-card{
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.work-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #dfe3ea; }

.work-media{ position: relative; padding: 12px 12px 4px; }

.work-cover{
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; aspect-ratio: 4/3; background: #0f172a;
}
.work-cover img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.work-card:hover .work-cover img{ transform: scale(1.04); opacity: .98; }

.zoom-badge{
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(17,24,39,.6); color:#fff;
  font-weight: 900; font-size: 18px; backdrop-filter: blur(6px); transition: .2s ease;
}
.work-card:hover .zoom-badge{ background: rgba(17,24,39,.75); }

.work-thumbs{
  margin: 10px 0 0; padding: 0 2px 8px; display: flex; gap: 8px; overflow-x: auto; list-style: none;
}
.work-thumbs li a{
  display: block; width: 64px; height: 50px; flex: 0 0 auto; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #0f172a; transition: transform .15s ease, border-color .15s ease;
}
.work-thumbs li a:hover{ transform: translateY(-2px); border-color: #d6dae3; }
.work-thumbs img{ width: 100%; height: 100%; object-fit: cover; }

.work-body{ padding: 10px 14px 16px; }
.work-title{ font-size: 18px; font-weight: 800; margin: 2px 0 8px; color: #0f172a; }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chip{
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: #eef2ff; color: #374151; font-weight: 700; font-size: 12px; border: 1px solid #e5e7eb;
}
.work-text{ color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.work-cta{ display: flex; }

/* ===========================
   Разделитель
   =========================== */
.star-divider{
  width: 100%; height: 1px; background: var(--line); margin: 28px 0; position: relative; text-align: center;
}
.star-divider .fa{
  position: relative; top: -12px; display: inline-block; background: #fff; padding: 8px; color: #c7cbd3; border-radius: 999px;
}

/* ===========================
   Почему мы
   =========================== */
.benefits{ padding: 28px 0; background: var(--bg); }
.benefit-grid{ display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px){ .benefit-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px){ .benefit-grid{ grid-template-columns: 1fr 1fr 1fr; } }

.benefit-card{
  position: relative; padding: 18px 16px 16px; background: radial-gradient(120% 120% at 0% 0%, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #dde2ea; }

.benefit-icon{
  width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #752520 0%, #752520ba 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(239, 68, 68, .35);
}
.benefit-card h3{ font-size: 18px; margin: 0 0 6px; color:#0f172a; }
.benefit-card p{ margin: 0; color: var(--muted); }

/* ===========================
   Отзывы
   =========================== */
.reviews{ padding: 24px 0; }

/* ===========================
   CTA
   =========================== */
.cta{ padding: 26px 0; background: #fff; }
.cta-inner{ text-align: center; }
.cta-actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ===========================
   Контакты
   =========================== */
.contacts{ padding: 24px 0; }
.address-main{
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; background: var(--bg);
  box-shadow: var(--shadow-1); margin: 0 0 18px;
}
@media (min-width: 900px){ .address-main{ grid-template-columns: 1fr 1fr; } }

.address .title{ margin: 0 0 6px; font-size: 18px; }
.contact-us{ list-style: none; margin: 0; padding: 0; }
.contact-us p{ margin: 0 0 6px; color: var(--text); }
.contact-pad{ font-weight: 800; margin-right: 6px; color:#0f172a; }
.map-embed iframe{ width: 100%; height: 230px; border: 0; border-radius: 10px; box-shadow: var(--shadow-1); }

/* ===========================
   Футер
   =========================== */
.site-footer{ color: #0f172a; }
.footer-top{
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0;
}
.footer-grid{
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start;
}
@media (min-width: 900px){ .footer-grid{ grid-template-columns: 1.5fr 1fr 1fr; } }

.footer-col .logo img{ max-height: 120px; margin-bottom: 10px; }
.footer-col p{ margin: 6px 0 10px; color: var(--muted); }

.social{ list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 10px; }
.social a{
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: #f3f4f6; color: #0f172a;
}
.social a:hover{ background: #e5e7eb; }

.footer-col h4{ margin: 0 0 10px; font-size: 16px; color: #0f172a; }
.footer-links, .footer-contacts{ list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contacts li{ margin: 6px 0; }
.footer-links a{ color: #374151; }
.footer-links a:hover{ color: #111827; }
.footer-contacts i{ width: 18px; color: #6b7280; }

.worktime{ margin: 10px 0 0; color: #374151; }
.worktime i{ color: #6b7280; margin-right: 6px; }

.footer-bottom{ background: #fafafa; }
.footer-bottom-row{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 0;
}
.footer-bottom-row p{ margin: 0; color: #6b7280; }
.footer-legal{ list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.footer-legal a{ color: #6b7280; }
.footer-legal a:hover{ color: #111827; }

/* ===========================
   Адаптив
   =========================== */
@media (max-width: 1100px){
  .header-row{ grid-template-columns: auto auto auto; }
}
@media (max-width: 900px){
  .menu-toggle{ display: inline-block; }
  .main-nav{ display: none; }
  .main-nav.open{ display: block; }
  .main-nav ul{ flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; }
  .head-contacts{ align-items: flex-start; }
}
@media (max-width: 992px){
  .onslider{ left: 12px; right: 12px; bottom: 12px; padding: 12px; }
  .onslider p{ font-size: 22px; }
  .onslider span{ font-size: 14px; }
}
@media (max-width: 480px){
  h1{ font-size: 28px; } h2{ font-size: 22px; }
  .work-thumbs li a{ width: 56px; height: 44px; }
  .footer-bottom-row{ flex-direction: column; align-items: flex-start; }
}

/* Служебное */
.page-mask, .scrollup{ display: none !important; }




/* ===== Mobile carousels for .work-grid и .benefit-grid ===== */
@media (max-width: 768px){
  .work-grid,
  .benefit-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding: 0 8px 6px !important;
    margin: 0 -8px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none; /* Firefox */
  }
  .work-grid::-webkit-scrollbar,
  .benefit-grid::-webkit-scrollbar{ display: none; } /* Chrome/Safari */

  .work-card,
  .benefit-card{
    flex: 0 0 86% !important;       /* ширина «слайда» */
    scroll-snap-align: start !important;
    scroll-margin-left: 8px !important;
  }

  /* Чуть шире на очень узких устройствах */
  @media (max-width: 420px){
    .work-card, .benefit-card{ flex-basis: 92% !important; }
  }

  /* Контролы карусели */
  .carousel-controls{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 2px;
  }
  .carousel-btn{
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff; color: #0f172a;
    display: grid; place-items: center;
    box-shadow: var(--shadow-1);
  }
  .carousel-btn:disabled{ opacity: .5; }
  .carousel-dots{
    display: flex; align-items: center; gap: 6px;
  }
  .carousel-dot{
    width: 8px; height: 8px; border-radius: 999px;
    background: #d1d5db;
    transition: .2s ease;
  }
  .carousel-dot.is-active{ background: #0f172a; transform: scale(1.15); }
}

/* Безопасность: на десктопе скрываем контролы, если вдруг добавились */
@media (min-width: 769px){
  .carousel-controls{ display: none !important; }
}

/* ====== Domius Quiz (калькулятор кухни) ====== */
:root{
  --dm-ink:#0f172a;
  --dm-muted:#6b7280;
  --dm-bg:#f6f7f9;
  --dm-line:#e5e7eb;
  --dm-card:#ffffff;
  --dm-primary:#be1e2d; /* акцент Домиус — при необходимости поправьте */
  --dm-primary-600:#a61724;
  --dm-radius:14px;
  --dm-shadow:0 6px 18px rgba(15,23,42,.08);
}

.dmq-wrap{ padding: 24px 0; background: var(-bg); }
.dmq-card{ max-width: 1200px; margin: 0 auto; background: var(--dm-card); border-radius: var(--dm-radius); box-shadow: var(--dm-shadow); overflow: hidden; }
.dmq-header{ padding: 18px 22px; border-bottom:1px solid var(--dm-line); display:flex; align-items:center; gap:16px; justify-content:space-between; }
.dmq-brand{ display:flex; align-items:center; gap:10px; font-weight:600; color:var(--dm-ink); }
.dmq-brand img{ height:24px; width:auto; }

.dmq-progress{ flex:1; height:6px; background:#f3f4f6; border-radius:999px; overflow:hidden; margin-left:16px; }
.dmq-progress-bar{ display:block; height:100%; width:0%; background: linear-gradient(90deg,var(--dm-primary),#e11d48); transition: width .3s ease; }

.dmq-form{ padding: 18px 22px 14px; }
.dmq-title{ font-size: clamp(20px, 2vw, 24px); margin: 6px 0 16px; color:var(--dm-ink); }
.dmq-stepnote{ color:var(--dm-muted); font-size:13px; margin-top:10px; }

.dmq-steps{ position:relative; }
.dmq-step{ display:none; animation: dmqFade .25s ease; }
.dmq-step.is-active{ display:block; }

@keyframes dmqFade{ from{ opacity:0; transform: translateY(4px);} to{ opacity:1; transform: none;} }

.dmq-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:14px; }
.dmq-grid-M{ display:grid; grid-template-columns: repeat(4,1fr); gap:14px; }
.dmq-grid-N{ display:grid; grid-template-columns: repeat(4,1fr); gap:14px; }
@media (max-width: 900px){ .dmq-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .dmq-grid{ grid-template-columns: 1fr; } }
@media (max-width: 900px){ .dmq-grid-M{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .dmq-grid-N{ grid-template-columns: 1fr; } }
@media (max-width: 900px){ .dmq-grid-M{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .dmq-grid-N{ grid-template-columns: 1fr; } }

.dmq-card-opt{ cursor:pointer; }
.dmq-card-opt input{ position:absolute; opacity:0; pointer-events:none; }
.dmq-card-opt__box{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  border:1px solid var(--dm-line); border-radius:12px; padding:14px;
  transition:.2s ease; background:#fff; position:relative;
}
.dmq-card-opt__box::after{
  content:''; position:absolute; right:10px; top:10px; width:18px; height:18px; border-radius:999px;
  border:2px solid #cbd5e1; background:#fff;
}
.dmq-card-opt input:checked + .dmq-card-opt__box{ border-color: var(--dm-primary); box-shadow: 0 0 0 3px rgba(190,30,45,.08); }
.dmq-card-opt input:checked + .dmq-card-opt__box::after{ background: var(--dm-primary); border-color: var(--dm-primary); box-shadow: inset 0 0 0 2px #fff; }
.dmq-card-opt__title{ font-weight:600; color:var(--dm-ink); }

.dmq-ico{ display:grid; place-items:center; width:100%; height: 215px; }
.dmq-photo{ width:100%; height: 242px; border-radius:10px; background-size:cover; background-position:center; border:1px solid var(--dm-line); }
.dmq-photo img{ width:100%; height: 242px; border-radius:10px; background-size:cover; background-position:center; border:1px solid var(--dm-line); }
.ph-matte{ background-image: linear-gradient(120deg,#e5e7eb,#f8fafc); }
.ph-gloss{ background-image: linear-gradient(120deg,#e2e8f0,#e5e7eb 35%,#f8fafc); }
.ph-wood{ background-image: url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?q=80&w=800&auto=format&fit=crop'); }
.ph-hpl{ background-image: url('https://images.unsplash.com/photo-1523419409543-8c1a9bf86b5a?q=80&w=800&auto=format&fit=crop'); }

.dmq-list{ display:flex; flex-direction:column; gap:10px; }
.dmq-list.inline{ flex-direction:row; flex-wrap:wrap; gap:14px; }

.dmq-radio{ display:flex; gap:10px; align-items:center; cursor:pointer; }
.dmq-radio input{ width:18px; height:18px; }
.dmq-radio span{ color:var(--dm-ink); }

.dmq-inline{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:12px; }
@media (max-width:640px){ .dmq-inline{ grid-template-columns:1fr; } }
.hidden{ display:none !important; }

.dmq-field{ display:flex; flex-direction:column; gap:6px; }
.dmq-field > span{ font-size:13px; color:var(--dm-muted); }
.dmq-field input{
  height:46px; padding:0 12px; border-radius:10px; border:1px solid var(--dm-line);
  background:#fff; color:var(--dm-ink); outline:none; transition:.2s;
}
.dmq-field input:focus{ border-color: var(--dm-primary); box-shadow: 0 0 0 3px rgba(190,30,45,.08); }

.dmq-check{ display:flex; align-items:center; gap:10px; margin-top:12px; color:var(--dm-muted); font-size:14px; }
.dmq-check input{ width:18px; height:18px; }

.dmq-nav{ display:flex; gap:12px; justify-content:flex-end; padding-top:6px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; height:46px; padding:0 18px; border-radius:10px; border:1px solid transparent; font-weight:600; cursor:pointer; transition:.2s; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }
.btn-primary{ background: var(--dm-primary); color:#fff; }
.btn-primary:hover{ background: var(--dm-primary-600); }
.btn-light{ background:#fff; color:var(--dm-ink); border-color: var(--dm-line); }
.btn-light:hover{ border-color:#cbd5e1; }

.dmq-muted{ color:var(--dm-muted); }

/* Modal */
.dmq-modal[hidden]{ display:none !important; }
.dmq-modal{ position:fixed; inset:0; z-index:50; }
.dmq-modal__backdrop{ position:absolute; inset:0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.dmq-modal__dialog{ position:relative; max-width:760px; margin: 5vh auto; background:#fff; border-radius:16px; box-shadow:var(--dm-shadow); overflow:hidden; }
.dmq-modal__content{ padding:20px 22px 18px; }
.dmq-modal__close{ position:absolute; right:10px; top:8px; width:40px; height:40px; border-radius:10px; border:1px solid var(--dm-line); background:#fff; font-size:24px; line-height:1; }
.dmq-offers{ display:grid; gap:12px; margin-top:12px; }
.dmq-offer{ border:1px solid var(--dm-line); border-radius:12px; padding:14px; }
.dmq-offer h4{ margin:4px 0 6px; }
.dmq-offer .price{ font-weight:700; color:var(--dm-ink); }
.dmq-offer ul{ margin:8px 0 0 18px; color:var(--dm-muted); }
.dmq-modal__actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }


@media (max-width: 768px) {
    .dmq-ico {
display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}
.dmq-grid-M {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    grid-auto-flow: column;
}
.dmq-grid-N {
display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 14px;
        grid-auto-flow: column;
    }

.dmq-card-opt__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dm-line);
    border-radius: 12px;
    padding: 6px;
    transition: .2s ease;
    background: #fff;
    position: relative;
}
.dmq-card-opt__title {
    font-weight: 600;
    color: var(--dm-ink);
    font-size: 16px;
}
.dmq-photo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--dm-line);
}
.dmq-photo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--dm-line);
}
}