/* The chosen photo-first welcome page, using the original brand assets. */
body.welcome-page,body.about-page{background:var(--bg)}
body.welcome-page #main{max-width:none}
.home-intro{max-width:1000px;margin:0 auto}
.home-photo{height:clamp(300px,40dvh,400px);border-radius:0 0 28px 28px;overflow:hidden}
.home-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 90%}
.home-copy{max-width:660px;margin:0 auto;padding:32px 24px 40px}
.home-copy h1{font-size:36px;line-height:1.2;font-weight:700;letter-spacing:-.2px;margin:0 0 16px}
.home-description{font-size:16px;line-height:24px;font-weight:400;margin:0 0 24px;max-width:560px;text-wrap:pretty}
.home-start{width:100%;min-height:52px;border-radius:24px;font-size:16px;line-height:22px;font-weight:700;padding:14px 20px}
.home-discovery{display:grid;grid-template-columns:28px minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;min-height:64px;text-align:left;margin-top:14px;padding:8px 0;border:0;border-radius:12px;background:none;color:var(--terra)}
.home-discovery>.i:first-child{width:28px;height:28px}
.home-discovery>.i:last-child{width:20px;height:20px;color:var(--ink)}
.home-discovery-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.home-discovery-title{font-size:16px;line-height:22px;font-weight:700}
.home-discovery-helper{font-size:14px;line-height:20px;font-weight:400;color:var(--muted)}
.home-discovery:hover .home-discovery-title{text-decoration:underline;text-underline-offset:4px}
.home-discovery:active{background:var(--pale)}
.home-community{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);font-size:14px;line-height:21px}
.home-community p{margin:0}
.home-community .text-button{display:inline-block;min-height:44px;padding:4px 0 12px;font-size:14px;line-height:21px;font-weight:400;text-align:left}
.about-content{max-width:708px;margin:0 auto;padding:48px 24px 56px;font-size:16px;line-height:26px;font-weight:400}
.about-content h1,.about-content p{font-size:inherit;line-height:inherit;font-weight:inherit;margin:0 0 20px;letter-spacing:normal;text-wrap:pretty}
.about-content strong{font-size:inherit;font-weight:inherit}
.about-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding-top:12px}
.about-actions .btn,.about-actions .text-button{font-size:inherit;line-height:inherit}
.about-actions .btn{font-weight:700}
.about-actions .text-button{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:760px){
 .home-photo{height:220px;border-radius:0 0 22px 22px}
 body.welcome-page .home-photo{height:clamp(152px,calc(100svh - var(--site-header-height) - 404px),220px)}
 .home-photo img{object-position:50% 100%;transform:scale(1.16);transform-origin:30% 100%}
 .home-copy{max-width:560px;padding:16px 20px 16px}
 .home-copy h1{font-size:28px;line-height:34px;margin-bottom:10px}
 .home-description{max-width:none;line-height:23px;margin-bottom:16px}
 .home-discovery{margin-top:10px}
 .home-community{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;margin-top:8px;padding-top:6px}
 .home-community .text-button{padding:8px 0;line-height:21px}
 .about-content{padding:28px 20px 40px}
}
@media(max-width:360px){
 .home-copy{padding-inline:18px}
 .home-photo{height:200px}
 .home-discovery{gap:10px}
}
@media(prefers-reduced-motion:reduce){.home-start{transition:none}}

@media(max-width:319px){
}

.about-intro{max-width:1000px;margin:0 auto}
.about-intro .about-content{padding-top:32px}
@media(max-width:760px){.about-intro .about-content{padding-top:24px}}

