/* legal-plus.ru — единственный файл стилей сайта.
   Сначала стили для телефона, затем @media (min-width: 768px) — планшет
   и @media (min-width: 992px) — компьютер (те же границы, что у прежнего шаблона).
   Палитра прежнего сайта: акцент #d0b089, текст #252525, подвал #171717. */

/* ---------- Шрифт Roboto (локально, вариативный: начертания 300–700) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  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;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #252525;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: #d0b089; text-decoration: none; }
a:hover, a:focus { color: #383838; }
a:focus-visible, summary:focus-visible { outline: 2px solid #d0b089; outline-offset: 2px; }
h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0 0 .5em; color: #252525; }
h1 { font-size: clamp(28px, 8vw, 39px); margin: 30px 0 30px; }
h2 { font-size: 30px; }
h3 { font-size: 28px; font-weight: 500; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 40px; }
strong { font-weight: 700; }

.container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Видимость по ширине: как классы «скрыть на телефоне/планшете» прежнего шаблона */
@media (max-width: 991px) { .only-desktop { display: none !important; } }

/* ---------- Шапка ---------- */
.site-header {
  background: #252525 url("/images/fon.jpg") no-repeat 100% 50% / cover;
  color: #fff;
  padding: 20px 0 78px;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-header ul { list-style: none; margin: 0; padding: 0; }

/* Мобильное меню на <details>: работает без JavaScript */
.nav-mobile { width: 100%; }
.nav-mobile > summary {
  display: block;
  width: 55px;
  height: 50px;
  margin: 0 auto;
  padding: 12px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .1);
  cursor: pointer;
  list-style: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary::marker { content: ""; }
.burger, .burger::before, .burger::after {
  display: block;
  width: 35px;
  height: 3px;
  background: #fff;
  content: "";
}
.burger { position: relative; top: 11px; }
.burger::before { position: absolute; top: -10px; }
.burger::after { position: absolute; top: 10px; }
.nav-mobile[open] > summary { background: #d0b089; }
.nav-mobile nav { margin: 10px 0; }
.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 17px;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}
.nav-mobile a:hover, .nav-mobile a:focus { background: rgba(0, 0, 0, .05); color: #fff; }

.logo { display: inline-block; margin: 10px 0 10px; }
.logo img { display: block; width: 150px; height: auto; }

.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  font-size: 18.67px;
  font-weight: 300;
  white-space: nowrap;
}
.phone:hover, .phone:focus { color: #fff; }
.phone img { width: 25px; height: 25px; }

.nav-top, .nav-main { display: none; }

@media (min-width: 768px) {
  .site-header { padding-bottom: 50px; }
}

@media (min-width: 992px) {
  .site-header { padding: 26px 0 467px; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo top"
      "logo phone"
      "main main";
    align-items: center;
    text-align: left;
  }
  .nav-mobile { display: none; }
  .logo { grid-area: logo; margin: 24px 0 0; align-self: center; }
  .logo img { width: 200px; }
  .nav-top { display: block; grid-area: top; justify-self: end; }
  .nav-top ul { display: flex; gap: 0 13px; }
  .nav-top a {
    display: block;
    color: #d0b089;
    font-size: 16px;
    text-transform: uppercase;
  }
  .nav-top a:hover, .nav-top a:focus { color: #fff; }
  .phone { grid-area: phone; justify-self: end; min-height: 0; margin-top: 2px; }
  .nav-main { display: block; grid-area: main; justify-self: center; margin-top: 44px; }
  .nav-main a {
    display: block;
    padding: 5px;
    border-radius: 3px;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
  }
  .nav-main a:hover, .nav-main a:focus { background: rgba(0, 0, 0, .05); color: #fff; }
}

/* ---------- Основная область ---------- */
.page { padding: 50px 0; }
.page--marble { background: #f4f4f4 url("/images/fon3.jpg") no-repeat 50% 50% / cover; }
@media (min-width: 992px) { .page--marble { background-attachment: fixed; } }
.page h1 { text-align: center; }
.page--left h1 { text-align: left; }

/* Нумерованный список с кружками (главная и раздел «Взыскание задолженности») */
.circles { list-style: none; padding: 0; margin: 0 0 30px; counter-reset: li; }
.circles li {
  position: relative;
  margin-left: 40px;
  padding: 9px 20px 6px 28px;
  font-size: 18px;
  counter-increment: li;
}
.circles li::before, .circles li::after {
  position: absolute;
  top: 0;
  left: -30px;
  width: 42px;
  height: 42px;
  border: 6px solid transparent;
  border-radius: 50%;
}
.circles li::before {
  content: counter(li);
  line-height: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e1e1e;
}
.circles li::after { content: ""; border-color: #d0b089; opacity: .5; }
.circles li:hover::after { opacity: 1; }
.circles a { color: #1e1e1e; display: inline-block; min-height: 44px; }

.more { text-align: center; margin: 0 0 30px; }
.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 100px;
  color: #d0b089;
  font-size: 16px;
}
.more a:hover, .more a:focus { color: #000; }

/* Две колонки «текст + изображение» */
.cols { display: grid; gap: 0 30px; }
@media (min-width: 768px) { .cols--half { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .cols--home { grid-template-columns: 7fr 5fr; align-items: center; } }
.cols img { display: block; margin: 0 auto 30px; }
.cols h2 { text-align: center; }

/* Картинка, обтекаемая текстом */
.float-img { display: block; margin: 5px auto 15px; }
@media (min-width: 576px) { .float-img { float: right; margin: 5px 0 15px 15px; } }
.clearfix::after { content: ""; display: table; clear: both; }

/* Таблицы контактов и реквизитов */
.info-table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.info-table th, .info-table td {
  padding: 4px 10px 4px 0;
  vertical-align: middle;
  text-align: left;
  font-weight: 300;
}
.info-table th[scope="row"] { width: 50%; }
.info-table--bold th[scope="row"] { font-weight: 500; }
.info-table .head { font-weight: 700; padding-top: 8px; }
.info-table .gap { padding-top: 24px; }
@media (min-width: 768px) { .info-table { max-width: 623px; } }

/* ---------- Карта ---------- */
.map { background: #eee; min-height: 400px; line-height: 0; }
.map > * { width: 100%; }

/* ---------- Подвал ---------- */
.site-footer { background: #171717; color: #fff; font-size: 14px; line-height: 1.6; }
.footer-cols { display: grid; padding: 60px 0 30px; }
@media (min-width: 992px) { .footer-cols { grid-template-columns: 3fr 9fr; gap: 0 30px; } }
.footer-col { margin-bottom: 30px; }
.footer-title { font-size: 18px; font-weight: 700; margin: 0 0 20px; color: #fff; line-height: 1.6; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #a2a2a2;
}
.footer-col a:hover, .footer-col a:focus { color: #fff; }
.copyright { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Мелочи страниц ---------- */
.gap-top { margin-top: 2rem; }
.page--home { padding: 100px 0 120px; }
.home-title { font-size: 28px; line-height: 1.2; text-align: center; margin: 0 0 30px; }
.home-title a { color: #1e1e1e; }
.home-title strong { font-weight: 500; }
@media (min-width: 768px) { .home-title { font-size: 50px; } }
