/* Homepage only. Shared templates, calculator formulas and mobile navigation stay intact. */
.home-sales { --home-line:#dbe5f2; --home-muted:#62758f; }
.home-sales [hidden] { display:none!important; }
.home-sales main>section { scroll-margin-top:100px; }
.home-sales .section { padding:68px 0; }
.home-sales .hero { min-height:560px; padding-top:125px; padding-bottom:30px; }
.home-sales .hero-example-content { max-width:690px; }
.home-sales .hero h1 { max-width:660px; }
.home-sales .hero-lead { max-width:590px; }
.home-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px 24px; margin:28px 0 16px; }
.home-hero-actions .btn { min-height:52px; padding:16px 22px; }
.home-photo-link { color:#0866e8; font-size:14px; text-underline-offset:5px; text-decoration:underline; }
.home-hero-trust { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:690px; gap:10px 24px; padding:12px 0 0; margin:0; list-style:none; border-top:1px solid #dce5ee; font-size:12px; color:#324e70; }
.home-hero-trust li { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; gap:8px; min-width:0; }
.home-hero-trust i { color:#0866e8; width:16px; margin-top:.2em; text-align:center; }
.home-sales .catalog-categories__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.home-sales .category-card { min-width:0; }
.home-choice-help { display:flex; justify-content:space-between; align-items:center; gap:25px; margin-top:24px; padding:23px 26px; border:1px solid var(--home-line); border-radius:12px; background:#f7faff; }
.home-choice-help h3 { font-size:17px; margin:0 0 8px; color:#213a59; }
.home-choice-help p { margin:0; font-size:13px; line-height:1.7; color:var(--home-muted); }
.home-outline-button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; padding:12px 18px; border:1px solid #bed5f4; border-radius:9px; background:#fff; color:#0866e8; font:inherit; font-size:14px; text-decoration:none; cursor:pointer; }
.home-choice-help .home-outline-button { flex-shrink:0; }
.home-sales .letter-comparison { background:#f5f8fc; }
.home-sales .letter-comparison__heading h2 { font-size:clamp(28px,2.9vw,40px); }
.home-sales .letter-comparison-card__description { display:none; }
.home-sales .letter-comparison-card__photo { aspect-ratio:1.25; }
.home-sales .letter-comparison-card__photo img { height:100%; object-fit:contain; }
.home-price-explanation { color:var(--home-muted); font-size:14px; line-height:1.8; margin:24px 0; }
.home-budget-placeholder { display:flex; align-items:center; gap:19px; border:1px dashed #c6d4e5; background:#fff; border-radius:12px; padding:20px 24px; margin:22px 0; }
.home-budget-placeholder>span { display:grid; place-items:center; flex:0 0 44px; height:44px; background:#edf3fb; color:#7990ab; border-radius:10px; font-size:28px; font-weight:400; }
.home-budget-placeholder h3 { margin:0 0 6px; font-size:15px; color:#3a526e; }
.home-budget-placeholder p { margin:0; font-size:13px; color:var(--home-muted); line-height:1.65; }
.home-calc-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:6px; border:1px solid var(--home-line); background:#f2f6fb; border-radius:12px; margin:0 0 18px; }
.home-calc-tabs button { font:inherit; font-size:15px; line-height:1.5; min-height:54px; padding:14px; border:0; border-radius:8px; background:transparent; color:#5c718d; cursor:pointer; }
.home-calc-tabs button[aria-selected=true] { background:#fff; color:#0866e8; box-shadow:0 3px 12px #244b7710; }
.home-sales #calculator .quiz-modal--inline { margin-top:0; }
.home-sales #calculator .quiz-modal__dialog { max-width:none; }
.home-photo-scenario { display:grid; grid-template-columns:1.2fr 1fr; gap:50px; align-items:center; padding:36px; border:1px solid var(--home-line); border-radius:15px; }
.home-photo-scenario h3 { font-size:26px; color:#19324e; margin:18px 0 12px; }
.home-photo-scenario p { font-size:14px; line-height:1.9; color:var(--home-muted); }
.home-photo-scenario__action { text-align:center; }
.home-photo-scenario__action small { display:block; font-size:12px; color:var(--home-muted); margin-top:15px; }
.home-sales .work-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.home-sales .work-project-card { min-width:0; display:flex; flex-direction:column; }
.home-sales .work-project-card__image { aspect-ratio:16/10; height:auto; }
.home-sales .work-project-card__image img { width:100%; height:100%; object-fit:cover; }
.home-sales .work-project-card__body { flex:1; }
.home-sales .work-project-card__title { font-weight:600; }
.home-projects-action,.home-reviews-more { text-align:center; margin-top:28px; }
.home-sales .home-terms { background:#f5f8fc; }
.home-terms-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 34px; }
.home-terms-grid article { border-top:1px solid #d5e1ef; padding-top:24px; }
.home-feature-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:#0866e8; background:#e7f1ff; font-size:19px; }
.home-terms-grid h3 { font-size:19px; line-height:1.45; color:#213c5e; margin:15px 0 10px; }
.home-terms-grid p { font-size:14px; line-height:1.8; color:var(--home-muted); margin:0; }
.home-sales .portfolio-directions { background:#f5f8fc; }
.home-sales .work-now__floating-photo { display:none; }
.home-sales .work-now__waiting { min-height:0; padding:24px; border:1px dashed #c8d8ed; border-radius:12px; }
.home-sales .work-now__waiting>p { position:static; margin:0; max-width:none; transform:none; }
.home-sales .home-final { background:#eaf3ff; border-top:1px solid #dbe9fa; }
.home-final__inner { display:grid; grid-template-columns:1.4fr 1fr; gap:60px; align-items:center; }
.home-eyebrow { color:#0866e8; font-size:11px; letter-spacing:.07em; text-transform:uppercase; }
.home-final h2 { font-size:clamp(30px,3.2vw,44px); line-height:1.15; letter-spacing:-.025em; margin:16px 0; color:#183250; }
.home-final p { font-size:15px; line-height:1.9; color:#5e7796; max-width:570px; }
.home-final__actions { display:grid; justify-items:start; gap:22px; }
.home-final__actions .btn { min-height:52px; padding:16px 26px; }
.home-final__phone { color:#0866e8; font-size:14px; }
.home-channel-dialog { box-sizing:border-box; width:calc(100% - 32px); max-width:510px; max-height:85dvh; overflow:auto; padding:32px; border:1px solid #dbe5f2; border-radius:18px; background:#fff; color:#18324e; box-shadow:0 20px 80px #172f4933; }
.home-channel-dialog::backdrop { background:#21385145; }
.home-channel-dialog h2 { font-size:25px; line-height:1.2; margin:16px 24px 12px 0; }
.home-channel-dialog p { font-size:14px; line-height:1.7; color:#6b7f97; }
.home-channel-close { position:absolute; right:10px; top:10px; width:38px; height:38px; border:0; border-radius:8px; background:#f2f6fc; color:#597392; font:inherit; font-size:26px; cursor:pointer; }
.home-channel-list { display:grid; gap:12px; margin-top:22px; }
.home-channel-list a { display:flex; align-items:center; gap:14px; border:1px solid #d5e3f6; border-radius:10px; padding:16px; color:#0866e8; }
.home-channel-list a>span:nth-child(2) { flex:1; }
.home-channel-list small { display:block; color:#697e98; font-size:11px; line-height:1.6; margin-top:5px; }
.home-sales :is(.home-outline-button,.home-calc-tabs button,.home-channel-dialog a,.home-channel-close):focus-visible { outline:3px solid #78b0ff; outline-offset:3px; }
@media(max-width:1100px) {
  .home-sales .catalog-categories__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-photo-scenario { gap:28px; padding:28px; }
  .home-final__inner { gap:30px; }
}
@media(max-width:760px) {
  .home-sales main>section { scroll-margin-top:82px; }
  .home-sales .section { padding:42px 0; }
  .home-sales .hero { min-height:0; padding:94px 0 26px; }
  .home-sales .hero-example-content { margin-top:0; }
  .home-sales .hero h1 { font-size:32px; line-height:1.14; }
  .home-sales .hero-lead { font-size:14px; line-height:1.85; }
  .home-hero-actions { display:grid; gap:15px; margin:22px 0 12px; justify-items:stretch; }
  .home-hero-actions .btn { font-size:14px; }
  .home-photo-link { text-align:center; padding:8px 0; font-size:13px; }
  .home-hero-trust { gap:10px 12px; }
  .home-hero-trust__line { display:block; }
  .home-sales .catalog-categories .container { width:100%; border:0; box-shadow:none; background:transparent; padding-top:0; padding-bottom:0; }
  .home-sales .catalog-categories__grid { grid-auto-flow:row; grid-auto-columns:auto; grid-auto-rows:auto; grid-template-rows:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; overflow:visible; margin:0; padding:0; scroll-snap-type:none; }
  .home-sales .category-card { display:flex; flex-direction:column; height:auto; min-height:0; aspect-ratio:auto; padding:0; position:relative; overflow:hidden; border:1px solid #e0e8f3; background:#fff; border-radius:10px; }
  .home-sales .category-card>picture { position:static; display:block; width:100%; aspect-ratio:1.4; height:auto; flex:none; }
  .home-sales .category-card picture img { width:100%; height:100%; object-fit:cover; }
  .home-sales .category-card__content { position:static; padding:12px 11px; color:#193650; background:#fff; display:block; flex:1; width:100%; transform:none; }
  .home-sales .category-card__content strong { font-size:14px; color:#18314e; display:block; text-shadow:none; -webkit-line-clamp:unset; overflow:visible; line-height:1.4; }
  .home-sales .category-card__content small { font-size:10px; color:#718299; display:block; line-height:1.55; margin-top:7px; }
  .home-sales .category-card:after,.home-sales .category-card__arrow { display:none; }
  .home-choice-help { padding:20px; display:grid; gap:16px; }
  .home-choice-help h3 { font-size:16px; }
  .home-choice-help p,.home-price-explanation { font-size:12px; }
  .home-sales .letter-comparison-card__price strong { font-size:25px; }
  .home-budget-placeholder { padding:17px; gap:13px; }
  .home-budget-placeholder h3 { font-size:14px; }
  .home-budget-placeholder p { font-size:12px; }
  .home-calc-tabs button { font-size:12px; padding:12px 8px; }
  .home-photo-scenario { grid-template-columns:1fr; padding:22px; gap:20px; }
  .home-photo-scenario h3 { font-size:24px; }
  .home-photo-scenario .btn { width:100%; font-size:13px; }
  .home-sales #calculator input,.home-sales #calculator select,.home-sales #calculator textarea { font-size:16px; }
  .home-sales .work-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
  .home-sales .work-project-card__body { padding:13px; }
  .home-sales .work-project-card__title { font-size:13px; line-height:1.45; }
  .home-sales .work-project-card__body>small,.home-sales .work-project-card__body>span { font-size:10px; }
  .home-sales .work-project-card__body>a { font-size:11px; }
  .home-terms-grid { grid-template-columns:1fr 1fr; gap:22px 18px; }
  .home-terms-grid h3 { font-size:16px; }
  .home-terms-grid p { font-size:12px; }
  .home-final__inner { grid-template-columns:1fr; gap:15px; }
  .home-final__actions { justify-items:stretch; text-align:center; }
  .home-channel-dialog { padding:27px 22px; }
  .home-channel-dialog h2 { font-size:23px; }
  .home-sales .footer { padding-bottom:100px; }
}
@media(max-width:370px) { .home-sales .hero h1 { font-size:28px; } .home-calc-tabs button { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .home-sales { scroll-behavior:auto; } }

/* Compact product types only. Portfolio, desktop layout and global type tokens stay unchanged. */
@media(max-width:430px){
  body.home-sales:has(> #siteHeader) .catalog-categories__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  body.home-sales:has(> #siteHeader) .category-card__content{padding:12px;min-width:0;}
  body.home-sales:has(> #siteHeader) .category-card__content strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere;word-break:normal;hyphens:manual;}
  body.home-sales:has(> #siteHeader) .category-card__content small{display:none;}
}
@media(max-width:374px){
  body.home-sales:has(> #siteHeader) .catalog-categories__grid{grid-template-columns:1fr;}
  body.home-sales:has(> #siteHeader) .category-card{flex-direction:row;align-items:center;min-height:96px;}
  body.home-sales:has(> #siteHeader) .category-card>picture[style]{width:84px;height:96px!important;flex:0 0 84px;aspect-ratio:auto;}
}
@media(max-width:760px){
  /* The inline flex column uses align-items:start; constrain the content to
     its parent instead of the selected option's intrinsic width. */
  body.home-sales:has(> #siteHeader) #calculator .quiz-modal__content{width:100%;}
  /* Existing muted token has better contrast on the light calculator surfaces. */
  body.home-sales:has(> #siteHeader) :is(.quiz-modal__note,.quiz-contact-field small,.quiz-param-panel__head span,.quiz-param-empty span,.quiz-summary__label,.quiz-final-contact>p,.homepage-calculator__head>p,.home-choice-help p,.home-price-explanation,.home-channel-dialog p){color:var(--muted);}
  /* Keep the four trust facts attached to the CTA, not a separate section. */
  body.home-sales:has(> #siteHeader) .hero{padding-bottom:20px;}
  body.home-sales:has(> #siteHeader) #categoryblock{padding-top:32px;}
}
@media(max-width:359px){
  .home-hero-trust{column-gap:8px;}
  .home-hero-trust li{grid-template-columns:14px minmax(0,1fr);column-gap:4px;}
  .home-hero-trust i{width:14px;}
}