/* Desktop editorial layout. Everything below is isolated from mobile routes. */
@media(min-width:761px){
 body.welcome-page .home-intro{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);
  align-items:center;
  gap:clamp(36px,4.5vw,64px);
  width:calc(100% - 96px);
  max-width:1200px;
  padding-block:64px;
 }
 body.welcome-page .home-photo{
  grid-column:2;
  grid-row:1;
 }
 body:is(.welcome-page,.about-page) .home-photo{height:auto;border-radius:0;overflow:visible}
 body:is(.welcome-page,.about-page) .home-photo img{
  width:100%;
  height:auto;
  aspect-ratio:1448 / 1086;
  object-fit:contain;
  border-radius:24px;
  transform:none;
 }
 body:is(.welcome-page,.about-page) .home-photo:after{
  display:block;
  padding-top:14px;
  color:var(--muted);
  font-size:13px;
  line-height:20px;
 }
 body.welcome-page .home-photo:after{content:'Маленькая прогулка — большая перезагрузка'}
 body.welcome-page .home-copy{
  grid-column:1;
  grid-row:1;
  width:100%;
  max-width:480px;
  margin:0;
  padding:0;
 }
 body.welcome-page .home-copy h1{
  font-size:clamp(36px,calc(1.5rem + 1.8vw),50px);
  line-height:1.12;
  letter-spacing:-1.1px;
  margin-bottom:22px;
  text-wrap:balance;
 }
 body.welcome-page .home-description{
  max-width:42ch;
  font-size:18px;
  line-height:1.55;
  margin-bottom:28px;
 }
 body.welcome-page .home-start{width:auto;min-width:260px;max-width:100%;min-height:54px;font-size:17px;border-radius:18px;padding-inline:32px}
 body.welcome-page .home-discovery{
  max-width:400px;
  min-height:80px;
  margin-top:18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--white);
 }
 body.welcome-page .home-discovery:hover{border-color:var(--terra);background:var(--pale)}
 body.welcome-page .home-discovery-title{font-size:15px;line-height:22px}
 body.welcome-page .home-discovery-helper{font-size:14px;line-height:20px}
 body.welcome-page .home-community{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0 8px;
  max-width:400px;
  margin-top:22px;
  padding-top:14px;
  color:var(--muted);
 }
 body.welcome-page .home-community .text-button{padding-block:10px;line-height:21px}
 body.about-page .about-intro{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(40px,5vw,80px);
  width:calc(100% - 96px);
  max-width:1200px;
  margin:0 auto;
  padding-block:56px 72px;
 }
 body.about-page .about-intro .home-photo{position:sticky;top:32px}
 body.about-page .home-photo:after{content:none;display:none}
 body.about-page .about-intro .about-content{
  width:100%;
  max-width:62ch;
  margin:0;
  padding:0;
  font-size:18px;
  line-height:1.65;
 }
 body.about-page .about-content h1{font-size:inherit;line-height:inherit;font-weight:400;letter-spacing:normal;margin-bottom:20px}
 body.about-page .about-content p{margin-bottom:20px}
 body.about-page .about-content .about-lead{font-size:inherit;line-height:inherit;color:var(--ink);margin-bottom:20px}
 body.about-page .about-content strong{display:inline;font-weight:400;margin:0}
 body.about-page .about-actions{padding-top:8px}
 body.about-page .about-actions .btn{min-height:54px;border-radius:18px;padding-inline:28px;font-size:inherit}
}

