/* Обща основа: подредба и поведение. Цветове, шрифтове и движение са в site.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; } /* място за залепения хедър */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip; /* заглавията, които се плъзгат при скрол, не бива да дават хоризонтален скрол */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap, 1160px); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: 16px; top: 16px; padding: 10px 14px; background: #fff; color: #000; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }

/* Горна лента и меню */
.site-header { position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 6px 26px; }
.nav a { text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: none; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; }
  .nav .btn { margin-top: 10px; text-align: center; }
}

/* Бутони */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; text-decoration: none; cursor: pointer; border: 0; }
.btn-small { min-height: 42px; padding: 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Начало */
.hero-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; } }
.checks { list-style: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Проекти: цялата карта е връзка */
.plist { list-style: none; }
.pitem { position: relative; }
.pname a { text-decoration: none; color: inherit; }
.pname a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pimg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.steps { list-style: none; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }

/* Форма */
.form-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; } }
.review-form { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .review-form { grid-template-columns: 1fr 1fr; }
  .review-form .field:first-of-type, .field-wide, .form-submit { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 6px; }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; }
.field textarea { resize: vertical; min-height: 110px; }
.hint, .error { margin: 6px 0 0; font-size: 15px; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { margin: 0; font-size: 15px; }
.form-errors { margin-bottom: 24px; }
.form-errors ul { padding-left: 20px; }

/* Страница на проект */
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 0; }
.facts div { min-width: 0; }
.facts dt, .facts dd { margin: 0; }
.facts-note { display: block; font-size: 14px; }
.shots { display: grid; gap: 28px; margin: 40px 0 56px; }
@media (min-width: 860px) {
  .shots-with-phone { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; }
}
.shot { margin: 0; }
.shot figcaption { margin-top: 10px; font-size: 15px; }
.shot-phone .frame { max-width: 360px; margin: 0 auto; }
.project-body { max-width: 760px; }
.project-body h2 { margin: 40px 0 14px; }
.project-body h2:first-child { margin-top: 0; }
.done { list-style: none; }
.project-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 56px 0 72px; padding-top: 24px; }
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }

.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }

/* Заявки */
.table-scroll { overflow-x: auto; }
.requests { width: 100%; border-collapse: collapse; font-size: 15px; }
.requests th, .requests td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.requests-msg { min-width: 260px; }

/* Долу */
.footer-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1.2fr 1.6fr 1fr; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }
.footer-contact p { margin: 0 0 4px; }
