/* Витрината: черната лента, ритъмът на разделите, заглавията и долната част. Чертежът и първият екран са
   в site-hero.css, отделните раздели — в site-parts.css. */

.site {
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Черната лента — като горната лента на портала, за да е ясно, че е едно място. */
.sitebar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bar);
  color: var(--bar-fg);
  border-bottom: 1px solid var(--bar-edge);
}

.sitebar__inner {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px var(--gutter);
}

.sitebar :focus-visible {
  outline-color: var(--bar-fg);
}

.sitebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.sitebar__name {
  display: grid;
  white-space: nowrap;
  font-family: var(--font-cond);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.sitebar__by {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--bar-muted);
}

.sitebar__nav {
  display: flex;
  gap: 4px;
}

.sitebar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--bar-muted);
  text-decoration: none;
  font-weight: 500;
}

.sitebar__nav a:hover {
  color: var(--bar-fg);
}

.sitebar__end {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1023px) {
  .sitebar__nav {
    display: none;
  }
}

@media (max-width: 719px) {
  .sitebar__by,
  .sitebar__cta {
    display: none;
  }

  .sitebar__inner {
    gap: 8px;
  }
}

.sitemain {
  flex: 1;
}

.sitemain:focus {
  outline: none;
}

/* Разделите: бели с тънка линия помежду им, един черен в средата за ритъм. */
.band {
  padding: clamp(56px, 4rem + 3vw, 112px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}

.band__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band__head {
  display: grid;
  gap: 14px;
  max-width: 46rem;
  margin-bottom: clamp(32px, 2rem + 1.5vw, 56px);
}

.band h2,
.request h2 {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.band__lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
}

.band__note {
  max-width: 46rem;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.band--ink {
  background: var(--bar);
  color: var(--bar-fg);
  border-top-color: var(--bar-edge);
  border-bottom: 1px solid var(--bar-edge);
}

.band--ink .band__lead,
.band--ink .band__note {
  color: var(--bar-muted);
}

.band--ink :focus-visible {
  outline-color: var(--bar-fg);
}

/* Долната част: марката и фирмата, страниците, контактите, правното; отдолу темата и авторството. */
.sitefoot {
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
}

.sitefoot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}

.sitefoot__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 600;
}

.sitefoot__company,
.sitefoot__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.sitefoot h2 {
  margin-bottom: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.sitefoot ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitefoot address {
  font-style: normal;
  line-height: 1.7;
}

.sitefoot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.sitefoot .switch {
  display: flex;
  gap: 2px;
}

.sitefoot .switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}

.sitefoot .switch a:hover {
  color: var(--fg);
}

.sitefoot .switch a[aria-current='true'] {
  color: var(--fg);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.sitefoot .switch .icon {
  width: 16px;
  height: 16px;
}

.credit a {
  color: var(--fg);
  font-weight: 600;
}

@media (max-width: 879px) {
  .sitefoot__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sitefoot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .sitefoot__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
