:root {
  --bg: #080f14;
  --panel: #0c1920;
  --cyan: #75c9d4;
  --amber: #e5b65d;
  --cream: #e8e3d4;
  --text: #d8ded7;
  --muted: #829ca4;
  --line: #315d69;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.8 "Courier New", monospace;
}

a { color: var(--cyan); }
button { font: inherit; cursor: pointer; }

.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8,15,20,.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

nav a:hover { color: var(--amber); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 50px;
  align-items: center;
  min-height: 600px;
  padding: 85px 0;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(42px,5vw,75px);
  line-height: 1.1;
  letter-spacing: -3px;
  overflow-wrap: anywhere;
}

.cursor { color: #51bfa9; }

.tagline {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 1px;
  margin: 25px 0 35px;
}

.hero p { max-width: 520px; }

.hero-image img {
  display: none;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  border: 1px solid var(--line);
}

.hero-image img.visible { display: block; }

/* Sections */

.content-section {
  padding: 85px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-number {
  color: var(--amber);
  font-size: 12px;
}

.section-title {
  margin: 5px 0;
  color: var(--cream);
  font-size: clamp(27px,3vw,42px);
  line-height: 1.2;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 55px;
  align-items: start;
}

.section-text p { margin: 0 0 22px; }

.section-text h2,
.section-text h3 {
  color: var(--amber);
  font-size: 17px;
  font-weight: normal;
}

.section-text ul { padding-left: 22px; }

.section-text blockquote {
  margin: 25px 0;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  color: var(--cream);
}

/* Photos — never crop */

.gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  align-items: start;
}

.gallery figure { margin: 0; min-width: 0; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--panel);
  border: 1px solid var(--line);
}

.gallery figcaption {
  padding-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.gallery.count-1 { grid-template-columns: 1fr; }
.gallery.count-2 { grid-template-columns: repeat(2,1fr); }
.gallery.count-3 { grid-template-columns: repeat(3,1fr); }
.gallery.count-4 { grid-template-columns: repeat(2,1fr); }
.gallery.count-many { grid-template-columns: repeat(3,1fr); }

.content-section.family .section-layout {
  grid-template-columns: 1fr;
}

.content-section.family .section-text {
  max-width: 850px;
}

/* Contacts */

.connect-intro {
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 13px;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: var(--panel);
}

.contact-link span { color: var(--amber); }

/* Loading and errors */

.loading {
  padding: 45px 0;
  color: var(--muted);
}

.error {
  padding: 30px 0;
  color: var(--amber);
}

.retry {
  padding: 10px 18px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--line);
}

/* Footer */

.site-footer {
  padding: 35px 0;
  color: var(--cyan);
  font-size: 11px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Tablet */

@media (max-width: 850px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
  }

  nav { gap: 15px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: 0;
    padding: 55px 0;
  }

  .section-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .content-section {
    padding: 55px 0;
    scroll-margin-top: 140px;
  }

  .gallery.count-3,
  .gallery.count-many {
    grid-template-columns: repeat(2,1fr);
  }
}

/* Mobile */

@media (max-width: 500px) {
  .container { width: 92%; }

  h1 { letter-spacing: -2px; }

  nav { gap: 10px; }
  nav a { font-size: 11px; }

  .gallery { grid-template-columns: 1fr !important; }

  .contact-links { flex-direction: column; }

  .contact-link { justify-content: space-between; }

  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* MOBILE FIX — POZDIAKOV.COM */

@media (max-width: 850px) {

  /* Header no longer covers page content */
  .site-header {
    position: relative;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    min-height: auto;
  }

  .brand {
    font-size: 11px;
  }

  /* Navigation becomes horizontally scrollable */
  nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 22px;
    padding: 8px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Language switcher */
  .language-switcher {
    align-self: flex-end;
    margin-top: -4px;
  }

  /* Comfortable reading */
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero {
    padding: 45px 0;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 56px);
    letter-spacing: -2px;
  }

  .hero p,
  .section-text p {
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .content-section {
    padding: 45px 0;
    scroll-margin-top: 20px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-layout {
    gap: 28px;
  }

  /* One photo per row */
  .gallery {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 500px) {

  .container {
    width: calc(100% - 36px);
  }

  .brand {
    letter-spacing: 0.5px;
  }

  .tagline {
    font-size: 11px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 30px;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-link {
    padding: 12px 15px;
  }
}
