/* normalize.css из базового набора не объявляет main блочным элементом */
main {
  display: block;
}

/* ---------------------------------------------------------------
   extra.css — контентные и SEO-блоки, добавленные под основной экран.
   Не меняет вёрстку хиро-блока (header / main / footer).
   --------------------------------------------------------------- */

/* Базовая вёрстка делала body и .container скролл-контейнерами
   (overflow-x: hidden и overflow: auto). На одноэкранной странице это было
   незаметно, но с добавленным ниже контентом ломало прокрутку страницы.
   overflow: clip обрезает горизонтальное переполнение, не создавая
   scroll-контейнер. */
.body {
  overflow-x: clip;
  overflow-y: visible;
}

.container {
  overflow: visible;
}

.page-title {
  margin-top: 24px;
  max-width: 820px;
  font-family: var(--main-font-family);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-color);
}

.page-subtitle {
  margin-top: 12px;
  max-width: 760px;
  font-family: var(--sub-font-family);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  color: #3a3a3a;
}

/* --- Общая обёртка контентной части --- */
.content {
  width: 100%;
  max-width: 953px;
  margin: 0 auto;
  padding: 0 20px 72px;
  font-family: var(--sub-font-family);
  color: #2b2b2b;
  font-size: 17px;
  line-height: 1.62;
}

.content section {
  margin-top: 56px;
}

.content h2 {
  font-family: var(--main-font-family);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 18px;
}

.content h3 {
  font-family: var(--main-font-family);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.35;
  color: #1d1d1d;
  margin: 22px 0 8px;
}

.content p + p {
  margin-top: 14px;
}

.content a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:hover {
  text-decoration: none;
}

/* --- Карточка в стиле основного блока --- */
.card {
  border-radius: 28px;
  padding: 28px 30px;
  background: linear-gradient(
    0deg,
    rgb(255, 255, 255) 26.768%,
    rgb(240, 240, 240) 227.273%
  );
  box-shadow: -4px -5px 9px 0 rgb(255, 255, 255),
    4px 7px 8px 0 rgba(0, 0, 0, 0.18);
}

/* --- Маркированные списки --- */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-color);
}

/* --- Таблицы --- */
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border-radius: 20px;
}

table.data {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
  font-size: 16px;
}

table.data caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 15px;
  color: #6a6a6a;
}

table.data th,
table.data td {
  padding: 12px 16px;
  border-bottom: 1px solid #e7e7e7;
  text-align: left;
  vertical-align: top;
}

table.data thead th {
  background: var(--accent-color);
  color: #fff;
  font-weight: 800;
  border-bottom: none;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
  border-bottom: none;
}

/* --- FAQ --- */
.faq-item {
  border-radius: 20px;
  background: #fff;
  margin-top: 12px;
  box-shadow: 2px 4px 7px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 22px;
  position: relative;
  font-weight: 800;
  color: #1d1d1d;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
  color: var(--accent-color);
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
}

/* --- Контакты --- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.contact-grid > div {
  flex: 1 1 260px;
  border-radius: 20px;
  background: #fff;
  padding: 18px 22px;
  box-shadow: 2px 4px 7px 0 rgba(0, 0, 0, 0.12);
}

.contact-grid .label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 4px;
}

.contact-grid .value {
  font-size: 18px;
  font-weight: 800;
  color: #1d1d1d;
}

/* --- Хлебные крошки --- */
.breadcrumbs {
  width: 100%;
  max-width: 953px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: var(--sub-font-family);
  font-size: 15px;
  color: #7a7a7a;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #bdbdbd;
}

.breadcrumbs a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* --- Подвал сайта --- */
.site-footer {
  background: #f2f2f2;
  border-top: 1px solid #e0e0e0;
  padding: 32px 20px 40px;
  font-family: var(--sub-font-family);
  font-size: 15px;
  line-height: 1.6;
  color: #5c5c5c;
}

.site-footer__inner {
  max-width: 953px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
}

.site-footer a {
  color: #5c5c5c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--accent-color);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.updated {
  color: #8a8a8a;
  font-size: 14px;
}

/* --- Внутренняя страница (контакты, политика) --- */
.inner-page {
  padding-top: 40px;
}

.inner-page .logo-link {
  display: block;
  max-width: 320px;
  margin: 0 auto 8px;
}

@media (max-width: 700px) {
  .page-title {
    font-size: 22px;
  }
  .content {
    font-size: 16px;
  }
  .content h2 {
    font-size: 20px;
  }
  .card {
    padding: 22px 20px;
  }
}
