:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --text: #22313f;
  --muted: #647382;
  --heading: #102741;
  --accent: #2f7d8a;
  --accent-dark: #245f69;
  --border: #dbe4eb;
  --card-bg: #ffffff;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(16, 39, 65, 0.06);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

body.intro-active {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

.cv-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0f2238;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.intro-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.intro-mark {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 1rem;
}

.intro-brand {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.intro-sub {
  margin-top: 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

#home,
#services,
#about {
  scroll-margin-top: 40px;
}

#contact {
  padding-bottom: 25rem;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.brand-tagline {
  font-size: 0.92rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  color: var(--heading);
}

.hero {
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(to bottom, #f7fafc, #ffffff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.8rem;
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--heading);
  max-width: 12ch;
}

.lead,
.section-intro,
.contact-intro {
  font-size: 1.06rem;
  color: var(--text);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

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

.button-secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.button-secondary:hover {
  background: #f1f7f8;
}

.hero-actions .button {
  min-width: 100px;
  text-align: center;
}

.hero-visual img {
  display: block;
  max-width: 100%;
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.about-photo img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card,
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--heading);
  font-size: 1.18rem;
}

.toggle-button,
.subtoggle-button {
  margin-top: 1rem;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.toggle-button:hover,
.subtoggle-button:hover {
  background: var(--accent-dark);
}

.subtoggle-button {
  background: #e7f1f3;
  color: var(--accent-dark);
  border: 1px solid #c8dade;
}

.subtoggle-button:hover {
  background: #dbecef;
}

.more-content,
.sub-content {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.more-content.open,
.sub-content.open {
  display: block;
}

.more-content h4 {
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

ul {
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

@media (max-width: 920px) {
  .hero-inner,
  .service-cards,
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .hero h1 {
    max-width: none;
  }

  .intro-sub {
    font-size: 0.9rem;
  }
}