:root {
  --nomos-bg: #f8f7f5;
  --nomos-surface: rgba(255, 255, 255, 0.58);
  --nomos-surface-soft: rgba(255, 255, 255, 0.74);
  --nomos-text: #13172a;
  --nomos-body: #1d1d1b;
  --nomos-muted: #949494;
  --nomos-primary: #c51535;
  --nomos-accent: #d68537;
  --nomos-border: rgba(148, 148, 148, 0.28);
  --nomos-shadow: 0 28px 72px rgba(33, 26, 20, 0.08);
  --nomos-radius: 16px;
  --nomos-container: min(1520px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, #fcfbfa 0%, #f7f5f3 100%);
  color: var(--nomos-body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.nomos-page {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  padding-top: 0;
}

.nomos-container {
  width: var(--nomos-container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nomos-bg {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
  z-index: 0;
}

.nomos-bg-top {
  top: 0;
  right: 0;
  width: 100vw;
  height: 1120px;
  background-position: top right;
}

.nomos-bg-bottom {
  right: -40px;
  bottom: 220px;
  width: 860px;
  height: 860px;
  background-position: bottom right;
}

.nomos-glass,
.service-card,
.review-card,
.contact-card,
.case-card,
.generic-page__article,
.site-footer {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nomos-glass {
  background: var(--nomos-surface);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--nomos-shadow);
  border-radius: var(--nomos-radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 87px;
  margin: 0 0 58px;
  background: rgba(255, 255, 255, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(213, 220, 229, 0.92);
  box-shadow: 0 4px 24px rgba(23, 28, 36, 0.04);
}

.site-header__inner {
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
}

.site-brand {
  width: 188px;
  flex: 0 0 auto;
}

.site-brand img {
  width: 188px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1;
}

.site-nav > a,
.site-nav__item > a {
  display: inline-flex;
  align-items: center;
  height: 87px;
  white-space: nowrap;
  color: var(--nomos-text);
}

.site-nav > a.is-active,
.site-nav__item.is-active > a {
  color: var(--nomos-primary);
}

.site-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 87px;
}

.site-nav__item--has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 224px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 229, 229, 0.94);
  border-radius: 14px;
  box-shadow: 0 26px 56px rgba(22, 26, 35, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.site-nav__dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 12px;
  line-height: 1.25;
  color: #3d4352;
}

.site-nav__dropdown a:hover {
  color: var(--nomos-primary);
  background: rgba(197, 21, 53, 0.04);
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}

.site-call a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.site-call span {
  font-size: 10px;
  line-height: 1;
}

.hero,
.page-intro,
.about,
.specialists,
.services,
.reviews,
.cases,
.contacts-page {
  margin-bottom: 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 661px;
  gap: 56px;
  align-items: start;
}

.hero__content {
  padding-top: 28px;
}

.hero__title,
.page-intro h1 {
  margin: 0;
  font-size: clamp(42px, 4vw, 54px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--nomos-text);
}

.hero__title em {
  color: #a8122e;
  font-style: normal;
}

.hero__title-chip {
  display: inline-block;
  padding: 2px 8px 4px;
  margin-right: 4px;
  border: 1px solid #efc24f;
  border-radius: 16px;
}

.hero__subtitle {
  max-width: 540px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
}

.nomos-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 53px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nomos-button img {
  width: 16px;
  height: 8px;
}

.nomos-button--primary {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 4.15%, rgba(0, 0, 0, 0.1) 30.9%, rgba(255, 255, 255, 0.28) 61.471%, rgba(0, 0, 0, 0.15) 93.855%),
    linear-gradient(90deg, var(--nomos-primary) 0%, var(--nomos-primary) 100%);
}

.nomos-button--secondary {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 4.15%, rgba(255, 255, 255, 0.18) 61.471%, rgba(0, 0, 0, 0.08) 93.855%),
    linear-gradient(90deg, var(--nomos-accent) 0%, var(--nomos-accent) 100%);
}

.hero__visual {
  min-height: 421px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42.769%, rgba(34, 34, 34, 0.12) 100%), var(--nomos-surface);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-intro {
  text-align: center;
}

.page-intro p {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.65;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 407px;
  gap: 40px;
  padding: 64px 92px;
}

.about__content h2,
.nomos-section-head h2,
.services h2,
.cta h2,
.contacts-page h2,
.generic-page__article h1 {
  margin: 0;
  color: var(--nomos-text);
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.2;
  font-weight: 400;
}

.about__content p,
.nomos-section-head p,
.contact-card p,
.generic-page__content {
  font-size: 17px;
  line-height: 1.56;
}

.nomos-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 24px;
  padding: 12px 24px;
  border: 1px solid var(--nomos-muted);
  border-radius: 16px;
  color: var(--nomos-muted);
  font-size: 16px;
  text-transform: lowercase;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.about__facts strong {
  display: block;
  margin-bottom: 8px;
  color: var(--nomos-primary);
  font-size: 36px;
  font-weight: 400;
}

.about__facts span {
  font-size: 17px;
  line-height: 1.45;
}

.about__visual {
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.74;
}

.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialists {
  padding: 64px 24px;
}

.nomos-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  text-align: center;
}

.nomos-section-head--left {
  align-items: flex-start;
  text-align: left;
}

.specialists-slider {
  position: relative;
}

.specialists-slider__viewport {
  overflow: hidden;
}

.specialists-slider__track {
  display: flex;
  gap: 24px;
  transition: transform .2s ease;
}

.specialists-slider__slide {
  flex: 0 0 calc((100% - 72px) / 4);
}

.specialists-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nomos-primary);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25, 28, 37, 0.08);
  z-index: 2;
}

