.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;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

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

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

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

.btn--light:hover {
  background-color: var(--btn-light-hover);
}

.btn--outline {
  color: var(--text-primary);
  background-color: transparent;
  border: 1px solid var(--text-secondary);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.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);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--tag-text);
  background-color: var(--tag-bg);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

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

/* Showcase: горизонтальные карточки с выходом за край */
.showcase {
  padding: var(--section-padding-y) 0;
  overflow-x: clip;
}

.showcase__layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.showcase__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 0;
  align-self: start;
}

.showcase__nav {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.showcase__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--font-heading-weight);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.showcase__lead {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: var(--font-heading-weight);
  line-height: 1.25;
  color: var(--text-primary);
}

.showcase__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-body-weight);
  line-height: 1.6;
  color: var(--text-secondary);
}

.showcase__rail {
  position: relative;
  min-width: 0;
  margin-right: calc(-1 * max(var(--container-padding), (100vw - var(--container-max)) / 2 + var(--container-padding)));
}

.showcase__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  padding-right: max(var(--container-padding), (100vw - var(--container-max)) / 2 + var(--container-padding));
}

.showcase__track::-webkit-scrollbar {
  display: none;
}

.showcase__track:focus {
  outline: none;
}

.showcase__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.showcase__card {
  position: relative;
  flex: 0 0 clamp(280px, 32vw, 400px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
}

.showcase__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase__card-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(15, 17, 17, 0.88) 0%, rgba(15, 17, 17, 0.45) 55%, transparent 100%);
}

.showcase__card-title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
  color: var(--text-on-dark);
}

.showcase__card-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-body-weight);
  line-height: 1.45;
  color: var(--text-on-dark-muted);
}

.showcase__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-on-dark);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.showcase__btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.showcase__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.showcase__btn:disabled:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-on-dark);
}

.showcase--dark {
  background-color: var(--bg-dark);
}

.showcase--dark .showcase__title,
.showcase--dark .showcase__lead {
  color: var(--text-on-dark);
}

.showcase--dark .showcase__text {
  color: var(--text-on-dark-muted);
}

.showcase--dark .showcase__btn {
  color: var(--text-on-dark);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.showcase--dark .showcase__btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.showcase--dark .showcase__btn:disabled:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-on-dark);
}

.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-solid);
  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: var(--font-heading-weight);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-primary);
  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 {
  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-light);
  border-radius: var(--radius-lg);
}

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

.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: var(--bg-light-alt);
}

.popup__title {
  margin-bottom: 12px;
  padding-right: 40px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
  letter-spacing: 0.02em;
  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: var(--text-muted);
}

.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: var(--text-muted);
}

.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: var(--bg-light-alt);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background-color var(--transition);
}

.popup__input::placeholder {
  color: var(--text-disabled);
}

.popup__input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-dark-soft);
}

.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: var(--text-muted);
}

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

.popup__status--success {
  color: #2f7a4a;
}

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

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

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

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