/* ==========================================================================
   Уральская Трубная Индустрия - interior pages
   ========================================================================== */

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-900);
  background-image: linear-gradient(135deg, #13273a, #08111c);
  color: var(--paper);
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 82% 24%, rgba(54, 82, 105, 0.42), transparent 48%),
    linear-gradient(100deg, rgba(5, 10, 16, 0.97) 0%, rgba(8, 17, 28, 0.9) 50%, rgba(8, 17, 28, 0.58) 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 68% 38%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 68% 38%, #000, transparent 72%);
  opacity: 0.7;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 16, 0.7));
}

.page-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

.page-hero__num {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 34px;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--font-serif);
  font-size: clamp(110px, 16vw, 230px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.7;
  pointer-events: none;
  user-select: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(42px, 6vw, 78px);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--steel-300);
  transition: color 0.2s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--brass-bright);
}

.breadcrumbs span[aria-current] {
  color: var(--steel-400);
}

.breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.25);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  align-items: end;
  gap: clamp(30px, 5vw, 80px);
}

.page-hero h1 {
  margin-top: 20px;
  max-width: 900px;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.97;
  color: var(--paper);
}

.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brass-bright);
}

.page-hero__aside {
  max-width: 430px;
  padding-bottom: 5px;
}

.page-hero__aside p {
  color: rgba(220, 229, 235, 0.78);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
}

.page-hero__aside .text-link {
  margin-top: 20px;
  color: var(--paper);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 34px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.page-hero--short .breadcrumbs {
  margin-bottom: 42px;
}

.page-hero--short .page-hero__inner {
  padding-bottom: clamp(36px, 5vw, 56px);
}

/* ---------- Generic interior blocks ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.intro-grid--wide {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.intro-grid__title h2 {
  margin-top: 18px;
}

.intro-grid__body .lead {
  margin-bottom: 22px;
}

.intro-grid__body p {
  color: var(--steel-700);
  font-size: 14px;
  line-height: 1.8;
}

.intro-grid__body p + p {
  margin-top: 16px;
}

.section--dark .intro-grid__body p {
  color: var(--steel-300);
}

.section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
}

.kicker-line {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker-line::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--line);
}

.section--dark .kicker-line::after {
  background: var(--line-light);
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- About: story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.story-media {
  position: relative;
  padding-bottom: 52px;
}

.story-media__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--ink-800);
}

.story-media__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 28, 0.08), rgba(8, 17, 28, 0.72));
}

.story-media__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) brightness(0.7) contrast(1.06);
}

.story-media__main .story-media__label {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 24px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.story-media__main .story-media__label strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brass-bright);
  font-size: 12px;
}

.story-media__small {
  position: absolute;
  right: -4%;
  bottom: 0;
  z-index: 2;
  width: 46%;
  overflow: hidden;
  border: 8px solid var(--paper);
  background: var(--ink-800);
  box-shadow: 0 20px 44px rgba(8, 17, 28, 0.18);
}

.story-media__small img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) brightness(0.72);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}

.story-media__small:hover img {
  filter: grayscale(0.4) brightness(0.8);
  transform: scale(1.04);
}

.story-media__stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--paper);
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.story-media__stamp strong {
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.story-media__stamp span {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-copy h2 {
  margin-top: 18px;
}

.story-copy .lead {
  margin-top: 24px;
}

.story-copy p {
  margin-top: 14px;
  color: var(--steel-700);
  font-size: 14.5px;
  line-height: 1.8;
}

.story-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.story-fact {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-fact strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.story-fact strong em {
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.story-fact span {
  display: block;
  margin-top: 5px;
  color: var(--steel-600);
  font-size: 12px;
  line-height: 1.4;
}

/* ---------- Timeline ---------- */
.timeline-wrap {
  margin-top: clamp(40px, 6vw, 72px);
}

.timeline {
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(24px, 4vw, 58px);
  padding: 0 0 42px 34px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--brass-dark);
  box-shadow: 0 0 0 5px var(--paper);
}

