:root {
  --canvas: #fbf6f0;
  --ink: #271c2a;
  --night: #251b2c;
  --night-soft: #342638;
  --muted: #66585e;
  --paper: #fffcf7;
  --peach: #ffc6a5;
  --accent: #8e413b;
  --line: #dfd3cb;
  --type: Manrope, system-ui, sans-serif;
  --display: Georgia, 'Times New Roman', serif;
  font-family: var(--type);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 18px; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.08; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cover :focus-visible, .masthead :focus-visible, .order :focus-visible { outline-color: var(--peach); }
.order-card :focus-visible { outline-color: var(--accent); }
.wrap { width: min(1232px, calc(100% - clamp(36px, 8vw, 136px))); margin-inline: auto; }
.js-only { display: none; }

.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  clip-path: inset(50%);
  padding: 9px 14px;
  background: var(--paper);
  border-radius: 5px;
}
.skip:focus { transform: none; clip-path: none; }

.masthead, .cover { color: #fff6ed; background: var(--night); }
.masthead { border-bottom: 1px solid #ffffff26; }
.head-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.head-row { min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 9px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.045em; }
.brand img { border-radius: 8px; }
.brand-service { border-left: 1px solid #ffffff45; padding-left: 10px; color: #dbcbd8; font-size: .73rem; letter-spacing: .025em; }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 3vw, 46px); color: #e7d9e4; font-size: .89rem; font-weight: 650; }
.main-nav a:hover { color: var(--peach); }
.head-contact { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #ad90a4; border-radius: 6px; font-size: .85rem; font-weight: 750; }
.head-contact:hover { background: #ffffff12; }

.cover { background: radial-gradient(72% 95% at 76% 100%, #422c43 0, transparent 70%), var(--night); }
.hero, .story-grid, .portfolio, .order-grid { display: grid; align-items: center; }
.hero {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  gap: clamp(24px, 5vw, 82px);
  padding-block: clamp(48px, 6.2vw, 94px);
}
.hero-copy, .story-copy, .showcase-copy, .order-copy { min-width: 0; }
.coverage-link {
  display: inline-block;
  color: var(--peach);
  font-size: .85rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #ffc6a57b;
  text-underline-offset: 5px;
}
.coverage-link:hover { text-decoration-color: currentColor; }
h1, h2 { font-weight: 750; letter-spacing: -.062em; text-wrap: balance; }
h1 { margin: 19px 0 22px; font-size: clamp(2.8rem, 4.5vw, 4.9rem); line-height: 1.005; }
h2 { font-size: clamp(2.25rem, 3.9vw, 4rem); line-height: 1.04; }
h1 em, h2 em { font-family: var(--display); font-weight: 400; }
h1 em, .order h2 em { color: var(--peach); }
.hero-pitch { max-width: 50ch; color: #eedfe7; font-size: clamp(1rem, 1.4vw, 1.19rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; margin-top: 29px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button-primary { min-height: 51px; padding-inline: 18px; color: var(--night); background: var(--peach); }
.button-primary:hover { background: #ffdabf; }
.button-price { border-left: 1px solid #a96e63; padding-left: 10px; }
.text-link { display: inline-flex; align-items: baseline; gap: 7px; width: fit-content; font-size: .89rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.cover .text-link:hover { color: var(--peach); }
.story .text-link:hover { color: var(--accent); }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(365px, 36vw, 523px);
  padding: 34px 14px 52px;
  overflow: hidden;
  border-radius: 21px;
  background: radial-gradient(100% 110% at 93% 5%, #f8d7b2 0, transparent 62%), linear-gradient(145deg, #f0a888 5%, #ae6274 100%);
}
.hero-art::before {
  position: absolute;
  z-index: -1;
  inset: -25% -32% 24% 37%;
  border: 1px solid #fff5dc9c;
  border-radius: 50%;
  content: '';
}
.hero-art::after {
  position: absolute;
  z-index: -1;
  inset: 17% 14% 20% 18%;
  transform: rotate(10deg) translate(8px, 3px);
  border-radius: 4px;
  background: #684454;
  box-shadow: 1px 13px 36px #42293e66;
  content: '';
}
.hero-art figcaption { position: absolute; right: 15px; bottom: 13px; color: #1b111f; font-size: .78rem; font-weight: 800; }
.hero-paper {
  width: min(84%, 363px);
  margin: 6px 0 0;
  transform: rotate(-6deg);
  padding: clamp(17px, 2.8vw, 30px);
  border: 1px solid #fffaf0;
  border-radius: 3px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 13px 39px #381e36a1;
}
.hero-paper-head { display: flex; justify-content: space-between; align-items: end; gap: 9px; padding-bottom: 13px; border-bottom: 2px solid #5e3e53; }
.hero-paper-head p { margin-bottom: 7px; color: #613f54; font-size: .68rem; font-weight: 800; line-height: 1.3; }
.hero-paper-head strong { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.3vw, 3.3rem); font-weight: 400; line-height: .88; letter-spacing: -.052em; }
.hero-paper-head img { width: clamp(54px, 7vw, 96px); height: auto; aspect-ratio: .85; flex: none; object-fit: cover; object-position: 51% 40%; border-radius: 4px; }
.hero-paper-profile, .hero-paper-work { font-size: clamp(.69rem, .92vw, .84rem); line-height: 1.45; }
.hero-paper-profile { margin: 13px 0 11px; }
.hero-paper-work { border-top: 1px solid #dbcac8; padding: 11px 0; }
.hero-paper-work .hero-paper-label { margin: 0 0 3px; color: #744e63; font-size: .64rem; font-weight: 800; }
.hero-paper-work > p:last-child { margin-top: 4px; }
.hero-paper-skills { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .62rem; }
.hero-paper-skills li { padding: 1px 5px; border: 1px solid #ddcfd0; border-radius: 3px; }

.story, .showcase, .order { padding-block: clamp(58px, 7vw, 104px); }
.story { background: var(--canvas); }
.story-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(27px, 7vw, 96px); }
.story h2 em, .showcase h2 em { color: var(--accent); }
.section-pitch { max-width: 53ch; margin-top: 18px; color: var(--muted); font-size: clamp(.98rem, 1.32vw, 1.12rem); }
.benefits { max-width: 610px; margin-top: 25px; border-top: 1px solid var(--line); }
.benefits div { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 8px 20px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.benefits dt { font-weight: 800; line-height: 1.35; }
.benefits dd { color: var(--muted); font-size: .91rem; line-height: 1.52; }
.proof { padding: clamp(28px, 4vw, 55px); border: 1px solid #e9c6b6; border-radius: 15px; background: #f9e2d5; }
.proof figcaption { color: #764b46; font-size: .79rem; font-weight: 800; }
.proof blockquote { margin: 17px 0 23px; font-family: var(--display); font-size: clamp(1.6rem, 2.5vw, 2.36rem); letter-spacing: -.035em; line-height: 1.16; }
.proof blockquote em { color: var(--accent); }
.proof .text-link { font-size: .85rem; }

.showcase { border-block: 1px solid #e6d6cb; background: #f1e6dc; }
.portfolio { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(27px, 6.3vw, 88px); }
.interactive .sample-controls { display: grid; justify-items: start; gap: 15px; margin-top: 24px; }
.profile-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.profile-switch legend, .language-picker > span { margin-bottom: 6px; padding: 0; color: #55434d; font-size: .8rem; font-weight: 800; }
.profile-switch label { position: relative; cursor: pointer; }
.profile-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-switch label span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; border: 1px solid #aa8995; border-radius: 6px; background: var(--paper); font-size: .81rem; font-weight: 750; }
.profile-switch input:checked + span { border-color: #583449; background: #583449; color: #fff8f4; }
.profile-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.language-picker { display: grid; width: min(100%, 238px); }
.language-picker select { width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid #aa8995; border-radius: 6px; color: var(--ink); background: var(--paper); font-size: .94rem; font-weight: 750; }
.button-outline { border-color: #583449; color: #583449; background: transparent; }
.button-outline:hover { color: #fff8f4; background: #583449; }
.sample-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(18px, 4.2vw, 57px);
  border-radius: 17px;
  background: radial-gradient(105% 100% at 100% 0, #9d697b 0, transparent 67%), #5a3a57;
}
.sample-stage::before {
  position: absolute;
  z-index: -1;
  inset: 10% 7%;
  border: 1px solid #ffdccc79;
  border-radius: 13px;
  content: '';
}
.paper-stage { width: min(100%, 437px); margin-inline: auto; }
.resume { min-width: 0; padding: clamp(17px, 3vw, 34px); border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 27px #2e1d36ad; }
.paper-head { display: flex; justify-content: space-between; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 2px solid #744a60; }
.profession { color: #67475a; font-size: .76rem; font-weight: 800; line-height: 1.3; }
.paper-head h2 { margin-top: 6px; font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.65rem); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
.portrait { width: clamp(57px, 5.8vw, 81px); height: auto; aspect-ratio: .9; flex: none; border-radius: 5px; object-fit: cover; }
.resume .profile { margin-block: 12px; font-size: .77rem; line-height: 1.55; }
.cv-row { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); gap: 6px 10px; padding-block: 10px; border-top: 1px solid #e2d6d3; }
.cv-row h3 { color: #5e4054; font-size: .74rem; line-height: 1.33; overflow-wrap: break-word; }
.cv-row h4 { font-size: .8rem; line-height: 1.3; }
.cv-row p { margin-top: 4px; font-size: .76rem; line-height: 1.48; }
.cv-date { display: block; margin-bottom: 4px; color: #69555f; font-size: .66rem; }
.cv-position ul { margin: 5px 0 0; padding-left: 1.1em; }
.cv-position li { margin-top: 4px; font-size: .74rem; line-height: 1.48; }
.cv-position + .cv-position { margin-top: 14px; }
.cv-position .employer { color: #66525d; font-weight: 700; }
.skill-list { display: flex; flex-wrap: wrap; gap: 4px; }
.skill-list span { padding: 1px 5px; border: 1px solid #e2d3d3; border-radius: 3px; font-size: .63rem; line-height: 1.5; }
.cv-analytics .paper-head { border-color: #3d6260; }
.cv-analytics .profession, .cv-analytics .cv-row h3 { color: #395756; }
.interactive .paper-stage .full-only, .interactive .paper-stage .cv-position + .cv-position, .interactive .paper-stage .cv-position li:nth-child(n+3) { display: none; }

.order { background: var(--night); color: #fff7ed; }
.order-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(25px, 8vw, 110px); }
.order-copy p { max-width: 49ch; margin-top: 19px; color: #eedde7; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.order-copy p strong { color: #fff5eb; }
.order-card { min-width: 0; padding: clamp(21px, 3.6vw, 43px); border-radius: 15px; color: var(--ink); background: #fbe5d5; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 11px; padding-bottom: 12px; border-bottom: 1px solid #d9ae9f; }
.price strong { font-size: clamp(2.75rem, 4.4vw, 4.85rem); font-weight: 800; line-height: 1; letter-spacing: -.08em; }
.price span { color: #604756; font-size: .92rem; font-weight: 700; }
.includes { display: grid; gap: 5px; margin: 14px 0 18px; padding-left: 1em; color: #4e3b49; font-size: .88rem; }
.includes li::marker { color: var(--accent); }
.messenger-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.messenger { border-color: #9f7379; padding-inline: 9px; color: #4f3044; }
.messenger:hover { background: #f7cfb9; border-color: #785263; }
.messenger.telegram { grid-column: 1 / -1; justify-content: space-between; padding-inline: 14px; color: #fff5ed; background: #513248; border-color: #513248; }
.messenger.telegram:hover { background: #70475f; border-color: #70475f; }

.footer { background: var(--canvas); }
.footer details { border-bottom: 1px solid var(--line); }
.footer summary { min-height: 48px; padding-block: 13px; color: #724550; font-size: .85rem; font-weight: 800; cursor: pointer; }
.coverage-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 31px; padding: 3px 0 16px; }
.coverage-groups h3 { margin-bottom: 4px; font-size: .84rem; }
.coverage-groups p { color: var(--muted); font-size: .82rem; }
.footer-row { padding-block: 17px; }
address { color: var(--muted); font-size: .8rem; font-style: normal; }
.mobile-contact, .mobile-contact[hidden] { display: none; }

dialog {
  width: min(720px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid #b9949a;
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop { background: #251b2cc9; }
.dialog-bar { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 11px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-bar h2 { font-size: .96rem; line-height: 1.3; letter-spacing: -.025em; }
.dialog-bar button { min-height: 36px; padding: 5px 10px; border: 1px solid #a98291; border-radius: 5px; color: var(--ink); background: var(--paper); font-size: .84rem; font-weight: 750; }
.dialog-bar button:hover { background: #f4e5de; }
dialog .resume { border-radius: 0; padding: clamp(19px, 5vw, 44px); box-shadow: none; }
dialog .paper-head h2 { font-size: clamp(2.1rem, 5vw, 3.26rem); }
dialog .portrait { width: clamp(62px, 13vw, 98px); }
dialog .profession, dialog .cv-date, dialog .skill-list span { font-size: .85rem; }
dialog .cv-row { padding-block: 14px; }
dialog .cv-row h3 { font-size: .93rem; }
dialog .resume .profile, dialog .cv-row h4, dialog .cv-row p, dialog .cv-position li { font-size: 1rem; }

@media (max-width: 950px) {
  .hero { gap: 28px; }
  .hero-paper { width: min(91%, 363px); }
  .hero-art { min-height: 352px; }
  .story-grid, .portfolio, .order-grid { gap: 25px; }
  .benefits div { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .head-row { min-height: 61px; gap: 10px; }
  .main-nav { display: none; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 30px; height: 30px; }
  .hero, .story-grid, .portfolio, .order-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 28px; padding-block: 35px 41px; }
  h1 { margin: 13px 0 16px; font-size: clamp(2.2rem, 8.7vw, 4.25rem); }
  .hero-pitch { max-width: 59ch; }
  .hero-actions { margin-top: 18px; gap: 10px 17px; }
  .hero-art { min-height: 0; padding-block: 29px 40px; }
  .hero-paper { width: min(82%, 363px); }
  .hero-art figcaption { bottom: 10px; }
  .story, .showcase, .order { padding-block: 44px; }
  .benefits { margin-top: 17px; }
  .interactive .sample-controls { margin-top: 18px; }
}

@media (max-width: 520px) {
  html { scroll-padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .brand-service { display: none; }
  .head-contact { min-height: 36px; padding: 5px 8px; font-size: .75rem; }
  .coverage-link { font-size: .8rem; }
  .hero-actions .text-link { font-size: .81rem; }
  .hero-actions .button { min-height: 46px; padding-inline: 10px; }
  .hero-paper-head strong { font-size: clamp(1.75rem, 8vw, 2.45rem); }
  .hero-paper-head img { width: 65px; }
  .coverage-groups { grid-template-columns: minmax(0, 1fr); }
  .footer-row { align-items: start; flex-direction: column; gap: 9px; }
  .cv-row, dialog .cv-row { grid-template-columns: minmax(0, 1fr); }
  .mobile-contact {
    position: fixed;
    z-index: 2;
    inset: auto max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 8px 13px;
    border-radius: 8px;
    color: #fff7ed;
    background: #513248;
    box-shadow: 0 3px 15px #251b2c54;
    font-size: .9rem;
    font-weight: 800;
  }
  .mobile-contact span { color: var(--peach); }
}

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