/* Palette seed: ІМКІНЖИНІРІНГ → hue 254 */

:root {
  --accent: hsl(254, 74%, 60%);
  --accent-two: hsl(13, 82%, 52%);
  --bg: hsl(114, 34%, 8%);
  --text: hsl(114, 20%, 96%);
  --panel: color-mix(in srgb, var(--bg) 72%, hsl(114, 22%, 18%));
  --muted: color-mix(in srgb, var(--text) 62%, transparent);
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --radius: 16px;
  --header-h: 72px;
  --max-w: 1180px;
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 52%),
    radial-gradient(circle at 84% 2%, color-mix(in srgb, var(--accent-two) 18%, transparent), transparent 48%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */

.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max-w) + 48px);
  width: calc(100% - 32px);
  margin: 12px auto 0;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: var(--bg);
  font-weight: 900;
  font-size: 1.1rem;
}

.logo-name {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main sections */

main {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 64px;
}

section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 560px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  min-height: calc(100vh - var(--header-h) - 48px);
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: var(--bg);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn.secondary {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(2deg);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--bg) 40%, transparent);
}

.hero-card-letter {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card-words {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Profile */

.profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.profile-body p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Areas */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.area-card {
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.area-card:nth-child(2n) {
  background: color-mix(in srgb, var(--panel) 70%, var(--accent) 8%);
}

.area-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.area-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.area-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.area-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-two));
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-two);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-item a:hover {
  color: var(--text);
}

.contact-form {
  grid-column: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Footer */

.footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */

@media (min-width: 621px) {
  .logo-name {
    display: inline;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: color-mix(in srgb, var(--panel) 95%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px 16px;
    border-radius: 10px;
  }

  .nav a:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .areas-grid,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
