:root {
  --bg: #f7f7f2;
  --paper: #fffdfa;
  --paper-strong: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.11);
  --accent: #0e7490;
  --accent-strong: #155e75;
  --mint: #daf7e8;
  --sky: #dff6ff;
  --cream: #fff2cc;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, Manrope, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(14, 116, 144, 0.12), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(218, 247, 232, 0.9), transparent 30%),
    linear-gradient(135deg, rgba(16, 24, 40, 0.045) 25%, transparent 25%) 0 0 / 44px 44px,
    var(--bg);
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
}

.header {
  position: sticky;
  top: 18px;
  z-index: 50;
  width: min(calc(100% - 32px), var(--container));
  margin: 18px auto 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header.is-scrolled {
  background: rgba(255, 253, 250, 0.93);
  box-shadow: 0 20px 64px rgba(16, 24, 40, 0.13);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.brand img, .footer-brand img { width: 44px; height: 44px; }
.brand span { font-size: 21px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 760;
}

.nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(16, 24, 40, .72);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav a:hover { background: rgba(16, 24, 40, .06); color: var(--ink); transform: translateY(-1px); }
.nav .nav-contact {
  color: #fff;
  background: var(--ink);
  padding-inline: 20px;
  box-shadow: 0 16px 34px rgba(16, 24, 40, .18);
}
.nav .nav-contact:hover { background: var(--accent-strong); color: #fff; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #fff;
  transition: transform .22s ease, top .22s ease;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 29px; }
.menu-toggle.is-open span:first-child { top: 24px; transform: rotate(45deg); }
.menu-toggle.is-open span:last-child { top: 24px; transform: rotate(-45deg); }

.hero {
  width: min(calc(100% - 32px), var(--container));
  margin: 74px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 160px);
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  margin: 18px 0 0;
  max-width: 690px;
  font-size: clamp(52px, 5.8vw, 86px);
  line-height: .86;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.hero-line {
  margin: 34px 0 28px;
  width: min(100%, 560px);
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--ink), var(--ink)) 0 0 / 48% 100% no-repeat,
    linear-gradient(90deg, var(--sky), var(--mint), var(--cream));
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .08);
}

.hero-button, .cta a, .tariff-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.hero-button {
  min-height: 64px;
  padding: 0 26px 0 30px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 22px 55px rgba(16, 24, 40, .22);
}
.hero-button:hover, .cta a:hover, .tariff-card a:hover { transform: translateY(-3px); }
.hero-button svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hero-art {
  min-height: 570px;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(.2px);
  opacity: .9;
}
.hero-art::before {
  width: 370px;
  height: 370px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  transform: rotate(-18deg);
}
.hero-art::after {
  width: 260px;
  height: 260px;
  right: 24px;
  bottom: 46px;
  background: linear-gradient(135deg, rgba(255,242,204,.9), rgba(255,255,255,.65));
  border: 1px solid rgba(16, 24, 40, .08);
}

.art-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  min-height: 390px;
  border-radius: 38px;
  background: rgba(255, 253, 250, .88);
  border: 1px solid rgba(16, 24, 40, .12);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.browser-top {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(16, 24, 40, .08);
}
.browser-top i { width: 11px; height: 11px; border-radius: 50%; background: rgba(16, 24, 40, .2); }
.browser-top i:nth-child(2) { background: rgba(14, 116, 144, .28); }
.browser-top i:nth-child(3) { background: rgba(22, 163, 74, .28); }
.art-title {
  padding: 42px 32px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 950;
}
.art-pills { display: flex; gap: 10px; padding: 26px 32px 0; }
.art-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.art-pills span:last-child { background: var(--accent); }
.art-wave {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 38px;
  height: 92px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 60%, rgba(14, 116, 144, .28) 0 18px, transparent 19px),
    radial-gradient(circle at 48% 40%, rgba(16, 24, 40, .22) 0 26px, transparent 27px),
    radial-gradient(circle at 80% 58%, rgba(22, 163, 74, .22) 0 20px, transparent 21px),
    linear-gradient(135deg, rgba(16, 24, 40, .06), rgba(14, 116, 144, .06));
  border: 1px solid rgba(16, 24, 40, .08);
}

