/* Homepage-specific tuning on top of the shared design system. */
.japan-photo{object-position:72% center!important}

/* Popular directions: one block, 5 cards + 3 wider cards. */
.countries{padding-bottom:52px}
.home-country-grid{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:24px}
.home-country-grid>.country-card:nth-child(-n+5){grid-column:span 3}
.home-country-grid>.country-card:nth-child(6){grid-column:3 / span 5}
.home-country-grid>.country-card:nth-child(7){grid-column:9 / span 5}
.country-content{display:flex;flex-direction:column;align-items:flex-start;min-height:190px}
.country-price{margin:10px 0 20px}
.country-card .btn{margin-top:auto}
.country-card-feature>img{height:300px}
.country-card-feature{min-height:510px}
.country-card-feature h3{font-size:27px}

/* Company block: edge-to-edge, with a distinct travel photo. */
.company{padding-top:0;padding-bottom:0}
.company-panel{position:relative;isolation:isolate;overflow:hidden;background:var(--light)}
.company-panel-wide{width:100%;max-width:none;margin:0;border-radius:0}
.company-photo{position:absolute;inset:0 0 0 auto;width:48%;height:100%;object-fit:cover;object-position:center center;z-index:-2}
.company-panel:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#eef7ff 0%,#eef7ff 55%,#eef7ffb8 65%,transparent 79%);z-index:-1}
.company-copy{padding:64px max(80px,calc((100vw - 1680px)/2 + 80px));width:62%}
.company-copy h2{font-size:42px;line-height:1.24;max-width:730px}
.company-copy>.section-description{margin-top:22px;max-width:680px}
.company-benefits{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:36px}
.company-benefits li{display:flex;align-items:flex-start;gap:16px}
.company-benefits h3{font-size:18px;line-height:1.4}
.company-benefits p{color:var(--secondary);font-size:15px;line-height:1.65;margin-top:8px}
.company-benefits .line-icon{min-width:36px}
.company-benefits .icon{width:32px;height:32px}

