/* ============ Tokens ============ */
:root {
  --bg: #0a0b0d;
  --bg-elevated: #131519;
  --bg-elevated-2: #1b1e23;
  --text: #f2f3f5;
  --text-muted: #9aa0a8;
  --accent: #ff5a1f;
  --accent-dim: #cc4818;
  --accent-tint: rgba(255, 90, 31, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-input: 12px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --max-width: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0a0b0d;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #0a0b0d;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -12px rgba(255, 90, 31, 0.6);
}
.btn-primary:hover { background: #ff6b38; }
.btn-primary:active { transform: scale(0.98) translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-block { width: 100%; padding: 16px 28px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.logo-mark { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { padding: 56px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  max-width: 12ch;
}

.hero-sub {
  font-size: 17px;
  max-width: 46ch;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  aspect-ratio: 9 / 11;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,11,13,0.55) 100%);
  pointer-events: none;
}

/* ============ Section base ============ */
section { padding: 88px 0; }
section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 20ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ============ About ============ */
.about { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p { font-size: 16px; max-width: 56ch; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding-top: 8px;
}
.stat {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.stat dt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

/* ============ Features / Bento ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(180px, auto));
  gap: 16px;
  margin-top: 40px;
}

.bento-cell {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.bento-cell i { font-size: 24px; color: var(--accent); margin-bottom: 14px; }
.bento-cell h3 { font-size: 1.05rem; margin-bottom: 6px; }
.bento-cell p { font-size: 14px; margin: 0; max-width: 32ch; }

.bento-cell--large {
  grid-column: span 2;
  grid-row: span 2;
  background-image: linear-gradient(180deg, rgba(10,11,13,0.15) 0%, rgba(10,11,13,0.88) 78%), var(--bg-image);
  background-size: cover;
  background-position: center;
}
.bento-cell--large .bento-cell-content { position: relative; }
.bento-cell--large h3 { font-size: 1.4rem; }
.bento-cell--large p { max-width: 34ch; color: rgba(242,243,245,0.82); }

.bento-cell--accent {
  background: var(--accent-tint);
  border-color: rgba(255, 90, 31, 0.28);
}
.bento-cell--accent i { color: var(--accent); }

/* ============ Gallery ============ */
.gallery-grid {
  margin-top: 40px;
  columns: 3;
  column-gap: 16px;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  break-inside: avoid;
}

/* ============ Contacts ============ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}
.contact-list i { color: var(--accent); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-list a { transition: color 0.2s var(--ease); }
.contact-list a:hover { color: var(--accent); }

.map-card {
  position: relative;
  aspect-ratio: 8 / 3;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}
.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #6b7178; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-input);
  font-size: 14px;
  margin-bottom: 20px;
}
.form-alert--success {
  background: rgba(60, 200, 130, 0.12);
  border: 1px solid rgba(60, 200, 130, 0.35);
  color: #7fe0b3;
}
.form-alert--error {
  background: rgba(255, 90, 31, 0.1);
  border: 1px solid rgba(255, 90, 31, 0.35);
  color: #ffb28c;
}
.form-alert--error ul { margin: 0; padding-left: 18px; }

/* ============ Success modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 40px 32px 32px;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }

.modal-icon { font-size: 44px; color: var(--accent); margin-bottom: 16px; }
.modal-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-card p { margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none; }
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo--footer { color: var(--text-muted); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 14px; color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-address, .footer-copy { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-toggle span { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16 / 10; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .bento-cell--large { grid-column: span 2; grid-row: span 1; min-height: 280px; }
  .gallery-grid { columns: 2; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }

  .header-inner { height: 64px; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    display: none;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; font-size: 15px; }
  .nav-toggle { display: flex; width: 44px; height: 44px; }
  .header-actions .btn-sm { display: none; }
  .logo { font-size: 16px; }
  .logo-mark { width: 22px; height: 22px; }

  .hero { padding: 28px 0 56px; }
  .hero-copy h1 { max-width: none; }
  .hero-sub { font-size: 15.5px; margin-bottom: 24px; }
  .hero-visual { border-radius: 18px; aspect-ratio: 4 / 3; }

  section { padding: 56px 0; }
  section h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }

  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
  .stat { padding: 16px 0; }
  .stat dd { font-size: 1.6rem; }

  .bento { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .bento-cell--large { grid-column: span 1; min-height: 220px; }
  .bento-cell { padding: 22px; }

  .gallery-grid { columns: 1; margin-top: 28px; }

  .contacts-grid { gap: 32px; }
  .contact-list { gap: 16px; margin: 20px 0 24px; }
  .contacts-form { padding: 20px; }
  .field input, .field textarea { font-size: 16px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { flex-wrap: wrap; gap: 16px 20px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero-copy h1 { font-size: 2.15rem; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .btn-block { padding: 15px 22px; }
  .about-stats { grid-template-columns: 1fr; }
}
