:root {
  --bg: #ffffff;
  --ink: #060606;
  --text: #323236;
  --muted: #8b8b92;
  --line: #e8e8ea;
  --soft: #f7f7f7;
  --panel: #fafafa;
  --dark: #000000;
  --radius-lg: 28px;
  --radius-md: 22px;
  --container: min(1320px, calc(100vw - 128px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.45;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.section-shell,
.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 128px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  color: #202024;
  font-size: 12px;
  font-weight: 500;
}

.site-nav a:not(.nav-button) {
  color: #242428;
}

.nav-button,
.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #9c9ca1;
  border-radius: 999px;
  background: #fff;
  color: #222226;
  font-size: 14px;
  font-weight: 500;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-button {
  min-width: 94px;
  padding: 0 20px;
}

.primary-button {
  min-height: 72px;
  padding: 0 30px;
  font-size: 18px;
}

.nav-button:hover,
.primary-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
  border-color: #111;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: #111;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  min-height: 535px;
  margin-top: 38px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fafafa;
}

.hero-copy {
  max-width: 720px;
  padding-left: 54px;
}

.hero h1 {
  max-width: 690px;
  margin: 0 0 28px;
  color: #333337;
  font-size: clamp(44px, 4.1vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 540px;
  margin: 0 0 36px;
  color: #97979d;
  font-size: 18px;
  line-height: 1.28;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 535px;
}

.hero-visual img {
  position: absolute;
  top: 34px;
  right: 0;
  width: 482px;
  height: 672px;
  max-width: none;
  display: block;
  object-fit: contain;
}

.services {
  padding-top: 132px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7b7b82;
  font-size: 11px;
  font-weight: 600;
}

.services > .section-label {
  display: flex;
  width: max-content;
  margin: 0 auto 32px;
}

.services h2,
.contact h2 {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.service-card {
  min-height: 290px;
  padding: 64px 24px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.service-card h3 {
  margin: 0 0 18px;
  color: #25252a;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
}

.service-card p {
  max-width: 330px;
  min-height: 80px;
  margin: 0 0 38px;
  color: #8c8c93;
  font-size: 14px;
  line-height: 1.56;
}

.service-card a {
  color: #222226;
  font-size: 12px;
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-top: 180px;
}

.about .section-label {
  margin-bottom: 26px;
}

.about h2,
.works h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 63px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.about p {
  max-width: 560px;
  margin: 76px 0 0 auto;
  color: #333337;
  font-size: 16px;
  line-height: 1.55;
}

.works {
  padding-top: 172px;
}

.works .section-label {
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 62px;
  margin-top: 38px;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.56 / 1;
  object-fit: cover;
  border-radius: 22px;
}

.project-card h3 {
  margin: 28px 0 8px;
  color: #25252a;
  font-size: 28px;
  font-weight: 600;
}

.project-card p {
  max-width: 620px;
  margin: 0 0 18px;
  color: #8e8e95;
  font-size: 14px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #77777e;
  font-size: 10px;
  font-weight: 600;
}

.contact {
  padding-top: 285px;
  padding-bottom: 168px;
}

.contact h2 span {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 90px;
  align-items: start;
  margin-top: 72px;
}

.next-step h3 {
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 600;
}

.next-step ol {
  max-width: 390px;
  margin: 0;
  padding: 0;
  color: #8b8b92;
  font-size: 14px;
  line-height: 1.72;
  list-style-position: inside;
}

.contact-form {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.contact-form label {
  display: block;
}

.contact-form label > span:not(.file-link span) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
select,
textarea {
  width: 100%;
  border: 1px dashed #d4d4d7;
  border-radius: 10px;
  background: #fff;
  color: #232327;
  font-size: 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input,
select {
  height: 60px;
  padding: 0 22px;
}

textarea {
  min-height: 170px;
  padding: 24px 22px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder,
select {
  color: #a0a0a6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.contact-form > label,
.form-row {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9999a0;
  font-size: 13px;
  cursor: pointer;
}

.file-link input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  min-width: 112px;
  padding: 0 23px;
  cursor: pointer;
}

.form-note {
  min-height: 18px;
  margin: 14px 0 0;
  color: #4f4f55;
  font-size: 12px;
}

.site-footer {
  background: var(--dark);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 148px 0 36px;
}

.footer-brand {
  width: max-content;
}

.footer-brand img {
  display: block;
  width: 292px;
  height: auto;
  filter: invert(1);
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 92px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

address {
  display: flex;
  flex-direction: column;
  gap: 19px;
  min-width: 190px;
  color: #c9c9c9;
  font-size: 13px;
  font-style: normal;
}

address span:first-child {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 80px;
  padding-top: 23px;
  border-top: 1px solid #1f1f1f;
  color: #8d8d8d;
  font-size: 12px;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 18px;
}

@media (max-width: 1100px) {
  :root {
    --container: min(100vw - 48px, 920px);
  }

  .site-header {
    height: 78px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav .nav-button {
    justify-self: start;
    margin-top: 6px;
  }

  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 58px 36px 0;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual img {
    top: 24px;
    right: 24px;
    width: min(482px, calc(100vw - 72px));
    height: auto;
  }

  .service-grid,
  .about,
  .project-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 28px;
  }

  .about p {
    margin: 0;
  }

  .contact-layout {
    gap: 42px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 32px, 560px);
  }

  .brand img {
    width: 118px;
  }

  .hero {
    margin-top: 18px;
    border-radius: 22px;
  }

  .hero-copy {
    padding: 42px 24px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  .primary-button {
    min-height: 58px;
    padding: 0 22px;
    font-size: 14px;
  }

  .hero-visual {
    min-height: 285px;
  }

  .hero-visual img {
    top: 18px;
    right: -18px;
    width: min(420px, calc(100vw - 18px));
  }

  .services,
  .about,
  .works {
    padding-top: 92px;
  }

  .services h2,
  .about h2,
  .works h2,
  .contact h2 {
    font-size: 38px;
  }

  .service-grid {
    margin-top: 34px;
  }

  .service-card {
    min-height: 220px;
    padding: 34px 22px 28px;
  }

  .service-card p {
    min-height: 0;
  }

  .project-grid {
    gap: 44px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .contact {
    padding-top: 115px;
    padding-bottom: 90px;
  }

  .contact-layout {
    margin-top: 48px;
  }

  .contact-form {
    padding: 20px;
    border-radius: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .footer-brand img {
    width: 210px;
  }

  .social-links {
    margin-top: 44px;
  }

  .footer-bottom {
    display: grid;
    margin-top: 24px;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .services h2,
  .about h2,
  .works h2,
  .contact h2 {
    font-size: 32px;
  }

  input,
  select {
    height: 54px;
  }

  .footer-bottom span:last-child {
    flex-wrap: wrap;
  }
}
