/* ЛАБОРАТОРІЯ ДЕТЕЙЛІНГА — основні стилі */
:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-2: #243044;
  --color-accent: #e8b923;
  --color-accent-hover: #f5c942;
  --color-text: #e8ecf0;
  --color-text-muted: #9ca8b8;
  --color-border: #2d3a4d;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.6) 0%, var(--color-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px 64px;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--color-border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--color-text);
}

.section-intro {
  color: var(--color-text-muted);
  margin: 0 0 40px;
  max-width: 720px;
}

/* About */
.section-about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .section-about .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.about-text p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Services */
.section-services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(232, 185, 35, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-accent);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Thematic image block */
.section-image {
  padding: 48px 0;
}

.thematic-image-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface-2);
}

.thematic-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.thematic-caption {
  padding: 24px 28px;
  border-top: 1px solid var(--color-border);
}

.thematic-caption p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Advantages */
.advantages-list {
  margin: 0;
  padding-left: 1.4em;
  color: var(--color-text-muted);
}

.advantages-list li {
  margin-bottom: 16px;
  line-height: 1.65;
}

.advantages-list li:last-child {
  margin-bottom: 0;
}

.advantages-list strong {
  color: var(--color-text);
}

/* CTA */
.section-cta {
  background: var(--color-surface);
  text-align: center;
}

.cta-text {
  max-width: 640px;
  margin: 0 auto 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cta-contact {
  margin: 0;
  font-size: 1.05rem;
}

.cta-contact a {
  color: var(--color-accent);
  text-decoration: none;
}

.cta-contact a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: 0 0 8px;
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  margin: 0;
}

/* Privacy page */
.page-privacy .content-wrap {
  padding: 48px 0 80px;
}

.page-privacy .content-wrap h1 {
  font-size: 1.85rem;
  margin: 0 0 32px;
  color: var(--color-text);
}

.page-privacy .content-wrap h2 {
  font-size: 1.35rem;
  margin: 32px 0 16px;
  color: var(--color-accent);
}

.page-privacy .content-wrap p,
.page-privacy .content-wrap li {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.page-privacy .content-wrap ul {
  padding-left: 1.5em;
  margin: 0 0 20px;
}

.page-privacy .content-wrap .updated {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 28px;
}
