/* Maxima Legal 2026: guideline pages 12-28. */
:root {
  --ml-ink: #0a0b2b;
  --ml-accent: #fc46a4;
  --ml-surface: #f6f6f9;
  --ml-muted: #232759;
  --ml-line: #dadae6;
}

body {
  font-family: 'AG R', Arial, sans-serif;
  color: var(--ml-ink);
  background: var(--ml-surface);
}

body input, body textarea, body select, body button,
body .header, body .header__phone, body .header__lang,
body .cky-consent-container, body .cky-preference-center {
  font-family: 'AG R', Arial, sans-serif;
}

/* Guideline p. 16: headings and subheadings use Medium. */
body h2, body h3, body h4, body h5, body h6,
body .screen_one-mainb-h, body .screen_one-company-h,
body .screen_one-adv-h1, body .screen_one-adv-h2,
body .screen_two_h1, body .screen_four_h1, body .screen_five_h1,
body .screen_six_h1, body .about_screen_two_h1, body .about_screen_four_h1,
body .team_screen_three_h1, body .spec-main-about-tsinlge-h,
body .main-case-h, body .main-new-h, body .footer-miniform-h1,
body .about_screen_one-heading-h, body .about_screen_one-history-h,
body .about-mainsocial-pro-h, body .about-social-pro-h,
body .about-clients-accordion-title, body .assos-contacts-right-h1,
body .about-vacarch-contentsi-h, body .spec-main-accor-h,
body .spec-ratings-h, body .assoc-news-h, body .serv_screen_one-heading-h,
body .servi_screen_one-about-h, body .blockuslugs-h, body .blockuslugs-accor-h,
body .servi_screen_two-h1, body .assoc-cases-h, body .assoc-services-h,
body .assoc-service-h, body .cases-actual-h, body .cases-actual-case-h,
body .casesin-context-h, body .casesin-technical-single-content-h,
body .assosia-cases-h1, body .con-social-h, body .servbox-right-h {
  font-family: 'AG M', 'AG R', Arial, sans-serif;
  font-weight: normal;
}

body h1, body .screen_one-inner-h, body .about_screen_one-h1,
body .team_screen_one-h, body .serv_screen_one-h, body .servi_screen_one-h,
body .cases_screen_one-h, body .news_screen_one-h, body .con_screen_one-h,
body .newsi-header-h, body .spec-main-name, body .casesin_mainblock-h,
body .taxonomy_hmain, body .search_wrap-zapros, body .error_screen_one .cases-actual-h {
  font-family: 'AG M', 'AG R', Arial, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1.06;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body .screen_one-inner-h {
  font-size: clamp(56px, 10vw, 192px);
  letter-spacing: -0.04em;
  max-width: 100%;
}

body .team_screen_one-h {
  width: 85%;
}

body .about_screen_one-h1, body .team_screen_one-h,
body .serv_screen_one-h, body .cases_screen_one-h,
body .news_screen_one-h, body .con_screen_one-h {
  font-size: clamp(44px, 9.2vw, 176px);
}

body .header-logo img, body .header__logo img {
  height: auto;
  object-fit: contain;
}

body .newsi-content-text, body .newsi-content-text p, body .newsi-content-text li,
body .newsi-content-h, body .newsi-content-quote, body .newsi-content-podquote {
  color: var(--ml-ink);
  font-family: 'AG R', Arial, sans-serif;
  font-weight: normal;
}

body .newsi-content-text strong, body .newsi-content-text b,
body .newsi-content-h, body .newsi-content-h strong,
body .newsi-content-quote strong, body .newsi-content-podquote strong {
  font-family: 'AG M', 'AG R', Arial, sans-serif;
  font-weight: normal;
}

body .newsi-content-text em, body .newsi-content-text i,
body .newsi-content-h em, body .newsi-content-h i,
body .newsi-content-quote em, body .newsi-content-podquote em,
body .newsi-content-text [style*="italic" i] {
  font-family: 'AG R', Arial, sans-serif;
  font-synthesis: style;
}

body .newsi-content-text :is(strong, b) :is(em, i),
body .newsi-content-text :is(em, i) :is(strong, b) {
  font-family: 'AG M', 'AG R', Arial, sans-serif;
  font-synthesis: style;
}

body .newsi-content-text blockquote, body .newsi-content-quote {
  background: var(--ml-surface);
  border-left: 2px solid var(--ml-accent);
  border-radius: 0 8px 8px 0;
  padding: 1em 1.2em;
}

body .newsi-content-text ul {
  list-style: none;
}

body .newsi-content-text ul > li {
  position: relative;
}

body .newsi-content-text ul > li::before {
  content: '';
  position: absolute;
  left: -1em;
  top: 0.55em;
  width: 0.5ex;
  height: 0.5ex;
  border-radius: 12%;
  background: var(--ml-accent);
}

body .newsi-content-text a {
  color: var(--ml-ink);
  text-decoration: underline;
  text-decoration-color: var(--ml-accent);
  text-underline-offset: 0.18em;
}

body .footer-form-submit input {
  background: var(--ml-accent) !important;
  color: var(--ml-ink) !important;
  border-color: var(--ml-accent) !important;
  border-radius: 50% !important;
}

body .footer-form-submit input:hover {
  background: white !important;
  color: var(--ml-ink) !important;
  border-color: white !important;
}

body .footer-form-submit input:disabled {
  background: #999fbf !important;
  border-color: #999fbf !important;
  cursor: not-allowed;
}

body input::placeholder, body textarea::placeholder {
  color: var(--ml-muted);
  opacity: 1;
}

/* Guideline pp. 18, 20: photo backdrops with light text; standalone photos retain their source colours. */
body .main-img, body .cases-actual-cover {
  filter: grayscale(1) sepia(0.8) hue-rotate(180deg) saturate(1.6) brightness(0.8);
}

body .header a:hover, body .header__phone:hover,
body #menu-popup a:hover {
  color: var(--ml-ink) !important;
  text-decoration: underline;
  text-decoration-color: var(--ml-accent);
  text-underline-offset: 0.18em;
}

