/* Выбранные макеты: У1 «Личный атлас» и М2 «Созвездие». */
#hobbies-cards{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
#hobbies-cards>.atlas-card{grid-column:span 3;display:flex;flex-direction:column;min-width:0;background:#fffaf1;border:1px solid #e9e3d5;border-radius:22px;isolation:auto}
#hobbies-cards>.atlas-card:nth-child(-n+3){grid-column:span 4}
#hobbies-cards>.atlas-card:nth-child(2),#hobbies-cards>.atlas-card:nth-child(4),#hobbies-cards>.atlas-card:nth-child(7){background:#fdf0df}
#hobbies-cards>.atlas-card:nth-child(3),#hobbies-cards>.atlas-card:nth-child(5),#hobbies-cards>.atlas-card:nth-child(6){background:#f1f4e9}
#hobbies-cards>.atlas-card:hover{transform:translateY(-4px);border-color:#d4b18f;box-shadow:0 9px 25px #274d460a}
.hobby-visual{position:relative;width:100%;aspect-ratio:1.65;overflow:hidden;flex-shrink:0;mix-blend-mode:multiply}
.hobby-painting{display:block;position:absolute;left:0;top:50%;width:100%;aspect-ratio:2;transform:translateY(-50%);background-repeat:no-repeat;background-image:url('assets/hobbies-watercolor-primary.webp');background-size:100% 300%}
.hobby-visual-go .hobby-painting{background-position:0 0}.hobby-visual-theatre-art .hobby-painting{background-position:0 50%}.hobby-visual-directing .hobby-painting{background-position:0 100%}
.hobby-visual-cultures .hobby-painting,.hobby-visual-science .hobby-painting,.hobby-visual-videogames .hobby-painting,.hobby-visual-wing-chun .hobby-painting{aspect-ratio:1.5;background-image:url('assets/hobbies-watercolor-secondary.webp');background-size:200% 200%}
.hobby-visual-cultures .hobby-painting{background-position:0 0}.hobby-visual-science .hobby-painting{background-position:100% 0}.hobby-visual-videogames .hobby-painting{background-position:0 100%}.hobby-visual-wing-chun .hobby-painting{background-position:100% 100%}
.hobby-visual>img{width:100%;height:100%;object-fit:cover}
.atlas-copy{display:flex;flex-direction:column;flex:1;min-width:0;padding:12px 18px 19px}
.atlas-title{font-size:18px;line-height:1.3;letter-spacing:-.035em;margin:0 0 8px}
#hobbies-cards>.atlas-card:nth-child(-n+3) .atlas-title{font-size:21px}
.atlas-teaser{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 17px}
.atlas-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;color:#bd7e4d;font-size:12px}
.atlas-arrow{display:grid;place-items:center;border-radius:50%;width:35px;height:35px;background:#fbe4cc;color:#164b50;transition:transform .18s,background .18s}
.atlas-arrow svg{width:20px;height:20px}.atlas-card:hover .atlas-arrow{transform:translateX(2px);background:#f3d5b5}
.modal-visual.modal-hobby{height:auto;background:#fff9ef}.modal-hobby .hobby-visual{aspect-ratio:2}.modal-hobby .hobby-visual-cultures,.modal-hobby .hobby-visual-science,.modal-hobby .hobby-visual-videogames,.modal-hobby .hobby-visual-wing-chun{aspect-ratio:1.5}
.dreams-panel{position:relative;isolation:isolate;overflow:hidden;border-radius:34px;padding:46px 30px 34px;background:#164b50;color:#fff9ef}
.dream-constellation{position:absolute;inset:0;width:100%;height:100%;color:#eebf80;opacity:.65;z-index:-1;pointer-events:none}
.dreams-panel>.section-heading{margin-bottom:18px;padding-right:180px}
.dreams-panel>.section-heading .section-icon{display:none}
.dreams-panel .eyebrow{color:#f2c68d;letter-spacing:.24em;margin-bottom:15px}
.dreams-panel h2{font-size:52px;letter-spacing:-.035em;color:#fff9ef}
.dreams-panel>.section-intro{color:#e1ebe1;font-size:17px;max-width:830px;margin-bottom:32px}
.dreams-note{position:absolute;top:46px;right:57px;color:#f0c38a;font-size:24px;line-height:1.12;transform:rotate(-8deg);text-align:center;pointer-events:none}
.dreams-panel #dreams-cards{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;z-index:1}
#dreams-cards>.dream-card{grid-column:span 3;min-height:278px;color:var(--ink);border:1px solid #fff4e4;border-radius:25px;background:#fff9ef;box-shadow:none}
#dreams-cards>.dream-card:hover{border-color:#f2bd80;transform:translateY(-4px);box-shadow:0 8px 26px #092f3829}
#dreams-cards>.featured-dream{grid-column:span 6;min-height:335px}
.dream-illustration{position:absolute;right:0;top:0;width:67%;height:100%;object-fit:cover;object-position:65% 50%;mask-image:linear-gradient(90deg,transparent 0%,#000 55%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 55%);pointer-events:none}
.dream-copy{position:relative;display:flex;flex-direction:column;flex:1;padding:25px 22px;min-width:0}
.featured-dream .dream-copy{width:63%;padding:28px 26px}
.dream-title{font-size:18px;line-height:1.3;letter-spacing:-.035em;margin:0 0 9px}
.featured-dream .dream-title{font-size:25px;line-height:1.25;margin-bottom:15px}
.dream-teaser{font-size:12px;line-height:1.7;color:#58716d;margin:0}
.featured-dream .dream-teaser{font-size:13px;line-height:1.8;margin-bottom:25px;color:#36595a}
.dream-open{display:flex;align-items:center;justify-content:space-between;align-self:flex-start;gap:20px;min-width:112px;min-height:34px;border-radius:99px;background:#fce6d2;padding:8px 15px;margin-top:auto;font-size:11px;line-height:1.3;color:#164b50}
.dream-open svg{width:19px;height:19px;flex-shrink:0}
.dream-sketch{position:relative;flex:1;min-height:100px;display:grid;place-items:center;margin:9px -7px;color:#cc985f}
.dream-sketch>svg:first-child{width:76px;height:76px;stroke-width:.9;opacity:.85}
.dream-sketch .dream-horizon{position:absolute;bottom:0;left:0;width:100%;height:65px;stroke:currentColor;stroke-width:.8;opacity:.65}
.dream-sketch-2>svg:first-child{transform:rotate(-12deg)}
.dream-sketch-3>svg:first-child{width:80px;height:80px;transform:translateY(-4px)}
.dream-sketch-5:before{content:"";position:absolute;width:130px;height:53px;border:1px dashed #d0a470;border-radius:50%;transform:rotate(-20deg)}
.modal-visual:has(img[src*="dream-campus-watercolor"]),.modal-visual:has(img[src*="dream-stadium-watercolor"]){height:auto;background:#fff9ef}
.modal-visual>img[src*="dream-campus-watercolor"],.modal-visual>img[src*="dream-stadium-watercolor"]{height:auto;max-height:500px;object-fit:contain}
@media(max-width:1000px){
 #hobbies-cards{gap:14px}.atlas-copy{padding:12px 15px 18px}.atlas-title{font-size:17px}#hobbies-cards>.atlas-card:nth-child(-n+3) .atlas-title{font-size:19px}.atlas-teaser{font-size:11px}
 .dreams-note{right:35px;font-size:21px}
 .dreams-panel{padding-inline:24px}.dreams-panel h2{font-size:46px}
 .featured-dream .dream-copy{width:70%;padding:25px 22px}.featured-dream .dream-title{font-size:23px}
 .dream-title{font-size:17px}.dream-copy{padding:22px 18px}.dream-teaser{font-size:11px}
}
@media(max-width:760px){
 #hobbies-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}#hobbies-cards>.atlas-card:nth-child(n){grid-column:span 1}#hobbies-cards>.atlas-card:nth-child(3){grid-column:span 2}
 .atlas-title{font-size:19px}#hobbies-cards>.atlas-card:nth-child(-n+3) .atlas-title{font-size:21px}.atlas-copy{padding:13px 19px 20px}.atlas-teaser{font-size:12px}#hobbies-cards>.atlas-card:nth-child(3) .hobby-visual{aspect-ratio:2.1}
 .dreams-panel{padding:32px 22px 24px;border-radius:29px}.dreams-note{display:none}
 .dreams-panel>.section-heading{padding-right:0}.dreams-panel h2{font-size:39px}.dreams-panel .eyebrow{font-size:8px}
 .dreams-panel>.section-intro{font-size:15px;margin-bottom:24px}
 .dreams-panel #dreams-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
 #dreams-cards>.dream-card{grid-column:span 1;min-height:260px}
 #dreams-cards>.featured-dream{grid-column:span 2;min-height:280px}
 .featured-dream .dream-copy{width:57%;padding:27px}.featured-dream .dream-title{font-size:25px}
 .dream-title{font-size:19px}.dream-teaser{font-size:12px}.dream-copy{padding:23px}
}
@media(max-width:480px){
 #hobbies-cards{gap:13px}#hobbies-cards>.atlas-card{border-radius:19px}#hobbies-cards>.atlas-card:nth-child(-n+3){grid-column:span 2}
 #hobbies-cards>.atlas-card:nth-child(-n+3) .hobby-visual{aspect-ratio:1.65}
 .atlas-copy{padding:10px 14px 16px}.atlas-title{font-size:16px;line-height:1.3}#hobbies-cards>.atlas-card:nth-child(-n+3) .atlas-title{font-size:20px}.atlas-teaser{font-size:11px;line-height:1.75;margin-bottom:15px}.atlas-bottom{font-size:11px}.atlas-arrow{width:29px;height:29px}.atlas-arrow svg{width:17px;height:17px}
 .dreams-panel{padding:29px 15px 18px;border-radius:25px}
 .dreams-panel h2{font-size:36px}.dreams-panel .eyebrow{font-size:7px;letter-spacing:.18em;margin-bottom:12px}
 .dreams-panel>.section-heading{margin-bottom:15px}.dreams-panel>.section-intro{font-size:12px;line-height:1.9;margin-bottom:22px}
 .dreams-panel #dreams-cards{gap:12px}
 #dreams-cards>.dream-card{border-radius:19px;min-height:255px}
 #dreams-cards>.featured-dream{min-height:310px}
 .featured-dream .dream-copy{width:76%;padding:23px 19px}.featured-dream .dream-title{font-size:20px;line-height:1.25;margin-bottom:12px;overflow-wrap:anywhere}.featured-dream .dream-teaser{font-size:11px;line-height:1.8;margin-bottom:20px}
 .dream-illustration{mask-image:linear-gradient(90deg,transparent 0%,#000 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 100%)}
 .dream-copy{padding:19px 14px}.dream-title{font-size:17px;line-height:1.3}.dream-teaser{font-size:10px;line-height:1.8}
 .dream-open{font-size:10px;min-width:94px;min-height:31px;padding:7px 11px;gap:9px}
 .dream-sketch{min-height:75px;margin:7px -5px}.dream-sketch>svg:first-child{width:60px;height:60px}.dream-sketch-3>svg:first-child{width:66px;height:66px}.dream-sketch-5:before{width:95px;height:43px}
}
@media(prefers-reduced-motion:reduce){#hobbies-cards>.atlas-card,#dreams-cards>.dream-card,.atlas-arrow{transition:none}#hobbies-cards>.atlas-card:hover,#dreams-cards>.dream-card:hover,.atlas-card:hover .atlas-arrow{transform:none}}
