:root {
  --bg: #f7f5f0;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-soft: #fbfaf7;
  --border: rgba(51, 51, 51, 0.08);
  --border-strong: rgba(51, 51, 51, 0.14);
  --text: #333333;
  --text-soft: #5f5a54;
  --text-muted: #8a837a;
  --primary: #333333;
  --primary-2: #4a4540;
  --primary-3: #b0732b;
  --primary-4: #c88e4a;
  --success: #00a76e;
  --danger: #7e4c8b;
  --error: #b55f5f;
  --shadow-soft: 0 18px 40px rgba(51, 51, 51, 0.08);
  --shadow-card: 0 26px 60px rgba(51, 51, 51, 0.1);
  --shadow-hover: 0 30px 70px rgba(51, 51, 51, 0.14);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(176, 115, 43, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(51, 51, 51, 0.05), transparent 28%),
    linear-gradient(180deg, #f7f5f0 0%, #f4f1eb 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.w-container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.w-clearfix::before,
.w-clearfix::after {
  content: "";
  display: table;
}

.w-clearfix::after {
  clear: both;
}

.w-inline-block {
  display: inline-block;
}

.w-hidden-main {
  display: none;
}

.hidden {
  display: none !important;
}

.navbar-wrapper {
  position: relative;
  z-index: 20;
  padding: 18px 24px 0;
}

.top-info-bar {
  margin-bottom: 12px;
}

.top-info-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 26px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(51, 51, 51, 0.06);
  backdrop-filter: blur(14px);
}

.top-info-bar-container > img,
.brand img,
.footer-logo {
  object-fit: contain;
}

.top-info-bar-container > img {
  width: 120px;
  height: auto;
}

.info-bar {
  flex: 1;
}

.info-blocks-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.top-info-block {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(247, 245, 240, 0.72);
}

.top-info-icon,
.footer-contact-icon,
.social-icon {
  flex: 0 0 auto;
}

.top-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7f3eb);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(51, 51, 51, 0.06);
  position: relative;
}

.top-info-icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-3);
  content: "\f095";
}

.top-info-icon._2::before {
  content: "\f3c5";
}

.top-info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-link {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.contact-link:hover,
.footer-link:hover {
  color: var(--primary-3);
}

.navbar {
  width: 100%;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(51, 51, 51, 0.06);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 140px;
  height: auto;
}

.menu-button {
  display: none;
}

.login-section {
  position: relative;
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 72px;
}

.login-section::before,
.login-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.login-section::before {
  top: 86px;
  left: max(14px, calc(50% - 470px));
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(176, 115, 43, 0.12) 0%, rgba(176, 115, 43, 0) 72%);
}

.login-section::after {
  right: max(20px, calc(50% - 500px));
  bottom: 72px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(51, 51, 51, 0.08) 0%, rgba(51, 51, 51, 0) 74%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 42px 34px 30px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  text-align: center;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  border-radius: 32px 32px 0 0;
  /* background: linear-gradient(90deg, var(--primary-3), var(--primary), var(--primary-3)); */
}

.login-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.login-card p {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

#loginForm {
  display: grid;
  gap: 14px;
}

.login-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fcfaf6);
  color: var(--text);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
  outline: none;
}

.login-input::placeholder {
  color: #9b948c;
}

.login-input:hover {
  border-color: rgba(176, 115, 43, 0.24);
}

.login-input:focus {
  border-color: rgba(176, 115, 43, 0.52);
  box-shadow: 0 0 0 5px rgba(176, 115, 43, 0.12);
}

.login-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:
    0 16px 28px rgba(51, 51, 51, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 34px rgba(51, 51, 51, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  filter: brightness(1.02);
}

.login-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 12px 20px rgba(51, 51, 51, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-footer {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}

.login-footer a {
  color: var(--primary-3);
  font-weight: 700;
}

.footer {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 0 0 24px;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 72px 0 0;
  background: linear-gradient(180deg, #3a3632 0%, #22201e 100%);
  border-radius: 42px 42px 0 0;
}

.footer > .w-container {
  position: relative;
  z-index: 1;
}

.emergency-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 520px);
  margin: 0 auto -28px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, #b0732b, #c88e4a);
  box-shadow: 0 18px 42px rgba(90, 56, 18, 0.28);
  text-align: center;
}

.emergency-footer-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.white,
.footer .footer-link,
.footer .footer-title,
.footer .footer-paragraph,
.footer .emergency-number,
.footer .w-form-done div,
.footer .w-form-fail div {
  color: #ffffff;
}

.emergency-wrapper h4 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}

.emergency-number {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flex-box.space-between {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding: 84px 0 46px;
}

._33-percent-column,
._17-percent-column,
.footer-column {
  min-width: 0;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-paragraph {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.85;
}

.footer-header-wrapper {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-line {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-3), rgba(255, 255, 255, 0.24));
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  transform: translateX(2px);
}

.footer-contact-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-icon {
  width: 18px;
  opacity: 0.92;
  margin-top: 4px;
}

.test-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0 0 34px;
}

.text-field,
.w-input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.text-field::placeholder,
.w-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.text-field:focus,
.w-input:focus {
  border-color: rgba(200, 142, 74, 0.56);
  background: rgba(255, 255, 255, 0.1);
}

.button.white,
.w-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-3), var(--primary-4));
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 26px rgba(176, 115, 43, 0.28);
}

.button.white:hover,
.w-button:hover {
  filter: brightness(1.03);
}

.w-form-done,
.w-form-fail {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
}

.w-form-done {
  background: rgba(0, 167, 110, 0.12);
}

.w-form-fail {
  background: rgba(126, 76, 139, 0.16);
}

.footer-credits {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Font Awesome 6 Brands";
  color: #ffffff;
  font-size: 15px;
}

.social-icon.facebook::before {
  content: "\f39e";
}

.social-icon.twitter::before {
  content: "\e61b";
}

.social-icon.linkedin::before {
  content: "\f0e1";
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 142, 74, 0.34);
  background: rgba(176, 115, 43, 0.18);
}

@media (max-width: 1100px) {
  .flex-box.space-between,
  .test-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-info-bar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-bar,
  .info-blocks-wrapper {
    width: 100%;
  }

  .info-blocks-wrapper {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .navbar-wrapper {
    padding: 14px 14px 0;
  }

  .top-info-bar {
    display: none;
  }

  .w-hidden-main {
    display: inline-flex;
  }

  .login-section {
    padding: 28px 14px 56px;
  }

  .login-card {
    padding: 30px 20px 24px;
    border-radius: 26px;
  }

  .login-card h2 {
    font-size: 28px;
  }

  .flex-box.space-between,
  .test-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .emergency-wrapper {
    flex-direction: column;
    width: calc(100% - 8px);
    gap: 10px;
    margin-bottom: -20px;
  }

  .footer::before {
    inset: 56px 0 0;
    border-radius: 30px 30px 0 0;
  }

  .flex-box.space-between {
    padding-top: 68px;
  }

  .credits-wrapper {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .login-input,
  .login-btn {
    min-height: 52px;
    font-size: 14px;
  }

  .emergency-number {
    font-size: 21px;
  }
}