body .footer {
  color: white;
}

body .footer-form-input input, body .footer-form-textarea textarea {
  border-bottom-color: #999fbf;
}

body .footer a:hover {
  color: var(--ml-accent) !important;
}

body .footer input::placeholder, body .footer textarea::placeholder,
body .footer .wpcf7-list-item-label {
  color: #dadae6 !important;
  -webkit-text-fill-color: #dadae6 !important;
  opacity: 1 !important;
}

body .footer .footer-checkbox-wrap span, body .footer .footer-checkbox-wrap a,
body .footer .footer-miniform-h, body .footer .footer-miniform-h p,
body .footer .footer-menu-h {
  color: #dadae6 !important;
}

body .footer input[type="checkbox"] {
  color: white;
  accent-color: var(--ml-accent);
}

body .cky-btn-accept, body .cky-btn-reject, body .cky-btn-preferences {
  font-family: 'AG M', 'AG R', Arial, sans-serif !important;
}

body .cky-btn-accept {
  color: var(--ml-ink) !important;
  background: var(--ml-accent) !important;
  border-color: var(--ml-accent) !important;
}

body .cky-consent-container .cky-title, body .cky-consent-container .cky-notice-des {
  color: var(--ml-ink) !important;
}

body .cky-notice a {
  color: var(--ml-ink) !important;
  text-decoration: underline;
  text-decoration-color: var(--ml-accent);
}

body :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: #fcdee8;
  color: #0a0b2b;
}

@media (min-width: 768px) and (max-width: 1023.5px) {
  body .servi_screen_one-h {
    width: 100%;
    font-size: clamp(36px, 6.8vw, 64px);
    overflow-wrap: normal;
  }
}

@media (max-width: 767.5px) {
  body .about_screen_one-h1, body .team_screen_one-h,
  body .serv_screen_one-h, body .cases_screen_one-h,
  body .news_screen_one-h, body .con_screen_one-h {
    font-size: clamp(36px, 11.4vw, 72px);
    letter-spacing: -0.035em;
  }

  body .team_screen_one-h, body .servi_screen_one-h {
    width: 100%;
  }

  body .servi_screen_one-h {
    font-size: clamp(24px, 7.6vw, 40px);
    overflow-wrap: normal;
  }
}
