:root {
  --ink: #171326;
  --ink-soft: #5f5a6d;
  --violet: #35105c;
  --violet-dark: #24043f;
  --blue: #1789e8;
  --blue-bright: #25a3f4;
  --lavender: #eadbff;
  --paper: #f8f6f2;
  --white: #ffffff;
  --line: rgba(23, 19, 38, 0.14);
  --radius: 26px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 40px), var(--max));
  margin: 18px auto 0;
  padding: 10px 10px 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: rgba(248,246,242,.88);
  box-shadow: 0 14px 45px rgba(36,4,63,.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand img { width: 47px; height: 38px; object-fit: contain; }
.brand span { display: grid; }
.brand strong { text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; }
.brand small { color: var(--ink-soft); font-size: .59rem; letter-spacing: .18em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 30px; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.site-header nav a:hover { color: var(--blue); }
.header-instagram {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(53,16,92,.18);
}
.instagram-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: radial-gradient(circle at 30% 105%, #ffd600 0 18%, #ff7a00 28%, #ff0169 50%, #d300c5 72%, #7638fa 100%);
}
.instagram-icon svg { width: 23px; height: 23px; fill: currentColor; }
.header-cta { justify-self: end; padding: 12px 18px; border-radius: 12px; background: var(--violet); color: white; font-size: .84rem; font-weight: 800; }

main { overflow: hidden; }
.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: 780px;
  margin: -76px auto 0;
  padding: 180px 0 70px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}
.eyebrow, .section-label {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .2em;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 7.2vw, 7rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.hero h1 em { display: block; color: var(--violet); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-text { max-width: 580px; color: var(--ink-soft); font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 42px; }
.button {
  min-height: 52px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.button-primary { color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 16px 34px rgba(53,16,92,.22); }
.button-secondary { border: 1px solid var(--line); background: transparent; }
.hero-facts { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); list-style: none; border-top: 1px solid var(--line); }
.hero-facts li { padding: 20px 16px 0 0; display: grid; gap: 6px; }
.hero-facts strong { font-size: .92rem; }
.hero-facts span { color: var(--ink-soft); font-size: .72rem; line-height: 1.4; }
.hero-visual { position: relative; min-height: 590px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% -20% -4% 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,163,244,.28), rgba(234,219,255,.45) 48%, transparent 70%);
  filter: blur(18px);
}
.hero-image { position: absolute; inset: 0 0 35px 60px; overflow: hidden; border-radius: 220px 220px 30px 30px; box-shadow: 0 34px 80px rgba(36,4,63,.24); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-dark);
  box-shadow: 0 20px 45px rgba(36,4,63,.28);
}
.hero-mark img { width: 112px; }
.hero-caption { position: absolute; right: -22px; bottom: 70px; padding: 17px 20px; display: grid; gap: 3px; color: white; background: var(--blue); border-radius: 14px; transform: rotate(-3deg); }
.hero-caption span { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.hero-caption strong { font-size: 1.02rem; }

.intro, .services, .process, .contact {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0;
}
.intro { display: grid; grid-template-columns: .55fr 1.45fr; gap: 50px; border-top: 1px solid var(--line); }
.intro h2, .section-heading h2, .contact h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.05em;
}
.intro p:not(.section-label) { max-width: 760px; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.7; }
.section-heading { display: grid; grid-template-columns: 1fr 2.5fr; gap: 30px; align-items: start; margin-bottom: 50px; }
.section-heading h2 { margin: -10px 0 0; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-card-dark { color: white; background: var(--violet-dark); }
.service-image { position: relative; height: 430px; margin: 12px; overflow: hidden; border-radius: 18px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-image span { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-weight: 900; }
.service-copy { padding: 28px 34px 36px; }
.tag { color: var(--blue); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.service-copy h3 { margin-bottom: 18px; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1; letter-spacing: -.04em; }
.service-copy > p:not(.tag), .service-copy li { color: var(--ink-soft); line-height: 1.65; }
.service-card-dark .service-copy > p:not(.tag), .service-card-dark li { color: rgba(255,255,255,.7); }
.service-copy ul { padding-left: 18px; margin-bottom: 0; }

.references { padding: 110px max(20px, calc((100vw - var(--max))/2)); color: white; background: var(--violet-dark); }
.section-heading-light { grid-template-columns: .65fr 1.7fr .65fr; }
.section-heading-light a { justify-self: end; color: var(--lavender); font-weight: 800; }
.reference-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 16px; }
.reference-grid .reference-item {
  position: relative;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  color: white;
  border: 0;
  border-radius: 20px;
  background: #171326;
  cursor: zoom-in;
}
.reference-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.reference-grid .reference-item:hover img,
.reference-grid .reference-item:focus-visible img { transform: scale(1.025); }
.reference-grid .reference-item > span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(23,19,38,.78);
  font-size: .76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.reference-grid .reference-item:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 4px; }
.gallery-hint { margin: 16px 0 0; color: rgba(255,255,255,.58); font-size: .72rem; text-align: right; }

.gallery-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  color: white;
  border: 0;
  border-radius: 20px;
  background: #171326;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.gallery-dialog::backdrop { background: rgba(11,7,18,.88); backdrop-filter: blur(6px); }
.gallery-dialog figure { margin: 0; }
.gallery-dialog img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 20px 20px 0 0; }
.gallery-dialog figcaption { padding: 16px 20px 18px; font-weight: 800; }
.gallery-close,
.gallery-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(23,19,38,.82);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.gallery-close { top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; font-size: 1.65rem; }
.gallery-nav { top: 50%; width: 46px; height: 60px; border-radius: 14px; font-size: 2.2rem; transform: translateY(-50%); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.process-list { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,1fr); list-style: none; border-top: 1px solid var(--line); }
.process-list li { min-height: 250px; padding: 30px 30px 20px 0; border-right: 1px solid var(--line); }
.process-list li + li { padding-left: 30px; }
.process-list li:last-child { border-right: 0; }
.process-list span { color: var(--blue); font-size: .72rem; font-weight: 900; }
.process-list h3 { margin: 65px 0 12px; font-size: 1.3rem; }
.process-list p { color: var(--ink-soft); line-height: 1.55; }