.art-card {
  position: absolute;
  z-index: 3;
  padding: 16px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .1);
  box-shadow: 0 16px 44px rgba(16, 24, 40, .14);
  font-size: 14px;
  font-weight: 900;
}
.card-a { left: 8px; top: 112px; transform: rotate(-8deg); }
.card-b { right: 8px; top: 98px; transform: rotate(8deg); }
.card-c { left: 52px; bottom: 92px; transform: rotate(6deg); }

.section {
  width: min(calc(100% - 32px), var(--container));
  margin: 120px auto 0;
}
.section-head {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 38px;
}
.section-head h2, .why-title h2, .cta h2 {
  margin: 12px 0 0;
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: .9;
  letter-spacing: -.075em;
}
.section-head p:last-child {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.section-head.narrow { grid-template-columns: 1fr; max-width: 720px; }

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}
.tariff-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--paper-strong);
  border: 1px solid rgba(16, 24, 40, .1);
  box-shadow: 0 18px 48px rgba(16, 24, 40, .07);
  position: relative;
  overflow: hidden;
}
.tariff-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 116, 144, .13), rgba(218, 247, 232, .7));
}
.tariff-card.is-wide { grid-column: span 2; min-height: 390px; }
.tariff-card.is-dark {
  grid-column: span 1;
  color: #fff;
  background: var(--ink);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 28px 72px rgba(16, 24, 40, .22);
}
.tariff-card.is-dark::after { background: linear-gradient(135deg, rgba(125, 211, 252, .28), rgba(167, 243, 208, .22)); }
.tariff-card.is-accent { background: linear-gradient(135deg, #fff, #effbff); }
.tariff-card.is-soft { background: linear-gradient(135deg, #fff, #fff7dc); }
.tariff-top { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; min-height: 116px; }
.tariff-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.35vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
  max-width: 13ch;
}
.tariff-card.is-wide h3, .tariff-card.is-dark h3 { max-width: 15ch; }
.price {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 24, 40, .07);
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.tariff-card.is-dark .price { background: rgba(255, 255, 255, .14); color: #fff; }
.tariff-card ul { position: relative; z-index: 1; margin-top: 26px; display: grid; gap: 12px; color: rgba(16, 24, 40, .72); font-weight: 640; line-height: 1.35; }
.tariff-card.is-dark ul { color: rgba(255, 255, 255, .78); }
.tariff-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.tariff-card li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}
.tariff-card.is-dark li::before { background: var(--mint); }
.tariff-card a {
  position: relative;
  z-index: 1;
  margin-top: auto;
  min-height: 50px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  width: fit-content;
  box-shadow: 0 15px 34px rgba(16, 24, 40, .14);
}
.tariff-card.is-dark a { background: #fff; color: var(--ink); }

.portfolio-section { margin-top: 140px; }
.portfolio-wall {
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr;
  grid-auto-rows: 210px;
  gap: 18px;
}
.work-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-xl);
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .1);
  box-shadow: 0 18px 48px rgba(16, 24, 40, .07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 65%;
  z-index: -1;
  background: radial-gradient(circle at 35% 30%, rgba(14,116,144,.2), transparent 40%), linear-gradient(135deg, rgba(218,247,232,.75), rgba(223,246,255,.72));
  transform: rotate(-6deg);
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 26px 70px rgba(16, 24, 40, .13); border-color: rgba(14, 116, 144, .35); }
.work-card span { color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.work-card strong { font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -.048em; max-width: none; overflow-wrap: normal; }
.work-large { grid-row: span 2; background: var(--ink); color: #fff; }
.work-large span { color: rgba(255, 255, 255, .62); }
.work-large::before { background: radial-gradient(circle at 70% 10%, rgba(125, 211, 252, .45), transparent 30%), radial-gradient(circle at 20% 80%, rgba(167, 243, 208, .4), transparent 28%); inset: 0; height: auto; transform: none; }
.work-tall { grid-row: span 2; }

.why-section { margin-top: 140px; }
.why-layout {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 48px;
  align-items: start;
  padding: 44px;
  border-radius: 44px;
  background: rgba(255,253,250,.72);
  border: 1px solid rgba(16, 24, 40, .09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.why-title { position: sticky; top: 122px; }
.why-list { display: grid; gap: 14px; }
.why-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
}
.mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 1), rgba(14, 116, 144, 1));
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-1px, -3px);
}
.why-list h3 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1; letter-spacing: -.045em; }

