@font-face {
  font-family: 'Rawline';
  src: url('../assets/fonts/rawline-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rawline';
  src: url('../assets/fonts/rawline-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rawline';
  src: url('../assets/fonts/rawline-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0a0a0c;
  --ink-soft: #49494f;
  --black: #0a0a0c;
  --black-soft: #121216;
  --black-card: #17171c;
  --paper: #f6f6f6;
  --paper-soft: #fbfbfb;
  --white: #ffffff;
  --pink: #f53675;
  --pink-strong: #ff4081;
  --purple: #651fff;
  --line: #dedfe5;
  --line-dark: #ffffff24;
  --green: #178747;
  --yellow: #9a6800;
  --red: #c52a4f;
  --radius: 18px;
  --radius-small: 12px;
  --container: 1920px;
  --header-height: 78px;
  --space-heading: 24px;
  --space-section-content: 48px;
  --space-card-padding: 30px;
  --space-card-content: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: 'Rawline', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font-family: 'Rawline', Arial, sans-serif;
}

button,
input,
textarea {
  font-size: inherit;
}

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

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

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - clamp(48px, 6vw, 128px)), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(44px, 4.5vw, 64px);
}

.section_dark,
.cases-section,
.process-section,
.contact-section {
  color: var(--white);
  background: var(--black);
}

.section h2 {
  max-width: 880px;
  margin: 0;
  padding-left: 0;
  text-indent: 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section p {
  margin-top: 0;
}

.section-label,
.eyebrow {
  margin: 0 0 var(--space-heading);
  padding-left: 0;
  text-indent: 0;
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label + h2 {
  justify-self: start;
}

.section-label_light {
  color: #ff7aa6;
}

.section-head {
  display: grid;
  gap: var(--space-heading);
  margin-bottom: var(--space-section-content);
}

.section-head > .section-label {
  margin-bottom: 0;
}

.section-head > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 20px;
}

.section_dark .section-head > p:last-child,
.cases-section .section-head > p:last-child {
  color: #ffffffad;
}

.section-head_compact {
  margin-bottom: var(--space-section-content);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 180%, #651fff2b 0, transparent 40%),
    linear-gradient(135deg, #0a0a0c 0%, #121216 55%, #170912 100%);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand img {
  width: 142px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  color: #ffffffb8;
  font-size: 15px;
}

.desktop-nav a {
  transition: color 150ms ease;
}

.desktop-nav a:hover {
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  color: var(--white);
  background: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 10px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  background: var(--pink-strong);
  border-color: var(--pink-strong);
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b898ff;
  outline-offset: 3px;
}

.button_small {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 15px;
}

.button_secondary {
  color: var(--white);
  background: transparent;
  border-color: #ffffff4d;
}

.button_secondary:hover {
  background: #ffffff12;
  border-color: #ffffffa8;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 28%, #651fff2b 0, transparent 34%),
    linear-gradient(135deg, #0a0a0c 0%, #121216 55%, #170912 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 4.5vw, 64px);
}

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

.hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(54px, 5.2vw, 88px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.hero h1 span {
  color: var(--pink);
}

.hero-copy {
  max-width: 760px;
  margin: var(--space-heading) 0 0;
  color: #ffffffbd;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.45;
}

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

.hero-media {
  position: relative;
  width: min(112%, 900px);
  margin-inline: auto;
  justify-self: center;
  transform: translateX(clamp(-48px, -2.5vw, -24px));
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 3px solid #9255e6c7;
  border-radius: clamp(18px, 1.5vw, 28px);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  will-change: transform;
}

.hero-glow_one {
  right: -140px;
  bottom: -250px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #f536752e 0, transparent 68%);
  animation: hero-glow-pink 10s ease-in-out infinite alternate;
}

.hero-glow_two {
  top: 18%;
  right: 4%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #651fff38 0, transparent 70%);
  animation: hero-glow-purple 8s ease-in-out infinite alternate;
}

@keyframes hero-glow-pink {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-24vw, -11vh, 0) scale(1.16);
  }
}

@keyframes hero-glow-purple {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  55% {
    transform: translate3d(-18vw, 14vh, 0) scale(1.22);
  }

  100% {
    transform: translate3d(-7vw, 23vh, 0) scale(0.96);
  }
}

.problem-section {
  background: var(--paper);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  gap: 80px;
  align-items: start;
}

.problem-list {
  border-top: 1px solid var(--line);
}

.problem-item {
  display: grid;
  min-height: 96px;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  align-items: center;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.problem-item > span {
  color: var(--pink);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

.capability-card > span,
.result-row > span,
.why-list article > span,
.step-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--pink);
  background: #f536750a;
  border: 1px solid #f5367566;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

.problem-item p {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.retouch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.68fr);
  gap: clamp(54px, 7vw, 110px);
  align-items: start;
}

.retouch-copy h2 {
  max-width: 860px;
}

.section .section-intro {
  max-width: 680px;
  margin: var(--space-heading) 0 0;
  padding-top: 0;
  color: #ffffffad;
  font-size: 20px;
}

.retouch-preservation {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
}

.retouch-visuals {
  display: grid;
  width: min(100%, 540px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-self: end;
}

.retouch-visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.retouch-visual_source {
  width: calc(50% - 6px);
  grid-column: 1 / -1;
  justify-self: center;
}

.retouch-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #eeeeef;
  border: 1px solid #ffffff26;
  border-radius: var(--radius);
}

.retouch-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retouch-visual figcaption {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 7px 9px;
  color: var(--ink);
  background: #ffffffea;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0000001f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.retouch-visual_generation .retouch-image-frame {
  border-color: #ff809b73;
}

.retouch-visual_generation figcaption {
  color: #a8264d;
  background: #fff1f4ed;
}

.retouch-visual_ours .retouch-image-frame {
  border: 2px solid var(--pink);
  box-shadow: 0 0 0 1px #f536752b, 0 18px 52px #f5367517;
}

.retouch-visual_ours figcaption {
  color: var(--white);
  background: var(--pink);
}

.retouch-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.retouch-method {
  min-height: 286px;
  padding: 24px;
  background: var(--black-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.retouch-method > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.retouch-method_generation > span {
  color: #ff9aad;
  background: #ff66851a;
}

.retouch-method_ours > span {
  color: #ff77a4;
  background: #f536751f;
}

.retouch-method h3 {
  margin-top: 18px;
  font-size: clamp(22px, 1.6vw, 28px);
}

.retouch-method ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.retouch-method li {
  position: relative;
  padding-left: 24px;
  color: #ffffffb5;
  font-size: 16px;
}

.retouch-method li::before {
  position: absolute;
  top: 0.58em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  content: '';
  transform: translateY(-50%);
}

.retouch-method_generation li::before {
  color: #ff809b;
}

.retouch-method_ours li::before {
  color: var(--pink);
}

.capability-section {
  background: var(--white);
}

.capability-grid {
  display: grid;
  width: 100%;
  max-width: 1540px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-inline: 0 auto;
}

.capability-card {
  min-height: 320px;
  padding: var(--space-card-padding);
  background: var(--paper);
  border: 1px solid #e7e7eb;
  border-radius: var(--radius);
}

.capability-card h3 {
  margin-top: 0;
  font-size: 29px;
}

.capability-card p {
  margin: var(--space-card-content) 0 0;
  color: var(--ink-soft);
}

.results-section {
  background: var(--paper);
}

.result-list {
  border-top: 1px solid #cacbd1;
}

.result-row {
  display: grid;
  grid-template-columns: 60px minmax(260px, 0.75fr) minmax(340px, 1fr);
  gap: 30px;
  align-items: start;
  padding-block: 34px;
  border-bottom: 1px solid #cacbd1;
}

.result-row h3 {
  font-size: 30px;
}

.result-row p {
  margin: 0;
  color: var(--ink-soft);
}

.quality-section {
  background: var(--white);
}

.quality-heading {
  grid-template-columns: 1fr;
  align-items: start;
}

.quality-heading > p {
  max-width: 720px;
}

.quality-grid {
  display: grid;
  width: 100%;
  max-width: 1540px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-inline: 0 auto;
}

.quality-card {
  min-height: 290px;
  padding: var(--space-card-padding);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quality-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid;
  border-radius: 14px;
}

.quality-mark svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.quality-card_ready .quality-mark {
  color: var(--green);
  background: #e8f8ef;
  border-color: #b9e7cb;
}

.quality-card_review .quality-mark {
  color: var(--yellow);
  background: #fff4d6;
  border-color: #f0d38a;
}

.quality-card_error .quality-mark {
  color: var(--red);
  background: #ffebf0;
  border-color: #f4b9c8;
}

.quality-card h3 {
  margin-top: 38px;
}

.quality-card p {
  margin: var(--space-card-content) 0 0;
  color: var(--ink-soft);
}

.cases-section {
  background:
    radial-gradient(circle at 12% 38%, #651fff19 0, transparent 30%),
    var(--black);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.case-card {
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.case-brand {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-heading) 28px;
}

.case-content {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
}

.case-information {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid var(--line-dark);
}

.case-brand > span {
  color: #ffffff75;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-brand strong {
  margin-top: 3px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.case-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  overflow: hidden;
  background: #eeeeef;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-visual.case-visual_single {
  grid-template-columns: 1fr;
  aspect-ratio: 1672 / 941;
  min-height: 0;
  background: var(--white);
}

.case-visual_single img {
  object-fit: cover;
}

.case-visual span {
  position: absolute;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--ink);
  background: #ffffffe6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.case-visual__before {
  left: 12px;
}

.case-visual__after {
  right: 12px;
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-dark);
}

.case-metrics > div {
  min-height: 126px;
  padding: 25px 28px;
}

.case-metrics > div + div {
  border-left: 1px solid var(--line-dark);
}

.case-metrics strong {
  display: block;
  color: #ff7aa6;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.case-metrics span {
  display: block;
  margin-top: 10px;
  color: #ffffff99;
  font-size: 14px;
}

.case-metric_pending strong {
  color: #ffffffb8;
  font-size: 23px;
}

.format-card summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  place-items: center;
  font-size: 1em;
  line-height: 1;
  font-weight: 400;
  transition: transform 150ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.case-details > h3 {
  padding: var(--space-heading) 28px 0;
  font-size: 20px;
}

.case-details > div {
  padding: var(--space-card-content) 28px var(--space-heading);
  color: #ffffffa8;
  font-size: 16px;
}

.case-details p {
  margin-bottom: 12px;
}

.compact-cta {
  display: flex;
  width: calc(100% + 40px);
  min-height: 190px;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  margin-left: -20px;
  padding: 44px 42px;
  background: var(--pink);
  border: 1px solid var(--pink);
  border-radius: var(--radius);
}

.compact-cta h3 {
  max-width: 1050px;
  font-size: clamp(27px, 2.6vw, 42px);
}

.compact-cta p {
  max-width: 880px;
  margin: 10px 0 0;
  color: #ffffffd9;
  font-size: 18px;
}

.compact-cta .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.compact-cta .button:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.why-section {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1fr);
  gap: 90px;
}

.why-intro {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}

.why-intro p:last-child {
  max-width: 590px;
  margin: var(--space-heading) 0 0;
  color: var(--ink-soft);
  font-size: 20px;
}

.why-list {
  border-top: 1px solid var(--line);
}

.why-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: start;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.why-list h3 {
  font-size: 27px;
}

.why-list p {
  margin: var(--space-card-content) 0 0;
  color: var(--ink-soft);
}

.process-section {
  background:
    linear-gradient(135deg, #0a0a0c 0, #121216 60%, #1b0d17 100%);
}

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

.step-card {
  display: grid;
  min-height: 320px;
  grid-template-rows: 64px auto auto;
  justify-items: start;
  align-content: start;
  padding: var(--space-card-padding);
  background: var(--black-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  text-align: left;
}

.step-card > span {
  width: 56px;
  height: 56px;
  color: #ff7aa6;
  background: #f5367517;
}

.step-card > span svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  margin-top: 24px;
}

.step-card p {
  margin: var(--space-card-content) 0 0;
  color: #ffffff9e;
  font-size: 16px;
}

.format-section {
  background: var(--paper);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.format-card {
  display: grid;
  min-height: 280px;
  grid-template-rows: 72px auto;
  align-content: start;
  padding: 40px var(--space-card-padding) 32px;
  background: var(--white);
  border: 1px solid #e4e4e8;
  border-radius: var(--radius-small);
}

.format-card h3 {
  align-self: start;
  font-size: 24px;
}

.format-card p {
  margin: var(--space-card-content) 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(520px, 1fr);
  gap: 100px;
}

.faq-grid > div:first-child {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}

.faq-grid > div:first-child > p:last-child {
  margin: var(--space-heading) 0 0;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  font-size: 21px;
  font-weight: 500;
  cursor: pointer;
}

.faq-list details > p {
  max-width: 680px;
  margin: -4px 42px 25px 0;
  color: var(--ink-soft);
}

.contact-section {
  background:
    radial-gradient(circle at 20% 80%, #651fff29 0, transparent 36%),
    linear-gradient(145deg, #0a0a0c 0, #150910 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 0.68fr);
  gap: 90px;
  align-items: center;
}

.contact-copy > p:not(.section-label) {
  max-width: 640px;
  margin: var(--space-heading) 0 0;
  color: #ffffffa8;
  font-size: 20px;
}

.telegram-button {
  margin-top: 30px;
}

.telegram-button svg {
  width: 22px;
  height: 22px;
}

.contact-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
  color: #ffffffa8;
}

.contact-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: var(--pink);
  background: #f536751d;
  border-radius: 50%;
  font-size: 14px;
}

.contact-note p {
  margin: 0;
  font-size: 15px;
}

.lead-form {
  display: grid;
  gap: 19px;
  min-height: 590px;
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}

.form-fields {
  display: grid;
  gap: 19px;
}

.lead-form label {
  display: grid;
  gap: 9px;
}

.lead-form label > span {
  font-size: 14px;
  font-weight: 700;
}

.lead-form label > span b {
  color: var(--pink);
  font-weight: 700;
}

.lead-form label em {
  color: #85858d;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  background: #f5f5f7;
  border: 1px solid #d8d8de;
  border-radius: 10px;
  outline: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.lead-form input {
  min-height: 54px;
}

.lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  background: var(--white);
  border-color: var(--pink);
  box-shadow: 0 0 0 3px #f5367530;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #8e8e96;
}

.form-button {
  width: 100%;
  margin-top: 3px;
}

.consent-field {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 11px !important;
  align-items: center;
  cursor: pointer;
}

.consent-field input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--pink);
}

.consent-field > span {
  color: #65656d;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

.consent-field a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-trust {
  margin: -5px 0 0;
  color: #777780;
  font-size: 12px;
  text-align: center;
}

.success-state {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.success-state > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--white);
  background: var(--pink);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
}

.success-state h3 {
  margin-top: 30px;
  font-size: 34px;
}

.success-state p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.text-button {
  margin-top: 24px;
  padding: 0;
  color: var(--pink);
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

footer {
  padding-block: 56px 28px;
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(150px, 0.6fr));
  gap: 50px;
}

.footer-brand p {
  max-width: 360px;
  margin: 22px 0 0;
  color: #ffffff7d;
  font-size: 14px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column strong {
  margin-bottom: 5px;
  color: #ffffff80;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: #ffffffc7;
  font-size: 15px;
  transition: color 150ms ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.footer-bottom p {
  margin: 0;
  color: #ffffff7d;
  font-size: 14px;
}

@media (width <= 1050px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .hero-media {
    width: min(100%, 840px);
    margin-inline: 0;
    justify-self: center;
    transform: none;
  }

  .split-heading,
  .retouch-layout,
  .why-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .retouch-visuals {
    justify-self: start;
  }

  .why-intro,
  .faq-grid > div:first-child {
    position: static;
  }

  .case-content {
    grid-template-columns: 1fr;
  }

  .case-information {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .case-visual {
    min-height: 0;
    aspect-ratio: 16 / 8.1;
  }

  .quality-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 2;
  }
}

@media (width <= 760px) {
  :root {
    --header-height: 68px;
    --radius: 15px;
    --space-heading: 20px;
    --space-section-content: 32px;
    --space-card-padding: 24px;
    --space-card-content: 14px;
  }

  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-block: 40px;
  }

  .section h2 {
    font-size: clamp(36px, 10.7vw, 46px);
    line-height: 1.02;
  }

  .section h3 {
    font-size: 23px;
  }

  .section-head {
    margin-bottom: var(--space-section-content);
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 116px;
  }

  .header-inner .button_small {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .hero-inner {
    gap: 38px;
    padding-block: 40px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 53px);
    line-height: 0.97;
  }

  .hero-copy {
    margin-top: var(--space-heading);
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    gap: 10px;
    margin-top: 30px;
  }

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

  .hero-media {
    width: 100%;
    margin-inline: 0;
  }

  .split-heading,
  .retouch-layout,
  .why-grid,
  .faq-grid,
  .contact-grid {
    gap: 38px;
  }

  .problem-item {
    min-height: 78px;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding-block: 21px;
  }

  .problem-item > span {
    font-size: 24px;
  }

  .problem-item p {
    font-size: 17px;
  }

  .section-intro,
  .section-head > p:last-child,
  .why-intro p:last-child,
  .contact-copy > p:not(.section-label) {
    font-size: 17px;
  }

  .section .section-intro {
    margin-top: var(--space-heading);
    padding-top: 0;
  }

  .retouch-layout {
    gap: 30px;
  }

  .retouch-preservation {
    font-size: 16px;
  }

  .retouch-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .retouch-visual_source {
    width: calc(50% - 6px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .retouch-visual figcaption {
    top: 10px;
    left: 10px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .retouch-method-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .retouch-method {
    min-height: 0;
    padding: var(--space-card-padding);
  }

  .capability-grid,
  .quality-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 0;
    padding: var(--space-card-padding);
  }

  .capability-card h3 {
    margin-top: 0;
  }

  .result-row {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding-block: 25px;
  }

  .result-row h3 {
    font-size: 24px;
  }

  .result-row p {
    grid-column: 2;
  }

  .quality-card {
    min-height: 0;
    padding: var(--space-card-padding);
  }

  .quality-card h3 {
    margin-top: 32px;
  }

  .case-brand {
    padding-inline: 21px;
  }

  .case-brand strong {
    font-size: 25px;
  }

  .case-metrics > div {
    min-height: 112px;
    padding: 21px;
  }

  .case-metrics strong {
    font-size: 25px;
  }

  .case-metric_pending strong {
    font-size: 20px;
  }

  .case-details > h3,
  .case-details > div {
    padding-inline: 21px;
  }

  .compact-cta {
    width: 100%;
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
    padding: 28px 24px;
  }

  .compact-cta .button {
    width: 100%;
  }

  .why-list article {
    grid-template-columns: 50px 1fr;
    gap: 10px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 250px;
    grid-template-rows: 56px auto auto;
    padding: 32px 23px;
  }

  .step-card h3 {
    margin-top: 26px;
  }

  .format-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border-top: 0;
  }

  .format-card {
    min-height: 0;
    grid-template-rows: auto auto;
    padding: var(--space-card-padding);
  }

  .format-card p {
    margin-top: var(--space-card-content);
  }

  .format-card h3 {
    margin: 0;
    font-size: 20px;
  }

  .format-card summary i {
    display: block;
    font-size: 26px;
    font-style: normal;
    transition: transform 150ms ease;
  }

  .format-card[open] summary i {
    transform: rotate(45deg);
  }

  .format-card p {
    margin: var(--space-card-content) 0 0;
  }

  .faq-list summary {
    min-height: 72px;
    font-size: 18px;
  }

  .faq-list details > p {
    margin-right: 28px;
  }

  .lead-form {
    min-height: 0;
    padding: var(--space-card-padding);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (width <= 390px) {
  .hero h1 {
    font-size: 39px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }

  .case-metrics > div + div {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Personal data consent page */
.legal-page {
  min-height: 100vh;
  background: var(--paper-soft);
}

.legal-header {
  position: static;
  background: var(--black);
}

.legal-header .header-inner {
  justify-content: space-between;
}

.legal-back-link {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.legal-back-link:hover,
.legal-back-link:focus-visible {
  color: var(--pink-strong);
}

.legal-main {
  padding-block: clamp(48px, 7vw, 104px);
}

.legal-document {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.legal-document h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.legal-document h2 {
  margin: 40px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document ul {
  margin: 0;
  padding-left: 24px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  color: var(--ink-soft);
  font-size: 16px;
}

.legal-details {
  padding: 22px;
  border-radius: var(--radius-small);
  background: var(--paper);
}

.legal-details p:last-child {
  margin-bottom: 0;
}

@media (width <= 680px) {
  .legal-header .brand img {
    width: 136px;
  }

  .legal-document {
    padding: 24px 20px;
  }

  .legal-back-link {
    font-size: 14px;
  }
}
