.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-body-weight);
  line-height: 1.2;
  color: var(--bg-dark);
  background-color: var(--btn-bg);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.btn:hover {
  background-color: var(--btn-bg-hover);
  color: var(--text-primary);
}

.header-nav-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-body-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-dark);
  transition: color var(--transition);
}

.header-nav-btn:hover {
  color: var(--accent);
}

/* Site navigation menu */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
  visibility: hidden;
}

.site-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-nav__panel {
  position: absolute;
  top: var(--header-height);
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 70vh;
  padding-top: 52px;
  padding-bottom: 72px;
  background-color: var(--header-bg);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.site-nav.is-open .site-nav__panel {
  transform: translateY(0);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.2vh, 24px);
  padding: 0 24px;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.65vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--bg-dark);
  transition: color var(--transition);
}

.site-nav__link:hover {
  color: var(--accent);
}

.site-nav__backdrop {
  position: absolute;
  top: calc(var(--header-height) + 70vh);
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - var(--header-height) - 70vh);
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-nav.is-open .site-nav__backdrop {
  opacity: 1;
}

main section[id] {
  scroll-margin-top: 100px;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.popup.is-open {
  visibility: visible;
  opacity: 1;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
}

.popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-dark);
  border-radius: var(--radius-lg);
}

.popup__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
}

.popup__visual {
  min-height: 100%;
}

.popup__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.popup__body {
  display: flex;
  flex-direction: column;
  padding: 40px 40px 36px;
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.popup__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.popup__title {
  margin-bottom: 12px;
  padding-right: 40px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.popup__subtitle {
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-body-weight);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.popup__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--font-body-weight);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}

.popup__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-body-weight);
  line-height: 1.2;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background-color var(--transition);
}

.popup__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.popup__input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.1);
}

.popup__input.popup__input--error {
  border-color: #e05a5a;
}

.popup__checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.popup__checkbox-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.popup__checkbox-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--font-body-weight);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.popup__submit {
  width: 100%;
  margin-top: 8px;
}

.popup__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.popup__submit:disabled:hover {
  background-color: var(--btn-bg);
  color: var(--bg-dark);
}

.popup__status {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.popup__status--success {
  color: #4caf50;
}

.popup__status--error {
  color: #ff6b6b;
}

body.popup-open,
body.menu-open {
  overflow: hidden;
}
