/*
  NORMA — общие стили проекта Tilda.
  Этот файл нужно целиком вставить в общий CSS-блок страницы.
*/

:root {
  --norma-grey: #313131;
  --norma-black: #000000;
  --norma-yellow: #fef073;
  --norma-underline: #f2b84b;
  --norma-bg: #f5f5f5;
  --norma-white: #ffffff;
  --norma-line: rgba(49, 49, 49, 0.18);
  --norma-radius: 2px;
  --norma-button-radius: 999px;
  --norma-header-radius: 999px;
  --norma-menu-radius: 28px;
  --norma-content-gap: 32px;
}

.norma-content-hero,
.norma-content-hero * {
  box-sizing: border-box;
}

.norma-content-hero {
  margin: 0;
  overflow: hidden;
  color: var(--norma-grey);
  background: var(--norma-bg);
  font-family: "SuiPt", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.norma-content-hero__container {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(140px, 10vw, 168px) 0 clamp(44px, 4vw, 64px);
}

.norma-content-hero__main {
  margin-top: 0;
}

.norma-content-hero__title {
  max-width: 1240px;
  margin: 0;
  color: var(--norma-grey);
  font-size: clamp(64px, 6.25vw, 106px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.norma-content-hero__title-accent {
  font-weight: 700;
  font-style: italic;
  text-decoration-line: underline;
  text-decoration-color: var(--norma-underline);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.07em;
  text-decoration-skip-ink: none;
}

.norma-content-hero__copy {
  max-width: 820px;
  margin-top: var(--norma-content-gap);
}

.norma-content-hero__copy p {
  margin: 0;
  color: rgba(49, 49, 49, 0.78);
  font-size: clamp(17px, 1.22vw, 20px);
  font-weight: 400;
  line-height: 1.44;
}

.norma-content-hero__copy p + p {
  margin-top: 18px;
}

.norma-content-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--norma-content-gap);
}

.norma-content-hero__button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--norma-grey);
  border-radius: var(--norma-button-radius);
  color: var(--norma-grey);
  background: var(--norma-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}

.norma-content-hero__button--primary {
  border-color: transparent;
  color: var(--norma-white);
  background: var(--norma-grey);
}

.norma-content-hero__button--primary:hover {
  color: var(--norma-grey);
  background: var(--norma-yellow);
  border-color: var(--norma-grey);
}

.norma-content-hero__button--secondary:hover {
  color: var(--norma-white);
  background: var(--norma-grey);
}

.norma-content-hero__button--secondary {
  background: transparent;
}

.norma-content-hero__button:focus-visible {
  outline: 3px solid var(--norma-yellow);
  outline-offset: 3px;
}

