:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #101114;
  --muted: #656b75;
  --line: #dde1e7;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --warm: #d89b31;
  --dark: #17191d;
  --shadow: 0 24px 70px rgba(16, 17, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(221, 225, 231, 0.8);
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(16px);
}

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

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

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 248, 250, 0.86) 54%, rgba(225, 239, 236, 0.92) 100%),
    url("assets/logo-rcodev.png") right 12% center / min(42vw, 480px) no-repeat;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  color: #3d424a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: #ffffff;
}

.button.secondary:hover {
  border-color: var(--ink);
}

.hero-panel {
  align-self: end;
  max-width: 460px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(221, 225, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel p {
  color: var(--muted);
  font-weight: 600;
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.12;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: end;
  background: var(--dark);
  color: #ffffff;
}

.intro p:last-child {
  color: #c5cad3;
  font-size: 1.08rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.service-card,
.legal-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 280px;
  padding: 28px;
}

.service-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--warm);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
}

.process {
  background: #ffffff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.timeline div {
  min-height: 210px;
  padding: 28px 22px 0 0;
  border-right: 1px solid var(--line);
}

.timeline div:last-child {
  border-right: 0;
}

.timeline strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

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

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 6vw, 76px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: var(--accent-dark);
}

.contact-band h2 {
  margin-bottom: 0;
}

.contact-band .section-kicker {
  color: #bce7df;
}

.contact-links {
  display: grid;
  gap: 12px;
  font-weight: 800;
  text-align: right;
}

.contact-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

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

.legal-hero {
  padding: clamp(56px, 8vw, 106px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 76px);
  color: #ffffff;
  background: var(--dark);
}

.legal-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
}

.legal-hero p:last-child {
  max-width: 820px;
  color: #c5cad3;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(34px, 5vw, 72px);
}

.legal-card,
.notice {
  padding: clamp(24px, 4vw, 36px);
}

.legal-card p,
.notice p {
  color: var(--muted);
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-list a,
.legal-card a {
  color: var(--accent-dark);
  font-weight: 800;
}

.notice {
  grid-column: 1 / -1;
  border-color: rgba(15, 118, 110, 0.3);
  background: #eef8f6;
}

@media (max-width: 900px) {
  .site-header,
  .footer,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .intro,
  .legal-content {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(231, 243, 240, 0.9)),
      url("assets/logo-rcodev.png") center 92% / min(78vw, 380px) no-repeat;
  }

  .hero-panel {
    align-self: auto;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline div {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline div:last-child {
    border-bottom: 0;
  }

  .contact-links {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 118px;
  }

  .nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(3rem, 22vw, 5.2rem);
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-card {
    min-height: auto;
  }

  .service-card span {
    margin-bottom: 36px;
  }
}
