/* Versioned release: mobile hero sizing and visible playback controls. */
:root {
    --orange: #ff6600;
    --orange-hover: #e65c00;
    --orange-light: rgba(255, 102, 0, .08);
    --header-h: 80px;
}

.header-inner { max-width: 1440px; gap: 24px; padding: 0 32px; }
.header-logo { margin-top: 0; }
.header-logo .brand-logo { display: block; width: 200px; height: auto; flex: none; shape-rendering: geometricPrecision; }
.header-phones { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.header-phone { font-size: 13px; }
.nav-links { gap: 24px; font-size: 14px; }
.lang-toggle { border-radius: 10px; }
.header-right { gap: 16px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.25fr);
    align-items: stretch;
    justify-content: initial;
    min-height: 560px;
    padding: 0;
    text-align: left;
}
.hero::after { display: none; }
.hero-content {
    max-width: none;
    padding: 52px clamp(24px, 4.2vw, 76px);
    align-self: center;
}
.hero-badge { font-size: 14px; padding: 7px 18px; border-radius: 6px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 4.2vw, 72px); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 20px; }
.hero p { margin: 0 0 26px; font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.hero-actions .btn-primary { gap: 28px; min-height: 56px; padding: 15px 30px; box-shadow: 0 10px 28px rgba(255, 102, 0, .28); }
.hero-actions .btn-primary::after { content: '\2192'; font-size: 25px; font-weight: 400; line-height: 1; }
.hero-consultation { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding: 5px 0; }
.hero-consultation:hover { color: var(--orange); }
.hero-media { position: relative; min-height: 560px; overflow: hidden; background: #30271e; clip-path: polygon(0 0, 100% 0, 100% 100%, 17% 100%); }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-poster { display: block; }
.hero-video { display: block; opacity: 1; pointer-events: none; }
.hero-media.is-unavailable .hero-video { opacity: 0; }
.hero-media button[hidden] { display: none !important; }
.hero-play-button { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; max-width: calc(100% - 32px); padding: 14px 22px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(24,24,24,.88); color: #fff; font: 600 15px var(--font); white-space: nowrap; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.hero-play-button > span:first-child { font-size: 18px; }
.hero-pause-button { position: absolute; z-index: 4; right: 16px; bottom: 16px; min-width: 68px; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(24,24,24,.76); color: #fff; font: 600 12px var(--font); cursor: pointer; }
.hero-play-button:focus-visible, .hero-pause-button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--orange); clip-path: polygon(100% 37%, 100% 100%, 93% 100%); pointer-events: none; }

.btn-primary { box-shadow: 0 4px 18px rgba(255, 102, 0, .3); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(255, 102, 0, .38); }
.step-circle { box-shadow: 0 4px 16px rgba(255, 102, 0, .25); }
.footer-logo .brand-logo { display: block; width: 210px; height: auto; flex: none; shape-rendering: geometricPrecision; }
.footer-links { flex-wrap: wrap; }
#cookieBannerText a { color: var(--orange) !important; }

@media (min-width: 1700px) {
    .hero-content { padding-left: max(76px, calc((100vw - 1440px) / 2)); }
}
@media (max-width: 1100px) {
    .header-inner { padding: 0 24px; gap: 16px; }
    .header-logo .brand-logo { width: 180px; }
    .desktop-phones, .header-tg-btn.desktop-tg { display: none; }
    .header-mobile-actions { display: flex; margin-left: auto; }
    .header-phone-mobile { font-size: 13px; }
    .header-right { gap: 16px; }
    .mobile-menu-btn { display: flex; }
    .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border-light); }
    .nav-links.open { max-height: 380px; padding: 12px 0; }
    .nav-links a { display: block; padding: 14px 28px; font-size: 16px; border-bottom: 1px solid var(--border-light); }
    .hero-content { padding: 40px 28px; }
    .hero h1 { font-size: 44px; }
    .hero p { font-size: 16px; }
    .hero-actions { gap: 18px; }
}
@media (max-width: 900px) {
    .hero { display: flex; flex-direction: column; }
    .hero-content { padding: 46px 28px 36px; max-width: 660px; }
    .hero h1 { font-size: clamp(38px, 7vw, 52px); max-width: 620px; }
    .hero-media { order: -1; flex: none; width: 100%; min-height: 280px; height: clamp(280px, 42svh, 380px); aspect-ratio: auto; clip-path: none; }
    .hero-poster, .hero-video { object-position: 58% center; }
    .hero-media::after { clip-path: polygon(100% 45%, 100% 100%, 96% 100%); }
}
@media (max-width: 640px) {
    :root { --header-h: 104px; }
    .header-inner { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 50px 42px; gap: 0 12px; padding: 0 16px; }
    .header-logo { grid-column: 1; grid-row: 1; margin-top: 0; }
    .header-logo .brand-logo { width: 148px; }
    .header-right { grid-column: 2; grid-row: 1; gap: 8px; }
    .lang-toggle { font-size: 11px; }
    .lang-toggle span { padding: 5px 9px; }
    .header-inner > nav { position: absolute; }
    .header-mobile-actions { grid-column: 1 / -1; grid-row: 2; margin-left: 0; justify-content: space-between; gap: 10px; }
    .header-mobile-actions .header-phones { flex-direction: row; gap: 14px; }
    .header-phone-mobile { font-size: 12px; }
    .header-mobile-actions .header-tg-btn { width: 28px; height: 28px; }
    .hero-content { padding: 36px 20px 32px; }
    .hero h1 { font-size: clamp(34px, 9vw, 44px); }
    .hero p { font-size: 15px; }
    .hero-actions { align-items: flex-start; gap: 18px; }
    .hero-actions .btn-primary { min-height: 52px; padding: 13px 24px; }
    .hero-consultation { font-size: 14px; }
    .footer-links { justify-content: center; gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-media:not(.motion-enabled) .hero-video { display: none; }
}
