:root {
  --bg: #02060d;
  --panel: #040d1a;
  --panel-2: #071121;
  --text: #f5f7fb;
  --muted: #8fa2bc;
  --line: rgba(110, 146, 223, 0.12);
  --accent: #3478f6;
  --accent-2: #78adff;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at top, rgba(54, 105, 214, 0.06), transparent 32%),
    linear-gradient(180deg, #02060d 0%, #040c17 54%, #020812 100%);
  color: var(--text);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 13, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.95), rgba(3, 8, 16, 0.96), rgba(10, 21, 39, 0.95));
  background-size: 160% 160%;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 80px 0 56px;
}

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

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero p,
.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-card,
.card,
.article {
  background: linear-gradient(180deg, rgba(5, 13, 26, 0.97), rgba(2, 7, 14, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 3, 8, 0.48);
}

.hero-card {
  padding: 22px;
}

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

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

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.nav-toggle,
.button,
.lightbox-close {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-position 280ms ease,
    filter 220ms ease;
  box-shadow: 0 10px 24px rgba(0, 3, 8, 0.28);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--text);
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.95), rgba(3, 8, 16, 0.96), rgba(10, 21, 39, 0.95));
  background-size: 160% 160%;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #2563eb, #4d8df8);
  background-size: 160% 160%;
  border-color: rgba(59, 130, 246, 0.6);
}

.button::after,
.nav-toggle::after,
.lightbox-close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.button:hover,
.button:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  background-position: 100% 50%;
  border-color: rgba(120, 173, 255, 0.28);
  box-shadow: 0 16px 30px rgba(0, 4, 10, 0.4);
  filter: brightness(1.05);
}

.button:hover::after,
.button:focus-visible::after,
.nav-toggle:hover::after,
.nav-toggle:focus-visible::after,
.lightbox-close:hover::after,
.lightbox-close:focus-visible::after {
  transform: translateX(130%);
}

.button:active,
.nav-toggle:active,
.lightbox-close:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 3, 8, 0.3);
}

.section {
  padding: 18px 0 56px;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 13, 25, 0.97), rgba(2, 7, 14, 0.99));
  box-shadow: 0 18px 44px rgba(0, 3, 8, 0.48);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.shot-card:hover,
.shot-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(120, 173, 255, 0.24);
  box-shadow: 0 24px 52px rgba(0, 3, 8, 0.56);
}

.shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
  position: relative;
  transition: transform 220ms ease;
}

.shot-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(120, 173, 255, 0.12) 50%, transparent 82%);
  opacity: 0;
  transform: translateX(-16%);
  transition: opacity 220ms ease, transform 420ms ease;
  pointer-events: none;
}

.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020812;
  transition: transform 180ms ease;
}

.shot-button:hover img,
.shot-button:focus-visible img {
  transform: scale(1.03);
}

.shot-button:hover::after,
.shot-button:focus-visible::after {
  opacity: 1;
  transform: translateX(16%);
}

.shot-button:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.8);
  outline-offset: -2px;
}

.shot-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 236, 0.18);
  background: rgba(2, 6, 13, 0.84);
  color: var(--text);
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.shot-button:hover .shot-overlay,
.shot-button:focus-visible .shot-overlay {
  opacity: 1;
}

.shot-card figcaption {
  padding: 14px 16px 16px;
  color: var(--text);
  font-weight: 600;
}

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 7, 14, 0.98);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 3, 8, 0.64);
}

.lightbox::backdrop {
  background: rgba(1, 4, 8, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 16px;
  background: #020812;
}

.lightbox-caption {
  margin: 14px 0 0;
  color: var(--muted);
}

.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 16px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.95), rgba(3, 8, 16, 0.96), rgba(10, 21, 39, 0.95));
  background-size: 160% 160%;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.card {
  padding: 18px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.card p,
.card li,
.article p,
.article li {
  color: var(--muted);
}

.page-hero {
  padding: 54px 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.stack {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.article {
  padding: 22px;
}

.article h2,
.article h3 {
  margin-top: 0;
}

.patch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(52, 120, 246, 0.12);
  border: 1px solid rgba(120, 173, 255, 0.22);
}

.list {
  padding-left: 18px;
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 22, 0.95);
  color: var(--text);
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f8a99;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 180px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
}

.contact-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 22, 0.94);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 7, 14, 0.98);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(15, 34, 65, 0.72);
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid,
  .grid-3,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    width: calc(100% - 20px);
    padding: 16px;
  }

  .lightbox-image {
    max-height: calc(100vh - 150px);
  }
}

@media (hover: none) {
  .shot-overlay {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-toggle,
  .lightbox-close,
  .shot-card,
  .shot-button,
  .shot-card img,
  .shot-overlay {
    transition: none;
  }

  .button::after,
  .nav-toggle::after,
  .lightbox-close::after,
  .shot-button::after {
    transition: none;
  }
}
