:root {
  --home-ink: #08100f;
  --home-panel: #101817;
  --home-slate: #314546;
  --home-cyan: #3bbfc4;
  --home-green: #37d696;
  --home-paper: #edf2f6;
  --home-muted: rgba(237, 242, 246, 0.68);
}

.first-screen,
.homepage-instruments,
.homepage-transparency,
.homepage-benefits,
.questions,
.homepage-capture,
.tape {
  position: relative;
  z-index: 1;
  background: transparent;
}

.first-screen {
  min-height: 0;
  padding: clamp(160px, 14vw, 220px) 0 0;
  overflow: hidden;
}

.first-screen-content {
  position: relative;
  z-index: 2;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  gap: clamp(18px, 1.7vw, 30px);
  text-align: center;
}

.first-screen-terms {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.first-screen-term {
  border: 1px solid rgba(59, 191, 196, 0.2);
  background: rgba(16, 24, 23, 0.72);
  backdrop-filter: blur(10px);
}

.homepage-service-scale {
  width: 100%;
  max-width: none;
}

.homepage-service-scale__main {
  max-width: none;
  margin: 0 auto clamp(22px, 2.2vw, 38px);
  text-align: center;
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 0.98;
  letter-spacing: 0.025em;
}

.homepage-service-scale__main a,
.homepage-service-scale__secondary a,
.types-term {
  text-decoration: none;
}

.homepage-service-scale__main a {
  color: inherit;
  transition: color 0.2s ease;
}

.homepage-service-scale__main a:hover,
.homepage-service-scale__main a:focus-visible,
.homepage-service-scale__secondary a:focus-visible {
  color: var(--home-green);
}

.homepage-service-scale__secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 0.75vw, 14px);
}

.homepage-service-scale__secondary a {
  width: fit-content;
  color: var(--home-paper);
  font-family: Radiotechnika, sans-serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.homepage-service-scale__secondary a:nth-child(1) { font-size: clamp(28px, 2.6vw, 46px); }
.homepage-service-scale__secondary a:nth-child(2) { font-size: clamp(22px, 2vw, 35px); }
.homepage-service-scale__secondary a:nth-child(3) { font-size: clamp(18px, 1.55vw, 28px); }

.homepage-service-scale__secondary a:hover {
  color: var(--home-green);
  transform: translateX(6px);
}

.first-screen__text {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(15px, 1.05vw, 18px);
}

.first-screen-btns {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.first-screen-btns > .first-screen-btn,
.first-screen-btns > .attorney-btn {
  min-height: 58px;
}

.first-screen-btns .attorney-btn {
  border-color: transparent;
  background: radial-gradient(97.93% 54.4% at 50% 0%, var(--home-cyan) 0%, var(--home-green) 100%);
}

.first-screen-btns .attorney-btn .attorney-btn__name,
.first-screen-btns .attorney-btn .attorney-btn__type {
  color: #050505;
}

.first-screen-btns .homepage-hero-pdf-icon {
  transform: translateX(-1.337vw);
}

.homepage-instruments {
  padding: 0;
  overflow: hidden;
}

.homepage-instruments .attorney-bg {
  display: none;
}

.homepage-instruments .attorney-row {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: clamp(45px, 6vw, 110px);
}

.homepage-instruments__content,
.homepage-instruments__visuals {
  width: auto;
}

.homepage-instruments .section-title {
  max-width: 760px;
  font-size: clamp(26px, 2.5vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.homepage-instruments__list {
  justify-content: flex-start;
  max-width: 100%;
  margin-top: clamp(36px, 4vw, 70px);
  gap: 7px;
}

.homepage-instruments__list .types-term {
  padding: 10px 17px;
  border: 1px solid rgba(59, 191, 196, 0.14);
  background: rgba(49, 69, 70, 0.46);
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.2;
}

.homepage-instruments__list .types-term:hover {
  border-color: var(--home-cyan);
  background: rgba(59, 191, 196, 0.15);
}

.homepage-instruments__list .types-term-btn {
  border-color: transparent;
  background: linear-gradient(135deg, var(--home-cyan), var(--home-green));
  color: #020303;
}

.homepage-transparency {
  padding: 0;
}

.homepage-transparency__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(24px, 2.5vw, 42px);
  text-align: center;
}

.homepage-transparency .attorney-bottom__title {
  width: 100%;
  max-width: 1100px;
  font-size: clamp(34px, 3.6vw, 62px);
  line-height: 1.08;
}

.homepage-transparency .attorney-bottom__text {
  width: 100%;
  max-width: 980px;
  font-size: clamp(15px, 1.15vw, 20px);
}

.homepage-transparency .attorney-btns {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 16px;
}

.homepage-transparency .attorney-btn {
  width: min(100%, 420px);
  min-height: 76px;
  height: auto;
  justify-content: center;
  padding: 14px 28px;
}

.homepage-document-link__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(55, 214, 150, 0.12);
  color: var(--home-green);
  font: 700 10px/1 "Century Gothic", sans-serif;
  letter-spacing: 0.08em;
}

.homepage-instruments__visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
}

.homepage-instruments__visuals .attorney-block {
  width: auto;
  height: clamp(430px, 26.45833vw, 560px);
  padding: clamp(28px, 2.4vw, 42px);
  border-radius: clamp(25px, 2.6vw, 42px);
}

.homepage-instruments__visuals .attorney-block:nth-child(2) {
  margin-top: clamp(115px, 12vw, 190px);
}

.homepage-instruments__visuals .attorney-block:nth-child(3) {
  margin-top: clamp(-115px, -7vw, -75px);
}

.homepage-instruments__visuals .attorney-block-icon {
  background: transparent;
  border: 0;
}

.homepage-benefits {
  position: relative;
  z-index: 2;
  padding: 0;
}

.homepage-benefits .types-blocks {
  margin: 0;
  gap: 18px;
}

.homepage-benefits .types-block {
  width: calc((100% - 36px) / 3);
  max-width: none;
  min-height: 410px;
  gap: clamp(24px, 2.2vw, 38px);
  padding: clamp(32px, 3vw, 52px) clamp(25px, 2.3vw, 40px);
  border-radius: clamp(26px, 2.8vw, 44px);
}

.homepage-benefits .types-block-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(55, 214, 150, 0.34);
  border-radius: 50%;
  background: rgba(55, 214, 150, 0.08);
}