.contact {
  margin-bottom: 60px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  color: white;
  border-radius: 34px;
  background:
    radial-gradient(circle at 0 100%, rgba(37,163,244,.4), transparent 37%),
    linear-gradient(135deg, var(--violet-dark), var(--violet));
}
.contact .section-label { color: var(--blue-bright); }
.contact h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.contact-copy > p:not(.section-label) { color: rgba(255,255,255,.72); line-height: 1.7; font-size: 1.08rem; }
.contact-links { margin-top: 32px; display: grid; gap: 12px; }
.contact-links a { width: fit-content; border-bottom: 1px solid rgba(255,255,255,.3); font-weight: 800; }
.contact form { padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); }
.contact label { margin-bottom: 18px; display: grid; gap: 8px; font-size: .78rem; font-weight: 800; }
.contact input, .contact textarea { width: 100%; padding: 13px 14px; color: white; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(12,3,23,.35); outline: none; }
.contact input:focus, .contact textarea:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(37,163,244,.2); }
.contact textarea { resize: vertical; }
.contact button { width: 100%; }
.contact form small { display: block; margin-top: 12px; color: rgba(255,255,255,.55); text-align: center; line-height: 1.4; }

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 30px 0 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}
.footer-brand img { width: 40px; height: 32px; }
.footer-contact {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.footer-contact a {
  min-height: 40px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.55);
  color: var(--ink);
  font-weight: 700;
  transition: border-color .2s ease, transform .2s ease;
}
.footer-contact a:hover { border-color: rgba(23,137,232,.55); transform: translateY(-2px); }
.contact-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact .instagram-icon { width: 24px; height: 24px; border-radius: 7px; }
.footer-contact .instagram-icon svg { width: 17px; height: 17px; }
.footer-meta { justify-self: end; display: flex; gap: 18px; }
.mobile-actions { display: none; }

.legal {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: 150px 0 90px;
}
.legal h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); letter-spacing: -.06em; }
.legal article { padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.legal h2 { margin: 34px 0 10px; font-size: 1.25rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); line-height: 1.75; }
.legal a { color: var(--violet); text-decoration: underline; }
.legal-back { display: inline-flex; margin-bottom: 26px; font-weight: 800; }
.legal-wide { width: min(calc(100% - 40px), 1050px); }
.legal-wide h1 { max-width: 980px; margin-bottom: 18px; font-size: clamp(3.2rem, 7vw, 6.2rem); line-height: .94; }
.legal-intro { max-width: 760px; margin-bottom: 38px; font-size: 1.12rem; }
.legal-toc {
  margin-bottom: 24px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}
