:root {
  --bg: #d5d7db;
  --paper: #f7f8fb;
  --ink: #1c2140;
  --blue: #394ab7;
  --red: #ff3844;
  --line: #c3c6d4;
  --ok: #0a7f3f;
  --error: #bb1c26;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, #ebedf2 0, var(--bg) 45%, #c9ccd3 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, #d5d7db 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.topbar-inner {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 58px;
  height: 58px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #d9dbe0;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--blue) 18%, transparent);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-circle {
  position: absolute;
  inset: 0;
}

.brand-circle.red {
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 55% 50%, 55% 100%, 0 100%);
}

.brand-circle.blue {
  background: var(--blue);
  clip-path: polygon(60% 45%, 100% 45%, 100% 100%, 60% 100%);
}

.brand-t,
.brand-f {
  position: absolute;
  background: #d9dbe0;
}

.brand-t {
  left: 15%;
  top: 24%;
  width: 70%;
  height: 15%;
  border-radius: 90px;
}

.brand-f {
  left: 41%;
  top: 24%;
  width: 15%;
  height: 76%;
  border-radius: 90px;
}

.brand-text strong {
  display: block;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.03em;
  color: var(--blue);
  line-height: 1;
}

.brand-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--red);
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.section {
  padding: 5rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-shape-1 {
  width: 360px;
  height: 360px;
  left: -100px;
  top: 30px;
  background: color-mix(in srgb, var(--red) 18%, transparent);
}

.hero-shape-2 {
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: 20px;
  background: color-mix(in srgb, var(--blue) 22%, transparent);
}

.kicker {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--blue) 12%, white);
  color: var(--blue);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Archivo Black", sans-serif;
}

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

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.05;
}

.lead {
  max-width: 57ch;
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 12px;
  min-height: 45px;
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #2f3e9c;
}

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--blue) 10%, white);
}

.btn-nav {
  background: var(--red);
  color: #fff;
  min-height: 39px;
}

.hero-points {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.hero-points span {
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: color-mix(in srgb, white 70%, transparent);
}

.hero-card,
.legal-card,
.contact-form,
.project-card,
.service-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, #ffffff 86%, transparent);
  border-radius: 18px;
  box-shadow: 0 14px 35px color-mix(in srgb, var(--blue) 12%, transparent);
}

.hero-card {
  padding: 1.3rem 1.2rem;
}

.hero-card ul,
.legal-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

.cards-grid,
.projects-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 1.2rem;
  transition: transform 0.2s ease;
}

.service-visual {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.service-card:hover {
  transform: translateY(-3px);
}

.section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 4%, transparent), transparent 70%);
}

.section-intro {
  max-width: 63ch;
}

.project-card {
  overflow: hidden;
}

.project-visual {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.visual-1 {
  background: linear-gradient(140deg, #98b8ff, #3e5dcf 45%, #2a3262);
}

.visual-2 {
  background: linear-gradient(140deg, #ff6b73, #d1373f 45%, #75222b);
}

.visual-3 {
  background: linear-gradient(140deg, #6de0cb, #1aa29c 45%, #0d5f5c);
}

.project-body {
  padding: 1rem;
}

.small-text {
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.legal-card {
  padding: 1.2rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--blue);
  text-decoration: underline;
  font-weight: 700;
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-list {
  display: grid;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-list a {
  color: var(--blue);
}

.contact-form {
  padding: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

label {
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 43px;
  font: inherit;
  padding: 0.58rem 0.7rem;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-status {
  margin: 0.5rem 0 0;
  font-weight: 700;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--error);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav a:not(.btn-nav) {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    min-height: 72px;
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.8rem;
  }
}
