body {
  font-family: "Cuprum", sans-serif;
  color: white;
  width: 100%;
  font-size: 14px; /* smaller base font */
}

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

.wrapper {
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

li {
  list-style-type: none;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: #353535;
  text-decoration: none;
}

.header__burger {
  display: none;
}

/* Header */
header {
  color: black;
  background: #ffffff;
  position: relative;
  z-index: 1;
  box-shadow: 0px 4px #cfcfcf;
}

.header__logo {
  height: 50px;
}

.header__logo-link {
  cursor: pointer;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.header__nav-item:not(:last-child) {
  margin-right: 120px;
}

.header__nav-item {
  font-weight: 400;
  font-size: 18px;
  cursor: pointer;
}

/* Main */
.main {
  background: url("../img/fone.png") center no-repeat;
  height: 100vh;
  -webkit-background-size: cover;
  background-size: cover;
  position: relative;
  box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.2);
}

.main__content {
  padding-top: 90px;
  padding-bottom: 220px;
}

.main__header {
  width: 90%;
  margin-top: 0;
  font-weight: 700;
  font-size: 64px;
  margin-bottom: 18px;
}

.main__description {
  width: 45%;
  font-weight: 400;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 18px;
}

.main__btn {
  cursor: pointer;
  font-weight: 400;
  font-size: 22px;
  background: #ffb800;
  border-radius: 12px;
  padding: 14px 20px;
  color: #5a85d7;
  border: none;
  transition: box-shadow 0.2s;
}

.main__btn:hover {
  box-shadow: 5px 5px 50px #ffb800;
}

/* Why */
.why {
  background: linear-gradient(#5a85d7, #103988);
}

.why__content {
  padding-top: 24px;
  padding-bottom: 60px;
}

.why__header {
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 40px;
}

.why__item {
  display: flex;
}

.why__item:not(:last-child) {
  margin-bottom: 40px;
}

.why__item-img {
  width: 60px;
  height: 60px;
  margin-right: 20px;
}

.why__item-header {
  font-weight: 700;
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 10px;
}

.why__item-description {
  font-weight: 400;
  font-size: 20px;
  margin-top: 0;
}

.why__item-description-one {
  width: 80%;
}

.why__item-description-three {
  width: 90%;
}

/* What we do */
.do {
  background: #103988;
  padding-bottom: 120px;
}

.do__header {
  margin-top: 0;
  font-weight: 700;
  font-size: 40px;
  text-align: center;
}

.do__list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  color: #103988;
}

.do__item {
  margin-bottom: 24px;
  background: #cccccc;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  height: 100%;
  padding-top: 16px;
  transition: box-shadow 0.2s;
}

.do__block {
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
  cursor: pointer;
}

.do__item-description {
  font-weight: 700;
  font-size: 26px;
}

.do__item:hover {
  background: #ffb800;
  box-shadow: 5px 5px 50px #ffb800;
}

/* About */
.about {
  background: #103988;
  padding-top: 24px;
  padding-bottom: 90px;
  box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.2);
}

.about__block {
  display: flex;
  justify-content: space-between;
}

.about__header {
  margin-top: 0;
  text-align: center;
  font-weight: 700;
  font-size: 40px;
}

.about__description {
  width: 70%;
  font-weight: 700;
  font-size: 20px;
}

/* Footer */
.footer {
  background: #353535;
  padding-top: 36px;
  padding-bottom: 40px;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer_element {
  margin-bottom: 20px;
}

.footer__left-header {
  margin-bottom: 0;
}

.footer__left-header-list {
  margin-top: 0;
  margin-bottom: 11px;
}

.footer__left-list {
  margin-top: 0;
  margin-bottom: 21px;
}

.footer__item {
  margin-bottom: 20px;
}

.footer__link {
  color: white;
}

.footer__left-header {
  margin-bottom: 0;
}

.footer__header {
  margin-top: 0;
  font-weight: 700;
  font-size: 36px;
  white-space: nowrap;
}

.footer__left-header-list {
  font-weight: 700;
  font-size: 24px;
}

.footer__item {
  font-weight: 400;
  font-size: 20px;
}

.footer__left-list-social {
  display: flex;
}

.footer__social-item:not(:last-child) {
  margin-right: 27px;
  align-items: center;
}

.footer__middle-header {
  margin-bottom: 10px;
}

#name {
  max-width: 375px;
  width: 100%;
  height: 48px;
  background: #666666;
  border: none;
}

#mail {
  max-width: 375px;
  width: 100%;
  height: 48px;
  background: #666666;
  border: none;
}

#question {
  max-width: 375px;
  width: 100%;
  height: 120px;
  margin-bottom: 13px;
  background: #666666;
  border: none;
  resize: none;
}

.footer__form-btn {
  cursor: pointer;
  padding: 8px 40px;
  background: #ffb800;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 20px;
  color: #353535;
  transition: box-shadow 0.2s;
}

