:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-alt: #eef5fc;
  --text: #17324d;
  --muted: #5f7489;
  --line: #d7e5f2;
  --primary: #2067b2;
  --primary-dark: #174f89;
  --accent: #e9f3ff;
  --shadow: 0 14px 40px rgba(23, 50, 77, 0.08);
  --radius: 18px;
  --max-width: 1120px;
  --header-offset: 4.05rem;
  --about-fiverr-spacer: 1.1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8fd 100%);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(215, 229, 242, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a.btn-primary {
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(32, 103, 178, 0.22);
}

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

.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--line);
}

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-offset));
  padding: 0;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: url("KTS Banner.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(23, 50, 77, 0.55) 30%,
    rgba(23, 50, 77, 0.30) 60%,
    rgba(23, 50, 77, 0.12) 70%,
    rgba(23, 50, 77, 0) 100%
  );
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
  min-height: 72vh;
  padding: 7.25rem 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(23, 50, 77, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(23, 50, 77, 0.28);
}

.hero p {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.06rem;
  max-width: 56ch;
  text-shadow: 0 8px 24px rgba(23, 50, 77, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 8px 24px rgba(23, 50, 77, 0.18);
}

.trust-row span::before {
  content: "\2713";
  color: var(--primary);
  margin-right: 0.45rem;
}

.hero-panel {
  justify-self: end;
  width: min(100%, 430px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(23, 50, 77, 0.16);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
}

.hero-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  text-shadow: none;
}

.hero-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.hero-list li span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.section {
  padding: 1.25rem 0 4rem;
}

.section-band {
  background: linear-gradient(180deg, rgba(233, 243, 255, 0.9) 0%, rgba(226, 238, 251, 0.92) 100%);
  border-top: 1px solid rgba(215, 229, 242, 0.85);
  border-bottom: 1px solid rgba(215, 229, 242, 0.85);
}

.section-header {
  margin-bottom: 1.3rem;
}

.section-header h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.about-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 1.2rem;
}

.service-card p,
.about-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.about-card,
.contact-card {
  padding: 1.2rem;
}

.about-fiverr-spacer {
  height: var(--about-fiverr-spacer);
}

#contact.contact-card {
  margin-top: 8.7rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fbfdff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(32, 103, 178, 0.12);
  border-color: #9ec3ea;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.soft-link {
  color: var(--primary);
  font-weight: 700;
}

.cf-turnstile {
  margin: 0.25rem 0 0.75rem;
}

@media (max-width: 920px) {
  :root {
    --about-fiverr-spacer: 0rem;
  }

  .hero-grid,
  .two-col,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background-position: center;
  }

  .hero-grid {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .hero-panel {
    justify-self: start;
    width: 100%;
  }

  #contact.contact-card {
    margin-top: 0;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 560px) {
  :root {
    --header-offset: 7rem;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .hero-actions,
  .trust-row,
  .nav-links {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-floating {
    position: static;
    margin-top: 1rem;
  }

  .mock-window {
    max-width: 100%;
  }
}