.norma-content-hero__arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.norma-content-hero__note {
  margin: 13px 0 0;
  color: rgba(49, 49, 49, 0.61);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.norma-content-hero__cards {
  margin-top: clamp(54px, 5.5vw, 76px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.25vw, 20px);
}

.norma-content-hero__card {
  min-height: 230px;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  color: var(--norma-grey);
  background: var(--norma-white);
  border: 1px solid var(--norma-line);
  border-radius: var(--norma-radius);
}

.norma-content-hero__card--accent {
  background: var(--norma-yellow);
}

.norma-content-hero__card-number {
  margin: 0;
  color: rgba(49, 49, 49, 0.68);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.norma-content-hero__card-content {
  margin-top: auto;
}

.norma-content-hero__card-title {
  max-width: 310px;
  margin: 0 0 14px;
  color: var(--norma-grey);
  font-size: clamp(21px, 1.55vw, 27px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.norma-content-hero__card-text {
  max-width: 310px;
  margin: 0;
  color: rgba(49, 49, 49, 0.78);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .norma-content-hero__container {
    width: min(100% - 48px, 760px);
  }

  .norma-content-hero__title {
    font-size: clamp(58px, 9vw, 76px);
    line-height: 0.9;
  }

  .norma-content-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .norma-content-hero__card:last-child {
    grid-column: 1 / -1;
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  :root {
    --norma-content-gap: 26px;
  }

  .norma-content-hero__container {
    width: calc(100% - 40px);
    padding: 116px 0 34px;
  }

  .norma-content-hero__main {
    margin-top: 0;
  }

  .norma-content-hero__title {
    font-size: clamp(44px, 13vw, 56px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-wrap: pretty;
  }

  .norma-content-hero__copy {
    margin-top: var(--norma-content-gap);
  }

  .norma-content-hero__copy p {
    font-size: 17px;
    line-height: 1.42;
  }

  .norma-content-hero__copy p + p {
    margin-top: 16px;
  }

  .norma-content-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: var(--norma-content-gap);
  }

  .norma-content-hero__button {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
  }

  .norma-content-hero__note {
    font-size: 11px;
  }

  .norma-content-hero__cards {
    margin-top: 46px;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .norma-content-hero__card,
  .norma-content-hero__card--accent,
  .norma-content-hero__card:last-child {
    min-height: 184px;
    grid-column: auto;
  }

  .norma-content-hero__card-title {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .norma-content-hero__button {
    transition: none;
  }
}

/* =========================================================
   Фиксированная шапка
   ========================================================= */

.norma-site-header,
.norma-site-header * {
  box-sizing: border-box;
}

.norma-site-header {
  width: min(1280px, calc(100% - 32px));
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 999999;
  transform: translateX(-50%);
  color: var(--norma-grey);
  font-family: "SuiPt", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.norma-site-header__bar {
  min-height: 68px;
  padding: 0 14px 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  border: 1px solid rgba(49, 49, 49, 0.14);
  border-radius: var(--norma-header-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(49, 49, 49, 0.05);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.norma-site-header__logo {
  display: inline-flex;
  align-items: baseline;
  color: var(--norma-grey);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.norma-site-header__logo-main {
  font-weight: 500;
}

.norma-site-header__logo-accent {
  margin-left: 0.28em;
  font-weight: 500;
  font-style: normal;
}

.norma-site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
}

.norma-site-header__link,
.norma-site-header__services-trigger {
  padding: 7px 0;
  border: 0;
  color: rgba(49, 49, 49, 0.82);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.norma-site-header__link:hover,
.norma-site-header__services-trigger:hover,
.norma-site-header__services-trigger[aria-expanded="true"] {
  color: var(--norma-grey);
}

.norma-site-header__services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.norma-site-header__services-icon {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.norma-site-header__services-trigger[aria-expanded="true"]
  .norma-site-header__services-icon {
  transform: rotate(180deg);
}

.norma-site-header__cta {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  border-radius: var(--norma-button-radius);
  color: var(--norma-white);
  background: var(--norma-grey);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.norma-site-header__cta:hover {
  color: var(--norma-grey);
  background: var(--norma-yellow);
}

.norma-site-header__arrow {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.norma-site-header__services-panel {
  width: 100%;
  padding: clamp(28px, 3vw, 42px);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  border: 1px solid rgba(49, 49, 49, 0.14);
  border-radius: var(--norma-menu-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(49, 49, 49, 0.08);
  -webkit-backdrop-filter: blur(22px) saturate(110%);
  backdrop-filter: blur(22px) saturate(110%);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.norma-site-header.is-services-open .norma-site-header__services-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.norma-site-header__services-title {
  max-width: 760px;
  margin: 0 0 clamp(28px, 3vw, 42px);
  color: var(--norma-grey);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.norma-site-header__services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(42px, 6vw, 96px);
}

.norma-site-header__services-column {
  margin: 0;
  padding: 0;
  list-style: none;
}

.norma-site-header__service-link {
  min-height: 60px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--norma-line);
  color: var(--norma-grey);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    background-color 180ms ease;
}

.norma-site-header__service-link:hover {
  background: rgba(254, 240, 115, 0.48);
}

.norma-site-header__service-number {
  color: rgba(49, 49, 49, 0.55);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.norma-site-header__service-arrow {
  margin-left: 16px;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.norma-site-header__service-link:hover .norma-site-header__service-arrow {
  transform: translateX(-8px);
}

.norma-site-header__menu-toggle,
.norma-site-header__mobile-menu {
  display: none;
}

.norma-site-header__link:focus-visible,
.norma-site-header__services-trigger:focus-visible,
.norma-site-header__cta:focus-visible,
.norma-site-header__menu-toggle:focus-visible,
.norma-site-header__service-link:focus-visible {
  outline: 3px solid var(--norma-yellow);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .norma-site-header {
    width: calc(100% - 24px);
    top: 8px;
  }

  .norma-site-header__bar {
    min-height: 60px;
    padding: 0 10px 0 15px;
    grid-template-columns: 1fr auto;
  }

  .norma-site-header__logo {
    font-size: 22px;
  }

  .norma-site-header__nav,
  .norma-site-header__bar > .norma-site-header__cta,
  .norma-site-header__services-panel {
    display: none;
  }

  .norma-site-header__menu-toggle {
    min-width: 88px;
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--norma-grey);
    border-radius: var(--norma-button-radius);
    color: var(--norma-grey);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    cursor: pointer;
  }

  .norma-site-header__menu-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 180ms ease;
  }

  .norma-site-header__menu-toggle[aria-expanded="true"]
    .norma-site-header__menu-icon {
    transform: rotate(45deg);
  }

  .norma-site-header__mobile-menu {
    padding: 18px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid rgba(49, 49, 49, 0.14);
    border-radius: var(--norma-menu-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(49, 49, 49, 0.08);
    -webkit-backdrop-filter: blur(22px) saturate(110%);
    backdrop-filter: blur(22px) saturate(110%);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .norma-site-header.is-mobile-open .norma-site-header__mobile-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .norma-site-header__mobile-link,
  .norma-site-header__mobile-services summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--norma-line);
    color: var(--norma-grey);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
  }

  .norma-site-header__mobile-services summary::-webkit-details-marker {
    display: none;
  }

  .norma-site-header__mobile-services summary::after {
    content: "↓";
    font-size: 18px;
    font-weight: 400;
  }

  .norma-site-header__mobile-services[open] summary::after {
    content: "↑";
  }

  .norma-site-header__mobile-services-list {
    margin: 0;
    padding: 10px 0 16px 16px;
    display: grid;
    gap: 12px;
    border-bottom: 1px solid var(--norma-line);
  }

  .norma-site-header__mobile-service-link {
    color: rgba(49, 49, 49, 0.78);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    text-decoration: none;
  }

  .norma-site-header__mobile-menu .norma-site-header__cta {
    width: 100%;
    margin-top: 18px;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .norma-site-header__services-icon,
  .norma-site-header__services-panel,
  .norma-site-header__menu-icon,
  .norma-site-header__mobile-menu,
  .norma-site-header__service-link,
  .norma-site-header__cta {
    transition: none;
  }
}