@charset "UTF-8";
/* честныймастер.рф — общая основа для всех тем: сброс, доступность, механика меню
   и раскраска SVG через переменные. Внешний вид задаёт css/style-N.css. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; overflow-wrap: break-word; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 88px; }

.nowrap { white-space: nowrap; }
.price { white-space: nowrap; }
/* Вторая строка под ценой в финальном блоке продажи. */
.offer__price-note + .offer__price-note { margin-top: .3em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; background: #111; color: #fff; border-radius: 6px;
  font: 600 15px/1.2 system-ui, sans-serif; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 3px; }

/* Иконки из спрайта: линии наследуют цвет текста. */
.icon {
  flex: none; width: 1.5em; height: 1.5em;
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke, 1.75);
  stroke-linecap: round; stroke-linejoin: round;
}
.brand__mark {
  flex: none; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Кнопка — общий каркас, оформление в темах. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  text-decoration: none; cursor: pointer; text-align: center;
}

/* Мобильное меню: до 900 px навигация прячется за кнопкой (при включённом JS). */
.nav-toggle { display: none; cursor: pointer; }
.site-nav__cta { display: none; }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; }
  .site-nav__cta { display: inline-flex; }
  .site-header__cta { display: none; }
}
@media (max-width: 350px) {
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav-toggle__icon { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle__icon::before, .nav-toggle__icon::after, .nav-toggle__icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span { top: 6px; }
.nav-toggle__icon::after { bottom: 0; }
.is-open .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__icon span { opacity: 0; }
.is-open .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Иллюстрация в первом экране. */
.house { width: 100%; height: auto; overflow: visible; }
.house .h-deco { fill: var(--house-deco, none); stroke: var(--house-deco-line, none); stroke-width: 2; stroke-linecap: round; }
.house .h-roof { fill: var(--house-roof, none); }
.house .h-wall { fill: var(--house-wall, none); }
.house .h-room { fill: none; }
.house .h-soft { fill: var(--house-soft, none); }
.house .h-line { fill: none; stroke: var(--house-line, currentColor); stroke-width: var(--house-stroke, 3); stroke-linecap: round; stroke-linejoin: round; }
.house .h-line--thin { stroke-width: var(--house-stroke-thin, 2.25); }
.house .h-accent { fill: var(--house-accent, currentColor); }
.house .h-accent-line { fill: none; stroke: var(--house-accent, currentColor); stroke-width: var(--house-stroke, 3); stroke-linecap: round; stroke-linejoin: round; }
.house .h-dim { display: none; fill: none; stroke: var(--house-dim, currentColor); stroke-width: 1.25; }
.house .h-pins { fill: var(--house-pin, none); stroke: var(--house-pin-ring, none); stroke-width: 3; }

/* Иллюстрации в карточках портфолио. */
.work__art { overflow: hidden; }
.art { width: 100%; height: 100%; }
.art .a-bg { fill: var(--art-bg, #eee); }
.art .a-grid { fill: none; stroke: var(--art-grid, transparent); stroke-width: 1; }
.art .a-paper { fill: var(--art-paper, #fff); }
.art .a-soft { fill: var(--art-soft, #ddd); }
.art .a-ink { fill: none; stroke: var(--art-ink, #111); stroke-width: var(--art-stroke, 3.5); stroke-linecap: round; stroke-linejoin: round; }
.art .a-ink-fill { fill: var(--art-ink, #111); }
.art .a-accent { fill: var(--art-accent, #c33); }
.art .a-accent-line { fill: none; stroke: var(--art-accent, #c33); stroke-width: var(--art-stroke, 3.5); stroke-linecap: round; stroke-linejoin: round; }
.art .a-thick { stroke-width: calc(var(--art-stroke, 3.5) * 2.6); }
.art .a-dash { stroke-dasharray: 2 10; }

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