/* ПоДелу v5 - editorial system and task routes. Layers over existing styles. */
:root{--v5-ink:#1b213d;--v5-accent:#6154e9;--v5-lime:#ddffa0;--v5-muted:#6f7791;--v5-border:#e5e7f2;--v5-canvas:#f8f9ff}
html{scroll-behavior:smooth}
body{background:#fff;color:var(--v5-ink);font-variant-numeric:lining-nums}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b6a7ff;outline-offset:3px}
.nav-links{gap:19px;font-size:12px}.nav-links>a{white-space:nowrap}.nav-links>a:last-child{color:#5647cc;font-weight:790}
.logo-icon{box-shadow:0 5px 15px #6857e52b}
.hero-v3{background:radial-gradient(ellipse 45% 60% at 95% 10%,#464487 0,transparent 88%),linear-gradient(118deg,#17192f,#202144 72%,#242557)}
.hero-v3 h1{letter-spacing:-.081em}
.hero-v3 .live-widget{border:1px solid #ebe9fc}
.hero-v3 .hero-chip-v3{border-color:#c2bfff39;color:#edeaff}
.v5-label{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:850;letter-spacing:.13em;text-transform:uppercase;color:#6556e9}
.v5-label::before{content:'';width:14px;height:5px;background:#c6a6ff;border-radius:5px}
.v5-home-collections{background:#f3f3fb;padding:83px 0 91px;border-bottom:1px solid #eae9f5;position:relative}
.v5-home-collections:before{content:'✳';position:absolute;top:15px;right:7%;font-size:145px;opacity:.045;color:#32236f;line-height:1;pointer-events:none}
.v5-home-collections-head{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:28px}
.v5-home-collections-head h2{color:#1e2341;font-weight:860;letter-spacing:-.064em;font-size:clamp(37px,4vw,56px);line-height:1.06;margin:16px 0 12px}
.v5-home-collections-head h2 em{color:#6557e7;font-style:normal}
.v5-home-collections-head p{color:#6f7691;font-size:14px;line-height:1.7;max-width:530px;margin:0}
.v5-home-collections-head>a{font-weight:800;font-size:13px;white-space:nowrap;border-radius:40px;border:1px solid #d9d8eb;background:#fff;padding:14px 20px;color:#5347cb;box-shadow:0 7px 20px #3b32650e}
.v5-home-collections-head>a:hover{background:#eceaff;border-color:#bfb9ff}
.v5-home-route-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.v5-home-route{position:relative;display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e6e5f0;min-height:201px;border-radius:20px;padding:22px;box-shadow:0 14px 30px #23224908;transition:transform .2s,box-shadow .2s,border-color .2s;overflow:hidden}
.v5-home-route:hover{transform:translateY(-4px);box-shadow:0 21px 40px #25265a17;border-color:#c9c4f6}
.v5-home-route-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:14px;color:#5a46d8;background:#edeaff;font-size:29px;line-height:1}
.v5-home-route:nth-child(2) .v5-home-route-icon{background:#d9f1e7;color:#168e6e}.v5-home-route:nth-child(3) .v5-home-route-icon{background:#fff0d7;color:#d07b18}.v5-home-route:nth-child(4) .v5-home-route-icon{background:#e5efff;color:#3973d6}
.v5-home-route strong{font-size:16px;letter-spacing:-.035em;color:#21243b;line-height:1.35}
.v5-home-route small{font-size:12px;color:#878ca5;line-height:1.35;max-width:215px}
.v5-home-route b{position:absolute;right:20px;top:21px;font-size:20px;color:#8b85c9}
/* Task collections pages */
.v5-collections,.v5-collection-detail,.v5-my{background:#fafbff;min-height:70vh}
.v5-collections-intro{background:#1c2040;color:white;padding:104px 0 93px;position:relative;overflow:hidden}
.v5-collections-intro:after{content:'✳';font-size:370px;position:absolute;right:5%;top:-95px;opacity:.085;color:#ddffa0;line-height:1;pointer-events:none}
.v5-collections-intro .wrap{position:relative;z-index:1}
.v5-collections-intro h1{font-size:clamp(48px,5.4vw,77px);letter-spacing:-.072em;line-height:1.07;font-weight:890;margin:25px 0 20px}
.v5-collections-intro h1 em{color:var(--v5-lime);font-style:normal}
.v5-collections-intro .v5-label{color:#d6ffa6}.v5-collections-intro p{color:#bfc4db;line-height:1.7;max-width:680px;font-size:16px}
.v5-intro-actions{margin-top:33px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.v5-pill-cta,.v5-pill-outline{display:inline-flex;align-items:center;padding:15px 22px;border-radius:13px;font-size:13px;font-weight:850}
.v5-pill-cta{background:#dcffa0;color:#1e2540}.v5-pill-cta:hover{background:#caff76}
.v5-pill-outline{border:1px solid #b9bbd166;color:#fff}.v5-pill-outline:hover{background:#ffffff15}
.v5-routes{padding:80px 0 54px}.v5-section-label{letter-spacing:.15em;font-size:11px;color:#6664c4;font-weight:820;margin-bottom:21px}
.v5-routes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.v5-route-card{background:white;min-height:300px;padding:29px 28px 27px;border:1px solid #e4e5ee;border-radius:20px;display:flex;flex-direction:column;box-shadow:0 11px 37px #242b5108;transition:transform .22s,border-color .22s,box-shadow .22s}
.v5-route-card:hover{transform:translateY(-4px);border-color:#c3bbf9;box-shadow:0 25px 43px #22245b16}
.v5-route-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.v5-route-icon{display:grid;place-items:center;width:55px;height:55px;background:#eceaff;color:#6c5ce7;border-radius:16px;font-size:29px}.v5-route-card:nth-child(2) .v5-route-icon,.v5-route-card:nth-child(6) .v5-route-icon{background:#dff4e9;color:#229b76}.v5-route-card:nth-child(3) .v5-route-icon{background:#fff1db;color:#d58b23}
.v5-route-index{font-size:10px;letter-spacing:.1em;font-weight:830;color:#8c90aa;text-align:right}
.v5-route-card h2{font-size:24px;letter-spacing:-.048em;font-weight:850;line-height:1.15;margin:25px 0 9px;color:#222442}
.v5-route-card p{font-size:13px;color:#77809a;line-height:1.6;margin:0 0 22px;flex:1}
.v5-route-footer{font-size:11px;color:#6357ce;display:flex;justify-content:space-between;align-items:center;font-weight:790;padding-top:15px;border-top:1px solid #f0f0f6}.v5-route-footer b{font-size:19px}
.v5-collections-bottom{background:#1f2342;border-radius:25px;padding:40px 45px;margin-top:16px;margin-bottom:95px;display:flex;align-items:center;gap:25px;flex-wrap:wrap;color:#fff}
.v5-collections-bottom h2{font-size:25px;letter-spacing:-.04em;flex:0 0 100%;margin:0}.v5-collections-bottom p{font-size:13px;line-height:1.6;color:#bec4df;max-width:730px;margin:0;flex:1}.v5-collections-bottom a{background:#ddffa0;color:#252747;border-radius:10px;padding:13px 18px;font-size:12px;font-weight:850}
.v5-collection-detail .breadcrumb,.v5-my .breadcrumb{padding-top:24px}
.v5-collection-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:57px 56px;border-radius:25px;background:linear-gradient(120deg,#232748,#343468);color:white;margin:19px 0 38px;position:relative;overflow:hidden}
.v5-collection-hero h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;letter-spacing:-.06em;font-weight:850;color:white;margin:20px 0 14px}.v5-collection-hero p{font-size:15px;line-height:1.7;color:#c7c9dc;max-width:680px}.v5-collection-hero .v5-label{color:#dbffa2}
.v5-count{display:inline-block;font-size:11px;font-weight:820;color:#d8ffa0;border:1px solid #cfffaa5c;border-radius:30px;padding:9px 13px;margin-top:12px}
.v5-collection-art{display:grid;place-items:center;background:#ffffff12;color:#ddffa0;width:180px;height:180px;border-radius:44px;transform:rotate(-15deg);font-size:116px;flex:0 0 180px}
.v5-steps-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(250px,.8fr);gap:24px;padding-bottom:55px}
.v5-steps{background:#fff;border-radius:24px;padding:32px 39px;border:1px solid #e8e9f2;box-shadow:0 15px 35px #1d1d4b08}
.v5-steps-label{font-size:25px;color:#252544;letter-spacing:-.045em;margin:0 0 22px}
.v5-steps ol{padding:0;margin:0;list-style:none}
.v5-step{display:flex;gap:23px;border-bottom:1px solid #edeef4;padding:25px 0}.v5-step:last-child{border:0}
.v5-step-num{display:grid;place-items:center;flex:0 0 49px;height:49px;background:#eceaff;color:#6555d9;font-size:15px;font-weight:850;border-radius:15px}
.v5-step>div{flex:1}.v5-step-subtitle{font-size:10px;color:#9498b0;letter-spacing:.13em;font-weight:850}
.v5-step h2{font-size:20px;letter-spacing:-.035em;margin:6px 0 8px;color:#272a48}.v5-step p{font-size:13px;line-height:1.6;color:#757b94;max-width:540px;margin:0 0 15px}
.v5-step a{display:inline-flex;gap:12px;align-items:center;border-radius:10px;padding:12px 15px;background:#6454e8;color:#fff;font-size:12px;font-weight:780}.v5-step a:hover{background:#5141d7}
.v5-side{display:flex;flex-direction:column;gap:18px}.v5-route-tip{border-radius:20px;padding:25px;background:#e9fbd5;border:1px solid #d1e8b7}.v5-route-tip span{font-size:11px;letter-spacing:.12em;font-weight:850;color:#4f884a}.v5-route-tip p{line-height:1.7;font-size:13px;color:#3e6541;margin:12px 0 0}
.v5-route-other{background:white;border:1px solid #e9e9f2;border-radius:20px;padding:25px;display:flex;flex-direction:column;gap:16px}.v5-route-other strong{font-size:16px;margin-bottom:5px}.v5-route-other a{font-size:13px;font-weight:650;color:#6358d8}
.v5-route-end{text-align:center;background:#ebeafd;padding:48px 20px;border-radius:22px;margin:4px 0 90px}.v5-route-end h2{font-size:27px;letter-spacing:-.045em;margin:0}.v5-route-end p{font-size:13px;color:#656e9b;margin:12px 0 21px}.v5-route-end a{font-size:12px;font-weight:850;background:#5f50dc;color:#fff;padding:13px 21px;border-radius:10px}
/* Device-local dashboard */
.v5-my{padding-bottom:95px}.v5-my-hero{margin:20px 0 18px;padding:53px 56px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-radius:25px;background:linear-gradient(110deg,#1e2244,#393b7c);color:#fff;position:relative;overflow:hidden}
.v5-my-hero .v5-label{color:#ddffa0}.v5-my-hero h1{font-size:clamp(42px,5vw,63px);line-height:1.06;letter-spacing:-.065em;font-weight:870;margin:17px 0;color:white}.v5-my-hero h1 em{color:#dbffa1;font-style:normal}.v5-my-hero p{font-size:14px;color:#ced0e7;line-height:1.7;max-width:620px}
.v5-my-hero-icon{font-size:160px;line-height:1;color:#dbffa0;opacity:.85;transform:rotate(-12deg)}
.v5-my-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:50px}
.v5-my-metrics>div{background:#fff;border:1px solid #e7e7f1;display:flex;flex-direction:column;gap:3px;padding:20px 28px;border-radius:15px}.v5-my-metrics strong{font-size:37px;font-weight:850;color:#252749;letter-spacing:-.06em}.v5-my-metrics span{font-size:12px;color:#7b809c;font-weight:630}
.v5-my-area{margin-bottom:42px}.v5-my-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px}.v5-my-section-head h2{font-size:26px;letter-spacing:-.055em;margin:0}.v5-my-section-head>a,.v5-my-section-head button{font-size:12px;color:#6556d7;font-weight:760;border:0;background:none;cursor:pointer}
.v5-my-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.v5-my-tool{background:#fff;border:1px solid #e7e9f2;border-radius:16px;padding:19px;display:flex;gap:14px;align-items:center;min-height:110px;transition:transform .2s,border-color .2s}.v5-my-tool:hover{transform:translateY(-2px);border-color:#c3baff}.v5-my-tool-glyph{display:grid;place-items:center;flex:0 0 39px;height:39px;background:#eeebff;color:#6151db;border-radius:12px;font-size:23px}.v5-my-tool span:last-child{min-width:0}.v5-my-tool strong,.v5-my-tool small{display:block}.v5-my-tool strong{font-size:13px;color:#252847;margin-bottom:8px;line-height:1.3}.v5-my-tool small{font-size:11px;color:#8f92a6;line-height:1.4}
.v5-my-empty{grid-column:1/-1;background:#fff;border:1px dashed #cfd0e5;border-radius:16px;padding:27px;color:#7f85a0;font-size:13px}.v5-my-empty p{margin:0 0 11px}.v5-my-empty a{font-size:12px;font-weight:810;color:#5c4fe0}
.v5-saved-card{background:white;border:1px solid #e7e8f3;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px;min-height:168px}.v5-saved-card>span{font-size:10px;font-weight:840;color:#6554dd;letter-spacing:.06em}.v5-saved-card>strong{font-size:13px;line-height:1.4;flex:1;overflow-wrap:anywhere}.v5-saved-card>small{font-size:11px;color:#9a9fb1}.v5-saved-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.v5-saved-card a{color:#5c4bdd;font-size:12px;font-weight:780}.v5-saved-card button{border:0;border-radius:7px;background:#fdf3f5;color:#b35968;padding:8px;font-size:10px;cursor:pointer}
.v5-my-privacy{display:flex;gap:18px;align-items:flex-start;padding:26px;border:1px solid #d9d4fb;background:#efedff;border-radius:15px}.v5-my-privacy>span{font-size:32px;color:#6655dc;line-height:1}.v5-my-privacy p{font-size:12px;line-height:1.7;color:#6d6b94;margin:0}.v5-my-privacy strong{color:#34325f}
/* More legible working areas, tools and form states */
body .page-head h1{letter-spacing:-.052em;line-height:1.1}
body .paper{border-radius:21px;box-shadow:0 15px 35px #1b225d05}
body .calculator-form .field label{font-weight:750;letter-spacing:-.015em}
body .result-box{border-radius:19px}
body .result-primary{overflow-wrap:anywhere;word-break:break-word}
body .category-header h1{letter-spacing:-.055em}
body .category-card:hover,body .tool-card:hover{box-shadow:0 14px 27px #22235712}
body .directory-tool{border-radius:15px}
body .home-studio-links a{transition:transform .2s,border-color .2s}.home-studio-links a:hover{transform:translateY(-3px)}
/* Fluid layout */
@media(max-width:1240px){.nav-links{gap:12px;font-size:11px}.header-search-btn{min-width:auto}.v5-home-route strong{font-size:14px}}
@media(max-width:1050px){.nav-links a:nth-child(2),.nav-links a:nth-child(3){display:none}.v5-routes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-home-route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-my-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.nav-links{display:none}.v5-home-collections{padding:65px 0}.v5-home-collections-head{flex-direction:column;align-items:flex-start;gap:20px}.v5-home-route-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v5-home-route{min-height:188px;padding:18px}.v5-collections-intro{padding:71px 0 67px}.v5-routes{padding:54px 0}.v5-route-card{min-height:260px}.v5-collection-hero{padding:35px 26px}.v5-collection-art{width:95px;height:95px;flex-basis:95px;font-size:68px;border-radius:24px}.v5-steps-layout{grid-template-columns:1fr}.v5-side{display:grid;grid-template-columns:1fr 1fr}.v5-my-hero{padding:38px 28px}.v5-my-hero-icon{font-size:92px}.v5-my-metrics>div{padding:15px}.v5-my-metrics strong{font-size:30px}}
@media(max-width:520px){.v5-home-collections{padding:50px 0 56px}.v5-home-collections-head h2{font-size:37px}.v5-home-route-grid{grid-template-columns:1fr 1fr}.v5-home-route{padding:15px;min-height:200px}.v5-home-route-icon{width:40px;height:40px;font-size:23px}.v5-home-route strong{font-size:13px}.v5-home-route small{font-size:10px}.v5-home-route b{font-size:16px;right:13px;top:15px}.v5-collections-intro h1{font-size:45px}.v5-collections-intro p{font-size:14px}.v5-routes-grid{grid-template-columns:1fr}.v5-route-card{min-height:247px}.v5-route-card h2{font-size:22px}.v5-collections-bottom{padding:25px;margin-bottom:50px}.v5-collections-bottom p{min-width:100%}.v5-collection-art{display:none}.v5-collection-hero h1{font-size:38px}.v5-collection-hero p{font-size:13px}.v5-steps{padding:18px}.v5-step{gap:12px}.v5-step-num{flex-basis:38px;height:38px;font-size:12px}.v5-step h2{font-size:17px}.v5-step p{font-size:12px}.v5-step a{font-size:11px}.v5-side{grid-template-columns:1fr}.v5-my-hero{padding:30px 23px}.v5-my-hero-icon{display:none}.v5-my-hero h1{font-size:42px}.v5-my-metrics{gap:8px;margin-bottom:37px}.v5-my-metrics>div{padding:12px 10px}.v5-my-metrics strong{font-size:25px}.v5-my-metrics span{font-size:10px}.v5-my-card-grid{grid-template-columns:1fr}.v5-my-section-head h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.v5-home-route,.v5-route-card,.v5-my-tool{transition:none}}

/* The main form and the related links must never compete for a phone column. */
.inner-layout > *, .fields-grid > *, .result-actions > * { min-width: 0; }
@media (max-width: 860px) {
  .inner-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .inner-layout .sidebar { position: static; grid-column: 1; }
}
@media (max-width: 600px) {
  .inner-layout .paper { padding: clamp(15px,4.2vw,24px); }
  .inner-layout .sidebar, .calculator-form .fields-grid { grid-template-columns: minmax(0,1fr); }
  .field input, .field select, .field textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  .result-box { padding: 16px; }
  .result-actions .btn { max-width: 100%; white-space: normal; min-height: 42px; font-size: 13px; }
  .result-row { flex-wrap: wrap; gap: 4px 12px; }
  .result-row strong { margin-inline-start: auto; }
  .content-section, .field label, .notice { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .page-head h1, .breadcrumb { overflow-wrap: anywhere; hyphens: auto; }
}
