:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-alt: #1e222b;
  --text: #f2f3f5;
  --text-muted: #9aa0ac;
  --accent: #e8c07d;
  --accent-hover: #f2d29b;
  --border: #2a2e38;
  --radius: 10px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.lang-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-select:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 120px 0 90px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 192, 125, 0.08), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(232, 192, 125, 0.06), transparent 45%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--accent);
  color: #16181d;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

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

.btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
}

.hidden {
  display: none;
}

/* Gallery */
.gallery-section {
  padding: 80px 0;
}

.gallery-section h2,
.upload-section h2,
.about-section h2 {
  font-size: 2rem;
  text-align: center;
}

.section-subtitle {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 36px;
}

/* Upload section */
.upload-section {
  padding: 70px 0 20px;
}

.upload-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 12px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-alt);
}

.upload-fields {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.upload-fields input[type="text"],
.upload-fields select {
  flex: 1;
  min-width: 140px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.upload-fields input[type="text"]:focus,
.upload-fields select:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-grid-single {
  display: flex;
  justify-content: center;
}

.gallery-grid-single .gallery-item {
  width: 100%;
  max-width: 360px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.gallery-item-media {
  position: relative;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item-media:hover img {
  transform: scale(1.06);
}

.gallery-item-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px;
  border-top: 1px solid var(--border);
}

.gallery-item-send-email,
.gallery-item-delete {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.gallery-item-send-email:hover,
.gallery-item-send-email:active,
.gallery-item-delete:hover,
.gallery-item-delete:active {
  background: var(--accent-hover);
  color: #16181d;
}

/* About */
.about-section {
  padding: 70px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 64px;
}

.about-section p {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--text-muted);
}

/* Content section */
.content-section {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.adsbygoogle {
  max-width: 100%;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  touch-action: manipulation;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.18);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Intro modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: calc(4px + env(safe-area-inset-top));
  right: calc(8px + env(safe-area-inset-right));
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  touch-action: manipulation;
}

.modal-close:hover {
  color: var(--accent);
}

.send-email-modal-text {
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 20px;
}

.send-email-modal-accept {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}

.send-email-modal-input {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.send-email-modal-input:focus {
  outline: none;
  border-color: var(--accent);
}

.send-email-modal-actions {
  display: flex;
  justify-content: center;
}

.modal .confirm-modal-text {
  margin-bottom: 24px;
  text-align: center;
}

.confirm-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.gender-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.gender-modal-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.gender-modal-actions {
  display: flex;
  justify-content: center;
}

.modal h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: left;
}

.modal-lang-options {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .nav { gap: 16px; }
  .hero { padding: 48px 0 32px; }
  .upload-section { padding: 36px 0 20px; }
  .gallery-section { padding: 40px 0; }
  .about-section { padding: 40px 0 56px; }
  .lightbox { padding: 16px; }
  .lightbox-img { max-width: 72vw; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .upload-fields input[type="text"],
  .upload-fields select,
  .send-email-modal-input,
  .lang-select {
    font-size: 16px;
  }
}
