/*
Theme Name: Prespa
Theme URI: https://ecertoc.ru/
Author: ESK
Description: Редактируемая блочная тема для сайта органа по сертификации ООО «ЕСК».
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: prespa
*/

:root {
  --prespa-purple: #403887;
  --prespa-ink: #171717;
  --prespa-muted: #555;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--prespa-ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .14em; }
a:focus-visible { outline: 3px solid var(--prespa-purple); outline-offset: 4px; }

.prespa-page {
  width: min(calc(100% - 164px), 3450px);
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  text-align: left !important;
}
.prespa-columns {
  flex: 1;
  display: grid !important;
  grid-template-columns: minmax(230px, .27fr) minmax(0, 1fr);
  column-gap: clamp(80px, 3.6vw, 130px) !important;
}
.prespa-columns > .wp-block-column { width: auto !important; flex-basis: auto !important; }
.prespa-sidebar { display: flex; flex-direction: column; align-items: flex-start; }
.prespa-brand { width: 240px; height: 240px; margin: 52px 0 0; }
.prespa-brand img { display: block; width: 100%; height: 100%; object-fit: cover; }

.prespa-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(400px, 52vh, 640px);
  font-size: clamp(20px, 1vw, 36px);
  line-height: 1.55;
}
.prespa-menu .wp-block-navigation__container { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.prespa-menu .wp-block-navigation-item__content { padding: 0; color: #202020; text-decoration: none; }
.prespa-menu .wp-block-navigation-item__content:hover { color: var(--prespa-purple); }

.prespa-content { padding-top: 210px; padding-bottom: 72px; text-align: left !important; }
.prespa-content h1.prespa-title {
  margin: 0 0 170px !important;
  color: var(--prespa-ink) !important;
  font-size: clamp(27px, 1.05vw, 38px) !important;
  font-weight: 600 !important;
  line-height: 1.35;
  letter-spacing: -.025em;
  text-align: left !important;
}
.prespa-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--prespa-ink);
  font-size: clamp(20px, 1.1vw, 38px) !important;
  font-weight: 400 !important;
  line-height: 1.62;
  letter-spacing: -.02em;
  text-align: left !important;
}
.prespa-details p { margin: 0; }
.prespa-details a { text-decoration-thickness: 1px; }

@media (max-width: 760px) {
  .prespa-page { width: min(calc(100% - 40px), 560px); }
  .prespa-columns { display: flex !important; flex-direction: column; }
  .prespa-brand { width: 180px; height: 180px; margin-top: 24px; }
  .prespa-content { padding-top: 72px; padding-bottom: 0; }
  .prespa-content h1.prespa-title { margin-bottom: 38px !important; font-size: clamp(25px, 7vw, 34px) !important; }
  .prespa-details { gap: 16px; font-size: 18px !important; line-height: 1.55; }
  .prespa-menu { margin-top: 52px; padding-top: 22px; border-top: 1px solid #e7e7e7; font-size: 19px; }
}
