/* assets/css/style.css */

:root {
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-soft: #EEF6FF;
  --bg-soft-2: #F1F5F9;

  --primary: #0B5CAD;
  --primary-dark: #08427d;
  --accent: #18A7B5;

  --text: #111827;
  --muted: #64748B;
  --border: #E5E7EB;

  --radius: 20px;
  --radius-lg: 24px;

  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --shadow-hover: 0 22px 60px rgba(11, 92, 173, .16);

  --transition: .25s ease;
  --section: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(24, 167, 181, .35);
  outline-offset: 3px;
}

/* NAVBAR */

.navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .04);
}

.navbar-brand {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  border-radius: 999px;
  padding: .55rem .75rem !important;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: rgba(11, 92, 173, .08);
}

.lang-switch {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: .35rem .55rem;
  font-size: .78rem;
  font-weight: 800;
  transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
  color: #fff;
  background: var(--primary);
}

/* HERO */

.hero {
  min-height: 100vh;
}

.hero-slide {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary);
}

.hero-slide-industrial {
  background-image: url("../img/Industrial-automation.png");
}

.hero-slide-electronics {
  background-image: url("../img/Electrical-electronics.png");
}

.hero-slide-hydraulic {
  background-image: url("../img/Hydraulic-systems.png");
}

.hero-slide-electrical {
  background-image: url("../img/Electrical-works.png");
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 23, 44, .88),
      rgba(5, 23, 44, .62),
      rgba(5, 23, 44, .25)
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 980px;
  padding-top: 96px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 1rem;
}

.eyebrow {
  color: #b9f8ff;
}

.section-kicker {
  color: var(--accent);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 900;
}

.hero p {
  max-width: 690px;
  margin: 1.4rem 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.88);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  font-weight: 800;
  padding: .85rem 1.35rem;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 0;
  box-shadow: 0 12px 28px rgba(11, 92, 173, .24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-light {
  color: var(--primary);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* SECTIONS */

.section {
  padding: var(--section) 0;
  position: relative;
}

.bg-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -.045em;
  font-weight: 900;
}

.section p,
.lead {
  color: var(--muted);
}

.lead {
  font-size: 1.2rem;
}

/* ABOUT */

.about-section::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(35px);
  background: rgba(24,167,181,.13);
  right: 4%;
  top: 16%;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  min-height: 165px;
  padding: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card i {
  color: var(--primary);
  font-size: 2rem;
}

.stat-card strong {
  font-size: 1.15rem;
}

/* CARDS */

.service-card,
.project-card,
.why-card,
.contact-form,
.contact-card,
.solution-panel,
.cta-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-card,
.project-card,
.why-card {
  height: 100%;
  padding: 28px;
  transition: var(--transition);
}

.service-card:hover,
.project-card:hover,
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(11, 92, 173, .22);
}

.service-card i,
.why-card i {
  color: var(--primary);
  font-size: 2rem;
}

.service-card h3,
.why-card h3,
.project-card h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 1rem 0 .6rem;
}

/* SOLUTIONS */

.solution-tabs {
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.solution-tabs .nav-link {
  border: 1px solid var(--border);
  background: #fff;
}

.solution-tabs .nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

.solution-panel {
  padding: 30px;
}

.solution-mini {
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-soft-2);
  height: 100%;
}

.solution-mini h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
}

/* PROJECTS */

/* PROJECTS */

.project-thumb {
  height: 190px;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 1 project */
#projectsGrid .col-md-6:nth-child(1) .project-thumb {
  background-image: url("../img/Automation.png");
}

/* 2 project */
#projectsGrid .col-md-6:nth-child(2) .project-thumb {
  background-image: url("../img/Hydraulics.png");
}

/* 3 project */
#projectsGrid .col-md-6:nth-child(3) .project-thumb {
  background-image: url("../img/Building.png");
}

/* затемнение поверх картинки */
.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 92, 173, .35),
    rgba(24, 167, 181, .18)
  );
  z-index: 1;
}

/* техническая сетка поверх картинки */
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
/* WHY US */

.grid-section {
  background:
    linear-gradient(rgba(11,92,173,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,92,173,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 46px 46px;
}

/* TIMELINE */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.timeline-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.timeline-item h3 {
  font-size: 1.05rem;
  font-weight: 900;
}

/* TECH */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
  color: var(--primary);
  font-weight: 900;
}

/* CTA */

.cta-card {
  text-align: center;
  padding: clamp(36px, 6vw, 70px);
  background:
    radial-gradient(circle at 80% 20%, rgba(24,167,181,.18), transparent 28%),
    linear-gradient(135deg, #fff, #eef7ff);
}

.cta-card p {
  max-width: 680px;
  margin: 1rem auto 2rem;
  font-size: 1.12rem;
}

/* FAQ */

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.accordion-button {
  font-weight: 900;
}

.accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--primary);
}

/* CONTACT */

.contact-form {
  padding: 28px;
}

.form-control,
.form-select {
  border-radius: 14px;
  border-color: var(--border);
  min-height: 50px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .25rem rgba(24,167,181,.16);
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 20px;
  display: flex;
  gap: 16px;
}

.contact-card i {
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 4px;
}

.contact-card p {
  margin: 0;
}

/* FOOTER */

.footer {
  padding: 64px 0 24px;
  background: #061A32;
  color: #dbeafe;
}

.footer h3,
.footer h4 {
  color: #fff;
  font-weight: 900;
}

.footer h4 {
  font-size: 1rem;
}

.footer a {
  display: block;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #94a3b8;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1199px) {
  .navbar-collapse {
    padding: 18px 0;
  }

  .lang-switch {
    width: fit-content;
    margin-top: 12px;
  }
}

@media (max-width: 991px) {
  :root {
    --section: 74px;
  }

  .stats-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 16px;
    align-items: start;
  }

  .timeline-number {
    grid-row: span 2;
  }
}

@media (max-width: 575px) {
  .hero-content {
    padding-top: 86px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    text-align: left;
  }

  .cta-card {
    text-align: left;
  }

  .contact-form {
    padding: 20px;
  }

  .project-thumb {
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}