.cta {
  width: min(calc(100% - 32px), var(--container));
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(125,211,252,.28), transparent 32%),
    linear-gradient(135deg, #101828, #173044 78%, #155e75);
  box-shadow: 0 34px 90px rgba(16, 24, 40, .24);
}
.cta .eyebrow { color: rgba(255,255,255,.72); }
.cta h2 { max-width: 890px; }
.cta a { min-height: 58px; padding: 0 24px; background: #fff; color: var(--ink); white-space: nowrap; }

.footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 22px auto 28px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  padding: 24px;
  border-radius: 34px;
  background: rgba(255, 253, 250, .9);
  border: 1px solid rgba(16, 24, 40, .1);
}
.footer-main, .footer-details {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
}
.footer-main p { margin: 18px 0 0; max-width: 430px; color: var(--muted); line-height: 1.55; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand span { font-size: 20px; }
.footer-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 14px; color: rgba(16, 24, 40, .75); }
.footer-details p { margin: 0; line-height: 1.42; }
.footer-details p:nth-child(5), .footer-details p:nth-child(6), .footer-details p:nth-child(7) { grid-column: 1 / -1; }
.footer-details strong { color: var(--ink); }
.footer-details a { color: var(--accent-strong); font-weight: 800; }

@media (max-width: 1060px) {
  .tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 500px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-wall { grid-template-columns: 1fr 1fr; }
  .work-large, .work-tall { grid-row: span 1; }
  .why-layout { grid-template-columns: 1fr; }
  .why-title { position: static; }
}

@media (max-width: 780px) {
  body { background-size: auto, auto, 34px 34px, auto; }
  .header { top: 10px; width: calc(100% - 20px); margin-top: 10px; border-radius: 28px; min-height: 68px; }
  .brand span { font-size: 19px; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255,253,250,.96);
    border: 1px solid rgba(16, 24, 40, .11);
    box-shadow: 0 24px 70px rgba(16, 24, 40, .15);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav a { text-align: center; padding: 14px; }

  .hero { width: calc(100% - 24px); margin-top: 48px; gap: 26px; }
  .hero h1 { font-size: clamp(40px, 10.8vw, 52px); max-width: 100%; letter-spacing: -.082em; }
  .hero-line { height: 12px; margin: 26px 0 22px; }
  .hero-button { width: 100%; min-height: 60px; }
  .hero-art { min-height: 390px; }
  .art-panel { min-height: 300px; border-radius: 30px; }
  .art-title { padding: 30px 24px 0; font-size: clamp(36px, 12vw, 58px); }
  .art-pills { padding: 20px 24px 0; }
  .art-wave { left: 24px; right: 24px; bottom: 26px; height: 72px; }
  .card-a { left: 0; top: 76px; }
  .card-b { right: 14px; top: 58px; }
  .card-c { left: 20px; bottom: 50px; }

  .section { width: calc(100% - 24px); margin-top: 86px; }
  .section-head { margin-bottom: 26px; }
  .section-head p:last-child { font-size: 16px; }
  .tariff-grid { grid-template-columns: 1fr; gap: 14px; }
  .tariff-card, .tariff-card.is-wide, .tariff-card.is-dark { grid-column: auto; min-height: auto; padding: 22px; border-radius: 28px; }
  .tariff-top { min-height: auto; gap: 14px; }
  .tariff-card h3 { max-width: none; font-size: 30px; }
  .tariff-card ul { margin: 22px 0 26px; }
  .tariff-card a { width: 100%; }

  .portfolio-section, .why-section { margin-top: 92px; }
  .portfolio-wall { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .work-card { min-height: 190px; border-radius: 28px; }
  .work-card strong { max-width: none; }

  .why-layout { padding: 18px; border-radius: 32px; gap: 24px; }
  .why-list article { grid-template-columns: 42px 1fr; padding: 18px; border-radius: 22px; }
  .mark { width: 42px; height: 42px; border-radius: 14px; }
  .mark::after { inset: 12px; }
  .why-list h3 { font-size: 25px; }

  .cta { width: calc(100% - 24px); margin-top: 86px; grid-template-columns: 1fr; border-radius: 34px; }
  .cta a { width: 100%; }
  .footer { width: calc(100% - 24px); grid-template-columns: 1fr; border-radius: 28px; padding: 14px; }
  .footer-details { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { letter-spacing: -.085em; }
  .art-card { font-size: 12px; padding: 12px 14px; }
  .art-panel { min-height: 285px; }
  .section-head h2, .why-title h2, .cta h2 { font-size: 44px; }
  .tariff-card h3 { font-size: 28px; }
}
