:root {
  --bg: #f7f4ed;
  --surface: #ffffff;
  --ink: #101014;
  --muted: #666a73;
  --line: #e8e0d3;
  --lime: #c7ff4f;
  --green: #1f7a3a;
  --orange: #ff7a1a;
  --yellow: #ffd35a;
  --dark: #101014;
  --shadow: 0 24px 70px rgba(16, 16, 20, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Sora, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
svg, img { display: block; }

.rankio-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1320px, calc(100% - 40px));
  min-height: 92px;
  margin: 20px auto 0;
  padding: 18px 22px;
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.rankio-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 800;
  white-space: nowrap;
}
.rankio-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 8px rgba(16, 16, 20, 0.06);
}
.rankio-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: #1d1d20;
  font-size: 15px;
  font-weight: 700;
}
.rankio-nav a {
  position: relative;
  padding: 8px 0;
}
.rankio-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.rankio-nav a:hover::after,
.rankio-nav a.active::after { transform: scaleX(1); }
.header-cta,
.primary-btn,
.video-btn,
.text-link,
.pricing-grid a,
.blog-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 800;
}
.header-cta,
.primary-btn {
  padding: 0 22px;
  background: var(--ink);
  color: #ffffff;
}
.header-cta svg { width: 18px; fill: currentColor; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.rankio-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 142px) 0 clamp(58px, 8vw, 112px);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.section-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  box-shadow: 0 0 0 5px rgba(199, 255, 79, 0.25);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.98;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
}
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.2; }
.hero-content > p:not(.section-kicker),
.split-section p,
.section-heading p,
.service-tabs p,
.why-grid p,
.project-grid p,
.process-list p,
.pricing-grid p,
.pricing-grid li,
.testimonial-card span,
.blog-grid p,
.rankio-footer p {
  color: var(--muted);
}
.hero-content > p:not(.section-kicker) {
  max-width: 640px;
  margin-bottom: 34px;
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.video-btn {
  padding: 0 8px 0 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(16, 16, 20, 0.08);
}
.video-btn span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 12px;
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
  margin-top: 34px;
}
.hero-proof div,
.brand-strip,
.service-tabs,
.tab-panel article,
.project-grid article,
.pricing-grid article,
.testimonial-card,
.blog-grid article,
.image-panel,
.contact-form {
  border: 1px solid rgba(16, 16, 20, 0.08);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 16, 20, 0.07);
}
.hero-proof div { padding: 18px; border-radius: 18px; }
.hero-proof strong { display: block; font-size: 24px; }
.hero-proof span { color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 50px rgba(16, 16, 20, 0.16));
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px;
  border-radius: 28px;
}
.brand-strip span {
  color: #86806f;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.section {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}
.split-section.reverse { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); }
.image-panel {
  overflow: hidden;
  border-radius: 32px;
  background: #fff5dd;
}
.image-panel.accent { background: #eef8d9; }
.image-panel img { width: 100%; height: auto; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.check-grid span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-grid span::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  content: "✓";
  font-size: 13px;
}
.text-link { justify-content: flex-start; color: var(--green); }
.section-heading { max-width: 800px; margin-bottom: 36px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }

.service-tabs { padding: 18px; border-radius: 34px; }
.tab-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab-buttons button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tab-buttons button.active { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.tab-panel { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tab-panel.active { display: grid; }
.tab-panel article { min-height: 240px; padding: 28px; border-radius: 24px; }
.tab-panel span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 900;
}
.dark-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1320px) / 2));
  padding-left: max(20px, calc((100vw - 1320px) / 2));
  background: var(--dark);
  color: #ffffff;
}
.dark-section .section-kicker,
.dark-section h2 { color: #ffffff; }
.why-grid,
.project-grid,
.pricing-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-grid article {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
}
.why-grid strong { color: var(--lime); }
.project-grid article,
.blog-grid article {
  min-height: 290px;
  padding: 30px;
  border-radius: 28px;
}
.project-grid article { background: linear-gradient(135deg, #ffffff 0%, #fff2cf 100%); }
.project-grid span,
.blog-grid span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.process-list { display: grid; gap: 16px; margin-top: 26px; }
.process-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
}
.process-list span {
  grid-row: span 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}
.pricing-grid article { padding: 34px; border-radius: 28px; }
.pricing-grid article.featured {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-14px);
}
.pricing-grid article.featured p,
.pricing-grid article.featured li { color: rgba(255, 255, 255, 0.75); }
.pricing-grid strong { display: block; margin: 22px 0; font-size: 48px; line-height: 1; }
.pricing-grid ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.pricing-grid li::before { margin-right: 8px; color: var(--green); content: "✓"; }
.pricing-grid a,
.blog-grid a { justify-content: flex-start; color: var(--green); }
.testimonial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: center;
}
.testimonial-card { padding: 36px; border-radius: 30px; }
.testimonial-card p { color: var(--ink); font-size: 22px; font-weight: 700; }
.testimonial-card strong,
.testimonial-card span { display: block; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto clamp(70px, 8vw, 110px);
  padding: clamp(34px, 5vw, 60px);
  border-radius: 34px;
  background: var(--lime);
}
.cta-band h2 { margin: 0; }
.rankio-footer {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 50px max(20px, calc((100vw - 1320px) / 2));
  background: var(--ink);
  color: #ffffff;
}
.rankio-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; }
.rankio-footer .rankio-logo { background: var(--lime); color: var(--ink); }

.page-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 150px) 0 clamp(44px, 6vw, 76px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(44px, 5.8vw, 78px); }
.page-hero > p:not(.section-kicker) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
}
.page-hero-image {
  width: min(420px, 100%);
  height: auto;
  max-height: 300px;
  margin: 30px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(16, 16, 20, 0.12));
}
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr); gap: 42px; }
.contact-form { display: grid; gap: 16px; padding: 30px; border-radius: 28px; }
.form-row { display: grid; gap: 7px; }
label { font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fffaf4;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(199, 255, 79, 0.35);
}
textarea { resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { min-height: 24px; margin: 0; color: var(--muted); font-weight: 800; }
.form-status.success { color: var(--green); }
.form-status.error { color: #b42318; }

@media (max-width: 1080px) {
  .rankio-header { grid-template-columns: auto auto auto; }
  .nav-toggle { display: inline-block; }
  .rankio-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .rankio-nav.is-open { display: flex; }
  .rankio-nav a { padding: 13px; }
  .rankio-hero,
  .split-section,
  .split-section.reverse,
  .testimonial-section,
  .contact-layout { grid-template-columns: 1fr; }
  .why-grid,
  .project-grid,
  .pricing-grid,
  .blog-grid,
  .tab-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rankio-footer { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .rankio-header,
  .rankio-hero,
  .section,
  .brand-strip,
  .cta-band,
  .page-hero { width: min(100% - 28px, 680px); }
  .rankio-header {
    min-height: 72px;
    margin-top: 12px;
    padding: 12px;
  }
  .rankio-brand { font-size: 18px; }
  .rankio-logo { width: 40px; height: 40px; }
  .header-cta { display: none; }
  h1 { font-size: 48px; }
  .hero-proof,
  .why-grid,
  .project-grid,
  .pricing-grid,
  .blog-grid,
  .tab-panel,
  .brand-strip,
  .check-grid { grid-template-columns: 1fr; }
  .process-list div { grid-template-columns: 1fr; }
  .pricing-grid article.featured { transform: none; }
  .cta-band { align-items: stretch; flex-direction: column; }
}
