/* Wide homepage: the approved first-frame panorama. Mobile keeps its video. */
body.homepage .hero-wide-media,
body.homepage .hero-wide-copy,
body.homepage .hero-wide-contacts,
body.homepage .clinic-wide-description { display: none; }
body.homepage .hero-wide-google { display: none; }
/* These wrappers preserve the original mobile text color. */
body.homepage .hero-conversion-title > span { color: inherit; -webkit-text-fill-color: inherit; font-weight: inherit; }
body.homepage .hero-conversion-title > .hero-mobile-copy { display: inline; }

@media (min-width: 769px) {
  body.homepage { background: #fff !important; }
  body.homepage .container { max-width: 1280px; padding-inline: 40px; }
  body.homepage .header {
    position: absolute; inset: 0 0 auto; padding: 0; background: transparent;
  }
  body.homepage .header-container {
    width: 100%; max-width: 1280px; min-height: 92px; padding: 18px 40px;
    gap: 28px; margin-inline: auto; background: transparent; border: 0; box-shadow: none;
  }
  body.homepage .header-hero-logo {
    display: inline-flex; align-items: center; gap: 12px; order: 0;
    color: #082529; font-size: 25px; font-weight: 800; letter-spacing: .015em;
    text-decoration: none; white-space: nowrap;
  }
  body.homepage .header-hero-logo img { width: 46px; height: 46px; }
  body.homepage .desktop-nav { display: block; order: 1; margin-inline: auto; }
  body.homepage .desktop-nav ul { display: flex; flex-wrap: nowrap; gap: 28px; padding: 0; margin: 0; }
  body.homepage .desktop-nav .nav-link {
    color: #082529; padding: 10px 0; font-size: 14px; font-weight: 500;
    text-shadow: none; white-space: nowrap;
  }
  body.homepage .desktop-nav .nav-link:hover { color: #006f6c; }
  body.homepage .language-switcher {
    order: 2; display: flex; gap: 4px; padding: 0; margin: 0; background: transparent;
    border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
  }
  body.homepage .header .language-switcher a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; min-height: 44px; padding: 8px 5px; border-radius: 0;
    color: #082529 !important; background: transparent !important; box-shadow: none;
    border: 0; font-size: 13px; font-weight: 500; text-shadow: none;
  }
  body.homepage .header .language-switcher a.active {
    font-weight: 700; text-decoration: underline; text-decoration-color: #008b88;
    text-underline-offset: 9px; text-decoration-thickness: 2px;
  }
  body.homepage .service-menu-toggle { display: none; order: 3; }

  body.homepage .premium-home-hero-conversion {
    position: relative; isolation: isolate; display: flex; align-items: center;
    min-height: clamp(650px, 52vw, 820px); margin-top: 0;
    padding: 118px 40px 44px; overflow: visible; background: #edf4f3;
  }
  body.homepage .hero-wide-media {
    display: block; position: absolute; inset: 0; z-index: -2; overflow: hidden;
  }
  body.homepage .hero-wide-media img,
  body.homepage .hero-wide-media video {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top;
  }
  body.homepage .premium-home-hero-conversion::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.68), rgba(255,255,255,.42) 29%, rgba(255,255,255,0) 55%);
  }
  body.homepage .hero-home-content {
    width: 100%; max-width: 1200px; min-height: 0; padding: 0; margin: 0 auto;
    display: block; text-align: left; transform: none;
  }
  body.homepage .hero-conversion-shell { display: block; width: 100%; max-width: none; }
  body.homepage .hero-conversion-media { display: none; }
  body.homepage .hero-conversion-panel {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 44%; max-width: 540px; padding: 0; margin: 0; gap: 0;
    color: #082529; background: transparent; border: 0; border-radius: 0;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    overflow: visible;
  }
  body.homepage .hero-conversion-panel::before,
  body.homepage .hero-conversion-panel::after { display: none; }
  body.homepage .hero-mobile-copy,
  body.homepage .hero-conversion-title > .hero-mobile-copy { display: none; }
  body.homepage .hero-wide-copy { display: inline; }
  body.homepage .hero-conversion-title {
    order: 0; width: 100%; max-width: none; margin: 0; padding: 0;
    color: #082529; -webkit-text-fill-color: currentColor; text-shadow: none;
    font-size: clamp(40px, 4.1vw, 60px); line-height: 1.04; letter-spacing: -.045em;
    font-weight: 750; text-wrap: balance;
  }
  body.homepage .hero-conversion-title > span { color: #082529; }
  body.homepage .hero-conversion-subtitle {
    order: 1; margin: 18px 0 0; color: #12383d; text-shadow: none;
    font-size: clamp(18px, 1.6vw, 23px); line-height: 1.35; font-weight: 450;
  }
  body.homepage .hero-panel-topline { order: 2; margin: 20px 0 0; }
  body.homepage .hero-eyebrow { color: #12383d; text-shadow: none; font-size: 14px; font-weight: 500; gap: 11px; }
  body.homepage .hero-live-dot { background: #008b88; box-shadow: none; width: 8px; height: 8px; }
  body.homepage .hero-panel-actions,
  body.homepage .hero-service-line,
  body.homepage .hero-service-strip { display: none; }
  body.homepage .hero-proof-row {
    order: 3; display: flex; flex-wrap: wrap; width: auto; gap: 10px 16px;
    margin: 14px 0 20px; padding: 0; border: 0; color: #082529;
  }
  body.homepage .hero-proof-row > span:not(.hero-proof-divider) {
    min-height: 30px; padding: 0; gap: 8px; border: 0; border-radius: 0;
    background: transparent; color: #082529; box-shadow: none;
    font-size: 14px; line-height: 1.3; font-weight: 600;
  }
  body.homepage .hero-proof-divider { display: none; }
  body.homepage .hero-proof-icon { width: 23px; height: 23px; flex-basis: 23px; }
  body.homepage .hero-proof-icon-star { color: #cf9418; background: transparent; }
  body.homepage .hero-proof-icon-chat svg { display: none; }
  body.homepage .hero-proof-icon-chat .hero-wide-google { display: block; width: 23px; height: 23px; }
  body.homepage .hero-actions-grid { order: 4; display: block; width: 100%; max-width: 360px; margin: 0; }
  body.homepage .hero-booking-cta {
    width: 100%; min-height: 56px; padding: 14px 22px; border: 0; border-radius: 30px;
    background: #007d79; color: #fff; box-shadow: none; font-size: 16px; font-weight: 650;
  }
  body.homepage .hero-booking-cta:hover { background: #006f6c; transform: translateY(-1px); }
  body.homepage .hero-ai-wrapper { order: 5; width: 100%; max-width: 360px; margin: 12px 0 0; display: block; }
  body.homepage .hero-ai-cta {
    width: 100%; min-height: 54px; padding: 13px 20px; border: 1px solid #008b88;
    border-radius: 30px; color: #082529; background: rgba(255,255,255,.78);
    box-shadow: none; font-size: 15px; font-weight: 650;
  }
  body.homepage .hero-ai-cta:hover { background: #e6f4f3; border-color: #006f6c; }
  body.homepage .hero-ai-note { display: none; }
  body.homepage .hero-ai-picker { z-index: 20; }
  body.homepage .hero-wide-contacts { order: 6; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
  body.homepage .hero-wide-contacts a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: #12383d; text-decoration: none; font-size: 14px;
  }
  body.homepage .hero-wide-contacts a:hover { color: #006f6c; text-decoration: underline; }
  body.homepage .hero-wide-contacts svg { width: 20px; height: 20px; fill: #007d79; flex-shrink: 0; }
  body.homepage :is(.hero-wide-contacts a,.hero-booking-cta,.hero-ai-cta,.desktop-nav a):focus-visible {
    outline: 3px solid #007d79; outline-offset: 4px;
  }

  body.homepage .home-clinic-preview { padding: 40px 0; }
  body.homepage .clinic-preview-container {
    display: grid; grid-template-columns: .85fr 1.6fr; align-items: center; gap: 48px;
  }
  body.homepage .clinic-preview-shell { grid-column: 2; grid-row: 1; border-radius: 16px; }
  body.homepage .clinic-preview-photo { aspect-ratio: 2.45; border-radius: 16px; }
  body.homepage .clinic-preview-panel { grid-column: 1; grid-row: 1; padding: 0; }
  body.homepage .clinic-preview-panel h2 { font-size: clamp(26px, 2.5vw, 36px); }
  body.homepage .clinic-wide-description { display: block; font-size: 16px; line-height: 1.6; margin: 16px 0; }
  body.homepage .clinic-preview-facts { gap: 5px; }
  body.homepage .clinic-preview-facts span { white-space: normal; font-size: 13px; }
  body.homepage .clinic-preview-facts span + span::before { display: none; }
  body.homepage .booking-paths { padding: 0 0 40px; }
  body.homepage .booking-paths__card { padding: 22px; background: #f6f9f8; border-radius: 16px; }
  body.homepage .booking-paths__card--consultation { color: #334155; border-color: #e2e8f0; }
  body.homepage .booking-paths__card--consultation .booking-paths__icon { color: #006f6c; }
  body.homepage .booking-paths__card .service-book-btn { align-items: center; justify-content: center; line-height: 1.3; }
  body.homepage :is(.premium-services-section,.home-trust-section,.faq-section) .section-title p { max-width: none; margin: 10px 0 0; text-align: left; }
  body.homepage :is(.premium-services-section,.home-trust-section,.faq-section) .section-title h2::after { display: none; }
  body.homepage .premium-services-section { padding: 44px 0; background: #edf7f4; }
  body.homepage .premium-services-section .section-title { text-align: left; margin-bottom: 26px; }
  body.homepage .premium-services-section .section-title h2 { font-size: clamp(28px, 2.5vw, 36px); }
  body.homepage .premium-services-section .premium-service-grid { gap: 22px; }
  body.homepage .premium-services-section .premium-service-card { padding: 0 0 18px; gap: 10px; border: 0; box-shadow: none; overflow: hidden; border-radius: 14px; }
  body.homepage .premium-services-section .premium-service-card .service-icon-box { aspect-ratio: 2.6; border-radius: 0; }
  /* Keep the recovery collar and the dog’s eyes visible in the wide crop. */
  body.homepage .premium-services-section .premium-service-card[href^="surgery"] .service-icon-box img { object-position: center 20%; }
  body.homepage .premium-services-section .premium-service-card :is(h3,.service-card-desc,.service-price-tag,.service-card-cta) { margin-inline: 20px; }
  body.homepage .premium-services-section .premium-service-card .service-card-desc { font-size: 14px; line-height: 1.45; }
  body.homepage .premium-services-section .premium-service-card .service-features { display: none; }
  body.homepage .premium-services-section .premium-service-card .service-card-cta { margin-top: auto; }
  body.homepage .premium-services-section .premium-service-card:nth-child(4):last-child {
    grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
    grid-template-rows: repeat(4, auto); gap: 10px 0; padding-bottom: 0;
  }
  body.homepage .premium-services-section .premium-service-card:nth-child(4):last-child .service-icon-box {
    grid-column: 1; grid-row: 1 / -1; height: 100%; aspect-ratio: auto;
  }
  body.homepage .premium-services-section .premium-service-card:nth-child(4):last-child h3 { grid-column: 2; grid-row: 1; margin-top: 20px; }
  body.homepage .premium-services-section .premium-service-card:nth-child(4):last-child .service-card-desc { grid-column: 2; grid-row: 2; }
  body.homepage .premium-services-section .premium-service-card:nth-child(4):last-child .service-price-tag { grid-column: 2; grid-row: 3; }
  body.homepage .premium-services-section .premium-service-card:nth-child(4):last-child .service-card-cta { grid-column: 2; grid-row: 4; margin-bottom: 20px; justify-self: start; }
  body.homepage .reviews-section { padding: 44px 0; background: #fff; }
  body.homepage .reviews-container { max-width: 1280px; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
  body.homepage .home-team img { aspect-ratio: 1.7; object-position: center 30%; }
  body.homepage .home-trust-section { padding: 20px 0 44px; background: #fff; }
  body.homepage .home-trust-section .section-title { text-align: left; }
  body.homepage .home-trust-section .premium-trust-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.homepage .home-trust-section .trust-stat-card { grid-column: auto; padding: 24px; }
  body.homepage .faq-section { padding: 20px 0 48px; background: #fff; }
  body.homepage .faq-section .section-title { text-align: left; }
  body.homepage .faq-accordion { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
  body.homepage .faq-item { margin: 0; }
  body.homepage .footer { background: #073638; padding-top: 44px; }
  body.homepage .footer-col h4 { color: #fff; }
  body.homepage .footer-col h4::after { display: none; }
  body.homepage .footer-top .footer-brand-col { background: transparent; border: 0; padding: 0; box-shadow: none; }
  body.homepage .footer-brand-col > .footer-logo { display: inline-flex; align-items: center; gap: 12px; width: auto; }
  body.homepage .footer-brand-col > .footer-logo::after { content: 'BIONIKA'; color: #fff; font-size: 25px; font-weight: 750; }
  body.homepage :is(#services,#clinic-preview,#reviews,#contacts) { scroll-margin-top: 24px; }
}

/* Portrait tablets retain the complete landscape composition above the actions. */
@media (min-width: 769px) and (max-width: 1100px) {
  body.homepage .header { position: relative; background: #fff; }
  body.homepage .header-container { min-height: 80px; padding: 14px 28px; gap: 18px; }
  body.homepage .desktop-nav { display: none; }
  body.homepage .language-switcher { margin-left: auto; }
  body.homepage .service-menu-toggle { display: flex; color: #082529; background: transparent; }
  body.homepage .service-menu-toggle span { background: #082529; }
  body.homepage .premium-home-hero-conversion { display: block; min-height: 0; padding: 0 0 32px; background: #fff; }
  body.homepage .premium-home-hero-conversion::before { display: none; }
  body.homepage .hero-wide-media { position: relative; inset: auto; height: auto; aspect-ratio: 1672 / 941; z-index: auto; }
  body.homepage .hero-home-content { position: relative; max-width: 800px; padding: 0 28px; margin-top: -20px; }
  body.homepage .hero-conversion-panel { width: 100%; max-width: none; padding: 30px; border-radius: 20px; background: #fff; }
  body.homepage .hero-conversion-title { font-size: clamp(36px, 4.6vw, 46px); max-width: 680px; }
  body.homepage .hero-conversion-subtitle { margin-top: 12px; }
  body.homepage .hero-actions-grid,
  body.homepage .hero-ai-wrapper { max-width: 440px; }
  body.homepage .container { padding-inline: 28px; }
  body.homepage .clinic-preview-container { gap: 28px; grid-template-columns: 1fr 1.3fr; }
  body.homepage .clinic-preview-photo { aspect-ratio: 1.6; }
  body.homepage .premium-services-section .premium-service-grid { gap: 16px; }
  body.homepage .premium-services-section .premium-service-card :is(h3,.service-card-desc,.service-price-tag,.service-card-cta) { margin-inline: 14px; }
  body.homepage .premium-services-section .premium-service-card h3 { font-size: 17px; }
  body.homepage .reviews-container { gap: 28px; }
}
