@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/gfonts/s/cabin/v35/u-4X0qWljRw-PfU81xCKCpdpbgZJl6XFpfEd7eA9BIxxkbqDH7mlx17r.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/gfonts/s/cabin/v35/u-4X0qWljRw-PfU81xCKCpdpbgZJl6XFpfEd7eA9BIxxkbqDH7ilx17r.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/gfonts/s/cabin/v35/u-4X0qWljRw-PfU81xCKCpdpbgZJl6XFpfEd7eA9BIxxkbqDH7alxw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/gfonts/s/lato/v25/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/gfonts/s/lato/v25/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/gfonts/s/lato/v25/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/gfonts/s/lato/v25/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #4d7496;
  --accent-dark: #3d5c78;
  --bg: #161616;
  --card: #1c1c1c;
  --text: #f7f7f7;
  --muted: #999999;
  --border: #3a3a3a;
  --border-light: rgba(255, 255, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', arial, sans-serif;
  background: var(--bg);
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Lato', arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

.brand,
.hero h1,
.section-title {
  font-family: 'Cabin', arial, sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.has-hero .nav {
  background: transparent;
  margin-bottom: -76px;
  transition: background-color 0.2s ease;
}

.has-hero .nav.scrolled {
  background: rgba(22, 22, 22, 0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: 'Cabin', arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  color: #fff;
  padding: 100px 0 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero .container {
  position: relative;
  width: 100%;
}

.hero-text {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding-left: 28px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.hero p.sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.hero-plain {
  min-height: 0;
  padding: 46px 0 40px;
}

.hero-plain h1 {
  font-size: 24px;
  letter-spacing: 1px;
  border: none;
  padding-left: 0;
  padding-bottom: 20px;
  margin: 0;
  border-bottom: 1px solid #545454;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-title {
  font-size: 24px;
  letter-spacing: 1px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #545454;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.grid-item h2,
.grid-item h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 14px;
}

.grid-item p {
  margin: 0;
}

.grid-item img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 18px;
}

.lead {
  font-size: 15px;
  max-width: 640px;
  margin: 0 0 40px;
}

/* Contact form */
.form-card {
  max-width: 700px;
  margin: 0 auto;
}

.form-card h2 {
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  padding: 15px 40px;
  cursor: pointer;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-actions {
  text-align: center;
}

.form-status {
  text-align: center;
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success {
  color: #f4f4f4;
}

.form-status.error {
  color: #e07a7a;
}

.form-done {
  text-align: center;
  padding: 48px 0;
  font-size: 24px;
  color: var(--text);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0 48px;
  font-size: 13px;
  color: var(--muted);
}

.footer hr {
  width: 50px;
  border: none;
  border-top: 1px solid #333;
  margin: 14px auto 0;
}

.footer-credit {
  color: inherit;
  opacity: 0.75;
}

.footer-credit:hover {
  opacity: 1;
  color: var(--accent);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  background: #446786;
  color: #fff;
  padding: 24px;
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 30;
}

.cookie-banner h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.cookie-banner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}

.cookie-banner button {
  width: 100%;
  background: #fff;
  color: #303030;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: #eee;
}

.cookie-banner.hidden {
  display: none;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero {
    padding: 140px 0 70px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links {
    max-height: 400px;
  }
  .hero-text {
    padding-left: 18px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p.sub {
    font-size: 16px;
  }
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