@media(max-width:1680px){.company-copy h2{font-size:38px}.company-copy{padding-left:80px;padding-right:80px}}
@media(max-width:1280px){.home-country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-country-grid>.country-card:nth-child(n){grid-column:span 1}.country-card-feature>img{height:330px}.company-panel{display:flex;flex-direction:column}.company-copy{width:100%;padding:42px 32px}.company-copy h2{font-size:34px;max-width:850px}.company-panel:after{display:none}.company-photo{position:relative;width:100%;height:420px;z-index:0;order:2}.company-benefits{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.countries{padding-bottom:30px}.home-country-grid{display:flex;overflow-x:auto;overflow-y:hidden;margin-right:-20px;padding-right:20px;padding-bottom:4px;gap:16px;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.home-country-grid::-webkit-scrollbar{display:none}.home-country-grid>.country-card{flex:0 0 282px;grid-column:auto}.country-content{min-height:175px}.country-card-feature>img{height:330px}.country-card-feature{min-height:530px}.company-copy{width:100%;padding:32px 22px}.company-copy h2{font-size:30px}.company-copy>.section-description{font-size:17px}.company-benefits{grid-template-columns:1fr;gap:25px;margin-top:28px}.company-photo{height:300px}.company-benefits p{font-size:15px}}

/* Homepage vertical rhythm: keep equal spacing between all major content blocks. */
body[data-page="home"] .countries,
body[data-page="home"] .quiz,
body[data-page="home"] .important,
body[data-page="home"] .problems,
body[data-page="home"] .process,
body[data-page="home"] .cases,
body[data-page="home"] .company,
body[data-page="home"] .faq{
  padding-top:80px;
  padding-bottom:80px;
}

/* The compact trust strip under the hero is intentionally a different component. */
body[data-page="home"] .trust-strip{padding-block:54px}

@media(max-width:1280px){
  body[data-page="home"] .countries,
  body[data-page="home"] .quiz,
  body[data-page="home"] .important,
  body[data-page="home"] .problems,
  body[data-page="home"] .process,
  body[data-page="home"] .cases,
  body[data-page="home"] .company,
  body[data-page="home"] .faq{
    padding-top:68px;
    padding-bottom:68px;
  }
}

@media(max-width:700px){
  body[data-page="home"] .countries,
  body[data-page="home"] .quiz,
  body[data-page="home"] .important,
  body[data-page="home"] .problems,
  body[data-page="home"] .process,
  body[data-page="home"] .cases,
  body[data-page="home"] .company{
    padding-top:56px;
    padding-bottom:56px;
  }
  body[data-page="home"] .faq{padding-top:56px;padding-bottom:124px}
  body[data-page="home"] .trust-strip{padding-block:38px}
}

/* Join image-led sections without visual seams. */
@media(min-width:1281px){
  body[data-page="home"] .important .still-life{
    top:0;
    bottom:0;
    height:100%;
  }
  body[data-page="home"] .important .still-life img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
}

/* The next section already has its own internal top spacing; avoid a blank strip after the full-width company panel. */
body[data-page="home"] .company{padding-bottom:0}


/* Homepage visual-rhythm pass: one calm canvas, white cards, deliberate photo accents. */
body[data-page="home"]:not(.page-catalog){
  --home-canvas:#f4f9fe;
  --home-canvas-deep:#eaf3fb;
  background:var(--home-canvas);
}
body[data-page="home"]:not(.page-catalog) main{background:var(--home-canvas)}

body[data-page="home"]:not(.page-catalog) .trust-strip{
  position:relative;
  z-index:4;
  margin-top:-20px;
  padding:0 0 50px;
  background:transparent;
}
body[data-page="home"]:not(.page-catalog) .trust-grid{
  gap:18px;
  align-items:stretch;
}
body[data-page="home"]:not(.page-catalog) .trust-item{
  position:relative;
  display:block;
  min-height:156px;
  padding:38px 24px 24px;
  text-align:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 16px 34px rgba(15,62,115,.10);
}
body[data-page="home"]:not(.page-catalog) .trust-item .line-icon{
  position:absolute;
  top:-24px;
  left:50%;
  width:50px;
  height:50px;
  min-width:50px;
  padding:0;
  transform:translateX(-50%);
  border:5px solid #fff;
  border-radius:50%;
  color:#fff;
  background:var(--blue);
  box-shadow:0 7px 18px rgba(0,108,253,.18);
}
body[data-page="home"]:not(.page-catalog) .trust-item .line-icon .icon{
  width:25px;
  height:25px;
  stroke-width:1.7;
}
body[data-page="home"]:not(.page-catalog) .trust-item h2{font-size:20px;line-height:1.35}
body[data-page="home"]:not(.page-catalog) .trust-item p{
  max-width:250px;
  margin:8px auto 0;
  font-size:14px;
  line-height:1.55;
}

body[data-page="home"]:not(.page-catalog) .countries,
body[data-page="home"]:not(.page-catalog) .quiz,
body[data-page="home"]:not(.page-catalog) .important,
body[data-page="home"]:not(.page-catalog) .process,
body[data-page="home"]:not(.page-catalog) .cases,
body[data-page="home"]:not(.page-catalog) .faq{
  background:var(--home-canvas);
}

/* Remove artificial fade seams around the shared quiz. */
body[data-page="home"]:not(.page-catalog) .quiz{
  margin:0;
  padding-block:76px;
}
body[data-page="home"]:not(.page-catalog) .quiz::after{display:none}

@media(min-width:1281px){
  body[data-page="home"]:not(.page-catalog) .quiz::before{
    top:48px;
    right:0;
    bottom:48px;
    width:31%;
    height:auto;
    background-image:var(--quiz-photo);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    border-radius:24px 0 0 24px;
    -webkit-mask-image:none;
    mask-image:none;
    opacity:1;
  }
  body[data-page="home"]:not(.page-catalog) .important .still-life{
    top:48px;
    right:0;
    bottom:48px;
    width:31%;
    height:auto;
    overflow:hidden;
    border-radius:24px 0 0 24px;
  }
  body[data-page="home"]:not(.page-catalog) .important .still-life img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:24px 0 0 24px;
    box-shadow:none;
    -webkit-mask-image:none;
    mask-image:none;
  }
}

/* Problems and company remain intentional image-led accents. */
body[data-page="home"]:not(.page-catalog) .problems{margin-top:18px}
body[data-page="home"]:not(.page-catalog) .company{background:var(--home-canvas)}
body[data-page="home"]:not(.page-catalog) .site-footer{background:var(--home-canvas-deep)}

@media(max-width:1280px){
  body[data-page="home"]:not(.page-catalog) .trust-strip{margin-top:-16px;padding-bottom:44px}
  body[data-page="home"]:not(.page-catalog) .trust-item{min-height:148px;padding:34px 18px 22px}
  body[data-page="home"]:not(.page-catalog) .trust-item h2{font-size:18px}
  body[data-page="home"]:not(.page-catalog) .trust-item p{font-size:13px}
}
@media(max-width:1024px){
  body[data-page="home"]:not(.page-catalog) .trust-strip{margin-top:0;padding-bottom:38px}
  body[data-page="home"]:not(.page-catalog) .trust-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px 16px;
  }
  body[data-page="home"]:not(.page-catalog) .trust-item{min-height:132px}
}
@media(max-width:700px){
  body[data-page="home"]:not(.page-catalog) .trust-strip{margin-top:0;padding:34px 0 38px}
  body[data-page="home"]:not(.page-catalog) .trust-grid{
    grid-template-columns:1fr 1fr;
    gap:28px 12px;
  }
  body[data-page="home"]:not(.page-catalog) .trust-item{
    min-height:0;
    padding:31px 13px 18px;
    border-radius:16px;
  }
  body[data-page="home"]:not(.page-catalog) .trust-item .line-icon{
    top:-18px;
    width:42px;
    height:42px;
    min-width:42px;
    border-width:4px;
  }
  body[data-page="home"]:not(.page-catalog) .trust-item .line-icon .icon{width:21px;height:21px}
  body[data-page="home"]:not(.page-catalog) .trust-item h2{font-size:15px;letter-spacing:-.2px}
  body[data-page="home"]:not(.page-catalog) .trust-item p{font-size:12px;line-height:1.5;margin-top:6px}
}
