:root {
  --navy: #02477e;
  --navy-dark: #063f6e;
  --teal: #67a69e;
  --blue: #1e87f0;
  --grad: linear-gradient(95deg, #02477e, #67a69e);
  --text: #666;
  --heading: #333;
  --light: #f5f5f5;
  --line: #e5e5e5;
  --cond: "Roboto Condensed", "Arial Narrow", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body { margin: 0; font-family: "Roboto", system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h2, h3, h4 { font-family: var(--cond); color: var(--heading); margin: 0 0 .6em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.topbar { background: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo strong { font-family: var(--cond); font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: .02em; white-space: nowrap; }
.logo small { font-size: 12px; color: #999; letter-spacing: .08em; text-transform: uppercase; }
.topbar-contacts { display: flex; gap: 34px; }
.topbar-contacts a { display: flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 500; }
.topbar-contacts svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; border: 1px solid var(--line); fill: var(--navy); }
.topbar-contacts span { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-contacts small { color: #999; font-size: 12px; font-weight: 400; }
.topbar-contacts a:hover svg { background: var(--navy); fill: #fff; border-color: var(--navy); }
.burger { display: none; }
.lang { display: flex; border: 1px solid var(--line); flex: none; }
.lang a { padding: 6px 11px; font-size: 13px; font-weight: 500; color: var(--text); letter-spacing: .05em; }
.lang a + a { border-left: 1px solid var(--line); }
.lang a.on { background: var(--navy); color: #fff; }
.lang a:not(.on):hover { color: var(--navy); background: var(--light); }

/* Nav */
.mainnav { background: var(--grad); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.mainnav a { display: block; padding: 0 4px; line-height: 56px; color: #fff; font-size: 14px; position: relative; white-space: nowrap; transition: color .2s; }
.mainnav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 12px; height: 1px; background: #fff; transform: scaleX(0); transition: transform .25s; }
.mainnav a:hover::after, .mainnav a.active::after { transform: scaleX(1); }

/* Slider */
.slider { position: relative; height: min(560px, 70vh); min-height: 420px; overflow: hidden; background: #0d2a44; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,40,72,.75) 0%, rgba(2,40,72,.35) 45%, rgba(2,40,72,0) 75%); }
.slide.active { opacity: 1; z-index: 1; }
.slide .wrap { position: relative; }
.caption { max-width: 520px; color: #fff; }
.caption h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.caption p { color: rgba(255,255,255,.88); font-size: 17px; margin-bottom: 26px; }
.slide.active .caption { animation: capIn .9s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 0 24px; line-height: 44px; font-size: 14px; text-transform: uppercase; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn span { font-size: 20px; line-height: 1; }
.btn:hover { background: var(--teal); }
.dots { position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: #fff; }
.arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; cursor: pointer; opacity: 0; transition: opacity .3s, background .2s; }
.slider:hover .arrow { opacity: 1; }
.arrow:hover { background: var(--navy); }
.prev { left: 16px; } .next { right: 16px; }

/* Blocks */
.block { padding: 70px 0; }
.bg-light { background: var(--light); }
.title { font-size: 30px; font-weight: 300; text-transform: uppercase; color: var(--heading); position: relative; padding-bottom: 16px; margin-bottom: 34px; }
.title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--grad); }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.more { color: var(--blue); font-size: 14px; }
.more:hover { color: var(--navy); text-decoration: underline; }

/* Cards */
.cards { display: grid; gap: 30px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,.08); transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
#equipment .card { box-shadow: none; border: 1px solid var(--line); }
.card:hover { box-shadow: 0 14px 25px rgba(0,0,0,.16); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; font-weight: 700; text-transform: uppercase; }
.card p { font-size: 15px; flex: 1; }
.card p:last-child { margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 14px 25px rgba(0,0,0,.16); }
.motto { font-family: var(--cond); font-size: 20px; color: var(--navy); font-style: italic; border-left: 3px solid var(--teal); padding-left: 16px; }

/* Stats band */
.stats-band { position: relative; background-size: cover; background-position: center; background-attachment: fixed; padding: 80px 0; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: rgba(6,67,119,.82); }
.stats { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stats strong { display: block; font-family: var(--cond); font-size: 46px; font-weight: 700; color: #fff; line-height: 1.1; }
.stats span { color: rgba(255,255,255,.75); font-size: 14px; }

/* Two column + spec tables */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.spec th, .spec td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec th { color: var(--heading); font-weight: 500; width: 45%; }
.spec tr:nth-child(odd) { background: var(--light); }
.spec.grades th { font-family: var(--cond); font-weight: 700; color: var(--navy); font-size: 18px; width: 90px; }
.small { font-size: 13px; color: #999; }

/* Services */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: #fff; padding: 32px 24px; transition: background .25s; }
.service span { font-family: var(--cond); font-size: 40px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.service h3 { font-size: 17px; font-weight: 400; margin: 0; }
.service:hover { background: var(--grad); }
.service:hover span, .service:hover h3 { color: #fff; -webkit-text-fill-color: #fff; }

/* Lists */
.icon-list, .check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.icon-list li, .check-list li { padding: 11px 0 11px 30px; border-bottom: 1px dashed #ddd; position: relative; }
.icon-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; background: var(--teal); }
.icon-list b { color: var(--navy); }
.check-list li::before { content: "✓"; position: absolute; left: 2px; top: 10px; color: var(--teal); font-weight: 700; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; position: relative; overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #fff; background: rgba(2,71,126,.55); opacity: 0; transition: opacity .3s; }
.gallery button:hover::after { opacity: 1; }
.gallery button:hover img { transform: scale(1.06); }

/* Form */
.quote-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-top: 10px; }
.form { background: #fff; padding: 34px; box-shadow: 0 5px 15px rgba(0,0,0,.08); display: grid; gap: 14px; }
.form h3 { font-size: 24px; text-transform: uppercase; font-weight: 400; color: var(--navy); }
.form label { display: grid; gap: 5px; font-size: 13px; color: #999; text-transform: uppercase; }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; color: var(--heading); padding: 10px 12px; border: 1px solid var(--line); background: #fff; width: 100%; text-transform: none; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .chk { display: flex; align-items: center; gap: 8px; text-transform: none; font-size: 15px; color: var(--text); }
.form .chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.form .btn { justify-self: start; }

/* Contact strip */
.contact-strip { background: var(--grad); color: #fff; padding: 34px 0; }
.strip { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 30px; }
.strip > * { display: flex; align-items: center; gap: 18px; font-size: 16px; }
.strip svg { flex: none; width: 50px; height: 50px; padding: 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; fill: #fff; }
.strip a:hover span { text-decoration: underline; }

/* Footer */
.footer { padding: 50px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer .logo strong { font-size: 21px; }
.footer h4 { font-size: 15px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.footer-cols a:not(.logo) { display: block; font-size: 14px; padding: 3px 0 3px 14px; position: relative; }
.footer-cols a:not(.logo)::before { content: "›"; position: absolute; left: 0; color: var(--teal); }
.footer-cols a:not(.logo):hover { color: var(--navy); }
.copy { text-align: center; font-size: 13px; color: #999; border-top: 1px solid var(--line); margin: 0; padding: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; font-size: 30px; cursor: pointer; }
.lightbox button:hover { background: var(--navy); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--teal); }

/* Responsive */
@media (max-width: 1100px) {
  .mainnav ul { justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .services { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .topbar-contacts { display: none; }
  .topbar-inner { min-height: 72px; gap: 12px; }
  .lang { margin-left: auto; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: var(--navy); cursor: pointer; }
  .burger span { height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mainnav { position: relative; display: none; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; gap: 0; }
  .mainnav a { line-height: 48px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .mainnav a::after { display: none; }
  .cards-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .about, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-band { background-attachment: scroll; }
  .strip { grid-template-columns: 1fr; gap: 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .arrow { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar .logo { min-width: 0; gap: 9px; }
  .topbar .logo span { min-width: 0; overflow: hidden; }
  .logo img { width: 40px; height: 40px; flex: none; }
  .logo strong { font-size: 18px; }
  .logo small { font-size: 9px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lang a { padding: 6px 8px; font-size: 12px; }
  .block { padding: 50px 0; }
  .title { font-size: 25px; }
  .slider { height: 480px; }
  .caption p { font-size: 15px; }
  .cards-3 { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .stats strong { font-size: 34px; }
  .form { padding: 24px 18px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .spec th, .spec td { padding: 11px 10px; }
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.active .caption { transition: none; animation: none; }
}