.footer__form-btn:hover {
  box-shadow: 2px 2px 10px #ffb800;
}

input {
  margin-bottom: 13px;
}

.footer__right {
  text-align: right;
}

.footer__right-header {
  margin-bottom: 0;
}

.footer__right-list {
  font-weight: 400;
  font-size: 24px;
}

/* Popups */

.popup-country {
  z-index: 2;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: transparent;
  transform: scale(0);
  transition: 0.4s ease-in-out;
}

.popup-country.active {
  transform: scale(100%);
  transition: 0.4s ease-in-out;
  background-color: rgba(0, 0, 0, 0.8);
}

.popup-county__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #353535;
  border-radius: 10px;
  padding-top: 28px;
  padding-left: 28px;
  padding-right: 28px;
  padding-bottom: 28px;
}

.popup-country__header {
  font-family: "Cuprum";
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  margin-bottom: 32px;
  margin-top: 0;
}

.popup-country__text {
  font-family: "Cuprum";
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 24px;
}

.popup-country__button {
  background-color: #ffb800;
  border: none;
  padding: 8px 28px;
  font-family: "Cuprum";
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
  transition: box-shadow 0.2s;
}

.popup-country__button:hover {
  box-shadow: 0px 2px 10px #ffb800;
}

.lock {
  overflow: hidden;
}

/* Form modal */

.popup-order {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-order__content {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  width: 320px;
  max-width: 100%;
}

.popup-order__header {
  font-size: 18px;
  margin-bottom: 14px;
  text-align: center;
  color: black;
}

.popup-order__form {
  display: flex;
  flex-direction: column;
}

.popup-order__input,
.popup-order__textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.popup-order__textarea {
  height: 100px;
}

.popup-order__submit-btn {
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-order__submit-btn:hover {
  background-color: #45a049;
}

.popup-order__close-btn {
  padding: 10px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.popup-order__close-btn:hover {
  background-color: #da190b;
}

/* Modern interactions and micro animations */

html {
  scroll-behavior: smooth;
}

body {
  background: #0d2a64;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 184, 0, 0.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(90, 133, 215, 0.3), transparent 45%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.main__content {
  position: relative;
  z-index: 1;
}

.main__metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.main__metric {
  display: flex;
  flex-direction: column;
  min-width: 128px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
}

.main__metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffcf44;
}

.main__metric-label {
  font-size: 14px;
}

.header__nav-item,
.footer__link,
.footer__social-item,
.do__item,
.why__item,
.main__btn,
.footer__form-btn,
.popup-country__button,
.popup-order__submit-btn,
.popup-order__close-btn {
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.header__nav-item:hover {
  color: #5a85d7;
  transform: translateY(-2px);
}

.main__btn:hover,
.footer__form-btn:hover,
.popup-order__submit-btn:hover,
.popup-order__close-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.popup-country__button:hover {
  transform: translate(-50%, -2px) scale(1.02);
}

.why__item,
.do__item {
  border-radius: 14px;
}

.why__item:hover {
  transform: translateX(8px);
}

.do__item {
  position: relative;
  overflow: hidden;
}

.do__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.do__item:hover::after {
  opacity: 1;
}

.do__service-hint {
  margin: 8px 0 0;
  min-height: 26px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.do__service-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.office__hint {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.footer__right-item {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__right-item:hover,
.footer__right-item.is-active {
  color: #ffb800;
  transform: translateX(-4px);
}

.footer__form-input,
.popup-order__input,
.popup-order__textarea {
  border: 1px solid transparent;
  outline: none;
}

.footer__form-input:focus,
.popup-order__input:focus,
.popup-order__textarea:focus {
  border-color: #ffb800;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}

.footer__form-input.is-invalid,
.popup-order__input.is-invalid,
.popup-order__textarea.is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form__meta {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 10px;
}

.form__counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.popup-order .form__counter {
  color: #6b6b6b;
}

.form__status {
  min-height: 20px;
  margin: 0 0 10px;
  font-size: 14px;
}

.form__status.is-error {
  color: #ff8c8c;
}

.popup-order .form__status.is-error {
  color: #d11f1f;
}

.form__status.is-success {
  color: #72f08f;
}

.popup-order .form__status.is-success {
  color: #1d8f3b;
}

.popup-country {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.popup-country.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.popup-order {
  opacity: 0;
  visibility: hidden;
  display: flex;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.popup-order.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-order__content {
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s ease;
}

.popup-order.is-open .popup-order__content {
  transform: translateY(0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

@media screen and (max-width: 900px) {
  .main__description {
    width: 75%;
  }

  .main__metrics {
    gap: 10px;
  }
}

@media screen and (max-width: 600px) {
  .main__description {
    width: 100%;
  }

  .main__metric {
    min-width: 100px;
    padding: 8px 10px;
  }

  .main__metric-value {
    font-size: 20px;
  }
}
