:root {
  --bg: #ffffff;
  --text: #111111;
  --secondary: #666666;
  --border: #e5e5e5;
  --muted: #888888;
}
:root {
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
}
body.dark {
  --bg: #0f0f10;
  --text: #f5f5f5;
  --secondary: #aaaaaa;
  --border: #222222;
  --muted: #777777;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
  line-height: 1.6;
}

/* --- Header --- */
header {
  padding: 80px 20px 60px;
  text-align: center;
}
header {
  padding: var(--space-xl) 20px var(--space-lg);
}

h1 {
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
}

.subtitle {
  color: var(--secondary);
  margin-top: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* --- Navigation --- */
nav {
  background-color: #6e6c6c;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 40px;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.nav-menu a:hover {
  color: #f0c040;
}

/* --- Sections --- */
section {
  max-width: 1000px;
  margin: var(--space-xl) auto;
  padding: 0 20px;
}

.text-block {
  max-width: 700px;
}

.full-width {
  max-width: 1200px;
  margin: var(--space-xl) auto;
  padding: 0 20px;
  width: 100%;
}
section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: left;
}
main {
  display: block;
}

section {
  display: block;
}
/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid > div {
  width: 100%;
}

.grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: 0.3s ease, opacity 0.3s ease;
}

.grid img:hover {
  opacity: 0.8;
}

/* --- Buttons --- */
button.toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox span {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* --- Forms --- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}

input, textarea {
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

button.submit {
  padding: 10px;
  border: 1px solid var(--text);
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* --- Contact --- */
#contact {
  margin-top: 80px;
  max-width: 600px;
}

.contact-intro {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
  margin-bottom: 32px;
}

.contact-button {
  margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.contact-button:hover {
  background: var(--text);
  color: #fff;
}

#form-success {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 60px 20px;
  font-size: 0.85rem;
  color: var(--secondary);
  border-top: 1px solid var(--border);
}
/* --- Links Page --- */
.links {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.card small {
  display: block;
  color: var(--secondary);
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}
