/* ==========================================================================
   ПРОМСПЕЦБУД КРЕМЕНЧУК — MOBILE-FIRST ДИЗАЙН 2026
   Пальові фундаменти, буріння, випробування, техніка
   Базові стилі = мобільний телефон; розширення через min-width.
   ========================================================================== */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #020617;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-dark: #b45309;
  --accent-light: #fef3c7;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0b1325;
  --bg-dark-card: #15223e;
  --border: #e2e8f0;
  --border-dark: #334155;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

/* Responsive fallback sizes for headings without a dedicated class */
h1 { font-size: clamp(1.7rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 3.8vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* Floating stat card in the About section (static on mobile, floats on desktop) */
.about-stat {
  background: var(--primary);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent);
  max-width: none;
  margin-top: 1.25rem;
}

.about-stat .stat-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.about-stat .stat-note {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   UTILITY LAYOUT HELPERS (mobile-first: 1 column → more on wider screens)
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.grid-auto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-scroll table {
  min-width: 560px;
}

/* ==========================================================================
   TOP BAR & HEADER (top-bar hidden on mobile, shown on tablet+)
   ========================================================================== */
.top-bar {
  display: none;
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.top-bar-item i {
  color: var(--accent);
}

.top-bar-item a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.99);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  gap: 0.75rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--accent);
}

.brand-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Nav — off-canvas drawer on mobile */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  flex-direction: column;
  align-items: stretch;
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0;
  overflow-y: auto;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  display: flex;
}

