:root {
  color-scheme: light;
  --purple: #7000ff;
  --purple-dark: #5100c4;
  --lilac: #f1e8ff;
  --ink: #15111b;
  --muted: #5e5668;
  --line: #ded7e5;
  --page: min(100% - 96px, 1320px);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  --selection-surface: #e4ccff;
  --selection-ink: #20112e;
  --on-accent: #fff;
  --search-icon: #6d6179;
  --placeholder: #655b71;
  --more-border: #d9c4f6;
  --portrait-shadow: #3d166427;
  --collage-border: #dfc7fd;
  --collage-shadow: #46009710;
  --collage-line: #e5d4fa;
  --collage-route: #7000ff87;
  --step-divider: #cba6ff;
  --about-surface: #fbf8ff;
  --contact-surface: #1f0c37;
  --contact-ink: #e4d8f0;
  --contact-link: #dbb8ff;
  --textarea-border: #d5b6f5;
  --contact-focus: #dfc2ff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
::selection { background: var(--selection-surface); color: var(--selection-ink); }
[hidden] { display: none !important; }
.wrap { width: var(--page); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 20; top: 10px; left: 10px; background: white; padding: 10px; }
section[id] { scroll-margin-top: 24px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; gap: 26px; align-items: center; }
.brand { display: inline-flex; flex-direction: column; color: var(--purple); font-size: 24px; line-height: 1.04; font-weight: 900; letter-spacing: -.035em; }
.brand span { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0; margin-top: 5px; }
.menu { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; align-items: center; white-space: nowrap; }
.menu a, .footer a { font-size: 15px; font-weight: 650; }
.menu a:hover, .header-contact a:hover, .footer a:hover { color: var(--purple-dark); }
.header-contact { display: grid; gap: 4px; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 24px; }
.phone { font-size: 16px; font-weight: 800; }
.email { font-size: 14px; color: var(--muted); }
.button {
  display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent;
  border-radius: 10px; background: var(--purple); color: var(--on-accent); min-height: 46px;
  padding: 11px 18px; font-weight: 800; line-height: 1.2; text-align: center;
  transition: background 160ms ease, color 160ms ease;
}
.button:hover { background: var(--purple-dark); }
.header-cta { flex-shrink: 0; font-size: 14px; }
.hero { padding-block: clamp(34px, 4.4vw, 64px) 52px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -.045em; }
h1 { font-weight: 900; font-size: clamp(43px, 5.55vw, 82px); line-height: 1.02; max-width: 22ch; }
.hero-intro { margin-top: 15px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }
.search {
  display: flex; align-items: stretch; gap: 8px; padding: 6px; margin-top: 28px;
  border: 2px solid var(--purple); border-radius: 16px; min-height: 69px;
}
.search:focus-within { box-shadow: 0 0 0 4px var(--lilac); }
.search-field { min-width: 0; flex: 1; display: flex; align-items: center; gap: 14px; padding-left: 16px; }
.search-icon { border: 2px solid var(--search-icon); border-radius: 50%; width: 17px; height: 17px; position: relative; flex: none; }
.search-icon::after { content: ""; width: 8px; height: 2px; position: absolute; background: var(--search-icon); transform: rotate(45deg); left: 12px; top: 13px; border-radius: 2px; }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: clamp(16px, 2vw, 23px); outline: none; min-height: 46px; }
.search input::placeholder { color: var(--placeholder); opacity: 1; }
.search input:focus { outline: none; }
.search-button { min-width: clamp(92px, 14vw, 180px); font-size: clamp(16px, 2vw, 22px); }
.motion-toggle { display: grid; place-items: center; width: 36px; height: 38px; flex: none; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.motion-toggle:hover { color: var(--purple-dark); background: var(--lilac); }
.motion-toggle span { width: 9px; height: 12px; border-inline: 2px solid currentColor; }
.motion-toggle[aria-pressed="true"] span { height: 0; width: 0; border: 6px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(13px, 2vw, 29px); border-bottom: 1px solid var(--line); margin-top: 17px; }
.tab { color: var(--ink); background: none; border: 0; border-bottom: 3px solid transparent; padding: 15px 3px 12px; font-size: clamp(14px, 1.34vw, 18px); font-weight: 720; }
.tab:hover, .tab[aria-selected="true"] { color: var(--purple-dark); }
.tab[aria-selected="true"] { border-bottom-color: var(--purple); }
.results-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 76px); align-items: start; margin-top: 29px; }
.results-layout.wide { grid-template-columns: minmax(0, 820px); }
.result { padding-bottom: 15px; }
.result + .result { border-top: 1px solid var(--line); padding-top: 15px; }
.result summary { list-style: none; cursor: pointer; }
.result summary::-webkit-details-marker { display: none; }
.crumb { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.result-title { display: inline-block; margin-top: 4px; color: var(--purple-dark); font-size: clamp(20px, 2vw, 28px); font-weight: 820; line-height: 1.16; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.result summary:hover .result-title { color: var(--purple); }
.result-description { display: block; color: var(--ink); line-height: 1.5; font-size: 16px; margin-top: 7px; max-width: 66ch; }
.result-action { display: inline-flex; color: var(--purple-dark); font-size: 14px; font-weight: 800; padding: 10px 0 2px; }
.result-action:hover, .text-link:hover { text-decoration: underline; }
.more { border: 1px solid var(--more-border); background: white; color: var(--purple-dark); min-height: 44px; border-radius: 9px; padding: 9px 14px; font-weight: 750; }
.more:hover { background: var(--lilac); }
.result-message { margin-bottom: 15px; line-height: 1.5; color: var(--muted); }
.collage { position: relative; height: clamp(270px, 26vw, 368px); margin: 0; overflow: hidden; isolation: isolate; background: var(--lilac); border-radius: 17px; }
.role { height: 77%; width: auto; position: absolute; bottom: -1%; object-fit: contain; filter: drop-shadow(0 4px 5px var(--portrait-shadow)); }
.role-glasses { left: 7%; height: 73%; transform: rotate(-3deg); }
.role-denim { left: 36%; height: 87%; }
.role-phone { right: 5%; height: 74%; transform: rotate(3deg); }
.collage-sheet { position: absolute; width: 40%; height: 58%; top: 15%; left: 12%; padding: 12%; background: white; border: 1px solid var(--collage-border); border-radius: 12px; transform: rotate(-11deg); box-shadow: 0 9px 20px var(--collage-shadow); }
.sheet-two { left: 55%; top: 12%; transform: rotate(12deg); height: 62%; width: 31%; }
.collage-sheet i { display: block; height: 8px; margin-bottom: 10px; background: var(--collage-line); border-radius: 3px; }
.collage-sheet i:last-child { width: 63%; background: var(--purple); }
.collage-route { position: absolute; width: 77%; height: 39%; top: 34%; left: 11%; border: 2px dashed var(--collage-route); border-radius: 50%; transform: rotate(-12deg); }
h2 { font-size: clamp(34px, 4vw, 57px); line-height: 1.06; font-weight: 900; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.cases { background: var(--lilac); }
.section-pair { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding-block: 49px; }
.section-pair p, .about p, .contact p { font-size: 18px; line-height: 1.55; margin-top: 13px; max-width: 55ch; }
.outline { border-color: var(--purple); background: transparent; color: var(--purple-dark); flex: none; }
.outline:hover { background: var(--purple); color: var(--on-accent); }
.process { padding-block: 76px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 26px 0 0; }
.steps li { border-top: 2px solid var(--step-divider); padding-top: 16px; }
.steps p { color: var(--muted); margin-top: 9px; font-size: 16px; line-height: 1.55; }
.about { background: var(--about-surface); }
.about-inner { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; align-items: center; gap: clamp(22px, 7vw, 90px); min-height: 360px; padding-top: 24px; }
.about-inner > div { padding-block: 28px; }
.about-photo { justify-self: center; align-self: end; display: block; width: auto; max-width: 100%; height: 334px; object-fit: contain; object-position: bottom; }
.text-link { display: inline-block; color: var(--purple-dark); font-weight: 800; margin-top: 18px; }
.contact { background: var(--contact-surface); color: var(--on-accent); }
.contact-inner { display: grid; grid-template-columns: 1fr .9fr; gap: 44px; padding-block: 68px; }
.contact p { color: var(--contact-ink); }
.contact-phone, .contact-email, .telegram { display: table; margin-top: 12px; }
.contact-phone { margin-top: 23px; font-size: 23px; font-weight: 800; }
.contact-email:hover, .contact-phone:hover, .telegram:hover { text-decoration: underline; }
.telegram { color: var(--contact-link); }
.contact-form { display: grid; gap: 10px; align-content: start; }
.contact-form label { font-weight: 760; }
.contact-form textarea { width: 100%; border: 1px solid var(--textarea-border); border-radius: 12px; padding: 14px; resize: vertical; min-height: 120px; color: var(--ink); }
.contact-form .button { justify-self: start; }
.contact :focus-visible { outline-color: var(--contact-focus); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 24px; }
.footer .brand { font-size: 20px; }

@media (max-width: 960px) {
  :root { --page: calc(100% - 56px); }
  .header-inner { gap: 18px; }
  .menu { display: none; }
  .header-contact { margin-left: auto; border: 0; padding: 0; }
  .results-layout { gap: 24px; }
}
@media (max-width: 640px) {
  :root { --page: calc(100% - 32px); }
  .header-inner { min-height: 0; padding-block: 13px; display: grid; grid-template-columns: 1fr auto; gap: 11px 10px; }
  .brand { font-size: 19px; }
  .brand span { font-size: 11px; }
  .header-contact { text-align: right; gap: 4px; }
  .phone { font-size: 14px; }
  .email { font-size: 13px; }
  .header-cta { grid-column: 1 / -1; justify-self: start; min-height: 41px; }
  .hero { padding-top: 27px; padding-bottom: 35px; }
  h1 { font-size: clamp(32px, 9vw, 47px); }
  .desktop-break { display: none; }
  .hero-intro { margin-top: 10px; font-size: 16px; }
  .search { margin-top: 19px; min-height: 55px; padding: 4px; gap: 4px; border-radius: 12px; }
  .search-field { padding-left: 8px; gap: 9px; }
  .search-icon { width: 13px; height: 13px; }
  .search-icon::after { left: 8px; top: 9px; width: 6px; }
  .search input { min-height: 43px; }
  .search-button { min-width: 65px; min-height: 43px; padding-inline: 9px; }
  .motion-toggle { width: 24px; }
  .tabs { gap: 0 13px; margin-top: 9px; }
  .tab { padding: 10px 1px 8px; min-height: 42px; }
  .results-layout, .results-layout.wide, .section-pair, .contact-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .results-layout { margin-top: 18px; }
  .collage { height: clamp(218px, 63vw, 300px); }
  .section-pair, .contact-inner, .process { padding-block: 36px; }
  .section-pair .button { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-inner > div { order: -1; padding-block: 12px 0; }
  .about-photo { height: 228px; margin-top: 18px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
