:root {
  --bg-dark: #08111b;
  --bg-alt: #102030;
  --accent: #d9b074;
  --accent-soft: rgba(217, 176, 116, 0.2);
  --text-main: #eef3fb;
  --text-muted: #afbacd;
  --card-bg: rgba(11, 20, 31, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(217, 176, 116, 0.08), transparent 35%),
    var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(5, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-right: 1rem;
}

.logo span {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  padding: 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text-main);
  border-radius: 999px;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 5vw;
  overflow: hidden;
  background: linear-gradient(135deg, #07101a 15%, #16324a 55%, #0a1722 100%);
}

.hero-bg,
.hero-clouds,
.hero-water,
.hero-overlay,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  background-image:
    linear-gradient(to bottom, rgba(3, 8, 15, 0.18), rgba(3, 8, 15, 0.72)),
    url("../img/kalyazin-hero.png");
  background-size: cover;
  background-position: center center;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
  will-change: transform;
}

.hero-clouds {
  z-index: 1;
  opacity: 0.22;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    url("../img/kalyazin-hero.png");
  background-size: 122% auto;
  background-position: center 0;
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: cloudsDrift 42s linear infinite;
}

.hero-water {
  z-index: 2;
  inset: auto 0 0 0;
  height: 34%;
  opacity: 0.22;
  background:
    radial-gradient(circle at 12% 52%, rgba(255, 255, 255, 0.12), transparent 16%),
    radial-gradient(circle at 35% 60%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 58% 55%, rgba(255, 255, 255, 0.1), transparent 16%),
    radial-gradient(circle at 82% 58%, rgba(255, 255, 255, 0.12), transparent 17%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  background-size: 240px 90px, 260px 96px, 250px 88px, 250px 88px, 100% 100%;
  filter: blur(8px);
  animation: waterShift 8s ease-in-out infinite;
}

.hero-overlay {
  z-index: 3;
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 176, 116, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(6, 12, 18, 0.86) 0%, rgba(6, 12, 18, 0.62) 42%, rgba(6, 12, 18, 0.24) 100%);
}

.hero-glow {
  z-index: 4;
  background:
    radial-gradient(circle at 56% 24%, rgba(255, 236, 200, 0.16), transparent 16%),
    radial-gradient(circle at 50% 70%, rgba(104, 164, 255, 0.08), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
  gap: 2rem;
  align-items: end;
}

.hero-text {
  max-width: 760px;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 12, 20, 0.36);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  margin: 0;
  max-width: 9ch;
  text-wrap: balance;
}

.tagline {
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1rem 0 0.8rem;
}

.lead {
  max-width: 680px;
  font-size: 1.15rem;
  color: #dbe5f3;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-card {
  position: relative;
  z-index: 5;
  align-self: end;
  background: rgba(7, 12, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 1.4rem;
}

.hero-card-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-card p {
  margin: 0;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #161a22;
  box-shadow: 0 14px 30px rgba(217, 176, 116, 0.22);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 4rem 5vw;
  scroll-margin-top: 88px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-accent {
  background: linear-gradient(135deg, rgba(217, 176, 116, 0.15), rgba(10, 20, 30, 0.8));
}

.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.mission-grid,
.card-grid,
.support-grid,
.contacts-grid,
.news-grid {
  display: grid;
  gap: 1.25rem;
}

.mission-grid,
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

article {
  background: var(--card-bg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

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

.team-lead {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.team-lead div {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.news-grid article {
  border-left: 4px solid var(--accent);
}

.news-grid .date {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.support-grid,
.contacts-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.subscribe-form {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.subscribe-form input {
  flex: 1;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  outline: none;
}

.subscribe-form button {
  min-height: 48px;
  border: none;
  background: var(--accent);
  color: #161a22;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.muted {
  color: var(--text-muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-footer {
  padding: 1.5rem 5vw 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.35s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  0% {
    transform: scale(1.12);
    opacity: 0.72;
  }
  100% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes cloudsDrift {
  0% {
    transform: translateX(-1.5%) translateY(0);
  }
  50% {
    transform: translateX(1.5%) translateY(-1%);
  }
  100% {
    transform: translateX(-1.5%) translateY(0);
  }
}

@keyframes waterShift {
  0% {
    transform: translate3d(0, 0, 0) scaleY(1);
  }
  50% {
    transform: translate3d(0, -6px, 0) scaleY(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

@media (max-width: 900px) {
  .site-nav {
    gap: 0.85rem;
    font-size: 0.84rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-card {
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.9rem 4vw;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 13, 19, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .hero {
    min-height: auto;
    padding: 4rem 4vw 3.2rem;
  }

  .hero-text {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 2.7rem;
    max-width: none;
  }

  .tagline {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-water {
    height: 28%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 4vw;
    scroll-margin-top: 76px;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  article {
    padding: 1.2rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form button {
    width: 100%;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }

  .logo {
    font-size: 1rem;
    max-width: 70%;
  }

  .label {
    letter-spacing: 0.18em;
    font-size: 0.7rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .news-grid .date {
    font-size: 0.75rem;
  }
}