.homepage-benefits .types-block-icon img {
  width: 30px;
  filter: url(#miruar-brand-icon);
}

.homepage-benefits .types-block__title {
  min-height: 0;
  font-size: clamp(21px, 1.6vw, 29px);
}

.homepage-benefits .types-block__text {
  font-size: clamp(14px, 0.95vw, 17px);
}

.questions {
  padding: 0;
}

.questions-row {
  display: block;
}

.questions-content {
  width: 100%;
  max-width: 850px;
  margin-bottom: clamp(38px, 4vw, 70px);
}

.questions-blocks,
.questions-block {
  width: 100%;
  max-width: none;
}

.questions-block {
  padding: clamp(18px, 1.5vw, 28px) clamp(20px, 2.2vw, 40px);
  border: 1px solid rgba(59, 191, 196, 0.08);
  border-radius: 18px;
}

.questions-block__title {
  width: calc(100% - 90px);
  font-size: clamp(14px, 1vw, 18px);
}

.questions-block__count {
  color: var(--home-green);
}

.homepage-capture {
  position: relative;
  z-index: 2;
  padding: 0;
}

.tape {
  padding: 0;
}

.homepage-capture__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 7vw, 120px);
  padding: clamp(34px, 4.5vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(59, 191, 196, 0.25);
  border-radius: clamp(28px, 3.4vw, 54px);
  background:
    radial-gradient(circle at 89% 20%, rgba(55, 214, 150, 0.16), transparent 30%),
    linear-gradient(120deg, rgba(49, 69, 70, 0.7), rgba(8, 16, 15, 0.96));
}

