:root {
  --navy: #0F2940;
  --navy-2: #13365A;
  --blue: #1359A1;
  --blue-dark: #0B3E73;
  --bg: #F1F4F7;
  --white: #FFFFFF;
  --line: #D5DDE5;
  --line-2: #C3CFDB;
  --text-2: #33506C;
  --text-3: #4A6179;
  --accent: #F2B705;
  --pad-x: 120px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--navy); }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
.muted { color: var(--text-3); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 4px; padding: 12px 20px; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { color: var(--navy); filter: brightness(1.05); }
.btn-ghost { color: var(--white); border: 1px solid #5C7B99; }
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.btn-ghost-light { color: var(--white); border: 1px solid #8DB6DF; }
.btn-ghost-light:hover { color: var(--white); border-color: var(--white); }
.btn-lg { font-size: 18px; padding: 16px 26px; }
.btn-ghost.btn-lg { padding: 15px 25px; }
.btn-xl { font-size: 20px; padding: 18px 24px; }
.btn-ghost-light.btn-xl { padding: 17px 23px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad-x); background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 65px; height: 70px; object-fit: contain; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 17px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--navy); }
.nav a.btn-accent { color: var(--navy); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; align-items: center;
  padding: 96px var(--pad-x) 88px; background: var(--navy); color: var(--white);
  scroll-margin-top: 100px;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 18px; color: #9FC4E8; }
.hero h1 { max-width: 1000px; font-weight: 700; font-size: 84px; line-height: 0.98; letter-spacing: -0.005em; }
.lead { font-size: 21px; line-height: 1.5; color: #D6E4F2; max-width: 760px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* Key facts */
.facts { padding: 0 var(--pad-x); background: var(--white); border-bottom: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts dl > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.facts dl > div:first-child { padding-left: 0; }
.facts dl > div:last-child { padding-right: 0; border-right: 0; }
.facts dt { font-size: 15px; color: var(--text-3); }
.facts dd { margin: 6px 0 0; font-size: 19px; font-weight: 600; }

/* Sections */
.section { padding: 104px var(--pad-x); display: flex; flex-direction: column; gap: 48px; scroll-margin-top: 96px; }
#competences { padding-top: 112px; padding-bottom: 96px; }
.section-white { background: var(--white); gap: 44px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.section-head h2, .company h2, .contact h2 { font-weight: 700; font-size: 60px; line-height: 1; }
.section-head p { font-size: 19px; line-height: 1.55; color: var(--text-2); }

/* Skills */
.skills { display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.skill {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px;
  padding: 32px 0; border-bottom: 1px solid var(--line-2);
}
.skill h3 { font-weight: 600; font-size: 34px; line-height: 1.05; }
.skill p { margin-top: 4px; font-size: 18px; line-height: 1.6; }
.skill p.muted { line-height: 1.5; color: var(--text-2); }

/* References */
.refs { display: flex; flex-direction: column; }
.ref {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.55fr) minmax(0, 2fr); gap: 32px;
  padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5;
}
.ref-head { padding: 0 0 12px; border-bottom: 2px solid var(--navy); font-size: 15px; font-weight: 600; color: var(--text-3); }
.ref-group { margin: 36px 0 4px; font-weight: 600; font-size: 26px; color: var(--blue); }
.ref-name { font-weight: 600; font-size: 19px; }
.ref-lot { font-weight: 600; }

/* Photos */
.photos { display: flex; flex-direction: column; gap: 40px; margin-top: 32px; }
.photos h3 { font-weight: 700; font-size: 40px; line-height: 1.05; }
.gallery-group h4 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 20, 33, .88); }
.lightbox img { display: block; max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }

/* Company */
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
.company-intro { display: flex; flex-direction: column; gap: 24px; }
.company-intro > p { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 540px; }
.person { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.person .muted { font-size: 17px; }
.company-cards { display: flex; flex-direction: column; gap: 36px; }
.card { background: var(--white); border: 1px solid var(--line); padding: 32px 36px; }
.card h3 { margin-bottom: 20px; font-weight: 600; font-size: 28px; }
.card p { font-size: 18px; line-height: 1.6; }
.team { margin: 0; padding: 0; list-style: none; font-size: 18px; }
.team li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #E3E9EF; }
.team li:last-child { border-bottom: 0; }

/* Contact */
.contact {
  padding: 96px var(--pad-x); background: var(--blue); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; align-items: start;
  scroll-margin-top: 96px;
}
.contact > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.contact > div:first-child p { font-size: 20px; line-height: 1.55; color: #DCEAF8; max-width: 520px; }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-links p { margin-top: 10px; font-size: 18px; line-height: 1.5; color: #DCEAF8; }

/* Footer */
.site-footer {
  padding: 36px var(--pad-x); background: var(--navy); color: #A9BFD4; font-size: 15px; line-height: 1.7;
  display: flex; justify-content: space-between; gap: 48px;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-logo { width: 78px; height: 84px; object-fit: contain; background: var(--white); border-radius: 6px; flex-shrink: 0; }
.footer-strong { color: var(--white); font-weight: 600; }
.footer-right { text-align: right; }
.site-footer a { color: var(--white); }

/* Responsive */
@media (max-width: 1200px) {
  :root { --pad-x: 48px; }
  .hero h1 { font-size: 64px; }
}

@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero, .section-head, .company, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div { padding: 20px 16px !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .skill { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ref-head { display: none; }
  .ref { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; }
  .ref > div:first-child, .ref > div:last-child { grid-column: 1 / -1; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .contact { padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 600px) {
  :root { --pad-x: 16px; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 50px; height: 55px; }
  .brand span { font-size: 22px; }
  .nav .btn { padding: 10px 14px; font-size: 15px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .section-head h2, .company h2, .contact h2 { font-size: 44px; }
  .photos h3 { font-size: 32px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .skill h3 { font-size: 28px; }
  .card { padding: 24px 20px; }
  .btn-xl { font-size: 18px; word-break: break-word; }
  .site-footer { flex-direction: column; gap: 16px; }
  .footer-right { text-align: left; }
  .footer-left { align-items: flex-start; gap: 16px; }
}