.main-nav.active {
  max-height: 75vh;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.85rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-dropdown {
  width: 100%;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  padding: 0.25rem 0 0.75rem 0.5rem;
}

.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.dropdown-item i {
  color: var(--accent);
  width: 16px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background-color: var(--bg-alt);
  color: var(--accent-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn {
  display: none;
}

.mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: var(--accent);
}

.mobile-toggle:hover span {
  background: var(--primary-dark);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--border-dark);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

.btn-outline-dark {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.badge-accent {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-dark);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1b38 50%, #15274d 100%);
  color: white;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  font-size: clamp(1.85rem, 8vw, 3.1rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.hero-buttons .btn {
  flex: 1 1 auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(11, 19, 37, 0.95) 0%, rgba(11, 19, 37, 0.6) 70%, transparent 100%);
}

.hero-card-title {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.hero-card-subtitle {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: white;
}

.section-dark h2, .section-dark h3 {
  color: white;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-dark .section-subtitle {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.55rem, 5.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.section-dark .section-desc {
  color: var(--text-light);
}

/* Inner-page title (hero) */
.page-title {
  font-size: clamp(1.8rem, 6.5vw, 2.75rem) !important;
}

/* Content headings used inside articles */
.content-title {
  font-size: clamp(1.45rem, 5vw, 2.1rem) !important;
}

.content-sub {
  font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(245, 158, 11, 0.4);
}

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.service-features li i {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.link-arrow:hover {
  color: var(--accent-hover);
  gap: 0.75rem;
}

/* ==========================================================================
   ADVANTAGES SECTION
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.adv-card {
  background: white;
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.adv-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.adv-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   EQUIPMENT SECTION
   ========================================================================== */
.equipment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.equip-card {
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.equip-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.equip-img {
  height: 200px;
  background: #081020;
  position: relative;
  overflow: hidden;
}

.equip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.equip-card:hover .equip-img img {
  transform: scale(1.05);
}

.equip-body {
  padding: 1.4rem;
}

.equip-title {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.6rem;
}

.equip-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.specs-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.specs-table td:first-child {
  color: #94a3b8;
}

.specs-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
}

/* Light variant (used on white cards in tehnika) */
.equip-card-light .specs-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.equip-card-light .specs-table td:first-child {
  color: var(--text-muted);
}

.equip-card-light .specs-table td:last-child {
  color: var(--accent-dark);
}

/* ==========================================================================
   PROJECTS & PORTFOLIO
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-client {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-meta-item i {
  color: var(--accent);
}

/* ==========================================================================
   PHOTO & VIDEO GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 150px;
  background: var(--bg-alt);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
  transform: translateY(0);
}

.gallery-caption {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.video-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: black;
}

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

.video-info {
  padding: 1.1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.video-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-details a {
  color: var(--primary);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--accent);
}

.form-card {
  background: white;
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem; /* 16px to avoid iOS zoom */
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-alt);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

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

/* ==========================================================================
   PROFILE / TEAM (person page)
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-photo-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  margin: 0 auto;
}

.profile-photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-photo-caption {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-photo-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.profile-photo-caption p {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.vcard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.vcard-col {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.vcard-col h5 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.vcard-col ul {
  list-style: none;
}

.vcard-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vcard-col ul li:last-child {
  margin-bottom: 0;
}

.vcard-col ul li i {
  color: var(--accent);
  margin-top: 0.2rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-actions .btn {
  flex: 1 1 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 3rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-name {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.82rem;
  text-align: center;
}

.footer-bottom div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  color: white;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 2;
}

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

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.lightbox-prev {
  left: 0.35rem;
}

.lightbox-next {
  right: 0.35rem;
}

/* ==========================================================================
   BACK TO TOP & FLOATING ACTIONS
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  background-color: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE ENHANCEMENTS (min-width, mobile-first)
   ========================================================================== */

/* ≥640px — phablet / small tablet */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }

  .header-container {
    padding: 0.75rem 1.5rem;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .header-actions .btn {
    display: inline-flex;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-buttons .btn {
    flex: 0 1 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stat-value {
    font-size: 1.9rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .services-grid,
  .advantages-grid,
  .equipment-grid,
  .projects-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-auto {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item {
    height: 170px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom div:last-child {
    flex-direction: row;
    gap: 1.25rem;
  }
}

/* ≥900px — tablet */
@media (min-width: 900px) {
  .top-bar {
    display: block;
  }

  .brand-logo {
    height: 52px;
  }

  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-card img {
    height: 340px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .feature-row {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
  }

  .feature-row-reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .gallery-item {
    height: 200px;
  }

  .vcard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-stat {
    position: static;
    max-width: none;
    margin-top: 1.25rem;
  }

  .contact-grid {
    gap: 2.5rem;
  }

  .form-card {
    padding: 2.25rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ≥1120px — desktop */
@media (min-width: 1120px) {
  .header-container {
    padding: 0.7rem 1.25rem;
    gap: 0.5rem;
  }

  .mobile-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    right: auto;
    width: auto;
    height: auto;
    max-height: none;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 0.4rem;
    align-items: center;
    padding: 0;
    gap: 0.9rem;
    overflow: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    z-index: auto;
  }

  .nav-link {
    font-size: 0.87rem;
    padding: 0.5rem 0;
    display: inline-flex;
    justify-content: flex-start;
    border-bottom: none;
    white-space: nowrap;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
  }

  .nav-link:hover::after, .nav-link.active::after {
    width: 100%;
  }

  .nav-dropdown {
    width: auto;
    position: relative;
  }

  .dropdown-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    padding: 0.6rem 1.25rem;
    border-radius: 0;
  }

  .dropdown-item:hover {
    background-color: var(--bg-alt);
    color: var(--accent-hover);
    padding-left: 1.5rem;
  }

  .hero {
    padding: 5rem 0 6rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .hero-title {
    font-size: 3.1rem;
  }

  .hero-desc {
    font-size: 1.15rem;
  }

  .hero-card img {
    height: 420px;
  }

  .section {
    padding: 5rem 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .service-card-img {
    height: 220px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .profile-grid {
    grid-template-columns: 400px 1fr;
    gap: 3rem;
  }

  .profile-photo-card {
    position: sticky;
    top: 96px;
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }

  .lightbox-prev {
    left: 2rem;
  }

  .lightbox-next {
    right: 2rem;
  }
}


/* ==========================================================================
   LANGUAGE SWITCHER (mobile-first: sits inside the off-canvas menu)
   ========================================================================== */
.lang-switch {
  display: flex;
  align-items: center;
  padding: 0.9rem 0 0.25rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.55rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.lang-btn + .lang-btn {
  margin-left: 0.5rem;
}

.lang-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ≥1120px — desktop: compact inline switch inside the nav row */
@media (min-width: 1120px) {
  .lang-switch {
    border-top: none;
    margin-top: 0;
    padding: 0;
    margin-left: 0.35rem;
    padding-left: 0.4rem;
    border-left: 1px solid var(--border);
  }

  .lang-btn {
    flex: none;
    min-width: 30px;
    padding: 0.28rem 0.38rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }

  .lang-btn + .lang-btn {
    margin-left: 0.4rem;
  }
}
