:root {
  --red: #f80039;
  --blue: #339fdd;
  --cyan: #1db2d5;
  --navy: #1c1b4f;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e8e8e8;
  --body-font: 'Nunito Sans', sans-serif;
  --heading-font: 'Montagu Slab', serif;
  --brand-font: 'Kalnia', serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--body-font);
  color: var(--navy);
  font-size: 18px;
  line-height: 1.75;
  background: var(--white);
}

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

.center { text-align: center; }

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

a { color: var(--cyan); }

/* ── Headings ── */

.heading {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 24px;
}

.heading--red { color: var(--red); }
.heading--blue { color: var(--blue); }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: -50px;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 60px 40px 0 190px;
}

.brand-bar {
  background: var(--white);
  text-align: right;
  padding: 55px 125px 50px;
  position: relative;
  z-index: 5;
}

.brand {
  font-family: var(--brand-font);
  font-weight: 550;
  font-size: 50px;
  color: var(--cyan);
}

.hero h1 {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 45px;
  line-height: 1.1;
  color: var(--red);
  margin: 0;
  max-width: 414px;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
  height: 210px;
}

.hero-wave--top {
  top: 0;
  transform: rotate(180deg);
}

.hero-wave--bottom {
  bottom: -1px;
}

.hero-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: block;
}

/* ── About ── */

.about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin: 0 0 16px;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* ── Why Choose Zarkov ── */

.why {
  padding: 80px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 48px;
  align-items: start;
}

.why-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  filter: grayscale(100%);
}

.why-text p {
  margin: 0 0 16px;
}

/* ── Global Teams ── */

.global {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.global-bg {
  position: absolute;
  inset: 0;
}

.global-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  padding: 48px;
  border-radius: 4px;
  text-align: center;
}

.global-card p {
  margin: 0;
}

/* ── Services ── */

.services {
  padding: 80px 0;
  background: #f8f9fc;
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

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

.service-card {
  text-align: center;
}

.service-icon {
  width: 72px;
  height: 72px;
  color: var(--cyan);
  margin: 0 auto 16px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--cyan);
  margin: 0 0 12px;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}

/* ── Contact ── */

.contact {
  padding: 80px 0;
  background: var(--gray-light);
}

.contact-company {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.contact-email {
  color: var(--navy);
  text-decoration: underline;
  font-size: 1rem;
}

.contact-email:hover {
  color: var(--cyan);
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: var(--white);
  transition: opacity 0.15s ease;
}

.social-bar a:first-child {
  background: #1da1f2;
}

.social-bar a:last-child {
  background: #0077b5;
}

.social-bar a:hover {
  opacity: 0.85;
}

.social-bar svg {
  width: 20px;
  height: 20px;
}

/* ── Pre-footer logo ── */

.prefooter {
  text-align: center;
  padding: 48px 24px 24px;
}

.prefooter img {
  display: inline-block;
  max-width: 286px;
}

/* ── Footer ── */

.footer {
  text-align: center;
  padding: 16px 24px 40px;
  color: #666;
  font-size: 0.9rem;
}

.footer p { margin: 0; }

.footer a {
  color: #666;
  text-decoration: underline;
}

.footer a:hover {
  color: var(--navy);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-image { order: -1; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-end;
    min-height: 55vh;
    margin-top: -30px;
  }

  .hero-overlay {
    padding: 32px 24px 40px;
    text-align: center;
    background: var(--white);
    order: 1;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-wave {
    height: 70px;
  }

  .hero-wave--bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    order: 0;
  }

  .hero-wave svg:first-child { height: 70px !important; }
  .hero-wave svg:nth-child(2) { height: 62px !important; }
  .hero-wave svg:nth-child(3) { height: 55px !important; }
  .hero-wave svg:nth-child(4) { height: 48px !important; }

  .brand-bar {
    padding: 20px 20px 30px;
  }

  .global {
    min-height: auto;
    padding: 60px 16px;
  }

  .global-card {
    padding: 32px 24px;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