.homepage-capture h2 {
  max-width: 850px;
  margin: 0;
  color: var(--home-paper);
  font-family: Radiotechnika, sans-serif;
  font-size: clamp(32px, 4vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-content__text--big,
.footer-content__text--big strong {
  color: var(--home-green);
}

.types-term:focus-visible,
.homepage-service-scale a:focus-visible,
.open-other-instrument:focus-visible,
.open-homepage-question:focus-visible,
.open-verification:focus-visible,
.homepage-modal-close:focus-visible,
.homepage-document-link:focus-visible {
  outline: 3px solid var(--home-green);
  outline-offset: 4px;
}

.modal-other-instrument,
.modal-homepage-question {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 8, 8, 0.82);
  backdrop-filter: blur(8px);
}

.modal-other-instrument .inner,
.modal-homepage-question .inner {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(38px, 5vw, 76px);
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: clamp(36px, 4vw, 62px);
  overflow-y: auto;
  border: 1px solid rgba(59, 191, 196, 0.24);
  border-radius: clamp(28px, 3vw, 46px);
  background:
    radial-gradient(circle at 90% 12%, rgba(55, 214, 150, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(49, 69, 70, 0.96), rgba(8, 16, 15, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.modal-other-instrument .modal-window-content,
.modal-homepage-question .modal-window-content {
  width: auto;
  max-width: 480px;
}

.modal-other-instrument .modal-window__title,
.modal-homepage-question .modal-window__title {
  margin: 0 0 24px;
  color: var(--home-paper);
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1.02;
}

.modal-other-instrument .modal-window__text,
.modal-homepage-question .modal-window__text {
  color: rgba(237, 242, 246, 0.82);
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.55;
}

.modal-other-instrument .contacts-form,
.modal-homepage-question .contacts-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
}

.modal-other-instrument .contacts-form > .form-label,
.modal-homepage-question .contacts-form > .form-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  height: auto;
  padding: 16px 20px;
  border: 1px solid rgba(49, 69, 70, 0.28);
  border-radius: 16px;
  background: rgba(237, 242, 246, 0.96);
}

.modal-other-instrument .form-label__name,
.modal-homepage-question .form-label__name {
  margin-bottom: 8px;
  color: #314546;
  font-size: 13px;
  line-height: 1.2;
}

.modal-other-instrument .form-label__input,
.modal-homepage-question .form-label__input {
  width: 100%;
  height: auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #08100f;
  font-size: 17px;
  line-height: 1.35;
  outline: 0;
}

.modal-other-instrument .form-label:nth-of-type(3),
.modal-other-instrument .form-label:nth-of-type(4),
.modal-other-instrument .form-line,
.modal-other-instrument .homepage-form-status,
.modal-homepage-question .homepage-form-question,
.modal-homepage-question .form-line,
.modal-homepage-question .homepage-form-status {
  grid-column: 1 / -1;
}

.homepage-form-textarea {
  min-height: 94px !important;
  resize: vertical;
}

.modal-other-instrument .form-line,
.modal-homepage-question .form-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(59, 191, 196, 0.24);
  border-radius: 18px;
}

.modal-other-instrument .form-policy,
.modal-homepage-question .form-policy {
  display: block;
  position: static;
  width: 24px;
  height: 24px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--home-green);
  border-radius: 7px;
  background: rgba(55, 214, 150, 0.06);
  opacity: 1;
  cursor: pointer;
}

.modal-other-instrument .form-policy:checked,
.modal-homepage-question .form-policy:checked {
  background: var(--home-green) url("/wp-content/themes/Miryar/assets/img/icons/policy-check.svg") center / 14px no-repeat;
}

.modal-other-instrument .form-policy-label,
.modal-homepage-question .form-policy-label {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  color: rgba(237, 242, 246, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.modal-other-instrument .form-policy-label::before,
.modal-homepage-question .form-policy-label::before {
  content: none;
}

.modal-other-instrument .form-policy-label a,
.modal-homepage-question .form-policy-label a {
  color: var(--home-paper);
  text-decoration: underline;
}

.modal-other-instrument .form-btn,
.modal-homepage-question .form-btn {
  width: auto;
  min-width: 172px;
  min-height: 52px;
  margin: 0;
  padding: 13px 25px;
  border-radius: 999px;
}

.homepage-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(237, 242, 246, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--home-paper);
  font: 300 32px/1 sans-serif;
  cursor: pointer;
}

.homepage-modal-open { overflow: hidden; }
.modal-other-instrument small { opacity: 0.7; }

.tape .tape-slider,
.tape .swiper-wrapper {
  height: auto;
  max-height: none;
}

.tape .tape-slide {
  height: clamp(430px, 25vw, 520px);
  padding: clamp(26px, 2vw, 38px);
  border-radius: clamp(28px, 2.8vw, 46px);
}

.tape .tape-slide-term {
  padding: 9px 17px;
  font-size: clamp(13px, 0.85vw, 16px);
}

.tape .tape-slide__title {
  margin-bottom: 18px;
  font-size: clamp(21px, 1.35vw, 28px);
}

.tape .tape-slide__text {
  min-height: 0;
  margin-bottom: 12px;
  font-size: clamp(13px, 0.8vw, 16px);
}

.tape .tape-slide__more {
  margin-bottom: 0;
  font-size: clamp(13px, 0.8vw, 16px);
}

.tape-slide-fallback {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(55, 214, 150, 0.38), transparent 34%),
    linear-gradient(145deg, #314546, #101817 68%);
}

@media (max-width: 900px) {
  .first-screen {
    min-height: auto;
    padding: 135px 0 0;
  }

  .homepage-service-scale__main {
    font-size: clamp(38px, 9.5vw, 64px);
  }

  .homepage-instruments .attorney-row {
    grid-template-columns: 1fr;
  }

  .homepage-instruments__visuals {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-instruments__visuals .attorney-block:nth-child(n) {
    margin-top: 0;
  }

  .homepage-instruments__visuals .attorney-block:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }

  .homepage-benefits .types-block {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .first-screen-content {
    gap: 18px;
  }

  .first-screen-terms {
    gap: 6px;
  }

  .first-screen-term {
    padding: 8px 12px;
    font-size: 10px;
  }

  .homepage-service-scale__main {
    margin-bottom: 24px;
    font-size: clamp(36px, 10.8vw, 50px);
  }

  .homepage-service-scale__secondary {
    gap: 9px;
  }

  .homepage-service-scale__secondary a:nth-child(1) { font-size: 23px; }
  .homepage-service-scale__secondary a:nth-child(2) { font-size: 18px; }
  .homepage-service-scale__secondary a:nth-child(3) { font-size: 15px; }

  .first-screen__text {
    font-size: 14px;
  }

  .first-screen-btns {
    width: 100%;
    align-items: stretch;
  }

  .first-screen-btns > .first-screen-btn,
  .first-screen-btns > .attorney-btn {
    width: 100%;
    min-height: 56px;
    justify-content: center;
  }

  .first-screen-btn.attorney-btn {
    position: relative;
    padding: 16px 22px;
  }

  .first-screen-btns .homepage-hero-pdf-icon {
    position: absolute;
    left: calc(5.34826vw - 1px);
    top: 50%;
    transform: translateY(-50%);
  }

  .first-screen-btns .attorney-btn-wrapper {
    transform: translateX(3.9801vw);
  }

  .homepage-instruments .section-title {
    font-size: clamp(24px, 6.6vw, 30px);
  }

  .homepage-instruments__list {
    margin-top: 34px;
    gap: 6px;
  }

  .homepage-instruments__list .types-term {
    padding: 9px 13px;
    font-size: 11px;
  }

  .homepage-instruments__visuals {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .homepage-instruments__visuals .attorney-block,
  .homepage-instruments__visuals .attorney-block:nth-child(3) {
    grid-column: auto;
    width: 100%;
    height: 420px;
    padding: 28px;
  }

  .homepage-instruments__visuals .attorney-blocks {
    display: grid;
  }

  .homepage-instruments__visuals .attorney-block-icon {
    margin-bottom: 16px;
  }

  .homepage-instruments__visuals .attorney-block-icon img {
    width: 44px;
  }

  .homepage-instruments__visuals .attorney-block__name {
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: 0.04em;
  }

  .homepage-instruments__visuals .attorney-block__text {
    max-width: 290px;
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.35;
  }

  .homepage-transparency .attorney-btns {
    width: 100%;
    align-items: stretch;
  }

  .homepage-transparency .attorney-btn {
    width: 100%;
    min-height: 62px;
    height: auto;
    padding: 12px 18px;
  }

  .homepage-transparency .attorney-bottom__title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .homepage-transparency .attorney-bottom__text {
    font-size: 14px;
  }

  .homepage-benefits .types-blocks {
    gap: 14px;
  }

  .homepage-benefits .types-block {
    width: 100%;
    padding: 30px 25px;
    border-radius: 26px;
  }

  .homepage-benefits .types-block__title {
    font-size: 20px;
  }

  .homepage-benefits .types-block__text {
    font-size: 14px;
  }

  .questions-block {
    padding: 18px 16px;
  }

  .questions-block__title {
    width: calc(100% - 54px);
  }

  .homepage-capture__inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 34px 24px;
    border-radius: 28px;
  }

  .homepage-capture h2 {
    font-size: clamp(29px, 8.6vw, 40px);
  }

  .homepage-capture .btn {
    width: 100%;
  }

  .modal-other-instrument,
  .modal-homepage-question {
    padding: 10px;
  }

  .modal-other-instrument .inner,
  .modal-homepage-question .inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 54px 18px 20px;
    border-radius: 26px;
  }

  .modal-other-instrument .modal-window__title,
  .modal-homepage-question .modal-window__title {
    margin-bottom: 14px;
    font-size: clamp(30px, 9vw, 40px);
  }

  .modal-other-instrument .contacts-form,
  .modal-homepage-question .contacts-form {
    grid-template-columns: 1fr;
  }

  .modal-other-instrument .form-label,
  .modal-other-instrument .form-label:nth-of-type(3),
  .modal-other-instrument .form-label:nth-of-type(4),
  .modal-other-instrument .form-line,
  .modal-homepage-question .form-label,
  .modal-homepage-question .homepage-form-question,
  .modal-homepage-question .form-line {
    grid-column: 1;
  }

  .modal-other-instrument .form-line,
  .modal-homepage-question .form-line {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 14px;
  }

  .modal-other-instrument .form-btn,
  .modal-homepage-question .form-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .homepage-modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .tape .tape-slide {
    height: 390px;
    padding: 24px;
    border-radius: 30px;
  }

  .tape .tape-slide__title {
    font-size: 21px;
  }

  .tape .tape-slide__text,
  .tape .tape-slide__more {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-service-scale__secondary a {
    transition: none;
  }

  .homepage-service-scale__secondary a:hover {
    transform: none;
  }
}
