:root {
  --bg: #090909;
  --bg-soft: #111111;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-solid: #151515;
  --text: #f5efe5;
  --text-soft: #cdbfa9;
  --text-muted: #9f927d;
  --primary: #d4af37;
  --primary-strong: #b78917;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.32);
  --success: #25d366;
  --danger: #c94f4f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 2rem));
  --transition: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.09), transparent 24%),
    linear-gradient(180deg, #050505 0%, #090909 42%, #101010 100%);
  opacity: 0;
  transform: translateY(8px);
  animation: pageEnter 680ms ease forwards;
}

body.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2db96, var(--primary));
  color: #101010;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 8, 0.76);
  backdrop-filter: blur(16px);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand__title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.04rem, 1.3vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
}

.brand__subtitle {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.nav {
  position: relative;
}

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: #111111;
  background: linear-gradient(135deg, #f0d887, var(--primary));
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg,
.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.8) brightness(0.5) contrast(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(6, 6, 6, 0.94) 8%, rgba(6, 6, 6, 0.78) 42%, rgba(6, 6, 6, 0.52) 100%),
    radial-gradient(circle at 84% 15%, rgba(212, 175, 55, 0.18), transparent 22%);
}

.hero--home {
  min-height: 88vh;
  display: grid;
  align-items: center;
}

.hero--inner {
  min-height: 54vh;
  display: grid;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.4rem 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.8rem;
  align-items: center;
}

.hero__text {
  max-width: 760px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero__visual {
  width: min(100%, 420px);
  justify-self: end;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34);
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero__eyebrow,
.section-eyebrow,
.card-eyebrow,
.modal__eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
}

.hero__title,
.section-title,
.card-title,
.modal__title {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 1.1;
}

.hero__title {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.hero__subtitle,
.section-subtitle,
.card-text,
.lead,
.text-soft,
.modal__body,
.form-note,
.contact-card__list,
.about-list {
  color: var(--text-soft);
}

.hero__subtitle {
  margin: 1.1rem 0 0;
  max-width: 60ch;
  font-size: 1.03rem;
}

.hero__actions,
.button-row,
.form__actions,
.service-card__actions,
.modal__footer-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.btn,
.btn-link,
.btn-audio,
.wa-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

.btn:hover,
.btn-link:hover,
.btn-audio:hover,
.wa-send:hover {
  transform: translateY(-2px);
}

.btn--primary,
.btn-audio {
  color: #111111;
  background: linear-gradient(135deg, #f1db95, var(--primary) 70%, var(--primary-strong));
  box-shadow: 0 16px 30px rgba(212, 175, 55, 0.28);
}

.btn--outline {
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.34);
  background: rgba(255, 255, 255, 0.03);
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.08);
}

.btn-link {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.btn-audio--playing {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), 0 16px 30px rgba(212, 175, 55, 0.2);
}

.section {
  padding: 5.25rem 0;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 2.7rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.section-subtitle {
  margin: 1rem auto 0;
  max-width: 64ch;
  font-size: 1rem;
}

.section-subtitle--left {
  text-align: left;
  margin-inline: 0;
}

.glass-card,
.service-card,
.value-card,
.about-panel,
.form-card,
.contact-card,
.info-card,
.stat,
.modal__content {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.glass-card::before,
.service-card::before,
.value-card::before,
.about-panel::before,
.form-card::before,
.contact-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(212,175,55,0.08), rgba(212,175,55,0.95), rgba(212,175,55,0.08));
}

.services {
  padding: 5.4rem 0;
}

.services__grid,
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.service-card,
.value-card,
.contact-card,
.about-panel,
.form-card {
  padding: 1.6rem;
}

.service-card {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 420ms ease, opacity 420ms ease, border-color var(--transition), box-shadow var(--transition);
}

.service-card.visible,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover,
.value-card:hover,
.about-panel:hover,
.contact-card:hover,
.form-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.service-card__title,
.card-title {
  font-size: 1.34rem;
  color: #fff8ea;
}

.service-card__excerpt,
.value-card p,
.contact-card p,
.about-panel p,
.about-list,
.contact-card__list {
  margin-bottom: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 420ms ease, opacity 420ms ease;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr) minmax(0, 0.92fr);
  gap: 1.4rem;
  align-items: start;
}

