:root {
  color-scheme: light;
  --bg: #f3f6fb; --surface: #fff; --surface-alt: #e9f0fa; --text: #121b2c;
  --muted: #43536b; --line: #cdd9e9; --accent: #006780; --accent-strong: #005972;
  --button: #095e83; --button-text: #fff; --header: #f7faff; --shadow: #18386317;
  --wrap: 1200px; --radius: 18px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #091322; --surface: #101e30; --surface-alt: #13253a; --text: #eff5ff;
  --muted: #b2c1d5; --line: #2b3c53; --accent: #76ddf0; --accent-strong: #adf1fc;
  --button: #8fe6f5; --button-text: #071526; --header: #0c1728; --shadow: #0005;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #091322; --surface: #101e30; --surface-alt: #13253a; --text: #eff5ff;
    --muted: #b2c1d5; --line: #2b3c53; --accent: #76ddf0; --accent-strong: #adf1fc;
    --button: #8fe6f5; --button-text: #071526; --header: #0c1728; --shadow: #0005;
  }
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6 }
img { display: block; max-width: 100% }
a { color: var(--accent); text-underline-offset: .22em; overflow-wrap: anywhere }
a:hover { color: var(--accent-strong) }
button, select, input, textarea { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .7 }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { line-height: 1.12; text-wrap: balance }
h1 { font-size: clamp(2.45rem, 5.2vw, 4.65rem); letter-spacing: -.055em; font-weight: 720; overflow-wrap: anywhere }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); letter-spacing: -.04em }
h3 { font-size: 1.36rem; letter-spacing: -.025em }
p { color: var(--muted) }
.wrap { width: min(calc(100% - 64px), var(--wrap)); margin-inline: auto }
.main { flex: 1; padding-block: 48px 80px }
.home .main { padding-top: 30px }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip:focus { position: fixed; top: 12px; left: 12px; padding: 10px 20px; z-index: 20; background: var(--surface) }
.top { z-index: 5; position: relative; background: var(--header); border-bottom: 1px solid var(--line) }
.top-inner, .header-actions, .nav, .logo { display: flex; align-items: center }
.top-inner { justify-content: space-between; gap: 20px; min-height: 74px }
.logo { gap: 11px; font-size: 1rem; font-weight: 720; color: var(--text); text-decoration: none; line-height: 1.2 }
.logo img { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px }
.logo span { white-space: nowrap }
.nav { gap: clamp(10px, 1.85vw, 26px); font-size: .94rem }
.nav a, .nav summary { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none }
.nav a:hover, .nav a[aria-current], .nav summary:hover, .nav-more:has([aria-current]) summary { color: var(--accent) }
.nav-more { position: relative }
.nav-more summary { gap: 6px; cursor: pointer; list-style: none }
.nav-more summary::-webkit-details-marker { display: none }
.nav-more div { position: absolute; top: 100%; right: 0; min-width: 165px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px var(--shadow) }
.header-actions { gap: 10px }
.button, .icon-button { min-height: 44px; border-radius: 10px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; text-align: center; transition: background-color .18s, border-color .18s, transform .18s; text-decoration: none }
.button { padding: 9px 16px; border: 1px solid var(--line); color: var(--text); background: var(--surface) }
.button:hover, .icon-button:hover { background: var(--surface-alt); color: var(--text) }
.button.primary { border-color: transparent; background: var(--button); color: var(--button-text) }
.button.primary:hover { filter: brightness(1.12) }
.button.text-button { border-color: transparent; background: transparent; color: var(--accent) }
.icon-button { width: 44px; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 0 }
.menu-button { display: none }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px }
.actions.stack { align-items: stretch; flex-direction: column }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 510px; display: grid; align-items: center; grid-template-columns: 1.27fr .73fr; background: #0b182b; color: #f3f8ff; border: 1px solid #2c4360; border-radius: 26px; padding: clamp(32px, 6vw, 76px); box-shadow: 0 20px 70px #11264622 }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 86% 44%, #1d5d7a80, transparent 57%), linear-gradient(115deg,#101d32,#0a1628 66%,#112848) }
.hero-copy { z-index: 1 }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 5.05rem); line-height: 1.02; letter-spacing: -.065em; text-wrap: initial }
.hero p { color: #c4d2e7; max-width: 490px; margin: 24px 0 27px; font-size: clamp(1.02rem,1.8vw,1.23rem) }
.hero .button.primary { background: #91e6f4; color: #09192a }
.hero .button.secondary { background: #152840; border-color: #48708d; color: #eaf5fc }
.hero .button.secondary:hover { background: #254561 }
.hero :focus-visible { outline-color: #91e6f4 }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; min-height: 310px }
.hero-glow, .orbit { position: absolute; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; pointer-events: none }
.hero-glow { background: radial-gradient(circle,#1da8d344 0%,#1d6b9b30 45%,transparent 73%) }
.orbit { border: 1px solid #719dc55c }
.orbit-two { width: min(122%, 425px); border-color: #719dc536 }
.hero-art img { width: min(69%, 246px); height: auto; position: relative; z-index: 1; border-radius: 24%; box-shadow: 0 22px 60px #031022b8, 0 0 45px #45cfe325; transform: rotate(-8deg) }
.art-point { position: absolute; width: 9px; height: 9px; background: #92e8f8; border-radius: 50%; box-shadow: 0 0 20px #7ceffa }
.point-one { top: 9%; right: 11% }
.point-two { bottom: 11%; left: 4%; width: 6px; height: 6px }
.overline { display: block; font-size: .83rem; font-weight: 730; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); line-height: 1.35 }
.page-head { max-width: 820px; margin-block: 18px 34px }
.page-head .overline, .detail .overline { margin-bottom: 12px }
.page-head p, .lead { font-size: 1.18rem; margin-top: 17px; max-width: 720px }
.section { margin-top: clamp(46px, 6.3vw, 91px) }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 21px }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px }
.card { display: flex; min-width: 0; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, box-shadow .18s }
.card:hover { border-color: var(--accent); box-shadow: 0 12px 24px var(--shadow) }
.card-image { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--surface-alt) }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s }
.card:hover img { transform: scale(1.025) }
.project-card .card-image img { object-position: center top }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; gap: 10px }
.card h3 a { text-decoration: none; color: var(--text) }
.card h3 a:hover { color: var(--accent) }
.card-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: auto; padding-top: 10px }
.card-end a:not(.button) { font-weight: 650; padding-block: 9px }
.principles article, .empty, .news-list article, .form-panel, .side-card, .community { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 29px) }
.principles svg { color: var(--accent); margin-bottom: 12px }
.principles p, .empty p, .news-list p, .side-card p, .community p { margin-top: 10px }
.principles .actions, .principles .button, .empty .actions, .form-panel .actions, .side-card .actions { margin-top: 16px }
.principles .actions .button { margin-top: 0 }
.community, .quick-order { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 19px }
.community { margin-top: 42px; background: var(--surface-alt) }
.community h2 { margin-top: 6px }
.community .vk-panel { flex: 1 0 100%; min-width: 0 }
#vk-community { max-width: 100%; overflow: hidden }
#vk-community iframe { max-width: 100% }
.quick-order p { margin-top: 8px }
.filters { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px; margin-bottom: 12px }
label { display: grid; gap: 7px; color: var(--text); font-weight: 610; min-width: 0 }
:is(input,textarea,select) { width: 100%; min-height: 45px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 12px; font-weight: 400 }
textarea { resize: vertical }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 8 6 6 6-6' fill='none' stroke='%23748ea9' stroke-width='2'/%3E%3C/svg%3E"); background-position: right 11px center; background-size: 17px; background-repeat: no-repeat }
.search-input { position: relative }
.search-input svg { position: absolute; top: 13px; left: 12px; color: var(--muted); pointer-events: none }
.search-input input { padding-left: 42px }
.filter-count { margin-bottom: 15px }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 23px; font-size: .93rem }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center }
.detail, .project-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px,1fr); gap: 26px; align-items: start }
.detail h1 { font-size: clamp(2.2rem,4.35vw,4rem) }
.detail-cover { max-width: 780px; margin-top: 26px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-alt) }
.detail-cover img { width: 100%; height: auto }
.subsection { margin-top: 34px }
.subsection p { margin-top: 10px }
.plain-list, .steps { padding-left: 1.35em; color: var(--muted) }
.plain-list li, .steps li { padding-left: .35em; margin-bottom: .45em }
.side-card h2, .form-panel h2 { font-size: 1.5rem }
.price { display: block; margin-top: 12px; font-size: 2rem; line-height: 1.2 }
.gallery { display: grid; gap: 18px }
.gallery a { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden }
.gallery img { max-height: 680px; margin-inline: auto; width: 100%; object-fit: contain }
.news-list { display: grid; gap: 14px; max-width: 850px }
.news-list time { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 7px }
.news-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650 }
.form-panel p { margin-top: 10px }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 14px }
.form-grid .wide { grid-column: 1/-1 }
.form-panel [data-order-output] { margin-top: 17px }
.footer { background: var(--header); border-top: 1px solid var(--line); padding: 32px 0 46px }
.footer-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 26px }
.footer-grid nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 0 16px }
.footer p { margin-top: 12px }
.footer-contact { display: flex; align-items: start; flex-direction: column }
.footer :is(nav a,.footer-contact a,button) { min-height: 44px; display: inline-flex; align-items: center }
.footer button { border: 0; padding: 0; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: .22em; text-align: left }
.float-contact { width: 53px; height: 53px; display: grid; place-items: center; position: fixed; z-index: 4; bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px var(--shadow); background: var(--button); color: var(--button-text) }
.float-contact:hover { color: var(--button-text); filter: brightness(1.14) }
.interactive-demo { max-width: 680px }
.playground, .playground .field-row { display: grid; gap: 14px }
.playground .field-row { grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)) }
.playground .button { justify-self: start }
.demo-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px }
.demo-checkbox input { width: 20px; min-height: 20px }
.demo-output { padding: 14px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere }
.demo-output table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 8px; white-space: normal }
.demo-output :is(td,th) { padding: 6px; border-bottom: 1px solid var(--line) }
.rd-privacy { position: fixed; z-index: 8; bottom: max(18px,env(safe-area-inset-bottom)); left: 18px; width: min(480px,calc(100% - 36px)); max-height: calc(100dvh - 36px); overflow: auto; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 32px var(--shadow) }
.rd-privacy h2 { font-size: 1.3rem }
.rd-privacy p { margin: 8px 0 }
.rd-privacy summary { cursor: pointer; color: var(--accent); min-height: 36px }
.rd-privacy-actions { display: flex; flex-wrap: wrap; gap: 8px }
.rd-privacy-actions button { min-height: 44px; background: var(--surface-alt); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px }
#rd-accept { background: var(--button); color: var(--button-text) }
@media (max-width: 1020px) {
  .nav-order { display: none }
  .hero { min-height: 440px }
}
@media (max-width: 825px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .top-inner { flex-wrap: wrap; gap: 0 10px; padding-block: 9px }
  .js .menu-button { display: inline-flex }
  .nav { order: 2; width: 100%; padding: 8px 0; flex-wrap: wrap }
  .js .nav:not(.open) { display: none }
  .js .nav.open { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 9px }
  .nav-more div { position: static; box-shadow: none }
  .detail, .project-layout { grid-template-columns: minmax(0,1fr) }
  .detail .side-card { grid-row: 1; max-width: none }
  .detail .side-card .actions { flex-direction: row }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px) }
  .main { padding-block: 32px 70px }
  .home .main { padding-top: 16px }
  .hero { min-height: auto; grid-template-columns: 1fr; border-radius: 17px; padding: 28px 20px 12px }
  .hero h1 { font-size: clamp(2.2rem, 10.1vw, 3.6rem) }
  .hero-art { min-height: 185px; width: min(75%, 230px); margin-inline: auto; margin-block: 12px }
  .hero-art img { width: min(61%, 130px) }
  .hero p { margin-block: 16px 21px }
  .grid, .filters, .form-grid, .footer-grid { grid-template-columns: minmax(0,1fr) }
  .top-inner { min-height: 61px }
  .logo img { width: 35px; height: 35px; flex-basis: 35px; border-radius: 9px }
  .logo { gap: 8px; font-size: .91rem }
  .header-actions { gap: 6px }
  .section-head { align-items: start }
  .footer-contact { max-width: calc(100% - 54px) }
  .detail .side-card { grid-row: auto }
}
@media (prefers-reduced-motion: no-preference) {
  .main { animation: arrive .25s ease-out both }
  @keyframes arrive { from { opacity: .72; transform: translateY(3px) } to { opacity: 1; transform: none } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}

/* 4.0.2 — visible order routes and accessible contact menu */
.service-actions { display: grid; gap: 9px; margin-top: auto; padding-top: 12px }
.card-price { font-size: 1.15rem; padding-bottom: 4px }
.service-platforms { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px }
.button.platform-kwork { background: #087c61; border-color: #087c61; color: #fff }
.button.platform-vk { background: #0067d8; border-color: #0067d8; color: #fff }
.button:is(.platform-kwork,.platform-vk):hover { filter: brightness(1.13) }
.button.header-platform { padding: 6px 11px; font-size: .9rem; white-space: nowrap }
.header-kwork { color: var(--text) }
.header-vk { color: var(--text) }
.order-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px }
.order-option { display: flex; flex-direction: column; gap: 12px }
.order-option p { flex: 1; margin: 0 }
.order-option .actions { margin-top: 4px }
.platform-label { align-self: flex-start; font-size: 1.04rem; font-weight: 750 }
.kwork-label { color: #138568 }
.vk-label { color: #176fd4 }
:root[data-theme="dark"] .kwork-label { color: #64dab3 }
:root[data-theme="dark"] .vk-label { color: #83b9ff }
.request-panel { margin-top: 28px; max-width: 860px; scroll-margin-top: 18px }
.request-panel .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
@media (max-width: 1140px) { .nav-order { display: none } }
@media (min-width: 826px) and (max-width: 1000px) {
  .top-inner { gap: 10px; flex-wrap: wrap; padding-block: 9px }
  .nav { order: 2; width: 100%; justify-content: center }
}
@media (max-width: 570px) {
  .order-options, .request-panel .form-grid { grid-template-columns: minmax(0,1fr) }
  .header-actions { flex-wrap: wrap; justify-content: flex-end }
  .top-inner { row-gap: 8px }
  .button.header-platform { min-height: 44px }
  .request-panel .actions .button { width:100% }
}
/* VK Community Messages - transparent frame */
#vk-community-messages,
#vk-community-messages iframe {
    color-scheme: light !important;
    background: transparent !important;
    border: none !important;
}