:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #696966;
  --line: #deded8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --dark: #111111;
  --accent: #246bfe;
  --accent-soft: rgba(36, 107, 254, 0.12);
  --max: 1130px;
  --pad: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.section-pad {
  padding: clamp(76px, 10vw, 150px) 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(247, 247, 244, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(220px, 54vw);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  width: min(1460px, calc(100% - var(--pad) * 2));
  grid-template-columns: minmax(720px, 1fr) minmax(340px, 0.7fr);
  gap: clamp(70px, 8vw, 130px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #9a9a94;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(46px, 4.9vw, 78px);
  line-height: 0.94;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 13px;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 920px;
  color: var(--muted);
  font-size: clamp(17px, 1.28vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.button-ghost {
  border-color: var(--line);
  color: var(--muted);
}

.button-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  min-height: 320px;
  width: min(100%, 560px);
  justify-self: end;
  transform: translateX(44px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 34%, rgba(36, 107, 254, 0.22), transparent 26%),
    linear-gradient(145deg, #d9d9d5, #eeeeeb);
}

#data-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visual-card {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 148px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 70px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(16px);
}

.visual-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.visual-card strong {
  font-size: 31px;
  line-height: 1;
}

.visual-card-top {
  top: 15%;
  right: 7%;
}

.visual-card-bottom {
  bottom: 14%;
  left: 4%;
}

.scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #a2a29d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-dot {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}

.scroll-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.section {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(44px, 7vw, 74px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.service-item {
  min-height: 285px;
  padding: clamp(32px, 5vw, 50px) clamp(26px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service-item p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
}

.service-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-link::after {
  content: "↗";
  margin-left: 10px;
  color: var(--accent);
}

.service-icon {
  position: relative;
  width: 34px;
  height: 34px;
  margin-bottom: 34px;
}

.service-icon::before,
.service-icon::after,
.service-icon span {
  content: "";
  position: absolute;
  border-color: var(--ink);
}

.service-icon::before {
  inset: 5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.service-icon::after {
  right: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.service-icon span {
  left: 11px;
  top: 11px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.service-icon-mail::before {
  border-radius: 2px;
}

.service-icon-mail span {
  width: 18px;
  height: 10px;
  border: 0;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.service-icon-cart::before {
  inset: 11px 5px 8px;
  border-radius: 0;
}

.service-icon-cart span {
  top: 25px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: 15px 0 0 var(--ink);
}

.service-icon-plan::before {
  border-radius: 0;
  transform: rotate(45deg);
}

.service-icon-plan span {
  left: 15px;
  top: 1px;
  width: 2px;
  height: 32px;
  border: 0;
  background: var(--accent);
}

.projects-section {
  padding-top: clamp(86px, 11vw, 170px);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 36px;
  align-items: center;
  min-height: 156px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.project-meta {
  margin-bottom: 8px;
  color: #aaa9a2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-row h3 {
  margin-bottom: 6px;
}

.project-row p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.project-row a {
  justify-self: end;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.project-row a::after {
  content: "↗";
  margin-left: 12px;
  color: var(--accent);
}

.results-section {
  background: var(--dark);
  color: white;
}

.results-intro {
  max-width: 760px;
  margin-bottom: 62px;
}

.results-intro p:not(.eyebrow) {
  max-width: 630px;
  margin-top: 22px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.results-intro h2 span {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.stat-item {
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.stat-item strong,
.stat-item span {
  display: inline-block;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: 0;
}

.stat-item span {
  color: var(--accent);
  font-weight: 800;
}

.stat-item p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  min-height: 310px;
}

.about-orbit {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    #ddddda;
  background-size: 34px 34px;
}

.about-panel {
  position: absolute;
  inset: auto 4% 10% auto;
  display: grid;
  width: min(260px, 65%);
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(14px);
}

.about-panel span {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-panel span:last-child {
  border-bottom: 0;
  color: var(--accent);
}

.about-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.about-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(34px, 3.45vw, 46px);
}

.about-copy h2 span {
  display: block;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 24px;
}

.contact-copy p {
  max-width: 430px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 26px;
}

.spam-check {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form span {
  color: #9a9a94;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-form button {
  justify-self: start;
}

.site-footer {
  padding: 26px 0;
  color: #8c8c86;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.thanks-inner {
  max-width: 760px;
}

.thanks-inner h1 {
  margin-bottom: 28px;
}

.thanks-inner .button {
  margin-top: 28px;
}

.service-page {
  padding-top: 68px;
}

.service-hero {
  border-bottom: 1px solid var(--line);
}

.service-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  gap: clamp(72px, 9vw, 150px);
  align-items: center;
}

.service-page-grid > * {
  min-width: 0;
}

.service-page h1 {
  max-width: 640px;
  font-size: clamp(42px, 4.15vw, 62px);
  line-height: 0.98;
}

.service-page h1 span {
  display: block;
}

.service-page-copy {
  display: grid;
  gap: 34px;
  align-content: center;
}

.service-page-copy .lead {
  max-width: 560px;
  font-size: clamp(17px, 1.15vw, 19px);
}

.service-page-copy .button {
  width: min(100%, 430px);
  justify-self: start;
}

.service-detail {
  border-bottom: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-grid article {
  min-height: 280px;
  padding: clamp(30px, 4vw, 46px);
  background: var(--bg);
}

.detail-grid h2 {
  margin-bottom: 22px;
  font-size: clamp(26px, 3vw, 36px);
}

.detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 54px;
  }

  .lead {
    max-width: 760px;
  }

  .hero-visual {
    transform: translateX(18px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .service-page-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .about-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page-grid {
    gap: 40px;
    align-items: start;
  }

  .service-page-copy {
    gap: 28px;
  }
}

@media (max-width: 760px) {
  section[id] {
    scroll-margin-top: 132px;
  }

  .site-header {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .brand {
    width: min(196px, 62vw);
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    font-size: 10px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding-top: 148px;
  }

  .hero-grid {
    gap: 42px;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.18em;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(38px, 11.5vw, 46px);
    line-height: 0.98;
  }

  h1 span {
    white-space: normal;
  }

  h2 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.05;
  }

  .lead {
    font-size: 16.5px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .about-copy h2 span {
    white-space: normal;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .services-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(odd) {
    border-right: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 28px 0;
  }

  .project-meta {
    line-height: 1.5;
  }

  .project-row a {
    justify-self: start;
    white-space: normal;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .about-visual {
    display: none;
  }

  .results-intro {
    margin-bottom: 42px;
  }

  .stat-item p {
    max-width: none;
  }

  .about-grid {
    gap: 42px;
  }

  .about-copy {
    order: 1;
  }

  .contact-grid {
    gap: 34px;
  }

  .contact-form button {
    justify-self: stretch;
  }

  .service-page h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.8vw, 44px);
    line-height: 1.02;
  }

  .service-page-copy .lead {
    font-size: 16.5px;
  }

  .detail-grid article {
    min-height: auto;
  }

  .visual-card {
    min-width: 130px;
  }

  .visual-card strong {
    font-size: 26px;
  }

  .scroll-hint {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --pad: 18px;
  }

  .section-pad {
    padding: 64px 0;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-visual,
  .about-visual {
    min-height: 250px;
  }

  .service-item {
    min-height: auto;
    padding: 30px 0;
  }

  .visual-card {
    min-width: 112px;
    padding: 12px 14px;
  }

  .visual-card span {
    font-size: 9px;
  }

  .visual-card strong {
    font-size: 24px;
  }

  .visual-card-top {
    top: 8%;
    right: 0;
  }

  .visual-card-bottom {
    bottom: 6%;
    left: 0;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 36px;
  }

  .service-page h1 {
    font-size: 34px;
  }

  .button {
    padding: 0 16px;
    font-size: 11px;
  }
}
