:root {
  --bg: #fcfcfb;
  --surface: #f4f6f9;
  --ink: #171a23;
  --ink-soft: #5c6478;
  --line: #e6e8ee;
  --blue: #1d5fe0;
  --blue-dark: #133e9e;
  --blue-soft: #eaf0fe;
  --amber: #e8a13b;
  --radius: 16px;
  --font-head: "Golos Text", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", "Golos Text", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(29,95,224,0.08) 1px, transparent 0);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  letter-spacing: -0.1px;
}
h1, h2, h3, h4, h5, .brand, .logo {
  font-family: var(--font-head);
  letter-spacing: -0.5px;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* TOP BAR */
.topbar { background: var(--blue-dark); color: #dbe6ff; font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 7px 24px; }
.topbar a:hover { text-decoration: underline; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
header.scrolled { box-shadow: 0 4px 20px rgba(20,30,60,0.06); }
nav.wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem; font-weight: 900;
}
.nav-links { display: flex; gap: 22px; font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.nav-phone .lbl { display: block; font-weight: 400; font-size: 0.7rem; color: var(--ink-soft); }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.86rem;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.burger {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-phone { display: none; }
}
.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 24px 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

/* PAGE HERO with mesh gradient + animated blobs */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(127,168,255,0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 10%, rgba(232,161,59,0.22), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 120%, rgba(159,216,192,0.28), transparent 60%),
    linear-gradient(180deg, var(--blue-soft), #fff 85%);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,95,224,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,95,224,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, #000 30%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}
.blob.b1 { width: 340px; height: 340px; background: #7fa8ff; top: -90px; left: -70px; }
.blob.b2 { width: 280px; height: 280px; background: #ffd08a; bottom: -70px; right: -50px; animation-delay: -5s; }
.blob.b3 { width: 220px; height: 220px; background: #9fd8c0; top: 35%; left: 58%; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}
.page-hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--blue); font-weight: 700; font-size: 0.78rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.8px; max-width: 780px; margin: 0 auto 16px; }
h1 span { color: var(--blue); }
.page-hero p.lead { color: var(--ink-soft); font-size: 1.03rem; max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-actions .btn { padding: 14px 26px; font-size: 0.92rem; }

.trust-row {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; padding-top: 30px;
  border-top: 1px solid var(--line); max-width: 720px; margin: 30px auto 0;
}
.trust-item { text-align: center; }
.trust-item .num { font-weight: 800; font-size: 1.4rem; color: var(--blue); }
.trust-item .lbl { font-size: 0.76rem; color: var(--ink-soft); }

/* SECTIONS */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.kicker { color: var(--blue); font-weight: 800; font-size: 0.76rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.5px; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }
.section-alt {
  background-color: var(--surface);
  background-image: radial-gradient(circle at 1px 1px, rgba(29,95,224,0.10) 1px, transparent 0);
  background-size: 26px 26px;
  position: relative;
}

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }

/* CARDS / GRIDS */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.s-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.s-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(29,95,224,0.1); }
.s-card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px;
  transition: transform 0.2s;
}
.s-card:hover .icon { transform: scale(1.1) rotate(-4deg); }
.s-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.s-card p { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }
.s-card .more { font-size: 0.8rem; color: var(--blue); font-weight: 700; }

.group-label { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.8px; margin: 36px 0 14px; }
.group-label:first-child { margin-top: 0; }

/* TABS (services page filter) */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn {
  background: #fff; border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--ink-soft); transition: 0.15s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

/* ABOUT / TIMELINE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--ink-soft); margin-bottom: 14px; }
.license-list { margin-top: 18px; }
.license-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.9rem; }
.license-list li::before { content: "✓"; color: var(--blue); font-weight: 900; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--blue-soft);
}
.tl-item .yr { font-weight: 800; color: var(--blue); font-size: 0.85rem; }
.tl-item h4 { font-size: 0.95rem; margin: 3px 0 4px; }
.tl-item p { font-size: 0.85rem; color: var(--ink-soft); }

.step-mini { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.step-mini:first-child { border-top: none; padding-top: 0; }
.step-mini .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-mini h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step-mini p { font-size: 0.85rem; color: var(--ink-soft); }

/* SERVE / VALUE CARDS */
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .serve-grid { grid-template-columns: 1fr; } }
.serve-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.serve-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,30,60,0.08); }
.serve-card .icon { font-size: 1.7rem; margin-bottom: 10px; }
.serve-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.serve-card p { font-size: 0.82rem; color: var(--ink-soft); }

/* CTA BAND */
.cta-band {
  background: linear-gradient(120deg, var(--blue), #3b7bf0);
  border-radius: 20px; padding: 44px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.cta-band h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -0.5px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 22px; position: relative; }
.cta-band .btn { background: #fff; color: var(--blue-dark); position: relative; }
.cta-band .btn:hover { background: #eef2ff; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-item:first-child { border-top: none; }
.contact-item .ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .label { font-size: 0.76rem; color: var(--ink-soft); }
.contact-item .val { font-weight: 700; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-card h4 { margin-bottom: 4px; }
.form-card .sub { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 16px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  font-family: inherit; margin-bottom: 10px; font-size: 0.9rem;
}
.form-card button { width: 100%; }
.fine { font-size: 0.72rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.form-status { font-size: 0.85rem; margin-top: 10px; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #1a8a4c; font-weight: 700; }
.form-status.err { color: #c0392b; font-weight: 700; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}

footer { background: #12151c; color: #b7bdc9; padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; }
.footer-grid li { padding: 5px 0; font-size: 0.85rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.78rem; text-align: center; color: #7c8296; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,13,20,0.55); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal { background: #fff; border-radius: 16px; padding: 28px; max-width: 400px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--ink-soft); }
.modal h3 { margin-bottom: 6px; }
.modal .sub { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 18px; }

/* COUNTER */
.count-up { font-variant-numeric: tabular-nums; }

/* ===== ANIMATIONS: bubbles, hero illustration, breathing icons, wave divider ===== */

/* floating bubbles in hero backgrounds */
.bubbles { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(127,168,255,0.25));
  opacity: 0.6;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-420px) translateX(20px) scale(0.6); opacity: 0; }
}

/* idle breathing animation for service/serve icons */
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.05); }
}
.s-card .icon, .serve-card .icon {
  animation: breathe 3.4s ease-in-out infinite;
}
.s-card:nth-child(2n) .icon, .serve-card:nth-child(2n) .icon { animation-delay: -1.1s; }
.s-card:nth-child(3n) .icon, .serve-card:nth-child(3n) .icon { animation-delay: -2.2s; }

/* wave divider between sections */
.wave-divider { display: block; width: 100%; height: 60px; margin-top: -1px; position: relative; z-index: 1; overflow: hidden; }
.wave-divider svg { width: 100%; height: 100%; }
.wave-divider path { animation: waveShift 9s ease-in-out infinite; transform-origin: center; }
@keyframes waveShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}

/* hero illustration: drilling rig */
.rig-illustration { position: relative; width: 100%; max-width: 440px; margin: 28px auto 0; }
.rig-illustration svg { width: 100%; height: auto; }
.rig-bit { animation: spin 2.2s linear infinite; transform-origin: 205px 206px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.rig-wave { animation: waveMove 5s ease-in-out infinite; }
@keyframes waveMove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.rig-pulse { animation: ringPulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes ringPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.rig-beacon { animation: beacon 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes beacon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.pumpjack-beam { animation: beamRock 3.2s ease-in-out infinite; transform-origin: 205px 120px; }
@keyframes beamRock {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}
