﻿@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Forum&display=swap');

:root {
  --bg-deep: #051f20;
  --bg-main: #0b3a3a;
  --bg-card: rgba(8, 40, 40, 0.72);
  --gold: #d4ad6d;
  --gold-soft: #f0d6a4;
  --gold-grad: linear-gradient(180deg, #fff1c9 0%, #f2d79f 34%, #d9af63 68%, #b6843e 100%);
  --text-main: #ead5aa;
  --text-soft: #d2c3a1;
  --line: rgba(212, 173, 109, 0.44);
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-main) !important;
  font-family: 'Forum', serif !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(27, 75, 71, 0.32), rgba(4, 22, 22, 0.58)),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0), rgba(2, 9, 9, 0.66)),
    url('img/fon.png') center/cover fixed no-repeat;
  letter-spacing: 0.2px;
}

body,
p,
a,
li,
span,
label,
button,
input,
textarea,
select,
option {
  font-family: 'Forum', serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Marcellus', serif !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 2px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
  opacity: 0.42;
  z-index: -1;
}

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

h1,
h2,
h3,
h4,
p,
a,
li,
span,
label,
.nav-link,
.section-title {
  background-image: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

main {
  padding: 30px 0 42px !important;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 22, 22, 0.92), rgba(6, 31, 31, 0.8)) !important;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px var(--shadow) !important;
}

header .container {
  min-height: 86px;
  padding-top: 12px !important;
  padding-bottom: 14px !important;
}

.nav-wrap {
  min-height: 86px;
  padding: 12px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Marcellus', serif;
  font-size: clamp(18px, 2.2vw, 32px);
  line-height: 1.1;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu li {
  position: relative;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  height: 12px;
  background: transparent;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle .chevron {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.24s ease, color 0.24s ease;
}

header .flex.justify-between.items-center {
  width: 100%;
}

header a.flex.items-center {
  gap: 12px;
  text-decoration: none;
}

header a.flex.items-center h1 {
  font-family: 'Marcellus', serif;
  font-size: clamp(18px, 2.2vw, 32px) !important;
  line-height: 1.1;
  white-space: nowrap;
}

header .bg-blue-100 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

header a.flex.items-center img,
.brand img {
  width: clamp(38px, 4vw, 50px) !important;
  height: clamp(38px, 4vw, 50px) !important;
  border-radius: 50%;
  border: 1px solid rgba(240, 214, 164, 0.5);
  box-shadow: 0 0 18px rgba(212, 173, 109, 0.32);
  object-fit: cover;
  filter: brightness(1.08) contrast(1.1);
}

@media (min-width: 769px) {
  header nav.hidden.md\:flex {
    gap: 18px !important;
  }

  header nav.hidden.md\:flex .nav-link {
    font-size: 20px !important;
    padding-bottom: 5px !important;
  }
}

nav ul,
nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link,
.menu a {
  position: relative;
  text-decoration: none;
  transition: color 0.22s ease;
}

.nav-link::after,
.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold) !important;
  transition: width 0.24s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active,
.menu a:hover,
.menu a.active {
  color: var(--gold-soft) !important;
  -webkit-text-fill-color: var(--gold-soft) !important;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: rgba(6, 31, 31, 0.96) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 22px var(--shadow) !important;
  border-radius: 10px;
  overflow: hidden;
  z-index: 40;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.dropdown-content a {
  display: block;
  border-bottom: 1px solid rgba(212, 173, 109, 0.2) !important;
  padding: 10px 14px;
}

.dropdown-content a:last-child {
  border-bottom: none !important;
}

.dropdown-content a::after {
  display: none !important;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background-color: rgba(212, 173, 109, 0.16) !important;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown:hover .dropdown-toggle .chevron,
.dropdown:focus-within .dropdown-toggle .chevron {
  transform: rotate(180deg);
  color: var(--gold-soft);
}

#mobile-menu.active {
  background: rgba(6, 31, 31, 0.96) !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 22px var(--shadow);
  padding: 12px;
}

.bg-blue-50,
.bg-gray-100 {
  background-color: transparent !important;
}

.bg-white {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 22px var(--shadow) !important;
}

.bg-blue-100 {
  background: rgba(212, 173, 109, 0.16) !important;
  border: 1px solid rgba(240, 214, 164, 0.4);
}

.bg-blue-900 {
  background: linear-gradient(180deg, rgba(3, 22, 22, 0.95), rgba(6, 31, 31, 0.85)) !important;
  border-top: 1px solid var(--line);
}

.bg-blue-800,
.bg-blue-700,
.bg-blue-600 {
  background: rgba(212, 173, 109, 0.18) !important;
  border: 1px solid rgba(212, 173, 109, 0.52);
}

.hover\:bg-blue-700:hover,
.hover\:bg-blue-600:hover,
.hover\:bg-blue-100:hover {
  background: rgba(212, 173, 109, 0.34) !important;
}

.text-blue-800,
.text-blue-700,
.text-gray-800,
.text-gray-700,
.text-white {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
}

.text-blue-300,
.text-blue-200,
.text-gray-600,
.text-gray-500 {
  color: var(--text-soft) !important;
  -webkit-text-fill-color: var(--text-soft) !important;
}

.border-gray-300,
.border-blue-800 {
  border-color: rgba(212, 173, 109, 0.34) !important;
}

[data-tab] {
  background: rgba(6, 31, 31, 0.78) !important;
  border: 1px solid rgba(212, 173, 109, 0.4) !important;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(240, 214, 164, 0.12);
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  background-image: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[data-tab].active,
[data-tab]:hover {
  background-color: rgba(212, 173, 109, 0.22) !important;
  border-color: rgba(240, 214, 164, 0.84) !important;
  color: var(--gold-soft) !important;
  -webkit-text-fill-color: var(--gold-soft) !important;
  transform: translateY(-1px);
}

button,
input,
textarea,
select,
option {
  font-family: 'Forum', serif !important;
}

input,
textarea,
select {
  color: var(--text-main) !important;
  background: rgba(6, 31, 31, 0.8) !important;
  border: 1px solid rgba(212, 173, 109, 0.4) !important;
}

button[class*='bg-'],
button.bg-white,
button.bg-blue-800,
button.bg-blue-700,
button.bg-blue-600 {
  background-image: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
}

i,
svg,
path,
.fa,
.fas,
.fab {
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.focus-visible\:ring-blue-500:focus-visible {
  --tw-ring-color: rgba(212, 173, 109, 0.7) !important;
}

@media (max-width: 980px) {
  .menu {
    gap: 12px;
  }

  .menu a {
    font-size: 18px;
  }

  header .container {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 21px;
  }

  .nav-wrap {
    min-height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }

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

  header .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  header a.flex.items-center h1 {
    font-size: 21px !important;
  }
}
