:root {
  --bg: #f8f8f8;
  --line: #e8e8e8;
  --panel: #eceff2;
  --white: #ffffff;
  --ink: #0a0d14;
  --muted: #5a6170;
  --accent: #7ba2c3;
  --shadow: 0 18px 42px rgba(10, 13, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 220px 220px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

.topbar-wrap {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.topbar {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  min-height: 78px;
  border-right: 1px solid var(--line);
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.brand-logo-crop {
  width: 130px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d7dde5;
  background: #fff;
  flex: 0 0 auto;
}

.brand-logo-crop img {
  width: 230px;
  height: 170px;
  object-fit: cover;
  object-position: 56% 38%;
  margin-top: -56px;
  margin-left: -52px;
}

.brand-text {
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 1px solid var(--line);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.hero-panel {
  margin-top: 0;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 500px;
}

.hero-image {
  background: url("assets/tile-1.jpg") center/cover no-repeat;
}

.hero-content {
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  color: #5d7086;
  font-weight: 700;
}

h1,
h2 {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.03;
  max-width: 16ch;
}

.hero-content p {
  color: #434a57;
  max-width: 52ch;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  width: fit-content;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 12px 18px;
}

.btn.dark {
  background: #07090d;
  color: #fff;
}

.split-section {
  margin-top: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.split-left,
.split-right {
  padding: clamp(22px, 4vw, 48px);
}

.split-right {
  border-left: 1px solid #dfe4ea;
}

.section-head p {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64738a;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head h2 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-item h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.03rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--muted);
  line-height: 1.55;
}

.right-title {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-bars {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.service-bars span {
  display: inline-block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.bar {
  height: 10px;
  background: #dae2ea;
  position: relative;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8baecb, #5f8eb4);
}

.latest-project {
  margin-top: 36px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: #f0f3f6;
}

.latest-left {
  padding: clamp(22px, 4vw, 46px);
  display: grid;
  align-content: center;
  gap: 16px;
}

.latest-left p {
  color: #4c5463;
  line-height: 1.7;
}

.latest-left h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.latest-right img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.projects-list {
  margin-top: 24px;
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #cfd7e0;
  background: #fff;
  color: #10151d;
  font-size: 1.2rem;
  cursor: pointer;
}

.slider-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.project-slider-wrap {
  margin-top: 18px;
  overflow: hidden;
}

.project-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, calc(33.333% - 11px));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.project-grid::-webkit-scrollbar {
  display: none;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  scroll-snap-align: start;
}

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  margin-top: 12px;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

.project-card p {
  margin-top: 7px;
  color: #4d5562;
  line-height: 1.55;
}

.clients-contact {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  border: 1px solid var(--line);
}

.clients {
  padding: clamp(22px, 4vw, 44px);
  background: #dfe4e9;
  border-right: 1px solid #cad4df;
}

.years {
  font-family: "Sora", sans-serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 1;
  color: #6fa7cf;
}

.years-text {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 2px;
  color: #5f6d80;
}

.clients h3 {
  margin-top: 24px;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
}

.clients p {
  margin-top: 10px;
  color: #404854;
  line-height: 1.7;
}

.contact-panel {
  background: #eef2f5;
  padding: clamp(22px, 4vw, 44px);
}

.contact-form {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  border: 0;
  border-bottom: 1px solid #c5ced8;
  padding: 14px 0;
  background: transparent;
  font: inherit;
  color: #1f2838;
}

.contact-form textarea {
  resize: vertical;
}

.contact-mini {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  color: #404854;
}

.admin-section {
  margin-top: 36px;
  border: 1px solid var(--line);
  background: #f5f7f9;
  padding: clamp(22px, 4vw, 36px);
}

.admin-card {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #dde3e9;
  padding: 18px;
}

.admin-text {
  font-weight: 700;
}

.admin-subtitle {
  margin-top: 14px;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.login-form,
.upload-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.login-form label,
.upload-form label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 0.92rem;
}

.login-form input,
.upload-form input,
.upload-form textarea {
  border: 1px solid #cad4df;
  padding: 11px 12px;
  border-radius: 0;
  font: inherit;
  background: #fff;
}

.login-form button,
.upload-form button,
.admin-bar button {
  width: fit-content;
  border: 0;
  background: #06080c;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.upload-form button.secondary {
  background: #7f8a99;
}

.admin-list-wrap {
  margin-top: 20px;
  border-top: 1px solid #dde3e9;
  padding-top: 16px;
}

.admin-project-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.admin-project-item {
  border: 1px solid #dde3e9;
  background: #f9fbfc;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.admin-project-title {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.admin-project-desc {
  color: #4c5563;
  line-height: 1.45;
}

.admin-project-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-project-actions button {
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

.admin-project-actions .edit-btn {
  background: #1d6fa0;
}

.admin-project-actions .delete-btn {
  background: #a02222;
}

.note {
  margin-top: 10px;
  color: #5f6a79;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: #697486;
}

@media (max-width: 980px) {
  .hero-panel,
  .latest-project,
  .split-section,
  .clients-contact {
    grid-template-columns: 1fr;
  }

  .split-right {
    border-left: 0;
    border-top: 1px solid #dfe4ea;
  }

  .clients {
    border-right: 0;
    border-bottom: 1px solid #cad4df;
  }

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

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 50%;
    min-height: 56px;
  }

  .project-grid {
    grid-auto-columns: minmax(260px, calc(50% - 8px));
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    display: block;
  }

  .nav-links a {
    flex: 1 1 100%;
  }

  .projects-head {
    align-items: center;
  }

  .project-grid {
    grid-auto-columns: 85%;
  }
}
