/* Kapusta P — corporate one-pager */

:root {
  --bg: #f7f6f3;
  --bg-soft: #f1f0ec;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --ink-soft: #8a8a8a;
  --line: rgba(26, 26, 26, 0.1);
  --line-strong: rgba(26, 26, 26, 0.16);
  --accent: #2f6b4f;
  --accent-soft: rgba(47, 107, 79, 0.1);
  --accent-hover: #255640;
  --shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;
  --container: 1120px;
  --narrow: 720px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(47, 107, 79, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(26, 26, 26, 0.03), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 246, 243, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 243, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
  opacity: 0.7;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 10vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  max-width: 11ch;
  margin-bottom: 1.5rem;
}

.hero-lead {
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #f8faf8;
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #f8faf8;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: min(100%, 420px);
  color: var(--ink);
  animation: float-in 1s var(--ease) both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: float-in 0.85s var(--ease) both;
}

/* Sections */

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2,
.about h2,
.contacts h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin-bottom: 0;
}

.section-text {
  margin-top: 1.35rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  max-width: 40rem;
}

/* About */

.about .section-text {
  margin-top: 1.5rem;
}

/* Services */

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.service-item:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 55%);
  padding-left: 0.75rem;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-top: 0.2rem;
}

.service-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.service-body p {
  color: var(--ink-muted);
  max-width: 36rem;
}

/* Approach */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* Contacts */

.contacts {
  background:
    linear-gradient(180deg, transparent, rgba(47, 107, 79, 0.035)),
    var(--bg-soft);
}

.contacts-inner {
  text-align: left;
}

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
}

.contact-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.footer-tagline {
  color: var(--ink-muted);
  font-size: 0.925rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.925rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 0.875rem;
  justify-self: end;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Privacy page extras */

.page-main {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.page-main h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.page-main .prose {
  color: var(--ink-muted);
  max-width: 40rem;
}

.page-main .prose p + p {
  margin-top: 1rem;
}

.page-main .prose a {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    max-width: 14ch;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-graphic {
    width: min(100%, 300px);
    margin-top: 0.5rem;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .container.narrow {
    width: min(100% - 1.5rem, var(--container));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 246, 243, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .service-item {
    grid-template-columns: 3rem 1fr;
    gap: 0.85rem;
  }

  .service-item:hover {
    padding-left: 0.35rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
