:root {
  --bg: #f5f5f3;
  --white: #ffffff;
  --text: #1f1f1d;
  --muted: #6b6b67;
  --dark: #161615;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.18);
  --max: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #f7f7f5 0%, #efefec 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 24px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}

.brand strong {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu a {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.92);
  transition: 0.25s ease;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
}

.btn-outline,
.btn-primary,
.btn-secondary,
.submit {
  transition: 0.25s ease;
}

.btn-outline {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 0.92rem;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero,
.hero-small {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(10, 10, 10, 0.76) 0%, rgba(10, 10, 10, 0.38) 44%, rgba(10, 10, 10, 0.68) 100%),
    url('https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.hero {
  min-height: 100vh;
}

.hero-small {
  min-height: 62vh;
}

.hero::before,
.hero-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.16), transparent 26%);
  pointer-events: none;
}

.hero::after,
.hero-small::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(to top, rgba(247, 247, 245, 1), rgba(247, 247, 245, 0));
  pointer-events: none;
}

.hero-content,
.hero-small-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-content {
  width: min(880px, 100%);
  padding: 170px 0 110px;
}

.hero-small-content {
  width: min(760px, 100%);
  padding: 180px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 22px;
}

.hero h1,
.hero-small h1 {
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 760px;
}

.hero-small h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 700px;
}

.hero p,
.hero-small p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 34px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

.btn-primary,
.btn-secondary,
.submit {
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: white;
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f1f1ee;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
}

.glass-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
}

.glass-card strong {
  font-size: 2rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.glass-card span {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.78);
}

section {
  padding: 105px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 48px;
}

.section-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-head h2,
.documents-list-wrap h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.section-head p,
.documents-list-wrap > p {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 700px;
}

.about-grid,
.contact-wrap {
  display: grid;
  gap: 26px;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.contact-wrap {
  grid-template-columns: 0.92fr 1.08fr;
}

.panel,
.doc-card,
.news-card,
.contact-card,
.form-card,
.document-row {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 31, 29, 0.08);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.panel {
  padding: 36px;
}

.panel.dark {
  background: linear-gradient(180deg, #1a1a19 0%, #10100f 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-strong);
}

.panel p,
.doc-card p,
.news-card p,
.documents-list-wrap p {
  color: var(--muted);
}

.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.panel-title {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature {
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(31, 31, 29, 0.06);
}

.feature strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

.stats {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.stat {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child,
.contact-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.documents-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.doc-card:hover,
.news-card:hover,
.document-row:hover {
  transform: translateY(-6px);
}

.doc-top,
.news-date,
.doc-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 18px;
}

.doc-card h3,
.news-card h3,
.document-row h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.doc-card p,
.news-card p,
.document-row p {
  margin-bottom: 22px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.doc-link:hover {
  transform: translateX(4px);
}

.highlight {
  background: linear-gradient(180deg, #171716 0%, #0f0f0e 100%);
  color: white;
}

.highlight .section-kicker,
.highlight .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.highlight .news-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.highlight .news-card p,
.highlight .news-date {
  color: rgba(255, 255, 255, 0.72);
}

.contact-block {
  padding: 18px 0;
  border-bottom: 1px solid rgba(31, 31, 29, 0.08);
}

.contact-block span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

form {
  display: grid;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 31, 29, 0.12);
  background: #fafaf8;
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(31, 31, 29, 0.35);
  background: white;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.submit {
  width: fit-content;
  border: 0;
  cursor: pointer;
  background: var(--dark);
  color: white;
}

.submit:hover {
  transform: translateY(-2px);
  background: #262625;
}

.documents-list {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.document-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.document-row-content {
  max-width: 760px;
}

.document-action {
  flex-shrink: 0;
}

footer {
  padding: 32px 0 42px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(31, 31, 29, 0.08);
  padding-top: 24px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .documents-grid,
  .news-grid,
  .contact-wrap,
  .about-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .document-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head p {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .nav {
    border-radius: 28px;
    padding: 18px;
    flex-direction: column;
  }

  .menu {
    gap: 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .hero-small-content {
    padding-top: 220px;
  }

  .feature-list,
  .hero-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  section {
    padding: 72px 0;
  }

  .panel,
  .doc-card,
  .news-card,
  .contact-card,
  .form-card,
  .glass-card,
  .document-row {
    padding: 24px;
  }

  .hero p,
  .hero-small p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .submit {
    width: 100%;
    text-align: center;
  }
}