/* Sticky Header */
.header__sticky { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(-100%); position: fixed; left: 0; right: 0; z-index: 1000; box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.header__sticky--visible { transform: translateY(0); }
.header__sticky-content { display: flex; align-items: center; justify-content: space-between; padding: 12px 48px; max-width: 1280px; margin: 0 auto; width: 100%; }
.header__sticky .header__nav { font-size: 15px; font-weight: 500; }

/* White Header */
.header__white { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); position: relative; z-index: 100; }

/* Color Header */
.header__color { background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%); color: var(--text-light); position: relative; overflow: hidden; padding: 80px 0 60px; }
.header__color::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.header__color::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.header__content { max-width: 1280px; margin: 0 auto; padding: 20px 48px 40px; position: relative; z-index: 1; }
.header__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }

/* Logo */
.header__logo { display: flex; align-items: center; gap: 12px; font: 700 22px/26px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-dark); letter-spacing: -0.5px; text-decoration: none; transition: var(--transition); cursor: pointer; background: none; padding-left: 0; flex-shrink: 0; }
.header__logo::before { content: ''; display: inline-block; width: 36px; height: 36px; background: url(../i/logo.svg) no-repeat 50% / contain; flex-shrink: 0; }
.header__logo:hover { transform: scale(1.05); }

/* Цвет текста в разных хедерах */
.header__color .header__logo { color: var(--text-light); }
.header__sticky .header__logo { color: var(--text-dark); }

/* Navigation */
.header__navs { display: flex; gap: 40px; align-items: center; }
.header__nav { font: 500 16px/24px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; cursor: pointer; opacity: 0.7; transition: var(--transition); color: var(--main-color); text-decoration: none; position: relative; padding: 4px 0; }
.header__nav::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--main-color); transition: var(--transition); }
.header__nav:hover { opacity: 1; }
.header__nav:hover::after { width: 100%; }
.header__sticky .header__nav { color: var(--text-dark); }
.header__sticky .header__nav::after { background: var(--main-color); }

/* Title */
.header__title-wrapper { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.header__title { font: 700 44px/52px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0 0 32px 0; letter-spacing: -0.5px; animation: fadeInUp 0.8s ease-out; }
.header__sub-title { font: 400 22px/32px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0 0 20px 0; opacity: 0.9; animation: fadeInUp 0.8s ease-out 0.2s both; }
.header__sub-title:last-of-type { font-size: 18px; line-height: 28px; opacity: 0.85; max-width: 700px; }

/* App Buttons */
.header__apps { display: flex; gap: 20px; margin-top: 40px; animation: fadeInUp 0.8s ease-out 0.4s both; }
.header__app { height: 52px; width: 190px; background: no-repeat 50% / contain; cursor: pointer; transition: var(--transition); border-radius: 12px; opacity: 0.9; }
.header__app:hover { transform: translateY(-3px) scale(1.02); opacity: 1; box-shadow: var(--shadow-lg); }
.header__app--app-store { background-image: url(../i/app_store.svg); background-color: #000; border-radius: 12px; }
.header__app--google-play { background-image: url(../i/google_play.svg); background-color: #000; border-radius: 12px; }

/* HOVER */
@media screen and (min-width: 769px) {
    .header__nav:hover { opacity: 1; }
    .header__app:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
}

/* MEDIA QUERY */
@media screen and (max-width: 1024px) {
    .header__title-wrapper { display: block; }
    .header__title { font: 700 34px/42px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; text-align: center; }
    .header__sub-title { font: 400 20px/30px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; text-align: center; }
    .header__apps { justify-content: center; }
    .header__color { padding: 60px 0 40px; }
}

@media screen and (max-width: 768px) {
    .header__content { padding: 16px 24px 30px; }
    .header__sticky-content { padding: 12px 20px; }
    .header__nav { margin-right: 0; font: 500 14px/20px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .header__navs { gap: 20px; }
    .header__title { font: 700 28px/36px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .header__sub-title { font: 400 18px/28px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .header__app { height: 48px; width: 160px; }
    .header__color::before, .header__color::after { display: none; }
    .header__logo { font-size: 18px; line-height: 22px; gap: 10px; }
    .header__logo::before { width: 30px; height: 30px; }
}

@media screen and (max-width: 622px) {
    .header__top { flex-direction: column; gap: 16px; }
    .header__logo { margin-bottom: 0; }
    .header__br { display: none; }
    .header__title { font-size: 24px; line-height: 32px; }
}

@media screen and (max-width: 478px) {
    .header__navs { display: none; }
    .header__apps { flex-direction: column; align-items: center; gap: 12px; }
    .header__app { width: 100%; max-width: 200px; }
    .header__content { padding: 12px 16px 24px; }
    .header__color { padding: 40px 0 30px; }
    .header__logo { font-size: 16px; line-height: 20px; gap: 8px; }
    .header__logo::before { width: 26px; height: 26px; }
}