.timeline__year {
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: clamp(36px, 3.4vw, 48px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.timeline__body {
  max-width: 680px;
}

.timeline__body .label {
  color: var(--steel-500);
  margin-bottom: 7px;
}

.timeline__body h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.timeline__body p {
  margin-top: 7px;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.7;
}

.section--dark .timeline {
  border-color: var(--line-light);
}

.section--dark .timeline__item::before {
  background: var(--ink-900);
  box-shadow: 0 0 0 5px var(--ink-900);
}

.section--dark .timeline__body h3 {
  color: var(--paper);
}

.section--dark .timeline__body p {
  color: var(--steel-400);
}

.section--dark .timeline__year {
  color: var(--brass-bright);
}

/* ---------- Mission quote ---------- */
.mission-quote {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.mission-quote__mark {
  color: var(--brass);
  font-family: var(--font-serif);
  font-size: 80px;
  font-style: italic;
  line-height: 0.6;
  height: 40px;
}

.mission-quote blockquote {
  margin-top: 18px;
  color: var(--paper);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.18;
  text-wrap: balance;
}

.mission-quote blockquote em {
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.mission-quote__author {
  margin-top: 24px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(46px, 6vw, 76px);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.value-card {
  padding: 28px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.value-card__num {
  display: block;
  margin-bottom: 30px;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.value-card h3 {
  color: var(--paper);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.value-card p {
  margin-top: 8px;
  color: var(--steel-400);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- Director ---------- */
.director-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.director-card__portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 34%, rgba(198, 162, 102, 0.22), transparent 42%),
    radial-gradient(circle at 26% 76%, rgba(53, 84, 108, 0.5), transparent 50%),
    linear-gradient(148deg, #0f1f2d, #050b11);
  color: var(--paper);
}

.director-card__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 76%);
}

.director-card__portrait::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(198, 162, 102, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.director-card__initials {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: auto;
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: clamp(120px, 13vw, 190px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.7;
}

.director-card__portrait .label {
  position: relative;
  z-index: 2;
  color: var(--steel-400);
}

.director-card__portrait .label strong {
  display: block;
  margin-top: 5px;
  color: var(--brass-bright);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.director-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  filter: saturate(0.78) contrast(1.04) brightness(0.88);
}

.director-card__portrait--photo::before {
  z-index: 1;
  background-image: linear-gradient(
    180deg,
    rgba(5, 11, 17, 0.86) 0%,
    rgba(5, 11, 17, 0.28) 20%,
    rgba(5, 11, 17, 0) 44%,
    rgba(5, 11, 17, 0.16) 62%,
    rgba(5, 11, 17, 0.92) 100%
  );
  background-size: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

.director-card__portrait--photo::after {
  inset: 16px;
  width: auto;
  height: auto;
  border: 1px solid rgba(198, 162, 102, 0.32);
  border-radius: 0;
  transform: none;
  z-index: 2;
  pointer-events: none;
}

.director-card__portrait--photo .label {
  z-index: 3;
}

.director-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.director-card__content .eyebrow {
  margin-bottom: 18px;
}

.director-card__content h2 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.director-card__quote {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 1px solid var(--brass);
  color: var(--steel-700);
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 23px);
  font-style: italic;
  line-height: 1.55;
}

.director-card__bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.director-card__bio .label {
  margin-bottom: 5px;
  color: var(--steel-500);
}

.director-card__bio p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.director-card__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.director-card__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel-600);
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

.director-card__contacts a:hover {
  color: var(--brass-dark);
}

.director-card__contacts svg {
  width: 13px;
  height: 13px;
  color: var(--brass-dark);
}

/* ---------- Partners / certificates ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.partner-card:hover {
  background: var(--white);
}

.partner-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
}

.partner-card__name {
  margin-top: 32px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.partner-card__meta {
  margin-top: 5px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.cert-card__seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border: 1px solid rgba(198, 162, 102, 0.5);
  border-radius: 50%;
  color: var(--brass-dark);
}

.cert-card__seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(198, 162, 102, 0.45);
  border-radius: 50%;
}

.cert-card__seal svg {
  width: 26px;
  height: 26px;
}

.cert-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cert-card p {
  margin-top: 8px;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.65;
}

.cert-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cert-card__meta span:last-child {
  color: var(--brass-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(57, 87, 111, 0.55), transparent 50%),
    var(--ink-900);
  color: var(--paper);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-rings.svg");
  background-repeat: no-repeat;
  background-position: right -16% center;
  background-size: min(58vw, 720px) auto;
  opacity: 0.18;
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 76px);
}

.cta-band__copy {
  max-width: 680px;
}

.cta-band__copy h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4.2vw, 56px);
}

.cta-band__copy h2 em {
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.cta-band__copy p {
  max-width: 480px;
  margin-top: 14px;
  color: var(--steel-300);
  font-size: 14px;
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

/* ---------- Products page: anchors ---------- */
.anchors {
  position: sticky;
  top: 70px;
  z-index: 80;
  background: rgba(244, 242, 236, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.anchors__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.anchors__label {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  flex: none;
}

.anchors__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchors__list::-webkit-scrollbar {
  display: none;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  color: var(--steel-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.anchor-link span {
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
}

.anchor-link:hover,
.anchor-link.is-active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

/* ---------- Products page: category ---------- */
.category-block {
  scroll-margin-top: 158px;
  padding-block: clamp(60px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.category-block:last-of-type {
  border-bottom: 0;
}

.category-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.category-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 50px);
}

.category-head__aside p {
  max-width: 380px;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.7;
}

.category-head__aside .text-link {
  margin-top: 16px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 14px;
  align-items: stretch;
}

.product-media {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: var(--ink-800);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.86) brightness(0.7) contrast(1.06);
  transition: transform 1s var(--ease), filter 0.7s var(--ease);
}

.product-media:hover img {
  transform: scale(1.04);
  filter: grayscale(0.4) brightness(0.76) contrast(1.04);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.06), transparent 40%, rgba(5, 10, 16, 0.8));
}

.product-media__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 10, 16, 0.32);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.product-media__caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.product-media__caption strong {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.product-media__caption span {
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.product-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
}

.product-panel__body {
  padding: clamp(24px, 3vw, 34px);
}

.product-panel__body h3 {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.product-panel__body > p {
  margin-top: 12px;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.7;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.spec-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.spec-list div:nth-child(odd) {
  padding-right: 18px;
}

.spec-list div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.spec-list dt {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.spec-list dd {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

.use-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.use-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--steel-600);
  font-size: 11.5px;
  line-height: 1.3;
}

.price-table-wrap {
  margin-top: auto;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.price-table {
  min-width: 100%;
  font-size: 13px;
}

.price-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--steel-700);
  white-space: nowrap;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table td:first-child {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.price-table td:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.price-table th:last-child {
  text-align: right;
}

.price-table tr:hover td {
  background: rgba(244, 242, 236, 0.65);
}

.product-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.product-panel__note {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.product-panel__foot .btn {
  min-height: 40px;
  font-size: 11.5px;
  padding: 0 14px;
}

.category-block--reverse .product-row {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
}

.category-block--reverse .product-media {
  order: 2;
}

.category-block--reverse .product-panel {
  order: 1;
}

.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--steel-500);
  font-size: 12px;
  line-height: 1.5;
}

.price-note .mono {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Products page: quality band ---------- */
.quality-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--paper);
}

.quality-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.quality-band__copy h2 {
  margin-top: 18px;
}

.quality-band__copy p {
  margin-top: 16px;
  color: var(--steel-300);
  font-size: 13.5px;
  line-height: 1.7;
}

.quality-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.quality-item {
  padding: 20px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.quality-item svg {
  width: 18px;
  height: 18px;
  margin-bottom: 14px;
  color: var(--brass);
}

.quality-item strong {
  display: block;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.quality-item span {
  display: block;
  margin-top: 4px;
  color: var(--steel-400);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Services page ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 162, 102, 0.5);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  width: calc(100% + 2px);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  color: var(--brass-dark);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card:hover .service-card__icon {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--brass-bright);
}

.service-card__num {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-card p {
  margin-top: 9px;
  color: var(--steel-600);
  font-size: 12.5px;
  line-height: 1.65;
}

.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card__foot svg {
  width: 13px;
  height: 13px;
  color: var(--brass-dark);
  transition: transform 0.25s var(--ease);
}

.service-card:hover .service-card__foot svg {
  transform: translate(2px, -2px);
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.process-step {
  position: relative;
  padding: 24px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.process-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 30px;
}

.process-step__num {
  color: var(--brass);
  font-family: var(--font-serif);
  font-size: 34px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.process-step__line {
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.process-step h3 {
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.process-step p {
  margin-top: 7px;
  color: var(--steel-400);
  font-size: 13px;
  line-height: 1.6;
}

.process-step small {
  display: block;
  margin-top: 16px;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Delivery table */
.delivery-table {
  min-width: 620px;
}

.delivery-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.delivery-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--steel-700);
  font-size: 13px;
  line-height: 1.5;
}

.delivery-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.delivery-table td:last-child {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.delivery-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.55);
}

.delivery-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

/* Payment cards */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.payment-card {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--brass-dark);
}

.payment-card__icon svg {
  width: 22px;
  height: 22px;
}

.payment-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.payment-card p {
  margin-top: 6px;
  color: var(--steel-600);
  font-size: 12.5px;
  line-height: 1.6;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.faq-intro h2 {
  margin-top: 18px;
}

.faq-intro p {
  margin-top: 18px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.7;
}

.faq-intro .btn {
  margin-top: 24px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  text-align: left;
  transition: color 0.2s var(--ease);
}

.faq-question:hover {
  color: var(--brass-dark);
}

.faq-question__icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}

.faq-question__icon::before,
.faq-question__icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq-question__icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-question__icon::after {
  transform: rotate(0);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.faq-answer__inner {
  max-width: 680px;
  padding: 0 40px 22px 0;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.75;
}

/* Guarantees */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.guarantee-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.guarantee-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border: 1px solid rgba(198, 162, 102, 0.45);
  color: var(--brass-dark);
}

.guarantee-card__icon svg {
  width: 19px;
  height: 19px;
}

.guarantee-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guarantee-card p {
  margin-top: 8px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- Team page ---------- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.leader-card {
  position: relative;
  scroll-margin-top: 120px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
}

.leader-card__portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(198, 162, 102, 0.2), transparent 43%),
    radial-gradient(circle at 20% 80%, rgba(61, 92, 115, 0.48), transparent 53%),
    linear-gradient(145deg, #0e1d2a, #050b11);
  color: var(--paper);
}

.leader-card__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 76%);
}

.leader-card__portrait::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(198, 162, 102, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.leader-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.leader-card__initials {
  position: relative;
  z-index: 1;
  margin: auto;
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: clamp(82px, 8vw, 118px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.leader-card__bottom {
  position: relative;
  z-index: 2;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.leader-card__portrait--photo {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.leader-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04) brightness(0.88);
}

.leader-card__portrait--photo::before {
  z-index: 1;
  background-image: linear-gradient(
    180deg,
    rgba(5, 11, 17, 0.88) 0%,
    rgba(5, 11, 17, 0.32) 22%,
    rgba(5, 11, 17, 0) 46%,
    rgba(5, 11, 17, 0.16) 64%,
    rgba(5, 11, 17, 0.92) 100%
  );
  background-size: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

.leader-card__portrait--photo::after {
  inset: 14px;
  width: auto;
  height: auto;
  border: 1px solid rgba(198, 162, 102, 0.32);
  border-radius: 0;
  transform: none;
  z-index: 2;
  pointer-events: none;
}

.leader-card__portrait--photo .leader-card__top,
.leader-card__portrait--photo .leader-card__bottom {
  z-index: 3;
}

.leader-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.leader-card__role {
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.leader-card h3 {
  margin-top: 7px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.leader-card__desc {
  margin-top: 9px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.65;
}

.leader-card__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.leader-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--steel-600);
  font-size: 12px;
  transition: color 0.2s var(--ease);
}

.leader-card__contact a:hover {
  color: var(--brass-dark);
}

.leader-card__contact svg {
  width: 12px;
  height: 12px;
  color: var(--brass-dark);
}

.leader-card__contact span {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Culture */
.culture-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 14px;
}

.culture-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--ink-800);
}

.culture-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.64) contrast(1.06);
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
}

.culture-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0.45) brightness(0.72);
}

.culture-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.06), transparent 45%, rgba(5, 10, 16, 0.88));
}

.culture-card__caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: var(--paper);
}

.culture-card__caption .label {
  color: var(--brass);
  margin-bottom: 6px;
}

.culture-card__caption strong {
  display: block;
  max-width: 260px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.culture-card__caption p {
  max-width: 280px;
  margin-top: 5px;
  color: var(--steel-300);
  font-size: 12.5px;
  line-height: 1.55;
}

.team-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.team-quote blockquote {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.7vw, 44px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.team-quote blockquote span {
  color: var(--brass-dark);
}

.team-quote cite {
  display: block;
  margin-top: 22px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.team-structure {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.team-structure__item {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-structure__item strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.team-structure__item span {
  display: block;
  margin-top: 8px;
  color: var(--steel-600);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Reviews page ---------- */
.reviews-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.reviews-summary__score {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.reviews-summary__value {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(90px, 12vw, 150px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.reviews-summary__meta {
  padding-bottom: 5px;
}

.reviews-summary__meta .stars {
  color: var(--brass-bright);
}

.reviews-summary__meta .stars svg {
  width: 15px;
  height: 15px;
}

.reviews-summary__meta span {
  display: block;
  margin-top: 7px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rating-bars {
  display: grid;
  gap: 9px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 72px 1fr 34px;
  align-items: center;
  gap: 12px;
  color: var(--steel-300);
  font-size: 12px;
}

.rating-bar__track {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.rating-bar__fill {
  height: 100%;
  background: var(--brass);
}

.rating-bar strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  text-align: right;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
}

.filter-btn {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--steel-300);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper);
}

.filter-count {
  margin-left: auto;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-count strong {
  color: var(--ink);
  font-weight: 500;
}

.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.review-tile {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.review-tile:hover {
  border-color: rgba(198, 162, 102, 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.review-tile[hidden] {
  display: none;
}

.review-tile--featured {
  grid-column: span 2;
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper);
}

.review-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.review-tile .stars {
  color: var(--brass-dark);
}

.review-tile--featured .stars {
  color: var(--brass-bright);
}

.review-tile__cat {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.review-tile blockquote {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.review-tile--featured blockquote {
  max-width: 620px;
  color: var(--paper);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.review-tile blockquote em {
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
}

.review-tile--featured blockquote em {
  color: var(--brass-bright);
}

.review-tile__author {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.review-tile--featured .review-tile__author {
  border-color: var(--line-light);
}

.review-tile__author .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.review-tile--featured .avatar {
  background: rgba(255, 255, 255, 0.06);
}

.review-tile__author strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.review-tile__author > div span {
  display: block;
  color: var(--steel-600);
  font-size: 11.5px;
  line-height: 1.4;
}

.review-tile--featured .review-tile__author > div span {
  color: var(--steel-400);
}

.office-list__item a svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
}

.review-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.reviews-empty {
  display: none;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  color: var(--steel-500);
  font-size: 14px;
  text-align: center;
}

.reviews-empty.is-visible {
  display: block;
}

.client-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.client-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.client-strip span::before {
  content: "";
  width: 4px;
  height: 4px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}

/* ---------- Contacts page ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-card:hover {
  border-color: rgba(198, 162, 102, 0.5);
  transform: translateY(-3px);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  color: var(--brass-dark);
}

.contact-card__icon svg {
  width: 19px;
  height: 19px;
}

.contact-card .label {
  margin-bottom: 7px;
  color: var(--steel-500);
}

.contact-card strong,
.contact-card a.contact-card__value {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.2s var(--ease);
}

.contact-card a.contact-card__value:hover {
  color: var(--brass-dark);
}

.contact-card p {
  margin-top: 6px;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.6;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.form-card--light {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-side {
  display: grid;
  gap: 14px;
}

.office-panel {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.office-panel h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.office-panel > p {
  margin-top: 7px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.6;
}

.office-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.office-list__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.office-list__item .label {
  color: var(--steel-500);
  font-size: 11px;
}

.office-list__item span,
.office-list__item a {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.office-list__item a:hover {
  color: var(--brass-dark);
}

.office-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding: 12px;
  background: var(--paper);
  color: var(--steel-600);
  font-size: 12px;
  line-height: 1.55;
}

.office-note svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brass-dark);
  flex: none;
}

.contact-side__call {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--ink-900);
  color: var(--paper);
}

.contact-side__call::before {
  content: "";
  position: absolute;
  right: -25%;
  top: -40%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(198, 162, 102, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(198, 162, 102, 0.04), 0 0 0 70px rgba(198, 162, 102, 0.025);
}

.contact-side__call .label {
  color: var(--brass);
  margin-bottom: 10px;
}

.contact-side__call strong {
  display: block;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.contact-side__call p {
  margin-top: 8px;
  color: var(--steel-300);
  font-size: 13.5px;
  line-height: 1.6;
}

.contact-side__call a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--brass-bright);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-side__call a svg {
  width: 13px;
  height: 13px;
}

.branch-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.branch-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 2px;
  background: var(--brass);
}

.branch-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.branch-card__city {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.branch-card__role {
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: right;
}

.branch-card address {
  color: var(--steel-700);
  font-size: 13.5px;
  line-height: 1.6;
}

.branch-card__meta {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: var(--steel-500);
  font-size: 12.5px;
  line-height: 1.55;
}

.branch-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.branch-card__foot a {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.branch-card__foot a:hover {
  color: var(--ink);
}

.branch-card__foot a small {
  display: block;
  margin-top: 0;
  color: var(--steel-500);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.branch-card__foot span {
  flex-basis: 100%;
  margin-left: 0;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: left;
}

.map-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.map-panel img {
  width: 100%;
  height: auto;
  min-height: 420px;
  object-fit: cover;
}

.map-panel__card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 28, 0.93);
  color: var(--paper);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.map-panel__card .label {
  color: var(--brass);
  margin-bottom: 8px;
}

.map-panel__card strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.map-panel__card p {
  margin-top: 5px;
  color: var(--steel-400);
  font-size: 12px;
  line-height: 1.5;
}

.map-panel__card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--brass-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-panel__card a svg {
  width: 12px;
  height: 12px;
}

.map-panel__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 10px;
  border: 1px solid rgba(8, 17, 28, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--steel-600);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.requisites-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.requisites-head h2 {
  margin-top: 18px;
}

.requisites-head p {
  margin-top: 16px;
  color: var(--steel-600);
  font-size: 12.5px;
  line-height: 1.7;
}

.requisites-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.requisites-list div {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.requisites-list dt {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.requisites-list dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.requisites-list div:last-child:nth-child(odd) {
  grid-column: span 2;
}

/* ---------- Legal page ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.legal-toc .label {
  margin-bottom: 12px;
  color: var(--brass-dark);
}

.legal-toc ol {
  counter-reset: toc;
  display: grid;
  gap: 0;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--steel-600);
  font-size: 12px;
  line-height: 1.45;
  transition: color 0.2s var(--ease);
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-content {
  max-width: 780px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content h2 {
  margin-top: 34px;
  scroll-margin-top: 110px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-content h3 {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-content p {
  margin-top: 12px;
  color: var(--steel-700);
  font-size: 13.5px;
  line-height: 1.8;
}

.legal-content ul {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-left: 18px;
  list-style: disc;
}

.legal-content li {
  color: var(--steel-700);
  font-size: 13.5px;
  line-height: 1.7;
}

.legal-content li::marker {
  color: var(--brass-dark);
}

.legal-demo {
  position: relative;
  margin: 0 0 30px;
  padding: 20px 22px 20px 24px;
  border: 1px solid rgba(198, 162, 102, 0.38);
  background: var(--paper-2);
}

.legal-demo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--brass);
}

.legal-demo__label {
  display: block;
  margin-bottom: 7px;
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-demo p {
  margin: 0;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.7;
}

.legal-demo p + p {
  margin-top: 10px;
}

.legal-demo--end {
  margin: 34px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.legal-demo--end::before {
  display: none;
}

.legal-demo--end .legal-demo__label {
  color: var(--steel-500);
  font-size: 11px;
}

.legal-demo--end p {
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.7;
}

.legal-annex {
  margin-top: 42px;
  padding-top: 22px;
}

.legal-annex__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.legal-annex__heading {
  min-width: 0;
}

.legal-annex__top .legal-demo__label {
  margin-bottom: 0;
  color: var(--steel-600);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.legal-annex .legal-annex__title {
  margin: 7px 0 0;
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}

.legal-annex__meta {
  flex: none;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-annex__lead {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.65;
}

.legal-annex__details {
  margin-top: 4px;
}

.legal-annex__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  list-style: none;
  text-transform: uppercase;
}

.legal-annex__toggle::-webkit-details-marker {
  display: none;
}

.legal-annex__toggle::marker {
  content: "";
}

.legal-annex__toggle:hover,
.legal-annex__toggle:focus-visible {
  color: var(--brass-dark);
}

.legal-annex__toggle:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

.legal-annex__toggle-meta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  color: var(--steel-500);
}

.legal-annex__toggle-icon {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
}

.legal-annex__toggle-icon::before,
.legal-annex__toggle-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.legal-annex__toggle-icon::before {
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
}

.legal-annex__toggle-icon::after {
  top: 0;
  left: 4px;
  width: 1px;
  height: 9px;
  transition: transform 0.2s ease;
}

.legal-annex__details[open] .legal-annex__toggle {
  border-bottom-color: transparent;
}

.legal-annex__details[open] .legal-annex__toggle-icon::after {
  transform: scaleY(0);
}

.legal-annex__grid {
  columns: 2;
  column-gap: 48px;
  padding-top: 18px;
}

.legal-annex__item {
  break-inside: avoid;
  margin: 0 0 22px;
}

.legal-annex__item h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 7px;
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.legal-annex__num {
  flex: none;
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.legal-annex__item p {
  margin: 0;
  color: var(--steel-500);
  font-size: 13px;
  line-height: 1.68;
}

.legal-annex__item p + p {
  margin-top: 8px;
}

@media print {
  .legal-annex__details > .legal-annex__grid {
    display: block !important;
    columns: 1;
  }

  .legal-annex__toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .legal-annex__grid {
    columns: 1;
  }

  .legal-annex__item {
    margin-bottom: 20px;
  }

  .legal-annex__item h3 {
    font-size: 13px;
  }

  .legal-annex__item p {
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (max-width: 520px) {
  .legal-annex__top {
    flex-direction: column;
    gap: 6px;
  }

  .legal-annex__meta {
    white-space: normal;
  }

  .legal-annex__lead {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .legal-annex__toggle {
    gap: 10px;
    padding: 15px 0;
    font-size: 11.5px;
    letter-spacing: 0.08em;
  }

  .legal-annex__toggle-meta {
    font-size: 11px;
  }
}

.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 2px solid var(--brass);
  background: var(--paper-2);
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 404 ---------- */
.error-page {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 37px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 40%, rgba(51, 80, 103, 0.48), transparent 48%),
    var(--ink-900);
  color: var(--paper);
}

.error-page::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 8%;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(198, 162, 102, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(198, 162, 102, 0.035), 0 0 0 110px rgba(198, 162, 102, 0.02);
}

.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 80px;
}

.error-page__code {
  margin-bottom: 18px;
  color: var(--brass-bright);
  font-family: var(--font-serif);
  font-size: clamp(100px, 17vw, 220px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.error-page h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.8vw, 64px);
}

.error-page p {
  max-width: 440px;
  margin-top: 16px;
  color: var(--steel-300);
  font-size: 14px;
  line-height: 1.7;
}

.error-page .split-actions {
  margin-top: 28px;
}

/* ---------- Responsive interior ---------- */
@media (min-width: 1121px) {
  .anchors {
    top: 70px;
  }
}

@media (max-width: 1120px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .page-hero__aside {
    max-width: 600px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-media {
    max-width: 640px;
    width: 100%;
  }

  .story-copy {
    max-width: 760px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .director-card {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-row,
  .category-block--reverse .product-row {
    grid-template-columns: 1fr;
  }

  .category-block--reverse .product-media {
    order: 0;
  }

  .category-block--reverse .product-panel {
    order: 1;
  }

  .product-media {
    min-height: 430px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
    max-width: 680px;
  }

  .guarantee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .leaders-grid {
    grid-template-columns: 1fr 1fr;
  }

  .culture-grid {
    grid-template-columns: 1fr 1fr;
  }

  .culture-card:first-child {
    grid-column: span 2;
    min-height: 320px;
  }

  .team-structure {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
  }

  .reviews-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-tile--featured {
    grid-column: span 2;
  }

  .contact-main {
    grid-template-columns: 1fr;
  }

  .contact-side {
    grid-template-columns: 1fr 1fr;
  }

  .branch-cards {
    grid-template-columns: 1fr 1fr;
  }

  .requisites-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-width: 560px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__actions {
    margin-top: 4px;
  }

  .anchors {
    top: 68px;
  }

  .anchors__label {
    display: none;
  }

  .anchors__inner {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .anchors__inner::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .intro-grid,
  .intro-grid--wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-card__portrait {
    min-height: 380px;
  }

  .director-card__initials {
    font-size: 130px;
  }

  .timeline__item {
    grid-template-columns: 100px 1fr;
    gap: 22px;
    padding-left: 26px;
  }

  .quality-band__grid {
    grid-template-columns: 1fr;
  }

  .quality-list {
    max-width: 620px;
  }

  .category-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reviews-page-grid {
    grid-template-columns: 1fr;
  }

  .review-tile--featured {
    grid-column: auto;
  }

  .reviews-summary__score {
    align-items: flex-end;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .branch-cards {
    grid-template-columns: 1fr;
    max-width: 660px;
  }

  .contact-side {
    grid-template-columns: 1fr;
    max-width: 660px;
  }

  .contact-form-wrap {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .page-hero__shade {
    background-image:
      radial-gradient(ellipse at 82% 24%, rgba(54, 82, 105, 0.34), transparent 55%),
      linear-gradient(100deg, rgba(5, 10, 16, 0.97) 0%, rgba(8, 17, 28, 0.91) 60%, rgba(8, 17, 28, 0.78) 100%);
  }

  .page-hero__bg {
    object-position: 62% center;
  }

  .breadcrumbs {
    margin-bottom: 38px;
    font-size: 11px;
  }

  .page-hero h1 {
    font-size: clamp(36px, 10.5vw, 56px);
    letter-spacing: -0.045em;
  }

  .page-hero__inner {
    padding-top: 22px;
    padding-bottom: 40px;
  }

  .page-hero__meta {
    gap: 8px 18px;
    margin-top: 30px;
    font-size: 11px;
  }

  .page-hero__num {
    display: none;
  }

  .story-media__small {
    width: 52%;
    border-width: 6px;
  }

  .story-media__stamp {
    width: 74px;
    height: 74px;
  }

  .story-media__stamp strong {
    font-size: 20px;
  }

  .story-facts {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 22px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 0 30px 22px;
  }

  .timeline__item::before {
    top: 4px;
  }

  .timeline__year {
    font-size: 32px;
  }

  .timeline__body p {
    font-size: 12.5px;
  }

  .mission-quote blockquote {
    font-size: 27px;
  }

  .director-card__bio {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .director-card__portrait {
    min-height: 300px;
  }

  .director-card__initials {
    font-size: 110px;
  }

  .director-card__content {
    padding: 24px 20px;
  }

  .cert-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .cta-band__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .anchors {
    top: 68px;
  }

  .anchors__inner {
    min-height: 52px;
  }

  .anchor-link {
    min-height: 30px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .product-media {
    min-height: 320px;
  }

  .product-panel__body {
    padding: 20px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .spec-list div:nth-child(odd),
  .spec-list div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

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

  .product-panel__foot .btn {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 20px;
  }

  .process-step__top {
    margin-bottom: 18px;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .guarantee-grid {
    grid-template-columns: 1fr;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }

  .leader-card__portrait {
    min-height: 280px;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .culture-card:first-child {
    grid-column: auto;
    min-height: 300px;
  }

  .culture-card {
    min-height: 300px;
  }

  .team-structure {
    grid-template-columns: 1fr 1fr;
  }

  .team-quote blockquote {
    font-size: 26px;
  }

  .reviews-summary__score {
    gap: 16px;
  }

  .reviews-summary__value {
    font-size: 100px;
  }

  .filter-count {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .review-tile {
    padding: 20px;
  }

  .review-tile--featured blockquote {
    font-size: 18px;
  }

  .map-panel img {
    min-height: 360px;
  }

  .map-panel__card {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 18px;
  }

  .map-panel__badge {
    top: 14px;
    right: 14px;
  }

  .requisites-list {
    grid-template-columns: 1fr;
  }

  .requisites-list div:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .cta-band::before {
    opacity: 0.1;
    background-position: right -35% center;
  }
}

@media (max-width: 520px) {
  .page-hero__meta span:nth-child(3) {
    display: none;
  }

  .story-media {
    padding-bottom: 34px;
  }

  .story-media__small {
    width: 56%;
    right: 0;
  }

  .story-media__stamp {
    display: none;
  }

  .team-structure {
    grid-template-columns: 1fr;
  }

  .process-step h3 {
    font-size: 17px;
  }

  .reviews-summary__value {
    font-size: 82px;
  }

  .reviews-summary__meta .stars svg {
    width: 13px;
    height: 13px;
  }

  .filter-btn {
    font-size: 11.5px;
    padding: 0 10px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card strong,
  .contact-card a.contact-card__value {
    font-size: 17px;
  }

  .branch-card {
    padding: 20px;
  }

  .legal-content h2 {
    font-size: 21px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 13px;
  }

  .error-page__inner {
    padding-block: 60px 80px;
  }
}

/* ---------- Careers page ---------- */
.careers-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.7fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}

.careers-intro__copy .lead {
  margin-top: 22px;
  max-width: 620px;
}

.careers-intro__copy p + p {
  margin-top: 14px;
  max-width: 620px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.75;
}

.careers-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.career-stat {
  min-height: 150px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.career-stat strong {
  display: block;
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.5vw, 58px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.career-stat span {
  display: block;
  margin-top: 12px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.vacancies-section {
  border-top: 1px solid var(--line);
}

.vacancy-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vacancy-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vacancy-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--steel-600);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.vacancy-filter__btn small {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.vacancy-filter__btn:hover {
  border-color: var(--line);
  color: var(--ink);
}

.vacancy-filter__btn.is-active {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--paper);
}

.vacancy-filter__btn.is-active small {
  color: var(--brass);
}

.vacancy-filter__count {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.vacancy-city {
  margin-top: 54px;
}

.vacancy-city__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.vacancy-city__title {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.vacancy-city__num {
  padding-top: 5px;
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vacancy-city h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.vacancy-city__title p {
  margin-top: 7px;
  color: var(--steel-500);
  font-size: 12px;
  line-height: 1.5;
}

.vacancy-city__count {
  padding-bottom: 3px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vacancy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 306px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.vacancy-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width 0.4s var(--ease);
}

.vacancy-card:hover {
  border-color: rgba(198, 162, 102, 0.5);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.vacancy-card:hover::before {
  width: calc(100% + 2px);
}

.vacancy-card--key {
  grid-column: span 2;
  min-height: 306px;
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--paper);
}

.vacancy-card--key::before {
  width: 88px;
}

.vacancy-card--key:hover {
  border-color: var(--ink-800);
  box-shadow: 0 24px 60px rgba(5, 10, 16, 0.2);
}

.vacancy-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.vacancy-card__dept {
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-card__badge {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.vacancy-card--key .vacancy-card__dept {
  color: var(--brass);
}

.vacancy-card--key .vacancy-card__badge {
  color: var(--steel-400);
}

.vacancy-card h3 {
  max-width: 94%;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.vacancy-card--key h3 {
  max-width: 650px;
  color: var(--paper);
  font-size: clamp(26px, 2.7vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.vacancy-card__salary {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.vacancy-card--key .vacancy-card__salary {
  color: var(--brass-bright);
  font-size: 17px;
  font-weight: 600;
}

.vacancy-card p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.65;
}

.vacancy-card--key p {
  max-width: 620px;
  color: var(--steel-300);
  font-size: 12.5px;
}

.vacancy-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.vacancy-card__tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vacancy-card--key .vacancy-card__tags span {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--steel-300);
}

.vacancy-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.vacancy-card--key .vacancy-card__foot {
  border-color: var(--line-light);
}

.vacancy-card__foot > span {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.65;
  text-transform: uppercase;
}

.vacancy-card--key .vacancy-card__foot > span {
  color: var(--steel-400);
}

.vacancy-card__apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--brass);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.vacancy-card__apply svg {
  width: 12px;
  height: 12px;
  color: var(--brass-dark);
  transition: transform 0.25s var(--ease);
}

.vacancy-card__apply:hover {
  color: var(--brass-dark);
}

.vacancy-card__apply:hover svg {
  transform: translateX(3px);
}

.vacancy-card--key .vacancy-card__apply {
  color: var(--brass-bright);
}

.vacancy-card--key .vacancy-card__apply svg {
  color: var(--brass);
}

.vacancy-card[hidden],
.vacancy-city[hidden] {
  display: none;
}

.vacancies-empty {
  display: none;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.6;
}

.vacancies-empty.is-visible {
  display: block;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.perk-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.perk-card:hover {
  border-color: rgba(198, 162, 102, 0.5);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.perk-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  color: var(--brass-dark);
}

.perk-card__icon svg {
  width: 20px;
  height: 20px;
}

.perk-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.perk-card p {
  margin-top: 8px;
  color: var(--steel-600);
  font-size: 12.5px;
  line-height: 1.65;
}

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

.careers-form-section {
  scroll-margin-top: 96px;
}

.careers-form {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.careers-form__copy h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.careers-form__copy .lead {
  margin-top: 22px;
  max-width: 520px;
}

.careers-form__contacts {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.careers-form__contacts a,
.careers-form__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.careers-form__contacts svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--brass-dark);
  flex: none;
}

.careers-form__contacts small {
  display: block;
  margin-bottom: 3px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.careers-form__contacts a:hover {
  color: var(--brass-dark);
}

.careers-form__note {
  color: var(--steel-600);
  font-size: 12px;
}

.careers-form .form-card {
  width: 100%;
}

#career-form {
  scroll-margin-top: 120px;
}

@media (max-width: 1120px) {
  .vacancy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vacancy-card--key {
    grid-column: span 2;
  }

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

  .process--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .careers-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .careers-stats {
    max-width: 660px;
  }

  .careers-form {
    grid-template-columns: 1fr;
  }

  .careers-form__copy {
    max-width: 680px;
  }

  .careers-form .form-card {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .vacancy-grid {
    grid-template-columns: 1fr;
  }

  .vacancy-card--key {
    grid-column: span 1;
  }

  .vacancy-card {
    min-height: 280px;
    padding: 22px;
  }

  .vacancy-card h3 {
    max-width: 100%;
  }

  .vacancy-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vacancy-filter__buttons {
    width: 100%;
  }

  .vacancy-filter__btn {
    flex: 1 0 auto;
    justify-content: center;
  }

  .vacancy-city__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vacancy-city__count {
    padding-bottom: 0;
  }

  .perks-grid {
    grid-template-columns: 1fr;
  }

  .perk-card {
    min-height: 0;
  }

  .process--four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .career-stat {
    min-height: 126px;
    padding: 18px 16px;
  }

  .vacancy-city__title {
    gap: 12px;
  }

  .vacancy-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .vacancy-card__tags span {
    font-size: 9.5px;
  }

  .careers-form__copy h2 {
    font-size: 34px;
  }
}

/* ---------- Careers: expanded cards and larger type ---------- */
.careers-intro__copy p + p {
  font-size: 14px;
  line-height: 1.7;
}

.vacancy-filter__btn {
  gap: 9px;
  padding: 9px 13px;
  font-size: 13px;
}

.vacancy-filter__btn small {
  font-size: 11.5px;
}

.vacancy-filter__count {
  font-size: 12px;
}

.vacancy-city {
  margin-top: 58px;
}

.vacancy-city__num {
  font-size: 26px;
}

.vacancy-city h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.vacancy-city__title p {
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.55;
}

.vacancy-city__count {
  font-size: 12px;
}

.vacancy-grid {
  gap: 14px;
  margin-top: 18px;
}

.vacancy-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.vacancy-card--key {
  grid-column: auto;
  min-height: 0;
}

.vacancy-card__open {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 360px;
  padding: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.vacancy-card__open:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}

.vacancy-card__top {
  margin-bottom: 18px;
}

.vacancy-card__dept {
  font-size: 12px;
}

.vacancy-card__badge {
  font-size: 11.5px;
}

.vacancy-card__title {
  display: block;
  max-width: 96%;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.vacancy-card--key .vacancy-card__title {
  max-width: 100%;
  color: var(--paper);
  font-size: clamp(23px, 1.8vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.vacancy-card__salary {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.vacancy-card__salary small {
  display: block;
  margin-top: 4px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-card--key .vacancy-card__salary {
  color: var(--brass-bright);
  font-size: 21px;
  font-weight: 600;
}

.vacancy-card--key .vacancy-card__salary small {
  color: var(--steel-400);
}

.vacancy-card__summary-text {
  display: block;
  max-width: 620px;
  margin-top: 14px;
  color: var(--steel-600);
  font-size: 14px;
  line-height: 1.65;
}

.vacancy-card--key .vacancy-card__summary-text {
  max-width: 640px;
  color: var(--steel-300);
  font-size: 15px;
}

.vacancy-card__tags {
  gap: 6px;
  margin-top: 18px;
}

.vacancy-card__tags span {
  padding: 6px 9px;
  font-size: 11.5px;
}

.vacancy-card__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.vacancy-card__toggle svg {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--brass-dark);
  transition: transform 0.25s var(--ease);
}

.vacancy-card__open:hover .vacancy-card__toggle svg,
.vacancy-card__open:focus-visible .vacancy-card__toggle svg {
  transform: translateX(3px);
}

.vacancy-card--key .vacancy-card__toggle {
  border-color: var(--line-light);
  color: var(--paper);
}

.vacancy-card--key .vacancy-card__toggle svg {
  color: var(--brass);
}

.vacancy-card__body {
  padding: 0 28px 28px;
  animation: vacancyBody 0.3s var(--ease);
}

@keyframes vacancyBody {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vacancy-detail {
  padding-top: 24px;
}

.vacancy-detail__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 22px;
}

.vacancy-detail__meta > span {
  display: block;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.vacancy-detail__meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-detail__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.vacancy-detail h4 {
  margin-bottom: 12px;
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-detail ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.vacancy-detail li {
  position: relative;
  padding-left: 14px;
  color: var(--steel-600);
  font-size: 13.5px;
  line-height: 1.6;
}

.vacancy-detail li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--brass);
}

.vacancy-detail__block--conditions {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.vacancy-detail__block--conditions ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.vacancy-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.vacancy-card__foot > span {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.vacancy-card__apply {
  font-size: 13.5px;
}

.vacancy-card__apply svg {
  width: 14px;
  height: 14px;
}

.vacancy-card--key .vacancy-detail__meta > span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.vacancy-card--key .vacancy-detail__meta small {
  color: var(--steel-400);
}

.vacancy-card--key .vacancy-detail__cols,
.vacancy-card--key .vacancy-detail__block--conditions,
.vacancy-card--key .vacancy-card__foot {
  border-color: var(--line-light);
}

.vacancy-card--key .vacancy-detail h4 {
  color: var(--brass);
}

.vacancy-card--key .vacancy-detail li {
  color: var(--steel-300);
}

.perk-card {
  min-height: 230px;
  padding: 28px;
}

.perk-card__icon {
  width: 46px;
  height: 46px;
}

.perk-card h3 {
  font-size: 18px;
}

.perk-card p {
  font-size: 14px;
  line-height: 1.65;
}

.careers-form__contacts a,
.careers-form__note {
  font-size: 14px;
}

.careers-form__contacts small {
  font-size: 11px;
}

.vacancies-empty {
  font-size: 14px;
}

@media (max-width: 1120px) {
  .vacancy-card__summary {
    min-height: 330px;
  }
}

@media (max-width: 720px) {
  .vacancy-card__summary,
  .vacancy-card--key .vacancy-card__summary {
    min-height: 0;
    padding: 24px;
  }

  .vacancy-card__title {
    max-width: 100%;
    font-size: 24px;
  }

  .vacancy-card--key .vacancy-card__title {
    font-size: 30px;
  }

  .vacancy-card__salary {
    font-size: 19px;
  }

  .vacancy-card--key .vacancy-card__salary {
    font-size: 21px;
  }

  .vacancy-card__body {
    padding: 0 24px 24px;
  }

  .vacancy-detail__meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vacancy-detail__cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vacancy-detail__block--conditions ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .vacancy-card__open,
  .vacancy-card--key .vacancy-card__open {
    padding: 21px;
  }

  .vacancy-card__title {
    font-size: 22px;
  }

  .vacancy-card--key .vacancy-card__title {
    font-size: 22px;
  }

  .vacancy-card__summary-text,
  .vacancy-card--key .vacancy-card__summary-text {
    font-size: 14.5px;
  }

  .vacancy-card__tags span {
    font-size: 11px;
  }

  .vacancy-filter__btn {
    font-size: 13px;
  }

  .perk-card {
    min-height: 0;
  }
}

/* ---------- Vacancy modal ---------- */
body.is-vacancy-modal-open {
  overflow: hidden;
}

.vacancy-modal {
  width: min(900px, calc(100vw - 40px));
  height: min(900px, calc(100vh - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(198, 162, 102, 0.45);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(5, 10, 16, 0.42);
}

.vacancy-modal::backdrop {
  background: rgba(5, 10, 16, 0.72);
  backdrop-filter: blur(4px);
}

.vacancy-modal[open] {
  animation: vacancyModalIn 0.3s var(--ease);
}

@keyframes vacancyModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vacancy-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.vacancy-modal__scroll {
  flex: 1;
  min-height: 0;
  padding: clamp(26px, 4vw, 46px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.vacancy-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.vacancy-modal__close svg {
  width: 14px;
  height: 14px;
}

.vacancy-modal__close:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.vacancy-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: 54px;
  margin-bottom: 18px;
}

.vacancy-modal__dept {
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__badge {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.vacancy-modal h2 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.vacancy-modal__salary {
  margin-top: 14px;
  color: var(--brass-dark);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.vacancy-modal__summary {
  max-width: 700px;
  margin-top: 14px;
  color: var(--steel-600);
  font-size: 15px;
  line-height: 1.65;
}

.vacancy-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.vacancy-modal__tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vacancy-modal__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.vacancy-modal__meta > span {
  display: block;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.vacancy-modal__meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.vacancy-modal__block h3 {
  margin-bottom: 12px;
  color: var(--brass-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__block ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.vacancy-modal__block li {
  position: relative;
  padding-left: 15px;
  color: var(--steel-600);
  font-size: 14.5px;
  line-height: 1.6;
}

.vacancy-modal__block li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--brass);
}

.vacancy-modal__conditions {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.vacancy-modal__conditions ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.vacancy-modal__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(26px, 4vw, 46px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.vacancy-modal__foot > span {
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .vacancy-card__open {
    min-height: 330px;
  }
}

@media (max-width: 720px) {
  .vacancy-card__open,
  .vacancy-card--key .vacancy-card__open {
    min-height: 0;
    padding: 24px;
  }

  .vacancy-card__title {
    max-width: 100%;
    font-size: 24px;
  }

  .vacancy-card--key .vacancy-card__title {
    font-size: 24px;
  }

  .vacancy-card__salary {
    font-size: 19px;
  }

  .vacancy-card--key .vacancy-card__salary {
    font-size: 20px;
  }

  .vacancy-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .vacancy-modal__scroll {
    padding: 26px 22px 20px;
  }

  .vacancy-modal__foot {
    padding: 16px 22px;
  }

  .vacancy-modal__close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .vacancy-modal__top {
    padding-right: 44px;
  }

  .vacancy-modal h2 {
    font-size: 30px;
  }

  .vacancy-modal__meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vacancy-modal__cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .vacancy-modal__conditions ul {
    grid-template-columns: 1fr;
  }

  .vacancy-modal__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .vacancy-modal__foot .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .vacancy-modal__scroll {
    padding: 22px 18px 18px;
  }

  .vacancy-modal__foot {
    padding: 14px 18px;
  }

  .vacancy-modal h2 {
    font-size: 27px;
  }

  .vacancy-modal__salary {
    font-size: 20px;
  }
}

/* Vacancy modal: editorial split layout */
.vacancy-modal {
  width: min(960px, calc(100vw - 40px));
  border-color: rgba(198, 162, 102, 0.55);
}

.vacancy-modal__layout {
  display: grid;
  flex: 1;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 0;
}

.vacancy-modal__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(198, 162, 102, 0.16), transparent 42%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900) 62%);
  color: var(--paper);
}

.vacancy-modal__aside::after {
  content: "УИ";
  position: absolute;
  right: -10px;
  bottom: 48px;
  z-index: 0;
  color: rgba(198, 162, 102, 0.07);
  font-family: var(--font-serif);
  font-size: 168px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.vacancy-modal__aside > * {
  position: relative;
  z-index: 1;
}

.vacancy-modal__mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__mark::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--brass);
}

.vacancy-modal__aside-main {
  margin-top: auto;
}

.vacancy-modal__city {
  display: block;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 31px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.vacancy-modal__aside .vacancy-modal__dept {
  display: block;
  margin-top: 9px;
  color: var(--steel-400);
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1.5;
}

.vacancy-modal__salary-block {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.vacancy-modal__salary-block small {
  display: block;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__salary-block strong {
  display: block;
  margin-top: 7px;
  color: var(--brass-bright);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.vacancy-modal__salary-block > span {
  display: block;
  margin-top: 5px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__aside-meta {
  display: grid;
  gap: 13px;
  margin-top: 27px;
}

.vacancy-modal__aside-meta > span {
  display: block;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.vacancy-modal__aside-meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vacancy-modal__aside-meta strong {
  display: block;
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.vacancy-modal__aside-note {
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-transform: uppercase;
}

.vacancy-modal__main {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.vacancy-modal__main .vacancy-modal__scroll {
  flex: 1;
  min-height: 0;
  padding: 40px 44px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-400) transparent;
}

.vacancy-modal__close {
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--brass);
  color: var(--ink-900);
}

.vacancy-modal__close:hover {
  border-color: transparent;
  background: var(--brass-dark);
  color: var(--paper);
}

.vacancy-modal__top {
  justify-content: flex-start;
  margin-bottom: 14px;
  padding-right: 58px;
}

.vacancy-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brass-dark);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-align: left;
}

.vacancy-modal__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brass);
}

.vacancy-modal h2 {
  max-width: 100%;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.03;
}

.vacancy-modal__summary {
  max-width: 620px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
}

.vacancy-modal__tags {
  margin-top: 19px;
}

.vacancy-modal__cols {
  gap: 30px;
  margin-top: 32px;
  padding-top: 26px;
}

.vacancy-modal__block h3 {
  font-size: 12px;
}

.vacancy-modal__block li {
  font-size: 14.5px;
  line-height: 1.6;
}

.vacancy-modal__conditions {
  margin-top: 28px;
  padding-top: 24px;
}

.vacancy-modal__foot {
  padding: 16px 28px;
  background: var(--white);
}

.vacancy-modal__foot > span {
  max-width: 430px;
  font-size: 12px;
}

.vacancy-modal__foot .btn {
  flex: none;
}

@media (max-width: 840px) {
  .vacancy-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .vacancy-modal__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .vacancy-modal__aside {
    gap: 0;
    padding: 22px 62px 20px 22px;
  }

  .vacancy-modal__aside::after {
    right: -4px;
    bottom: -12px;
    font-size: 112px;
  }

  .vacancy-modal__mark {
    display: none;
  }

  .vacancy-modal__aside-main {
    margin-top: 0;
  }

  .vacancy-modal__city {
    font-size: 25px;
  }

  .vacancy-modal__aside .vacancy-modal__dept {
    margin-top: 5px;
    font-size: 11px;
  }

  .vacancy-modal__salary-block {
    margin-top: 15px;
    padding-top: 13px;
  }

  .vacancy-modal__salary-block small {
    font-size: 11px;
  }

  .vacancy-modal__salary-block strong {
    margin-top: 3px;
    font-size: 19px;
  }

  .vacancy-modal__salary-block > span {
    display: none;
  }

  .vacancy-modal__aside-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
  }

  .vacancy-modal__aside-meta > span {
    padding-top: 9px;
  }

  .vacancy-modal__aside-meta small {
    margin-bottom: 3px;
    font-size: 9.5px;
  }

  .vacancy-modal__aside-meta strong {
    font-size: 12.5px;
  }

  .vacancy-modal__aside-note {
    display: none;
  }

  .vacancy-modal__main .vacancy-modal__scroll {
    padding: 22px 22px 18px;
  }

  .vacancy-modal__top {
    margin-bottom: 10px;
    padding-right: 0;
  }

  .vacancy-modal h2 {
    font-size: 30px;
  }

  .vacancy-modal__summary {
    margin-top: 12px;
    font-size: 14px;
  }

  .vacancy-modal__cols {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
    padding-top: 21px;
  }

  .vacancy-modal__conditions ul {
    grid-template-columns: 1fr;
  }

  .vacancy-modal__conditions {
    margin-top: 22px;
    padding-top: 20px;
  }

  .vacancy-modal__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    padding: 14px 22px;
  }

  .vacancy-modal__foot > span {
    max-width: none;
  }

  .vacancy-modal__foot .btn {
    width: 100%;
    justify-content: center;
  }

  .vacancy-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 520px) {
  .vacancy-modal__aside {
    padding: 19px 56px 17px 18px;
  }

  .vacancy-modal__city {
    font-size: 23px;
  }

  .vacancy-modal__salary-block strong {
    font-size: 18px;
  }

  .vacancy-modal__aside-meta {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 11px;
  }

  .vacancy-modal__aside-meta > span {
    padding-top: 7px;
  }

  .vacancy-modal__main .vacancy-modal__scroll {
    padding: 18px 18px 16px;
  }

  .vacancy-modal h2 {
    font-size: 27px;
  }

  .vacancy-modal__summary {
    font-size: 14.5px;
  }

  .vacancy-modal__foot {
    padding: 13px 18px;
  }
}