@media(min-width:761px) and (max-width:1000px){
 body.welcome-page .home-intro,body.about-page .about-intro{width:calc(100% - 64px);gap:32px;padding-block:40px}
 body.welcome-page .home-copy h1{font-size:34px;letter-spacing:-.6px}
 body.welcome-page .home-description{font-size:16px;line-height:1.6}
 body.welcome-page .home-discovery{padding:12px;gap:10px}
 body.welcome-page .home-discovery-helper{font-size:13px}
 body.about-page .about-intro{grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
}

@media(min-width:761px) and (max-width:850px){
 body.welcome-page .home-intro{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
 body.welcome-page .home-copy h1{font-size:30px}
 body.welcome-page .home-photo img{border-radius:20px}
 body.about-page .about-intro{grid-template-columns:1fr;max-width:640px}
 body.about-page .about-intro .home-photo{position:static;max-width:560px}
 body.about-page .about-intro .about-content{max-width:60ch}
}

/* Selected desktop homepage: photo-led hero. Mobile and About stay untouched. */
.desktop-landscape-patch{display:none}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 body.welcome-page{--bg:#fbf5ed;background:var(--bg)}
 body.welcome-page .home-intro{
  position:relative;isolation:isolate;width:100%;max-width:none;
  min-height:calc(100svh - var(--site-header-height));
  grid-template-columns:minmax(0,59%) minmax(0,41%);
  gap:0;align-items:center;padding:0 0 132px;
 }
 body.welcome-page .home-photo{
  position:absolute;inset:0 auto 132px 0;width:76%;height:auto;
  grid-column:auto;grid-row:auto;z-index:-1;pointer-events:none;
  background:none;
  -webkit-mask-image:linear-gradient(to right,#000 49%,transparent 75%);
  mask-image:linear-gradient(to right,#000 49%,transparent 75%);
  border-radius:0;overflow:hidden;
 }
 body.welcome-page .desktop-landscape-patch{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
 body.welcome-page .mobile-landscape-photo{display:none}
 body.welcome-page .home-photo img{opacity:0;position:absolute;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0}
 body.welcome-page .home-photo:after{content:none;display:none}
 body.welcome-page .home-copy{position:static;grid-column:2;grid-row:1;max-width:620px;margin:0;padding:88px 40px 88px 16px}
 body.welcome-page .home-copy h1{font-size:clamp(48px,4.85vw,72px);line-height:1.1;letter-spacing:-1.3px;margin-bottom:32px;text-wrap:balance}
 body.welcome-page .home-copy h1 br{display:none}
 body.welcome-page .home-description{max-width:44ch;font-size:clamp(18px,1.6vw,24px);line-height:1.4;margin-bottom:44px;text-wrap:pretty}
 body.welcome-page .home-start{width:360px;max-width:100%;min-width:0;min-height:76px;border-radius:28px;font-size:26px;line-height:1.3;padding:18px 28px}
 body.welcome-page .home-discovery{max-width:none;min-height:104px;margin-top:36px;padding:20px 24px;border-radius:30px;gap:14px;background:transparent}
 body.welcome-page .home-discovery>.i:first-child{width:32px;height:32px}
 body.welcome-page .home-discovery-title{font-size:22px;line-height:1.3}
 body.welcome-page .home-discovery-helper{font-size:16px;line-height:1.4}
 body.welcome-page .home-community{
  position:absolute;inset:auto 0 0;max-width:none;height:132px;margin:0;padding:24px 40px;
  justify-content:center;gap:0 10px;border:0;color:var(--ink);font-size:24px;line-height:1.4;
 }
 body.welcome-page .home-community .text-button{font-size:inherit;line-height:inherit;font-weight:700;padding:4px 0;min-height:44px}
}
@media(min-width:761px) and (max-width:1120px) and (hover:hover) and (pointer:fine){
 body.welcome-page .home-intro{min-height:calc(100svh - var(--site-header-height));grid-template-columns:minmax(0,51%) minmax(0,49%);padding-bottom:104px}
 body.welcome-page .home-photo{width:72%;bottom:104px;background-size:cover;background-position:left bottom}
 body.welcome-page .home-photo{-webkit-mask-image:linear-gradient(to right,#000 47%,transparent 70%);mask-image:linear-gradient(to right,#000 47%,transparent 70%)}
 body.welcome-page .home-copy{padding:48px 32px 48px 12px}
 body.welcome-page .home-copy h1{font-size:clamp(38px,4.8vw,52px);letter-spacing:-.8px;margin-bottom:24px}
 body.welcome-page .home-description{font-size:18px;margin-bottom:28px}
 body.welcome-page .home-start{width:100%;min-height:60px;font-size:20px;border-radius:22px;padding:14px 20px}
 body.welcome-page .home-discovery{margin-top:24px;min-height:88px;padding:14px;gap:10px;border-radius:24px}
 body.welcome-page .home-discovery-title{font-size:18px}
 body.welcome-page .home-discovery-helper{font-size:14px}
 body.welcome-page .home-community{height:104px;padding:20px 32px;font-size:18px}
}
@media(min-width:1121px) and (max-height:850px) and (hover:hover) and (pointer:fine){
 body.welcome-page .home-copy{padding-block:48px}
 body.welcome-page .home-copy h1{font-size:60px;margin-bottom:24px}
 body.welcome-page .home-description{font-size:20px;margin-bottom:32px}
 body.welcome-page .home-start{min-height:60px;font-size:22px;padding-block:14px}
 body.welcome-page .home-discovery{margin-top:24px;min-height:88px;padding:16px 20px}
 body.welcome-page .home-discovery-title{font-size:20px}
 body.welcome-page .home-community{font-size:20px}
}

/* A single aligned composition preserves the original person and sky on both pages. */
body:is(.welcome-page,.about-page) .home-photo{position:relative;isolation:isolate}
body:is(.welcome-page,.about-page) .home-photo>img{opacity:0}
.mobile-landscape-photo{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;border-radius:inherit}
.landscape-colors{filter:contrast(.72) saturate(.50) sepia(.12) brightness(1.06)}
@media(min-width:761px) and (hover:hover) and (pointer:fine){body.welcome-page .home-photo{position:absolute}}
@media(max-width:760px){
 body:is(.welcome-page,.about-page) .home-photo{position:relative;isolation:isolate;background:var(--bg)}
 body:is(.welcome-page,.about-page) .home-photo>img{opacity:0}
 body:is(.welcome-page,.about-page) .mobile-landscape-photo{
  display:block;position:absolute;inset:0;width:100%;height:100%;
  transform:none;
  
  pointer-events:none;
 }
}
@media(max-width:1120px) and (min-width:761px){}
@media(max-width:760px){}

/* Crop excess sky while keeping the original woman and stroller entirely visible. */
@media(max-width:760px){body:is(.welcome-page,.about-page) .home-photo{height:calc(100vw * 808 / 1400)}}
@media(min-width:761px){
 body.about-page .home-photo>img{aspect-ratio:1824 / 808}
 body:is(.welcome-page,.about-page) .desktop-landscape-patch{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
 body:is(.welcome-page,.about-page) .mobile-landscape-photo{display:none}
}

/* LAN desktop About: keep the invitation visible without reducing type size. */
@media(min-width:851px){
 body.about-page .about-intro{padding-block:24px 32px;gap:clamp(28px,3vw,44px)}
 body.about-page .about-intro .about-content{line-height:1.5}
 body.about-page .about-content h1,
 body.about-page .about-content p,
 body.about-page .about-content .about-lead{margin-bottom:12px}
 body.about-page .about-actions{padding-top:0}
 body.about-page .about-actions .btn{min-height:50px;padding-block:10px}
}
@media(min-width:851px) and (max-width:1120px){
 body.about-page .about-intro{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
}

/* Match desktop Contact to the photo-discovery page frame. */
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 body.contact-page .contact-content{
  width:calc(100% - 96px);
  max-width:1120px;
  min-height:calc(100dvh - var(--site-header-height));
  margin:0 auto;
  padding:var(--section-top-gap) 0 56px;
 }
 body.contact-page .contact-copy{max-width:64ch}
}
@media(min-width:761px) and (max-width:1000px) and (hover:hover) and (pointer:fine){
 body.contact-page .contact-content{width:calc(100% - 64px)}
}

/* Mobile: the photo results, discovery and contact share one heading style. */
@media(max-width:760px){
 body.inspiration-route .inspiration-results,
 body.contact-page .contact-content{
  padding-top:var(--section-top-gap);
  padding-inline:20px;
 }
 body.inspiration-route .swipe-discovery{padding-inline:20px}
 body.inspiration-route .inspiration-results .inspiration-heading{
  padding-top:0;
  min-height:0;
 }
 body.inspiration-route .inspiration-results .inspiration-heading h1,
 body.inspiration-route .swipe-discovery .inspiration-heading h1,
 body.contact-page .contact-content h1{
  font-family:inherit;
  font-size:var(--section-title-size);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.5px;
  padding:0;
  margin-top:0;
 }
}

/* The focused swipe surface must not acquire the browser's blue frame on phones. */
@media(max-width:760px){
 body.inspiration-route .swipe-discovery .swipe-card,
 body.inspiration-route .swipe-discovery .swipe-card:focus,
 body.inspiration-route .swipe-discovery .swipe-card:focus-visible{
  outline:0;
  -webkit-tap-highlight-color:transparent;
 }
 body.inspiration-route .swipe-discovery .swipe-card>img{
  -webkit-tap-highlight-color:transparent;
 }
}

@media(max-width:760px){
 body.welcome-page .home-discovery{text-decoration:none}
 body.welcome-page .home-discovery-title{text-decoration:underline;text-underline-offset:3px}
 body.welcome-page .home-discovery-helper{text-decoration:none}
}

/* The helper is ordinary text; only the title/icon row opens photo discovery. */
body.welcome-page .home-copy .home-discovery{
 display:block;
 min-height:0;
 margin-top:12px;
 padding:0;
 border:0;
 border-radius:0;
 background:transparent;
 box-shadow:none;
 text-decoration:none;
}
body.welcome-page .home-copy .home-discovery-link{
 display:grid;
 grid-template-columns:28px minmax(0,1fr) 20px;
 align-items:center;
 gap:12px;
 min-height:36px;
 padding:0;
 color:var(--terra);
 text-decoration:none;
 border:0;
 background:none;
}
body.welcome-page .home-discovery-link .home-discovery-title{text-decoration:underline;text-underline-offset:3px}
body.welcome-page .home-copy .home-discovery-helper{
 display:block;
 margin:0 0 0 40px;
 color:var(--muted);
 text-decoration:none;
 cursor:text;
}

/* Header icons have no decorative container; retain their existing click areas. */
body #header.site-header .header-actions .icon-button,
body #header.site-header .header-actions .icon-button:hover,
body #header.site-header .header-actions .icon-button:active{
 border:0;
 border-radius:0;
 background:transparent;
 box-shadow:none;
}

/* Approved «Фото» thread assets; preserve their pixels and the existing LAN UI. */
body.welcome-page{--bg:#fbf8f2;background:var(--bg)}
body:is(.welcome-page,.about-page) .home-photo .approved-photo{display:block;width:100%;filter:none}
body:is(.welcome-page,.about-page) .home-photo .approved-photo img{
 display:block;position:static;width:100%;height:auto;aspect-ratio:1448 / 642;
 object-fit:contain;object-position:center;transform:none;opacity:1;filter:none;
}
body.about-page .about-intro>.home-photo{-webkit-mask-image:none;mask-image:none;filter:none;background:none}
@media(min-width:761px){
 body.welcome-page .home-intro>.home-photo{
  position:absolute;inset:auto;left:0;top:calc((100% - 88px)/2);bottom:auto;
  width:80%;height:auto;display:block;grid-column:auto;grid-row:auto;
  transform:translateY(-50%);border-radius:0;overflow:visible;z-index:-1;
  background:none;filter:none;
  -webkit-mask-image:linear-gradient(to right,#000 43%,transparent 68%);
  mask-image:linear-gradient(to right,#000 43%,transparent 68%);
 }
 body.welcome-page .home-photo .approved-photo img{border-radius:0}
 body.welcome-page .home-photo:after{display:none;content:none}
}
@media(max-width:760px){
 body:is(.welcome-page,.about-page) .home-photo{
  height:auto;aspect-ratio:1112 / 642;filter:none;background:none;
 }
 body:is(.welcome-page,.about-page) .home-photo .approved-photo img{aspect-ratio:1112 / 642}
 body.welcome-page .home-intro>.home-photo{
  position:relative;inset:auto;width:100%;height:auto;transform:none;
  border-radius:0;overflow:visible;
  -webkit-mask-image:linear-gradient(to bottom,#000 91%,transparent);
  mask-image:linear-gradient(to bottom,#000 91%,transparent);
 }
 body.welcome-page .home-photo .approved-photo img{border-radius:0}
}

/* Scroll photo recommendations beneath the persistent mobile navigation. */
@media(max-width:760px){
 body.inspiration-route:has(.inspiration-results){
  height:100dvh;
  min-height:0;
  overflow:hidden;
  overscroll-behavior-y:none;
 }
 body.inspiration-route:has(.inspiration-results) #main{
  height:calc(100dvh - var(--site-header-height));
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
 }
}

/* Selected variant 1: sage like, warm gray skip; keep icons and layout intact. */
body.inspiration-route .swipe-choice.like .vote-circle{
 background:#63846d;
 color:#fff;
}
body.inspiration-route .swipe-choice.skip .vote-circle{
 background:#fbf8f2;
 color:#8c8980;
}
