:root {
  --primary: #8c8b88;
  --secondary: #ff7d45;
  --accent: #c3c1bc;
  --bg: #fdfcf8;
  --muted: #6c6b68;
  --surface: #ffffff;
  --border: #e5e2dd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: #1c1d26;
  line-height: 1.6;
}

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

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

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links a,
.dropbtn {
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
}

.nav-links a:hover,
.dropbtn:hover {
  background: rgba(140, 141, 136, 0.15);
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 0.5rem;
  left: 0;
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(15, 25, 40, 0.15);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  min-width: 220px;
  border: 1px solid var(--border);
  z-index: 20;
}

.dropdown-content a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
}

.dropdown.open .dropdown-content {
  display: block;
}

.hero {
  background: linear-gradient(
      120deg,
      rgba(140, 141, 136, 0.85),
      rgba(140, 141, 136, 0.35)
    ),
    url("/osmose.jpg") center/cover no-repeat;
  color: #fff;
  border-radius: 1.2rem;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
  border-radius: 1.2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--secondary);
  color: #1c1d26;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 125, 69, 0.35);
}

.section {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 45px rgba(14, 25, 40, 0.08);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fafbff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card h3 {
  margin: 0;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  flex: 1;
}

.service-card span {
  font-weight: 700;
  color: var(--secondary);
}

.testimonial-grid,
.review-grid,
.article-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

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

.gallery-card {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #000;
}

.gallery-card img {
  height: 180px;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.video-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
  margin-bottom: 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.article-form {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.article-form input,
.article-form textarea,
.article-form select {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.article-form textarea {
  grid-column: 1 / -1;
  min-height: 90px;
  resize: vertical;
}

.article-card {
  padding: 1.2rem;
  border-radius: 1rem;
  background: #f4f7ff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-card h4 {
  margin: 0;
  color: var(--primary);
}

.article-card time {
  font-size: 0.9rem;
  color: var(--muted);
}

.review-card {
  padding: 1.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(140, 141, 136, 0.2);
  background: #fffefa;
  position: relative;
}

.review-card .rating {
  color: var(--secondary);
  font-weight: 700;
}

.review-card small {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  background: #fff;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.team-grid .team-card {
  border: 1px solid var(--border);
  padding: 1.4rem;
  border-radius: 1rem;
  background: #fff;
}

.team-card h4 {
  margin: 0;
}

.team-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-card {
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  pointer-events: none;
}

.contact-card h3,
.contact-card p {
  position: relative;
  z-index: 1;
}

.contact-card a {
  color: #fff;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .dropdown-content {
    position: static;
    width: 100%;
  }
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-empty {
  min-height: 100vh;
  background: #05080f;
}

.hero-blank {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-blank video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blank .hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: brightness(0.6);
  text-align: center;
  color: #fff;
  gap: 0.5rem;
}

.hero-blank .hero-overlay p {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin: 0;
}

.hero-blank .hero-overlay small {
  opacity: 0.8;
}
