@font-face {
  font-family: "PT Root Ui Regular";
  src: url("../fonts/PT-Root-UI_Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Root UI Medium";
  src: url("../fonts/PT-Root-UI_Medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Root UI Bold";
  src: url("../fonts/PT-Root-UI_Bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

body {
  margin: 0;
  background-color: #f4f0e8;
  font-family: "PT Root Ui Regular", sans-serif;
  font-size: 30px;
  color: #333333;
  box-sizing: border-box;
  /* width: 1920px; */
}

.page {
  width: 1720px;
  margin: 0 auto;
}

.page__header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  height: 124px;
}

.menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
  width: 439px;
  position: absolute;
  top: 28px;
  right: 1281px;
  z-index: 1;
  background-color: #f4f0e8;
}

.menu li {
  position: relative;
  border: 2px solid #333;
  border-bottom: none;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.menu a {
  padding: 35px 35px;
  font-size: 30px;
  line-height: 1;
  color: #333;
  text-decoration: none;
}

.underline-on-hover {
  transition: text-decoration 0.3s ease;
}

.underline-on-hover:hover {
  text-decoration: underline;
}

.menu__corner {
  position: absolute;
  bottom: -2px;
  right: -40px;
  width: 40px;
  height: 40px;
  background-color: #f4f0e8;
  overflow: hidden;
}

.menu__corner::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: -0.55px;
  width: 80px;
  height: 80px;
  background-color: #f4f0e8;
  border: 2px solid #333;
  border-radius: 40px;
}

.page__content {
  position: relative;
  width: 1720px;
  border: 2px solid #333333;
  border-radius: 40px;
  border-top-left-radius: 0;
  padding: 0;
  margin: 0 auto;
}

.return-back {
  display: flex;
  gap: 25px;
  color: #333333;
}

.return-back p {
  margin: 0;
}

.privacy {
  padding-right: 40px;
  padding-bottom: 15px;
  font-family: "PT Root UI Medium", sans-serif;
  font-size: 25px;
  color: #333333;
  margin-top: 86px;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}
.privacy:hover {
  text-decoration: underline;
}

.container,
.main-container {
  width: 1520px; /* максимальная ширина */
  margin: 0 auto; /* выравнивание по центру */
}

.main-container {
  position: relative;
}

.main-title {
  font-family: "PT Root UI Bold", sans-serif;
  font-size: 80px;
  margin: 60px 0;
}

.err-title {
  line-height: 90%;
  margin-top: 120px;
}

.no-margin {
  margin: 0;
}

.how-its-work {
  margin-top: 40px;
  padding: 0;
  text-decoration: none;
  border: none;
  background: none;
  font-size: 25px;
  color: #333333;
  cursor: pointer;
}

.how-its-work:hover {
  text-decoration: underline;
}

.how-it-works-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 425px;
  cursor: pointer;
}

.search {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 140px 0 72px;
}

.search-input {
  width: 874px;
  height: 21px;
  font-family: "PT Root UI Medium", sans-serif;
  color: #a0a0a0;
  font-size: 30px;
  background-color: #ffffff;
  border-radius: 40px;
  padding: 30px 50px;
  border: 2px solid #333333;
}

.search-btn {
  font-family: "PT Root UI Bold";
  font-size: 40px;
  color: #333333;
  line-height: 90%;
  cursor: pointer;
  margin: 30px 0 0;
  background-color: #85b97b;
  border-radius: 50px;
  border: none;
  padding: 30px 65px;
  display: inline-block;
  background: linear-gradient(90deg, #85b97b, #b9dfaa, #6fa969, #85b97b);
  background-size: 200%;
  transition: transform 0.3s ease;
  animation: none;
  text-decoration: none;
}

.search-btn:hover {
  animation: shimmer 2s linear infinite;
  transform: translateY(-2px);
}

.laptop {
  position: absolute;
  top: 180px;
  right: 16px;
}

.console {
  position: absolute;
  top: 766px;
  left: 0;
}

.main-picture {
  margin-left: -99px;
  margin-bottom: -8px;
}

.footer {
  width: 1720px;
  display: flex;
  gap: 717px;
  margin: 28px 34px;
  font-family: "PT Root UI Medium", sans-serif;
  font-size: 30px;
}

.info {
  display: flex;
  gap: 50px;
}

.footer-link {
  text-decoration: none;
  color: #333333;
}

.footer-link:hover {
  text-decoration: underline;
}

.contact-button {
  border: none;
  font-family: "PT Root UI Medium", sans-serif;
  font-size: 30px;
  color: #333333;
  cursor: pointer;
  background: none;
}

.contact-button:hover {
  text-decoration: underline;
}

.contact-button:active {
  transform: translateY(1px);
}

/* Анимация модального окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Блокируем прокрутку внутри модального окна */
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

.modal-content {
  background-color: #f4f0e8;
  margin: 15% auto;
  padding: 50px;
  border: 1px solid #888;
  width: 80%;
  font-size: 30px;
  max-width: 500px;
  border-radius: 40px;
  text-align: center;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-height: 90vh;
  overflow: hidden; /* полностью блокирует прокрутку содержимого */
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close {
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: black;
}

.our-email {
  font-family: "PT Root UI Bold", sans-serif;
}

.team-email {
  font-weight: bold;
  color: #2196f3;
  transition: transform 0.3s ease;
}

.sunflower {
  margin-left: 150px;
}

.copy-btn {
  margin-top: 30px;
  padding: 20px 35px;
  background-color: #2196f3;
  font-family: "PT Root UI Bold", sans-serif;
  color: #ffffff;
  font-size: 30px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.copy-btn:hover {
  background-color: #0b7dda;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
  transform: translateY(0);
}

.copy-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.copy-btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.str-g {
  color: #39a41e;
}

.str-o {
  color: #e67f11;
}

.str-err {
  color: #ff633c;
}

.str-y {
  color: #ddbc06;
}

.advice {
  text-align: right;
}

.advice span {
  display: inline-block;
  text-align: right;
}

.loopphole-container {
  flex-shrink: 0; /* Не сжимать */
  flex-basis: 867px; /* Базовая ширина */
  max-width: 70%;
}

.info-block {
  display: flex;
  justify-content: space-between;
  gap: 19px;
  margin: 40px 0 136px;
}

strong {
  font-family: "PT Root UI Medium", sans-serif;
}

.risk-bar {
  position: relative;
  width: 1520px;
  height: 74px;
  background-color: #333333;
  border: 2px #333333 solid;
  border-radius: 50px;
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  width: 0%;
  background-color: #f44336; /* цвет будет переопределяться из JS */
  transition: width 1s ease-in-out;
  border-radius: 50px;
}

.risk-label {
  position: absolute;
  left: 42px;
  top: 17px;
  font-size: 30px;
  color: #fff;
  pointer-events: none; /* чтобы текст не мешал кликам */
  user-select: none; /* чтобы текст нельзя было выделить */
}

.second-title {
  font-family: "PT Root UI Bold", sans-serif;
  font-size: 60px;
  margin: 100px 0 60px;
}

.loop-container {
  position: relative;
}

.loop {
  position: absolute;
  right: -99px;
  top: -100px;
  z-index: -1;
}

.main-text-list {
  width: 991px;
}

.main-text-list li {
  margin-bottom: 10px;
}

.btn {
  display: flex;
  gap: 60px;
  margin: 85px 0 100px;
}

.pdf {
  text-decoration: none;
  font-family: "PT Root UI Bold", sans-serif;
  line-height: 90%;
  color: #333333;
  padding: 20px 40px;
  background-color: #f89061;
  border-radius: 60px;
  display: inline-block;
  background: linear-gradient(90deg, #f89061, #ffc1a3, #f87040, #f89061);
  background-size: 200%;
  transition: transform 0.3s ease;
  animation: none;
}

.pdf:hover {
  animation: shimmer 2s linear infinite;
  transform: translateY(-2px);
}

.rescan-btn {
  font-family: "PT Root UI Bold", sans-serif;
  border: none;
  line-height: 90%;
  font-size: 30px;
  padding: 20px 40px;
  background-color: #f7d287;
  border-radius: 60px;
  display: inline-block;
  background: linear-gradient(90deg, #f7d287, #ffe4a1, #f7b74a, #f7d287);
  background-size: 200%;
  transition: transform 0.3s ease;
  animation: none;
  text-decoration: none;
  cursor: pointer;
}

.rescan-btn:hover {
  animation: shimmer 2s linear infinite;
  transform: translateY(-2px);
}

.error {
  position: relative;
}

.err-laptop {
  position: absolute;
  top: -230px;
  right: 40px;
}

.err-rescan-btn {
  font-family: "PT Root UI Bold", sans-serif;
  border: none;
  line-height: 90%;
  font-size: 30px;
  padding: 20px 40px;
  margin: 60px 0 455px;
  background-color: #f89061;
  border-radius: 60px;
  display: inline-block;
  background: linear-gradient(90deg, #f89061, #ffc1a3, #f87040, #f89061);
  background-size: 200%;
  transition: transform 0.3s ease;
  animation: none;
  cursor: pointer;
}

.err-rescan-btn:hover {
  animation: shimmer 2s linear infinite;
  transform: translateY(-2px);
}

.full-loop {
  position: absolute;
  top: 48px;
  right: -100px;
  border-radius: 40px;
  z-index: -1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(51, 51, 51, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.scan-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1520px;
  height: 600px;
  color: white;
  position: relative;
  overflow: hidden;
}

svg.corner-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

path {
  stroke: white;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}

.scan-container h2 {
  font-family: "PT Root UI Bold", sans-serif;
  font-size: 30px;
  margin-top: 230px;
  line-height: 90%;
  color: #ffffff;
}

.progress-container {
  width: 543px;
  height: 45px;
  background-color: #333333;
  border: 2px #ffffff solid;
  border-radius: 40px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #f89061;
  border-radius: 40px;
  transition: width 0.1s linear;
}

.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  z-index: 1;
  animation: scan 2s linear infinite;
}

.scan-text {
  font-size: 15px;
  color: #ffffff;
  text-align: right;
  width: 235px;
  margin-left: 1175px;
  margin-top: 160px;
  justify-self: end;
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.error-popup.active {
  opacity: 1;
  pointer-events: all;
}

.error-popup .popup-content {
  background-color: white;
  padding: 25px;
  border-radius: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.3s ease-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.error-popup.active .popup-content {
  transform: translateY(0);
}

.error-btn {
  font-family: "PT Root UI Bold", sans-serif;
  border: none;
  cursor: pointer;
  font-size: 30px;
  padding: 20px 35px;
  border-radius: 40px;
}