.about-column,
.about-side,
.contact-stack {
  display: grid;
  gap: 1.3rem;
}

.about-media__frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.about-media__frame img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.about-media__caption {
  padding: 1rem 1.2rem;
  color: var(--text-soft);
  background: rgba(8, 8, 8, 0.65);
}

.about-list,
.contact-card__list {
  padding-left: 1.15rem;
}

.about-list li + li,
.contact-card__list li + li,
.modal__body li + li {
  margin-top: 0.55rem;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  font-size: 1.45rem;
  background: rgba(212, 175, 55, 0.12);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.35rem;
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  position: relative;
}

.field label {
  display: inline-block;
  margin-bottom: 0.48rem;
  font-weight: 600;
  color: #fff6e4;
}

.field input,
.field select,
.field textarea,
.wa-input {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.86);
  color: var(--text);
  padding: 0.92rem 1rem;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.field input,
.field select,
.wa-input {
  min-height: 52px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.wa-input::placeholder {
  color: #998e7f;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 1l6 7 6-7' stroke='%23d4af37' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.field select option {
  background: #111111;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.wa-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
  transform: translateY(-1px);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 79, 79, 0.14);
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.field-error {
  display: block;
  min-height: 1.2rem;
  margin-top: 0.42rem;
  color: #ddb36f;
  font-size: 0.92rem;
}

.alert {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid transparent;
}

#contact-success {
  color: #eaf8f0;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.24);
}

#contact-error {
  color: #ffe9e9;
  background: rgba(201, 79, 79, 0.12);
  border-color: rgba(201, 79, 79, 0.24);
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.btn__content,
.btn__loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.btn__loader[hidden] {
  display: none;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: min(820px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 2rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.08);
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal__title {
  color: #fff8ea;
}

.modal__body strong {
  color: var(--primary);
}

.footer {
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  background: linear-gradient(180deg, #0f0f0f 0%, #080808 100%);
  color: var(--text-soft);
  padding: 1.9rem 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__content p {
  margin: 0;
}

.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  font-family: Arial, sans-serif;
}

.wa-button {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.2s infinite;
}

.wa-button svg,
.wa-popup-avatar svg {
  width: 31px;
  height: 31px;
  fill: #ffffff;
}

.wa-popup {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: min(340px, calc(100vw - 24px));
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.wa-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
}

.wa-popup-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-popup-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.wa-popup-header-text strong {
  font-size: 15px;
}

.wa-popup-header-text span {
  font-size: 12px;
  opacity: 0.95;
}

.wa-popup-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wa-popup-body {
  padding: 16px;
  background: #f6f8fb;
}

.wa-message {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.wa-label {
  display: block;
  margin: 10px 0 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.wa-input {
  color: #111111;
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.wa-send {
  width: 100%;
  margin-top: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.22);
}

@keyframes pageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 10px 25px rgba(0, 0, 0, 0.22);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 25px rgba(0, 0, 0, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 1080px) {
  .about-layout {
    grid-template-columns: 1fr 0.9fr;
  }

  .about-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-self: start;
    width: min(100%, 380px);
  }

  .about-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header__content {
    position: relative;
    min-height: 74px;
  }

  .nav__toggle {
    display: inline-block;
  }

  .nav__list {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(280px, calc(100vw - 2rem));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border-radius: 18px;
    background: rgba(12, 12, 12, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  }

  .nav__list--open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    justify-content: flex-start;
  }

  .hero__content,
  .section {
    padding-block: 4rem;
  }

  .modal__content {
    padding: 1.4rem;
  }

  .footer__content {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, 1180px);
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero__subtitle,
  .section-subtitle {
    font-size: 0.98rem;
  }

  .form-grid--two,
  .form__actions,
  .hero__actions,
  .button-row,
  .modal__footer-actions {
    grid-template-columns: 1fr;
  }

  .form-grid--two {
    display: grid;
  }

  .btn,
  .btn-audio {
    width: 100%;
  }

  .wa-widget {
    right: 16px;
    bottom: 16px;
  }

  .wa-button {
    width: 58px;
    height: 58px;
  }

  .wa-popup {
    width: min(340px, calc(100vw - 18px));
    bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body {
    opacity: 1;
    transform: none;
  }
}