/* ИП Притула: визитка. Только чёрный, белый и серые. Без анимаций. */

@font-face {
  font-family: "Plex";
  src: url("fonts/plex-sans-cyrillic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plex";
  src: url("fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  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 {
  --ink: #111;
  --ink-2: #555;
  --ink-3: #8a8a8a;
  --line: #111;
  --line-soft: #d4d4d4;
  --paper: #fff;
  --paper-2: #f3f3f3;
  --gap: 16px;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  animation: none !important;
  transition: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 17px/1.5 "Plex",
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  overflow-wrap: break-word;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
p,
ul,
dl,
dd,
h1,
h2 {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Шапка */
.head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo what" "contact contact";
  align-items: center;
  column-gap: 20px;
  row-gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  grid-area: logo;
  display: block;
}
.brand__logo {
  width: 150px;
}
.brand__what {
  grid-area: what;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}
.brand__what .dot {
  display: none;
}
.head__contact {
  grid-area: contact;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
}
.head__phone {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.head__mail {
  font-size: 15px;
  color: var(--ink-2);
}

/* Акцент про экспертизу */
.accent {
  background: var(--ink);
  color: var(--paper);
}
.accent__in {
  padding-top: 22px;
  padding-bottom: 22px;
}
.accent__title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}
.accent__text {
  margin-top: 6px;
  font-size: 16px;
  color: #cfcfcf;
}

/* Блоки */
.block {
  padding: 40px 0 8px;
}
.block__h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.block__n {
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Виды изысканий */
.kinds {
  display: grid;
  grid-template-columns: 1fr;
}
.kinds li {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  hyphens: manual;
}

/* Факты по документам */
.facts {
  margin-top: 4px;
}
.facts > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts dt {
  font-size: 13px;
  color: var(--ink-2);
}
.facts dd {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

/* Миниатюры документов */
.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.doc {
  display: block;
  text-decoration: none;
}
.doc img {
  width: 100%;
  aspect-ratio: 480 / 679;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  filter: grayscale(1);
}
.doc:hover img,
.doc:focus-visible img {
  border-color: var(--ink);
}
.doc__cap {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}
.doc:hover .doc__cap {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Контакты */
.contacts > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contacts dt {
  font-size: 13px;
  color: var(--ink-2);
}
.contacts dd {
  font-size: 22px;
  font-weight: 600;
  margin-top: 2px;
}
.contacts dd a {
  text-decoration: none;
}
.contacts dd a:hover {
  text-decoration: underline;
}

/* Подвал */
.foot {
  margin-top: 48px;
  border-top: 2px solid var(--line);
}
.foot__in {
  padding-top: 16px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

/* Просмотр документа */
.lb {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(17, 17, 17, 0.96);
  color: var(--paper);
  display: flex;
  flex-direction: column;
}
.lb[hidden] {
  display: none;
}
.lb__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gap);
  border-bottom: 1px solid #333;
}
.lb__title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb__count {
  font-size: 13px;
  color: #a0a0a0;
}
.lb__btn {
  font: inherit;
  font-size: 14px;
  color: var(--paper);
  background: none;
  border: 1px solid #777;
  padding: 6px 12px;
  cursor: pointer;
}
.lb__btn:hover {
  border-color: var(--paper);
}
.lb__stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  cursor: zoom-out;
}
.lb__img {
  width: auto;
  max-width: 100%;
  max-height: none;
  background: var(--paper);
  cursor: default;
}
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  font:
    400 36px/1 "Plex",
    Arial,
    sans-serif;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid #555;
  cursor: pointer;
}
.lb__nav:hover {
  border-color: var(--paper);
}
.lb__nav--prev {
  left: 8px;
}
.lb__nav--next {
  right: 8px;
}
body.lb-open {
  overflow: hidden;
}

/* Планшет и десктоп */
@media (min-width: 720px) {
  :root {
    --gap: 32px;
  }
  .docs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }
  .kinds li {
    padding: 18px 16px 18px 0;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
  .head {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo what contact";
    column-gap: 28px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .brand__logo {
    width: 216px;
  }
  .brand__what {
    font-size: 17px;
  }
  .brand__what .dot {
    display: inline;
  }
  .br-m {
    display: none;
  }
  .head__contact {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .head__phone {
    font-size: 24px;
  }
  .accent__in {
    padding-top: 28px;
    padding-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 32px;
  }
  .accent__title {
    font-size: 26px;
    flex: 0 1 auto;
  }
  .accent__text {
    margin-top: 0;
    font-size: 17px;
    flex: 0 1 380px;
  }
  .block {
    padding-top: 56px;
  }
  .kinds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .kinds li {
    font-size: 21px;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
    padding: 22px 16px;
  }
  .kinds li:first-child {
    padding-left: 0;
  }
  .kinds li:last-child {
    border-right: 0;
  }
  .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .contacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
  }
  .contacts > div {
    border-bottom: 0;
  }
  .contacts dd {
    font-size: 24px;
  }
  .lb__stage {
    padding: 24px 72px;
  }
}

.nw { white-space: nowrap; }

/* Телефон: логотип, подпись и контакты друг под другом */
@media (max-width: 1023px) {
  .head { grid-template-columns: 1fr; grid-template-areas: "logo" "what" "contact"; row-gap: 12px; }
}

/* Просмотр: сплошной фон; на экране от 720 px лист целиком, клик по листу = крупнее */
.lb { background: #111; }
.lb__stage { cursor: default; }
@media (min-width: 720px) {
  .lb:not(.is-zoom) .lb__img { max-height: calc(100vh - 110px); cursor: zoom-in; }
  .lb.is-zoom .lb__img { width: min(100%, 1240px); max-height: none; cursor: zoom-out; }
}
@media (max-width: 719px) {
  .lb__nav { top: auto; bottom: 12px; transform: none; }
}
