/* Дополнения темы WordPress к стилям сайта с Мака (site.css не правим — чтобы обновлять его копированием). */

/* Арабский — шрифт Noto Sans Arabic (раньше грузился с Google Fonts) */
html[lang="ar"] body { font-family: 'Noto Sans Arabic', var(--site-font, 'Onest'), sans-serif; }

/* Уведомление о cookie */
.gdi-cookie {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.gdi-cookie[hidden] { display: none; }
.gdi-cookie p { flex: 1 1 280px; margin: 0; color: rgba(255, 255, 255, .82); }
.gdi-cookie a { color: #fff; text-decoration: underline; }
.gdi-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
/* Свои стили кнопок: .btn описан только в seo.css, а уведомление есть на всех страницах */
.gdi-cookie__actions button {
  font: 500 14px/1 inherit;
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}
.gdi-cookie__actions [data-consent="accepted"] { background: #195aff; color: #fff; }
.gdi-cookie__actions [data-consent="declined"] { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.gdi-cookie__actions button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Текстовые страницы (политика, 404, лента записей) */
/* main.gdi-page — сильнее .container из seo.css, который подключается позже и сбрасывает padding */
main.gdi-page { padding-block: 120px 80px; max-width: 820px; }
.gdi-page h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 24px; }
.gdi-entry + .gdi-entry { margin-top: 40px; }
.gdi-entry__content :is(h2, h3) { margin: 32px 0 12px; font-weight: 500; }
.gdi-entry__content p, .gdi-entry__content li { line-height: 1.6; }

/* Шапка на телефоне: три языка + телефон не помещаются вместе с «Contacts» — он есть в мобильном меню */
@media (max-width: 767px) {
  .hdr__right > .hdr__contacts { display: none; }
  main.gdi-page { padding-block: 48px 56px; }
}

/* Переключатель языка в шапке главной (стиль .development-langs из development.css — на главной он не подключается) */
.home-header .development-langs { display: flex; direction: ltr; gap: 2px; padding: 3px; background: #eef3fb; border-radius: 8px; flex-shrink: 0; }
.home-header .development-langs a { padding: 4px 7px; border-radius: 5px; color: #4a5872; font-size: 13px; font-weight: var(--type-medium, 500); }
.home-header .development-langs a[aria-current] { color: #173caa; background: #fff; }
