:root {
  --bg-base: #050505;
  --bg-overlay: #0c0c0f;
  --panel: #141414;
  --panel-soft: #1b1b1f;
  --line: #34343a;
  --text-main: #eef3fb;
  --text-muted: #b8b8b2;
  --accent: #c9c1a3;
  --accent-strong: #8f8670;
}

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

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

body {
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(60vw 50vh at 50% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(80vw 60vh at 20% 0%, rgba(255, 255, 255, 0.04), transparent 65%),
    linear-gradient(180deg, #05070c 0%, #04060a 100%);
  padding: 14px;
}

.page {
  width: min(1100px, 100%);
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(52, 52, 58, 0.88);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005)),
    linear-gradient(180deg, rgba(20, 20, 20, 0.97), rgba(12, 12, 15, 0.99));
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 24px 16px 32px;
  text-align: center;
}

.hero {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 8px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.logo {
  width: clamp(150px, 18vw, 210px);
  height: auto;
  display: block;
  margin: 0 auto 34px;
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45))
    drop-shadow(0 2px 8px rgba(255, 255, 255, 0.08));
}

h1 {
  margin: 0;
  font-size: clamp(1.52rem, 4.8vw, 2.9rem);
  font-weight: 520;
  line-height: 1.24;
  letter-spacing: -0.018em;
  color: #d5dbe6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.institutional {
  margin: 22px auto 0;
  max-width: 68ch;
  color: #9aa3b2;
  font-size: clamp(0.98rem, 2.7vw, 1.12rem);
  line-height: 1.75;
}

.content-stack {
  margin-top: clamp(38px, 5.5vw, 62px);
  display: grid;
  gap: clamp(28px, 4vw, 42px);
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.services--features .card {
  height: 100%;
}

.final-section {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  padding: clamp(20px, 2.8vw, 32px) clamp(12px, 2.6vw, 24px);
  border-radius: 22px;
  border: 1px solid rgba(201, 193, 163, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    linear-gradient(180deg, rgba(16, 16, 20, 0.72), rgba(11, 11, 15, 0.76));
}

.card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(97, 122, 160, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  text-align: left;
  padding: 20px 16px;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.institutional-section {
  width: 100%;
  margin: 0;
  text-align: center;
  padding: 0;
}

.institutional-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.16rem, 2vw, 1.38rem);
  font-weight: 540;
  color: #d2d8e3;
  letter-spacing: -0.014em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.institutional-section p {
  margin: 0 auto;
  max-width: 70ch;
  color: #a6afbf;
  line-height: 1.68;
  font-size: clamp(0.96rem, 1.8vw, 1.04rem);
}

.cta-section {
  width: 100%;
  margin: 0;
}

.cta-final {
  text-align: center;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 18px;
  border: 1px solid rgba(201, 193, 163, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(22, 22, 26, 0.96), rgba(14, 14, 18, 0.98));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(201, 193, 163, 0.08) inset;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.card:hover {
  border-color: rgba(201, 193, 163, 0.58);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.card h2 {
  margin: 0 0 11px;
  font-size: 1.1rem;
  font-weight: 540;
  color: #d2d8e3;
  letter-spacing: -0.012em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.66;
  color: #a6afbf;
}

.cta-final h2 {
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 2vw, 1.44rem);
  font-weight: 540;
  color: #d2d8e3;
  letter-spacing: -0.014em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.cta-final p {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.68;
  color: #a6afbf;
}

.btn-contact {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 28px;
  min-width: 196px;
  border-radius: 999px;
  border: 1px solid rgba(201, 193, 163, 0.44);
  background: linear-gradient(135deg, #d2cab0 0%, #a0977e 100%);
  color: #12110d;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.004em;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cta-final .btn-contact {
  margin-top: 26px;
}

.btn-contact:hover {
  transform: translateY(-1px);
  filter: brightness(1.015);
  border-color: rgba(214, 205, 176, 0.58);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn-contact:focus-visible {
  outline: 2px solid rgba(226, 220, 195, 0.95);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(201, 193, 163, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.34);
}

.footer {
  margin-top: clamp(42px, 5vw, 56px);
  color: #a7a79f;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

@media (min-width: 720px) {
  body {
    padding: 24px 20px;
  }

  .page {
    border-radius: 24px;
    padding: 34px 28px 38px;
  }

  .content-stack {
    margin-top: clamp(40px, 5vw, 58px);
    gap: clamp(30px, 4.2vw, 42px);
  }

  .services--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .services--features .card {
    min-height: 206px;
  }

  .final-section {
    padding: clamp(24px, 3vw, 34px) clamp(18px, 2.8vw, 30px);
  }

  .btn-contact {
    margin-top: 40px;
    min-width: 210px;
  }
}

@media (min-width: 1040px) {
  body {
    padding: 38px 20px;
  }

  .page {
    padding: 50px 42px 54px;
  }

  .content-stack {
    gap: 42px;
  }

  .services--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .services--features .card {
    padding: 24px 22px;
    min-height: 224px;
  }

  .institutional-section {
    padding-top: 2px;
  }

  .cta-final {
    padding: 36px 40px;
  }

  .btn-contact {
    margin-top: 44px;
    padding: 14px 34px;
  }

  .footer {
    margin-top: 56px;
  }
}