.specialists-slider__nav--prev {
  left: -4px;
}

.specialists-slider__nav--next {
  right: -4px;
}

.person-card__image {
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.person-card__image img {
  width: 100%;
  height: 354px;
  object-fit: cover;
}

.person-card h3 {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 400;
}

.person-card p,
.person-card span {
  display: block;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.person-card span {
  margin-top: 8px;
  color: var(--nomos-primary);
}

.services__grid,
.cases__grid,
.reviews__grid,
.contacts-page__grid {
  display: grid;
  gap: 24px;
}

.services__grid,
.cases__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.case-card,
.contact-card,
.generic-page__article,
.review-card {
  background: var(--nomos-surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--nomos-radius);
  box-shadow: var(--nomos-shadow);
}

.service-card,
.case-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.service-card--featured {
  padding: 0;
}

.service-card--plain {
  padding: 24px;
}

.service-card__image,
.case-card__image {
  min-height: 162px;
}

.service-card__image img,
.case-card__image img {
  width: 100%;
  height: 162px;
  object-fit: cover;
}

.service-card__footer,
.case-card__footer {
  padding: 18px 24px 22px;
}

.service-card--plain .service-card__footer {
  padding: 0;
}

.service-card h3,
.case-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 400;
  max-width: calc(100% - 78px);
}

.service-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--nomos-primary);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(32, 34, 41, 0.08);
}

.services__more {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  margin-top: 24px;
  margin-left: auto;
  border-radius: var(--nomos-radius);
  background: var(--nomos-surface-soft);
  box-shadow: var(--nomos-shadow);
  font-size: 22px;
}

.case-card--wide {
  grid-column: span 2;
}

.case-card--tall {
  grid-row: span 2;
  min-height: 464px;
}

.case-card--tall .case-card__image img {
  height: 406px;
}

.reviews__grid,
.contacts-page__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  min-height: 263px;
  padding: 24px;
}

.review-card p {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.55;
}

.review-card strong {
  font-size: 17px;
  line-height: 1.4;
}

.cta {
  width: min(540px, calc(100vw - 32px));
  margin: 0 auto 74px;
  text-align: center;
}

.cta h2 {
  margin: 0 0 24px;
  font-size: 36px;
}

.contact-card {
  padding: 32px;
}

.contact-card a,
.contact-card p:first-of-type {
  display: block;
  margin-top: 16px;
  color: var(--nomos-text);
  font-size: 24px;
  line-height: 1.4;
}

.site-footer {
  position: relative;
  padding: 26px 0 18px;
  background: rgba(244, 241, 237, 0.72);
  border-radius: 0;
  box-shadow: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 104px;
  width: 88px;
  height: 100%;
  background: linear-gradient(180deg, rgba(197, 21, 53, 0) 0%, rgba(197, 21, 53, 0.26) 45%, rgba(197, 21, 53, 0) 100%);
  filter: blur(10px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 188px 1fr 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 22px;
}

.site-footer__brand img {
  width: 188px;
  height: auto;
}

.site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--nomos-text);
}

.site-footer__contact span,
.site-footer__socials a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1.4px solid #21263b;
  border-radius: 50%;
  font-size: 18px;
}

.site-footer__socials {
  display: flex;
  gap: 10px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  justify-items: center;
  margin-bottom: 22px;
}

.site-footer__column {
  text-align: center;
}

.site-footer__column h3 {
  margin: 0 0 12px;
  color: var(--nomos-text);
  font-size: 24px;
}

.site-footer__column a,
.site-footer__column p {
  display: block;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.site-footer__credit {
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
  color: var(--nomos-text);
}

.site-footer__credit span {
  color: var(--nomos-primary);
  font-weight: 700;
}

.generic-page {
  margin-bottom: 120px;
}

.generic-page__article {
  padding: 40px;
}

@media (max-width: 1220px) {
  .hero,
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-header {
    height: auto;
  }

  .site-header__inner {
    min-height: 87px;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 4px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav > a,
  .site-nav__item {
    height: auto;
  }

  .specialists-slider__slide,
  .services__grid,
  .cases__grid,
  .reviews__grid,
  .contacts-page__grid,
  .site-footer__main,
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__top {
    justify-items: center;
  }
}

@media (max-width: 780px) {
  .nomos-container {
    width: min(100vw - 24px, 1520px);
  }

  .nomos-bg-top {
    width: 100vw;
    min-width: 0;
    height: 520px;
  }

  .nomos-bg-bottom {
    width: 420px;
    height: 420px;
    right: -80px;
    bottom: 320px;
  }

  .hero,
  .page-intro,
  .about,
  .specialists,
  .services,
  .cases,
  .reviews,
  .contacts-page {
    margin-bottom: 72px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nomos-button {
    width: 100%;
    font-size: 20px;
  }

  .about {
    padding: 40px 24px;
  }

  .about__facts,
  .services__grid,
  .cases__grid,
  .reviews__grid,
  .contacts-page__grid,
  .site-footer__main,
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .specialists-slider__slide {
    flex-basis: calc(100% - 32px);
  }

  .specialists-slider__nav {
    display: none;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
  }

  .site-nav__item:hover .site-nav__dropdown,
  .site-nav__item:focus-within .site-nav__dropdown {
    display: block;
  }

  .site-footer::after {
    right: 26px;
    width: 72px;
  }
}