@import url("../page-width.css");

@font-face {
  font-family: Inter;
  src: url("inter-latin-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #10263a;
  --muted: #485e6a;
  --teal: #006b68;
  --mint: #8ee6e1;
  --line: #ccdbdc;
  --paper: #f9fcfb;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.55 Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, input:focus-visible + label { outline: 3px solid var(--selection-edge, #257fb8); outline-offset: 4px; }
.visually-hidden, .week-switch input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.skip { position: absolute; transform: translateY(-150%); z-index: 5; padding: .65rem 1rem; color: var(--ink); background: white; }
.skip:focus { transform: translate(8px,8px); }
.container { width: min(100% - 2 * var(--page-min-gutter), var(--page-max-width)); margin-inline: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, strong, b { font-weight: 680; }
.mast, footer { background: #102536; color: #eff8f7; }
.mastline, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.mastline { min-height: 80px; border-bottom: 1px solid #ffffff23; }
.wordmark { display: inline-flex; flex: none; gap: 9px; align-items: center; font-size: 1rem; line-height: 1.04; font-weight: 690; letter-spacing: -.035em; }
.mast a, footer a { color: inherit; text-decoration: none; }
.mast nav, .footer-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.mast nav a, .footer-links a { font-size: .94rem; }
.mast nav a:hover, .footer-links a:hover { color: var(--selection-bg, #a6efdf); text-decoration: underline; }
.signin { display: inline-flex; align-items: center; justify-content: center; white-space: pre; border: 1px solid #a6c5cb77; border-radius: 12px; min-height: 42px; padding-inline: 1.05rem; font-weight: 650; font-size: .94rem; }
.signin:hover { background: var(--selection-bg, #213c4c); color:var(--selection-ink,inherit); }
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #f0f9f6; background-color: #102536;
  background-image: radial-gradient(ellipse at 80% 36%, #164c55 0%, transparent 40%), radial-gradient(ellipse at 96% 98%, #34395c 0%, transparent 37%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 46%; opacity: .24; pointer-events: none;
  background-image: linear-gradient(90deg, #a7d8d730 1px, transparent 1px), linear-gradient(#a7d8d730 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to right,transparent,#000 35%,#000);
}
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; padding-block: clamp(64px, 7.2vw, 106px) clamp(72px, 8vw, 116px); }
.hero-copy { min-width: 0; }
.hero-label { color: #b4dedc; font-size: .9rem; font-weight: 620; margin-bottom: 22px; }
h1 { font-size: clamp(3.35rem, 5.3vw, 5.1rem); line-height: 1.03; letter-spacing: -.063em; font-weight: 690; }
h1 em { color: #a0eadf; font-style: normal; }
.lead { margin-block: 24px 30px; max-width: 48ch; font-size: clamp(1rem, 1.4vw, 1.19rem); line-height: 1.56; color: #d1e1e3; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 13px; text-decoration: none; font-weight: 640; }
.primary { background: var(--selection-bg, #a0eadf); color: var(--selection-ink, #092e35); border-color:var(--selection-edge, transparent); }
.primary:hover { background: var(--selection-hover, #c4f6ed); }
.secondary { color: #eaf4f4; border-color: #a5c4ce65; }
.secondary:hover { background: var(--selection-bg, #233e50); color:var(--selection-ink,inherit); }
.plan-demo {
  position: relative; z-index: 0; padding: clamp(16px,2.5vw,29px); min-width: 0;
  background: linear-gradient(145deg,#294e5a 0%,#1e3848 54%,#283b51 100%);
  border: 1px solid #91c7c79a; border-bottom-color: #7c94bea6; border-radius: 25px;
  box-shadow: inset 0 1px 0 #e4fffb3b, 0 26px 60px #04132259;
}
.demo-head, .demo-brand, .month-head, .network, .footer-links { display: flex; align-items: center; }
.demo-head, .month-head { justify-content: space-between; gap: 10px; }
.demo-head { color: #f2faf8; margin-bottom: 20px; }
.demo-brand { gap: 8px; font-size: clamp(1rem, 1.65vw, 1.22rem); letter-spacing: -.025em; }
.demo-label { color: #c5dcde; font-size: .82rem; }
.calendar { min-width: 0; margin: 0; padding: clamp(13px, 1.8vw, 22px); background: #f5f9f7; color: var(--ink); border: 1px solid #ddf2e6; border-radius: 15px; }
.month-head { margin-bottom: 14px; }
.month-head b { font-size: 1.18rem; letter-spacing: -.04em; }
.month-head span { color: #526973; font-size: .82rem; }
.week-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.week-switch > label { display: flex; align-items: baseline; justify-content: center; gap: .35em; padding: 8px 3px; border: 1px solid #d5e1e0; border-radius: 9px; font-size: .88rem; cursor: pointer; color: #415765; background: #fafcfb; }
.week-switch > label:hover { border-color: var(--selection-edge, #497f82); }
.week-switch > input:checked + label { color: var(--selection-ink, #f3fffb); background: var(--selection-bg, #006b68); border-color: var(--selection-edge, #006b68); }
.agenda { grid-column: 1 / -1; margin-top: 6px; }
.day { display: none; }
.day-mon, #day-tue:checked ~ .agenda .day-tue, #day-wed:checked ~ .agenda .day-wed { display: block; }
#day-tue:checked ~ .agenda .day-mon, #day-wed:checked ~ .agenda .day-mon { display: none; }
.event { display: grid; align-items: center; grid-template-columns: auto 38px 1fr; gap: clamp(7px, .9vw, 13px); padding-block: 12px; border-top: 1px solid #d6e1de; }
.event:last-child { padding-bottom: 1px; }
.event time { color: #4d6571; font-variant-numeric: tabular-nums; font-size: .85rem; }
.event-copy { min-width: 0; }
.event-copy strong { display: block; font-size: clamp(.88rem,1.15vw,1rem); line-height: 1.25; margin-bottom: 5px; }
.platforms { display: flex; flex-wrap: wrap; gap: 4px; }
.platform { font-size: .75rem; line-height: 1.2; padding: 3px 6px; border-radius: 4px; }
.platform-telegram { color: #1c5976; background: #d9edf3; }
.platform-vk { color: #244f87; background: #dce9f9; }
.platform-max { color: #5b4685; background: #ece3f9; }
.art { width: 38px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; }
.art-mint { background: #b5dacf; }
.art-mint::after, .art-mint i { content: ""; position: absolute; inset: 5% 20%; border: 3px solid #206365; border-radius: 100%; transform: rotate(43deg); }
.art-mint i { inset: 22% 11%; border-color: #487a75; }
.art-rose { background: repeating-linear-gradient(130deg,#b87472 0 5px,#f1c5b3 6px 11px,#f0a7a0 12px 17px); }
.art-lilac { background: radial-gradient(ellipse at 70% 15%,#e6ddff 10%,transparent 48%),repeating-linear-gradient(48deg,#726b9d 0 6px,#9d97b9 6px 11px); }
.section { padding-block: clamp(62px, 7vw, 100px); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2.05rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.057em; }
.section-heading p { margin-top: 13px; color: var(--muted); max-width: 58ch; }
.workflows { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(15px,2vw,25px); }
.workflow { min-width: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.example { height: clamp(165px,18vw,210px); display: grid; place-items: center; padding: 16px; overflow: hidden; }
.editor-example { background: radial-gradient(ellipse at 70% 0,#d5cedf 0%,transparent 55%),linear-gradient(115deg,#e9e1e5,#dedee9 72%,#d7ddeb); }
.draft-paper { display: flex; flex-direction: column; justify-content: center; padding: 15px 24px; width: min(77%,275px); min-height: 124px; border: 1px solid #ffffffc4; border-radius: 13px; color: #30384a; background: linear-gradient(140deg,#fffffff2,#f6f6f7e8); box-shadow: 0 8px 19px #6e667a22; transform: rotate(-4deg); }
.draft-paper strong { line-height: 1.15; font-size: 1rem; margin-block: 8px; }
.draft-tag, .draft-hash { font-size: .75rem; font-weight: 620; }
.draft-tag { color: #555571; }
.pencil { display: inline-block; margin-right: 4px; font-size: .9rem; line-height: 1; }
.draft-hash { color: #51657a; margin-top: 7px; }
.draft-line { background: #ced2da; height: 3px; width: 88%; border-radius: 2px; margin-top: 4px; }
.draft-line.short { width: 60%; }
.route-example { background-color: #c2e0da; background-image: radial-gradient(#66958d5c 1px, transparent 1px); background-size: 14px 14px; }
.route-sketch { position: relative; display: grid; grid-template: 'source hub vk' 1fr 'source hub max' 1fr / auto minmax(52px,1fr) auto; align-items: center; gap: 13px 0; width: min(100%,330px); }
.route-source { grid-area: source; }.route-hub { grid-area: hub; }.route-vk { grid-area: vk; }.route-max { grid-area: max; }
.route-sketch::before, .route-sketch::after { content: ""; position: absolute; pointer-events: none; }
.route-sketch::before { top: 50%; left: 10%; width: 58%; border-top: 2px solid #598e8a; }
.route-sketch::after { inset: 22% 15% 22% 64%; border: 2px solid #598e8a; border-right: 0; border-radius: 9px 0 0 9px; }
.route-hub, .route-vk, .route-max, .route-source { justify-self: center; z-index: 1; }
.route-hub { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #8dbbb2; border-radius: 14px; background: #effbf5; }
.network { gap: 6px; padding: 7px 10px; border: 1px solid #a1c6be; background: #f5fbf9; color: #193d49; font-size: .83rem; font-weight: 630; border-radius: 11px; }
.network img { width: 22px; height: 22px; }
.workflow-text { padding: clamp(20px, 2.5vw, 33px); }
.workflow-text h3, .plan-card h3 { font-size: clamp(1.3rem,2.1vw,1.65rem); line-height: 1.16; letter-spacing: -.045em; }
.workflow-text p { margin-block: 11px 15px; color: var(--muted); max-width: 50ch; }
.workflow-text a, .section-heading > a { font-weight: 620; }
footer { padding-block: 28px; }
.footer-inner { flex-wrap: wrap; }
@media (max-width: 940px) {
  .hero-inner { gap: 25px; grid-template-columns: 1fr 1fr; }
  .demo-brand { gap: 6px; }
  .demo-brand img { width: 29px; height: 29px; }
  .event { grid-template-columns: auto 30px 1fr; }.art { width: 30px; }
}
@media (max-width: 780px) {
  .mastline { flex-wrap: wrap; gap: 7px 22px; padding-block: 10px; }
  .mast nav { order: 1; width: 100%; flex-wrap: wrap; gap: 3px 22px; }
  .mast nav a { padding: 5px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 35px; padding-block: 46px 48px; }
  .hero-copy { max-width: 580px; }
  h1 { font-size: clamp(3.1rem, 8.2vw, 4.3rem); }
  .plan-demo { width: min(100%,530px); }
  .hero::after { inset: 40% 0 0; }
  .event { grid-template-columns: auto 38px 1fr; gap: 12px; }.art { width: 38px; }
  .example { padding: 13px; }
  .network { padding: 5px; }.network img { width: 19px; height: 19px; }
}
@media (max-width: 620px) {
  .button { padding-inline: .85rem; font-size: .94rem; }
  .workflows { grid-template-columns: 1fr; }
  .network { padding: 7px 9px; }.network img { width: 21px; height: 21px; }
  .example { height: 170px; }
  .footer-inner { gap: 18px; }.footer-links { flex-wrap: wrap; gap: 8px 16px; }
}
@media (max-width: 390px) {
  .mast nav { gap: 0 13px; }
  .mast nav a { font-size: .875rem; }
  .signin-extra { display: none; }
  .week-switch > label { font-size: .82rem; }
  .event { grid-template-columns: auto 1fr; }.art { display: none; }
  .network { padding: 5px; }.network img { width: 17px; height: 17px; }
  .route-hub { width: 39px; height: 39px; }
}
@media (forced-colors: active) {
  .week-switch > input:checked + label { outline: 2px solid Highlight; }
}
