/* GOPSX — основни стилове */
:root {
  --primary: #0b6ef6;
  --accent: #6a5cff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

main { flex: 1; }

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

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.header-inner img { height: 64px; display: block; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.2rem;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav a {
  margin-left: 0.6rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: #f1f5f9; color: var(--primary); }

.nav-toggle { display: none; background: transparent; border: 0; padding: 0.4rem; cursor: pointer; }
.nav-toggle .burger { display: inline-block; width: 24px; height: 2px; background: var(--text); position: relative; }
.nav-toggle .burger::before, .nav-toggle .burger::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--text); }
.nav-toggle .burger::before { top: -7px; }
.nav-toggle .burger::after { top: 7px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  #main-nav {
    display: none; position: absolute; top: 100%; right: 1rem;
    background: var(--surface); flex-direction: column; gap: 0.5rem;
    padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  #main-nav.open { display: flex; }
  .header-inner img { height: 48px; }
}

/* Hero */
.hero {
  padding: 2.5rem 0;
  background: radial-gradient(circle at top right, #eff6ff, transparent 40%), radial-gradient(circle at bottom left, #f0fdfa, transparent 40%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 1rem; }
.hero-image img { width: 100%; height: auto; display: block; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-image { max-width: 400px; margin: 0 auto; }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 110, 246, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(11, 110, 246, 0.35); }

.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 1rem;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #f8fafc; }

/* Sections */
.services, .why, .testimonials, .gallery-preview { padding: 2.5rem 0; }

.services h2, .why h2, .testimonials h2, .gallery-preview h2, .cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card h3 { margin-top: 0; color: var(--primary); }
.service-card p { color: var(--text-muted); margin-bottom: 0; }

.materials-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.materials-list li {
  background: #f1f5f9; color: var(--text-muted);
  padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 4/3;
  background: #e2e8f0;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

.more-link {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px dashed var(--border);
  color: var(--primary); font-weight: 600; text-decoration: none;
}
.more-link:hover { border-color: var(--primary); background: #f0f9ff; }

/* CTA */
.cta {
  margin: 2.5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(11, 110, 246, 0.25);
}
.cta h2 { color: white; margin-bottom: 0.5rem; }
.cta p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; font-size: 1.1rem; }
.cta .btn-primary {
  background: white; color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cta .btn-primary:hover { background: #f8fafc; transform: translateY(-2px); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h3 { color: white; margin-top: 0; }
.footer-col h4 { color: white; margin-bottom: 1rem; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: white; }
.site-copyright {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

/* Contact Page Specifics */
.contact-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 2.5rem auto;
}
@media (min-width: 900px) {
  .contact-page { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .contact-intro { grid-column: 1 / -1; text-align: center; margin-bottom: 2rem; }
}
.contact-intro h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.contact-intro p { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }

.contact-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.875rem;
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 1.5rem; font-size: 1rem;
  transition: all 0.2s ease; background: #f8fafc;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 110, 246, 0.1); background: #fff;
}
.contact-side {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-side h2 { color: var(--primary); margin-top: 0; }
.contact-side a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-side p { color: var(--text-muted); margin-bottom: 1rem; }
.contact-side strong { color: var(--text); }
.form-actions { display: flex; gap: 1rem; margin-top: 1rem; }
.form-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; z-index: 100;
  visibility: hidden; opacity: 0; transition: opacity 0.2s;
}
.lightbox[aria-hidden="false"] { visibility: visible; opacity: 1; }
.lightbox-image { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: transparent; border: 0; color: white; font-size: 2.5rem; cursor: pointer;
}
.lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center; color: white; font-size: 1.1rem;
}

/* Page Titles */
.page-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-align: center;
}
