/*
  Про бобров — styles.css
  Без сборки, чистый CSS.
*/

:root {
  --bg: #0b1220;
  --bg2: #0f1a31;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  --accent: #7cf7c6;
  --accent2: #72a6ff;
  --warn: #ffce7a;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --container: 1120px;
  --gap: 18px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7fbff;
  --bg2: #eaf3ff;
  --card: rgba(10, 25, 60, 0.06);
  --card2: rgba(10, 25, 60, 0.04);
  --text: rgba(10, 25, 60, 0.92);
  --muted: rgba(10, 25, 60, 0.72);
  --faint: rgba(10, 25, 60, 0.56);
  --border: rgba(10, 25, 60, 0.14);
  --shadow: 0 18px 50px rgba(10, 25, 60, 0.18);

  --accent: #0aa06e;
  --accent2: #1d62ff;
  --warn: #c47a00;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(114, 166, 255, 0.28), transparent 60%),
    radial-gradient(1200px 700px at 90% 10%, rgba(124, 247, 198, 0.22), transparent 55%),
    radial-gradient(900px 600px at 20% 95%, rgba(255, 206, 122, 0.14), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Subtle noise overlay to reduce gradient banding on some mobile screens */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* keep content above the noise */
body > * { position: relative; z-index: 1; }

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 999;
}
.skip:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 24, 0.4);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .site-header {
  background: rgba(247, 251, 255, 0.72);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 247, 198, 0.22), rgba(114, 166, 255, 0.18));
  border: 1px solid var(--border);
}

.brand-title {
  font-weight: 780;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.nav a:hover {
  text-decoration: none;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--border);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { filter: brightness(1.06); }
.theme-toggle:active { transform: translateY(1px); }

.theme-toggle-text { font-size: 13px; color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  padding: 42px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: -0.7px;
}

.lead {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card2);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: linear-gradient(135deg, rgba(124, 247, 198, 0.28), rgba(114, 166, 255, 0.22));
  border-color: rgba(124, 247, 198, 0.35);
}

.btn.ghost {
  background: transparent;
}

.hero-stats {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.stat {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card2);
}

.stat dt {
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat dd {
  margin: 6px 0 0;
  display: grid;
  gap: 2px;
}

.stat strong {
  font-size: 18px;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.media-card {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
  box-shadow: var(--shadow);
}

.media-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.media-card figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
}

.media-badges {
  position: absolute;
  inset: auto 14px 14px auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
:root[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.7);
}

.hero-glow {
  position: absolute;
  inset: auto 0 -70px 0;
  height: 140px;
  /* smoother fade into the page background */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.10) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}
:root[data-theme="light"] .hero-glow {
  background: linear-gradient(
    180deg,
    rgba(10, 25, 60, 0) 0%,
    rgba(10, 25, 60, 0.05) 55%,
    rgba(10, 25, 60, 0.10) 100%
  );
}

/* Sections */
.section {
  padding: 42px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

/* Facts */
.facts-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.visual-card {
  position: sticky;
  top: 86px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
  box-shadow: var(--shadow);
}

.visual-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-overlay {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.2));
}
:root[data-theme="light"] .visual-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.65));
}

.visual-title { margin: 0; font-weight: 760; }
.visual-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card2);
  padding: 14px 14px 14px 14px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.fact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.fact-card p {
  margin: 0;
  color: var(--muted);
}

.fact-card:hover {
  transform: translateY(-1px);
  background: var(--card);
  border-color: rgba(124, 247, 198, 0.22);
}

.fact-card.is-collapsed p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.shot {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  text-decoration: none;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: saturate(1.02);
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.shot:hover img {
  transform: scale(1.06);
}

.shot-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
:root[data-theme="light"] .shot-cap {
  background: rgba(255,255,255,0.7);
  color: rgba(10, 25, 60, 0.9);
}

/* Masonry-ish layout */
.shot:nth-child(1) { grid-column: span 6; }
.shot:nth-child(2) { grid-column: span 6; }
.shot:nth-child(3) { grid-column: span 7; }
.shot:nth-child(4) { grid-column: span 5; }
.shot:nth-child(5) { grid-column: span 5; }
.shot:nth-child(6) { grid-column: span 7; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.about-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card2);
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}

.about-card.secondary {
  background: linear-gradient(135deg, rgba(124, 247, 198, 0.12), rgba(114, 166, 255, 0.10));
}

.about-card h3, .about-card h2 {
  margin: 0 0 10px;
}

.about-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.about-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fineprint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--faint);
}

/* Footer */
.site-footer {
  padding: 26px 0 34px;
  /* use a fade instead of a hard edge */
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.14) 100%
  );
}
:root[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(10,25,60,0.08);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.55) 60%,
    rgba(255,255,255,0.70) 100%
  );
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.to-top {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card2);
}

/* Responsive */
@media (max-width: 940px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
  }
  .brand { grid-area: brand; }
  .theme-toggle { grid-area: toggle; justify-self: end; }
  .nav { grid-area: nav; justify-content: flex-start; flex-wrap: wrap; }

  .hero-grid { grid-template-columns: 1fr; }
  .facts-layout { grid-template-columns: 1fr; }
  .visual-card { position: relative; top: 0; }

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

  .shot:nth-child(1),
  .shot:nth-child(2),
  .shot:nth-child(3),
  .shot:nth-child(4),
  .shot:nth-child(5),
  .shot:nth-child(6) { grid-column: span 12; }
}

@media (max-width: 520px) {
  .hero { padding-top: 28px; }
  .hero-stats { grid-template-columns: 1fr; }
  .theme-toggle-text { display: none; }

  /* On mobile the glow needs to be longer, otherwise the gradient edge looks sharp */
  .hero-glow {
    inset: auto 0 -110px 0;
    height: 220px;
  }
}

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