:root {
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-low: #f2f4f6;
  --surface-container: #eceef0;
  --text: #191c1e;
  --muted: #45464d;
  --outline: #c6c6cd;
  --outline-strong: #76777d;
  --primary: #000000;
  --accent: #006780;
  --accent-soft: #b7eaff;
  --error: #ba1a1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
h1,
h2,
h3,
.label,
.button,
.nav-links,
.footer-links {
  font-family: "Space Grotesk", Inter, sans-serif;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: #64748b;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.button,
button {
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--outline-strong);
}

.button:hover,
button:hover {
  background: var(--muted);
  border-color: var(--muted);
}

.button.secondary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 112px 0;
}

.products-hero {
  padding-bottom: 48px;
}

.products-list {
  padding-top: 0;
}

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
}

.lead {
  max-width: 760px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.card {
  border: 1px solid var(--outline);
  background: var(--surface);
  padding: 32px;
}

.card:hover {
  border-color: var(--accent);
}

.profile-card {
  max-width: 380px;
  padding: 0;
  align-self: start;
  justify-self: end;
  overflow: hidden;
}

.profile-card .number,
.profile-card p {
  margin-right: 32px;
  margin-left: 32px;
}

.profile-card .number {
  margin-top: 28px;
}

.profile-card p {
  margin-bottom: 32px;
}

.profile-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--outline);
  background: var(--surface-container);
  overflow: hidden;
}

.profile-card-image img,
.profile-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.profile-card-image img {
  min-width: 100%;
  object-position: 50% 18%;
}

.profile-image-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0;
  align-self: start;
  justify-self: center;
  border: 1px solid var(--outline);
  background: var(--surface-container);
  overflow: hidden;
}

.profile-image-frame::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.profile-image-frame img {
  object-position: 50% 12%;
}

.number {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.divider-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 56px;
}

.divider-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--outline);
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-image {
  aspect-ratio: 16 / 9;
  margin: 0;
  border-bottom: 1px solid var(--outline);
  background: #fffaf4;
  overflow: hidden;
}

.product-image-wide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 28px 32px 0;
  max-height: 520px;
  background:
    linear-gradient(180deg, #fffaf4 0%, #f3eee7 100%);
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.product-image-wide img {
  width: min(100%, 1040px);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(198, 198, 205, 0.8);
  border-bottom: 0;
  box-shadow: 0 18px 42px rgba(25, 28, 30, 0.12);
}

.product-phone-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 320px;
  max-height: 420px;
  margin: 0;
  padding: 28px 24px 0;
  border-bottom: 1px solid var(--outline);
  background:
    linear-gradient(135deg, rgba(186, 26, 26, 0.08), transparent 48%),
    var(--surface-container);
  overflow: hidden;
}

.product-phone-preview img {
  display: block;
  width: min(58%, 230px);
  height: auto;
  border: 1px solid var(--outline);
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 18px 36px rgba(25, 28, 30, 0.18);
}

.image-placeholder {
  min-height: 260px;
  border-bottom: 1px solid var(--outline);
  background:
    linear-gradient(135deg, rgba(0, 103, 128, 0.12), transparent 45%),
    repeating-linear-gradient(90deg, #e6e8ea 0, #e6e8ea 1px, transparent 1px, transparent 24px),
    var(--surface-container);
}

.product-body {
  padding: 36px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 8px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skills-section {
  padding-top: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--outline);
  border-left: 1px solid var(--outline);
}

.skill-group {
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  background: var(--surface);
}

.skill-group h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chips span {
  border: 1px solid var(--outline);
  background: var(--background);
  padding: 6px 9px;
  color: var(--muted);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.skill-chips span:first-child {
  border-color: rgba(0, 103, 128, 0.45);
  color: var(--accent);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d9dde2;
  border-radius: 4px;
  background: var(--background);
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
}

.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.notice {
  border-left: 3px solid var(--error);
  background: #fff;
  color: var(--error);
  padding: 14px 16px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 20px;
  color: #64748b;
  font-size: 12px;
}

.simple-page {
  max-width: 860px;
  padding-top: 96px;
}

.simple-page h1 {
  font-size: clamp(38px, 5vw, 54px);
}

.simple-page p,
.simple-page li {
  color: var(--muted);
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav .button {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .section {
    padding: 72px 0;
  }

  .grid-12 {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-3,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1;
  }

  .profile-card {
    max-width: none;
    justify-self: stretch;
  }

  .profile-image-frame {
    width: min(100%, 320px);
    justify-self: start;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }
}