.legal-toc a {
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}
.legal-status { margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.agb-content section { scroll-margin-top: 30px; }
.agb-content h2 { margin-top: 48px; color: var(--violet); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; }
.agb-content h3 { margin: 0 0 8px; font-size: 1rem; }
.agb-content p, .agb-content li { color: var(--ink-soft); line-height: 1.75; }
.agb-content ul { margin: 14px 0 0; padding-left: 22px; }
.agb-content li + li { margin-top: 10px; }
.legal-note {
  margin: 26px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: rgba(23,137,232,.08);
}
.legal-note p { margin-bottom: 0; }
.legal-footer-nav { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; font-weight: 800; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 160px; }
  .hero-visual { min-height: 620px; }
  .intro, .section-heading { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .reference-grid { grid-template-columns: 1.2fr .8fr; }
  .reference-grid .reference-item:last-child { grid-column: span 2; min-height: 440px; }
  .process-list { grid-template-columns: repeat(2,1fr); }
  .process-list li:nth-child(2) { border-right: 0; }
  .contact { grid-template-columns: 1fr; padding: 50px; }
  footer { grid-template-columns: 1fr auto; }
  .footer-contact { grid-column: 1 / -1; grid-row: 2; justify-self: start; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 24px); margin-top: 10px; padding-left: 12px; }
  .site-header .brand strong { font-size: .75rem; }
  .site-header .brand small { font-size: .48rem; }
  .site-header .brand img { width: 40px; height: 32px; }
  .header-instagram { width: 34px; height: 34px; }
  .header-instagram .instagram-icon { width: 30px; height: 30px; }
  .header-cta { padding: 10px 12px; font-size: .72rem; }
  .hero, .intro, .services, .process { width: calc(100% - 32px); }
  .hero { margin-top: -70px; padding-top: 145px; gap: 42px; }
  .hero h1 { font-size: 4.2rem; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { grid-template-columns: 80px 1fr; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-visual { min-height: 450px; order: -1; }
  .hero-image { inset: 0 0 28px 26px; border-radius: 150px 150px 22px 22px; }
  .hero-mark { width: 105px; height: 105px; }
  .hero-mark img { width: 78px; }
  .hero-caption { right: -7px; bottom: 55px; }
  .intro, .services, .process { padding: 80px 0; }
  .intro h2, .section-heading h2 { font-size: 2.85rem; }
  .service-image { height: 340px; }
  .service-copy { padding: 22px; }
  .references { padding-top: 80px; padding-bottom: 80px; }
  .section-heading-light { grid-template-columns: 1fr; }
  .section-heading-light a { justify-self: start; }
  .reference-grid { grid-template-columns: 1fr; }
  .reference-grid .reference-item, .reference-grid .reference-item:last-child { min-height: 430px; grid-column: auto; }
  .gallery-hint { text-align: left; }
  .gallery-nav { width: 40px; height: 52px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-list h3 { margin: 30px 0 8px; }
  .contact { width: calc(100% - 24px); margin-bottom: 30px; padding: 36px 22px; gap: 40px; border-radius: 24px; }
  .contact h2 { font-size: 3.15rem; }
  .contact form { padding: 18px; }
  footer { width: calc(100% - 32px); padding-bottom: 95px; grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; grid-row: auto; display: grid; justify-self: stretch; justify-content: stretch; }
  .footer-contact a { width: 100%; }
  .footer-meta { justify-self: start; flex-wrap: wrap; }
  .mobile-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 16px;
    background: rgba(36,4,63,.93);
    box-shadow: 0 18px 50px rgba(36,4,63,.3);
    backdrop-filter: blur(14px);
  }
  .mobile-actions a { padding: 11px 4px; color: white; border-radius: 10px; text-align: center; font-size: .7rem; font-weight: 900; }
  .mobile-actions a:last-child { background: var(--blue); }
  .legal { padding-top: 120px; }
  .legal article { padding: 24px; }
  .legal-wide h1 { font-size: 3.25rem; overflow-wrap: anywhere; }
  .legal-toc { padding: 12px; }
  .legal-toc a { flex: 1 1 140px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reference-grid img { transition: none; }
}
