.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 12px 48px !important;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #ececef;
  backdrop-filter: blur(12px);
}
.site-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; z-index: 1; }
.site-brand-mark { display: block; width: auto; height: 48px; flex: 0 0 auto; opacity: .88; mix-blend-mode: multiply; }
.site-brand-name { display: flex; flex-direction: column; gap: 1px; }
.site-brand-name > div:first-child { font-size: 18px; font-weight: 600; line-height: 1.1; letter-spacing: .5px; color: #1c1e22; }
.site-brand-name > div:last-child { font-size: 8px; font-weight: 600; letter-spacing: 2.5px; color: #8a9096; text-transform: uppercase; }
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 36px; white-space: nowrap; }
.site-nav > div, .site-nav > a { color: #2f3237; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: color .2s ease; }
.site-nav > div:hover, .site-nav > a:hover { color: #9b111e; }
.site-nav .desktop-nav-only { display: block !important; }

.home-page { background: #fff; }
.home-page .hero-row { display: grid !important; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center !important; gap: 30px !important; padding: 42px 0 0 48px !important; }
.home-page .hero-text { min-width: 0; padding: 0 !important; }
.hero-text h1 { margin: 0; font-size: clamp(44px,5.5vw,68px); font-weight: 650; line-height: .99; letter-spacing: -.035em; color: #17191e; }
.hero-text p { max-width: 430px; margin: 30px 0 0; font-size: 15px; line-height: 1.55; color: #5a6067; text-wrap: pretty; }
.home-page .installment-note { background: none; color: #9b111e; font-weight: 600; }
.home-page .hero-accent::after { left: 0; right: 0; bottom: -7px; height: 11px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C78 2 151 11 222 5 S291 6 318 3' fill='none' stroke='%239B111E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; }
.hero-actions button { font: inherit; cursor: pointer; }
.home-primary-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 7px; background: #9b111e; color: #fff; font-size: 13px !important; font-weight: 600 !important; transition: background .2s ease, transform .2s ease; }
.home-primary-cta:hover { background: #720d16; transform: translateY(-1px); }
.hero-actions button:focus-visible, .package-tier:focus-visible, .contact-channels a:focus-visible { outline: 2px solid #9b111e; outline-offset: 3px; }

.home-page .hero-img-wrap { position: relative !important; display: block !important; min-width: 0; height: 490px !important; margin: 0 !important; flex: none !important; overflow: visible !important; border: 0 !important; background: transparent !important; }
.hero-photo-card { position: absolute; overflow: hidden; background: #cbd1d4; transform-origin: right center; backface-visibility: hidden; transition: inset .95s cubic-bezier(.22,1,.36,1), transform .95s cubic-bezier(.45,0,.2,1), opacity .42s ease, box-shadow .95s cubic-bezier(.22,1,.36,1); }
.hero-photo-card.is-front, .hero-photo-card.is-promoting { z-index: 3; inset: 24px 28px 26px 0; transform: none; opacity: 1; box-shadow: 0 22px 42px rgba(20,25,30,.24), 0 5px 12px rgba(20,25,30,.11); }
.hero-photo-card.is-back, .hero-photo-card.is-queued { inset: 8px 10px 1px 28px; transform: rotate(2.2deg); box-shadow: 0 17px 35px rgba(20,25,30,.2); }
.hero-photo-card.is-back { z-index: 2; opacity: 1; }
.hero-photo-card.is-queued { z-index: 1; opacity: 0; }
.hero-photo-card.is-fading { z-index: 4; inset: 24px 28px 26px 0; transform: none; opacity: 0; transition: opacity .32s ease; }
.hero-photo-card.is-hidden { z-index: 1; inset: 24px 28px 26px 0; transform: none; opacity: 0; visibility: hidden; transition: none; }
.hero-photo-card.is-resetting { transition: none; }
.hero-works-label { position: absolute; right: 48px; bottom: 44px; z-index: 5; display: inline-flex; align-items: center; gap: 14px; padding: 8px 10px 8px 14px; border: 0; background: rgba(255,255,255,.94); color: #1c1e22; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 5px 15px rgba(17,20,24,.19); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.hero-works-arrow { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 1px solid #aeb3b8; border-radius: 50%; font-size: 16px; font-weight: 400; line-height: 1; transition: border-color .2s ease, transform .2s ease; }
.hero-works-label:hover { background: #fff; color: #9b111e; box-shadow: 0 7px 20px rgba(17,20,24,.24); }
.hero-works-label:hover .hero-works-arrow { border-color: #9b111e; transform: translateX(2px); }
.hero-works-label:focus-visible { outline: 2px solid #9b111e; outline-offset: 3px; color: #9b111e; }
.hero-afterword { margin: 10px 0 0 55%; padding-left: 12px; color: #303239; font-family: 'Segoe Script','Brush Script MT',cursive; font-size: 20px; line-height: 1.4; transform: rotate(-5deg); }

.home-page .installment-section { display: grid; grid-template-columns: minmax(0,290px) minmax(0,1fr); align-items: start; gap: 35px; max-width: none; padding: 80px 48px 58px !important; }
.home-page .installment-heading { max-width: none; padding-top: 28px; }
.home-page .installment-heading h2 { max-width: 280px; margin: 0; color: #1c1e22; font-size: clamp(27px,3vw,38px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.home-page .installment-heading p { max-width: 265px; margin: 18px 0 0; color: #666b70; font-size: 14px; line-height: 1.5; }
.home-page .package-comparison { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; margin: 0 !important; border: 0 !important; }
.home-page .package-tier, .home-page .package-tier + .package-tier { display: flex; flex-direction: column; min-width: 0; min-height: 324px; padding: 0 !important; overflow: hidden; border: 1px solid #e1e3e5 !important; border-radius: 7px; background: #fff; color: #1c1e22; font-family: inherit; text-align: left; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.home-page .package-tier:hover { border-color: #d5d8db !important; transform: translateY(-3px); box-shadow: 0 16px 38px rgba(28,30,34,.09); }
.home-page .package-tier-business { border-color: rgba(155,17,30,.36) !important; background: #fffafb; }
.package-tier-body { min-height: 163px; padding: 26px 24px 18px; }
.home-page .package-tier-name { color: #1c1e22; font-size: 30px; font-weight: 600; line-height: 1.1; }
.home-page .package-tier-business .package-tier-name { color: #9b111e; }
.home-page .package-tier-copy { margin-top: 10px; color: #686d72; font-size: 13px; line-height: 1.42; }
.home-page .package-tier img { display: block; width: 100%; height: 100px; object-fit: cover; object-position: center 56%; margin-top: auto; clip-path: polygon(0 30%,100% 0,100% 100%,0 100%); transition: transform .45s cubic-bezier(.16,.84,.44,1); }
.home-page .package-tier:hover img { transform: scale(1.035); }
.package-tier-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 67px; padding: 11px 22px 12px 24px; }
.home-page .package-tier-price { color: #1c1e22; font-size: 20px; font-weight: 600; white-space: nowrap; }
.home-page .package-tier-business .package-tier-price { color: #9b111e; }
.package-tier-arrow { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid #b9bec2; border-radius: 50%; font-size: 19px; font-weight: 400; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.package-tier:hover .package-tier-arrow { background: #9b111e; border-color: #9b111e; color: #fff; transform: translateX(2px); }
.package-tier-business .package-tier-arrow { background: #9b111e; border-color: #9b111e; color: #fff; }
.package-tier-business:hover .package-tier-arrow { background: #720d16; border-color: #720d16; }

.finance-section { padding: 30px 48px 34px; background: linear-gradient(90deg,rgba(88,13,27,.8),rgba(25,25,31,.84) 73%),url('https://media.alyans-izhs.ru/gallery/house-015.webp') center 14%/cover; color: #fff; }
.finance-label { color: rgba(255,255,255,.66); font-size: 10px; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.finance-section .installment-row { display: grid; grid-template-columns: 126px minmax(0,1fr) minmax(290px,.85fr); gap: 24px; align-items: center; margin-top: 15px; padding: 0 !important; border: 0 !important; }
.finance-section .installment-zero { grid-row: auto; color: #fff; font-size: 76px; font-weight: 600; letter-spacing: -.05em; }
.finance-section .installment-copy { grid-column: auto; grid-row: auto; }
.finance-section .installment-copy strong { max-width: 280px; color: #fff; font-size: 21px; line-height: 1.2; }
.finance-section .installment-copy span { margin-top: 9px; color: rgba(255,255,255,.7); font-size: 13px; }
.finance-section .installment-payment { display: block; grid-column: auto; grid-row: auto; padding: 10px 0 10px 34px; border-left: 1px solid rgba(255,255,255,.3); color: #fff; }
.finance-section .installment-payment > div { display: flex; align-items: baseline; gap: 7px; }
.finance-section .installment-payment-prefix { color: #fff; font-size: 15px; }
.finance-section .installment-payment-value { color: #fff; font-size: clamp(23px,3vw,34px); font-weight: 600; }

.home-contacts { padding: 38px 48px 26px; background: #fff; }
.contact-main { display: grid; grid-template-columns: minmax(0,1fr) 180px; gap: 28px; align-items: center; }
.contact-lead h2 { margin: 0; color: #1c1e22; font-size: 26px; font-weight: 600; line-height: 1.15; }
.contact-lead > p { margin: 7px 0 0; color: #73787d; font-size: 13px; }
.contact-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; margin-top: 26px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.contact-detail-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f1f2f3; color: #1c1e22; }
.contact-detail a { display: block; color: #1c1e22; font-size: 14px; line-height: 1.35; }
.contact-detail a:hover { color: #9b111e; }
.contact-detail small { display: block; margin-top: 4px; color: #81868a; font-size: 11px; line-height: 1.35; }
.contact-channels { display: grid; gap: 10px; }
.contact-channels a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 15px; border: 1px solid #b9bec2; border-radius: 8px; color: #1c1e22; font-size: 13px; text-align: center; }
.contact-channels a:hover { border-color: #9b111e; color: #9b111e; }
.contact-channels a + a { border-color: #e6e7e8; background: #f1f2f3; }
.contact-channels svg { flex: 0 0 auto; }
.home-contacts > div:last-child { margin-top: 28px !important; padding: 17px 0 0 !important; }
.home-legal-brand { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

@media (min-width: 1024px) {
  .home-contacts .legal-footer-row { display: grid !important; grid-template-columns: minmax(220px,1fr) auto minmax(190px,1fr); align-items: center; gap: 22px; }
  .home-contacts .legal-footer-links { justify-self: center; margin-top: 0 !important; }
  .home-legal-brand { justify-self: end; margin-top: 0; white-space: nowrap; }
}

@media (max-width: 1023px) {
  .site-header { padding: 10px 24px !important; }
  .site-nav { left: auto; right: 24px; transform: none; gap: 18px; }
  .site-nav .desktop-nav-only { display: none !important; }
  .home-page .hero-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 38px 0 0 24px !important; gap: 20px !important; }
  .home-page .hero-img-wrap { height: 410px !important; }
  .hero-text h1 { font-size: clamp(38px,5vw,54px); }
  .home-page .installment-section { grid-template-columns: minmax(0,230px) minmax(0,1fr); gap: 20px; padding: 70px 24px 45px !important; }
  .package-tier-body { padding: 22px 18px 15px; }
  .package-tier-foot { padding: 10px 16px 11px 18px; }
  .home-page .package-tier-price { font-size: 17px; }
  .finance-section { padding: 28px 24px 32px; }
  .home-contacts { padding: 36px 24px 24px; }
}

@media (max-width: 767px) {
  .site-header { min-height: 64px; padding: 8px 18px !important; }
  .site-brand { gap: 8px; }
  .site-brand-mark { height: 39px; }
  .site-brand-name > div:first-child { font-size: 15px; }
  .site-brand-name > div:last-child { font-size: 6px; letter-spacing: 1.8px; }
  .site-nav { right: 18px; gap: 12px; }
  .site-nav > div, .site-nav > a { font-size: 11px; }
  .home-page .hero-row { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 18px !important; padding: 34px 0 0 !important; }
  .home-page .hero-text { position: relative; z-index: 2; padding: 0 20px !important; }
  .hero-text h1 { font-size: clamp(38px,10vw,48px); }
  .hero-text p { margin-top: 24px; font-size: 14px; }
  .hero-actions { margin-top: 24px; }
  .home-primary-cta { min-height: 48px; padding: 0 17px; font-size: 12px !important; }
  .home-page .hero-img-wrap { left: 14px; width: 100%; height: min(82vw,340px) !important; margin: 0 !important; }
  .hero-photo-card.is-front, .hero-photo-card.is-promoting, .hero-photo-card.is-fading, .hero-photo-card.is-hidden { inset: 4px 24px 14px 0; }
  .hero-photo-card.is-back, .hero-photo-card.is-queued { inset: 8px 8px 6px 22px; }
  .hero-works-label { right: 38px; bottom: 26px; gap: 9px; padding: 7px 8px 7px 10px; font-size: 9px; }
  .hero-works-arrow { flex-basis: 22px; width: 22px; height: 22px; font-size: 14px; }
  .hero-afterword { margin: 18px 0 0 20px; padding: 0; font-size: 17px; }
  .home-page .installment-section { display: block; padding: 52px 20px 42px !important; }
  .home-page .installment-heading { padding: 0; }
  .home-page .installment-heading h2 { max-width: 400px; font-size: 31px; }
  .home-page .installment-heading p { max-width: 400px; margin-top: 12px; font-size: 13px; }
  .home-page .package-comparison { margin-top: 25px !important; gap: 10px; }
  .home-page .package-tier, .home-page .package-tier + .package-tier { min-height: 292px; }
  .package-tier-body { min-height: 146px; padding: 17px 13px 10px; }
  .home-page .package-tier-name { font-size: 23px; }
  .home-page .package-tier-copy { font-size: 11px; line-height: 1.35; }
  .home-page .package-tier img { height: 76px; }
  .package-tier-foot { min-height: 58px; padding: 8px 11px 9px 13px; }
  .home-page .package-tier-price { font-size: 13px; }
  .package-tier-arrow { flex-basis: 28px; width: 28px; height: 28px; font-size: 16px; }
  .finance-section { padding: 26px 20px 30px; }
  .finance-section { background-size: cover, auto 220%; background-position: center, center top; }
  .finance-section .installment-row { grid-template-columns: 82px minmax(0,1fr); gap: 8px 15px; margin-top: 18px; }
  .finance-section .installment-zero { grid-row: 1; font-size: 62px; }
  .finance-section .installment-copy { grid-column: 2; grid-row: 1; }
  .finance-section .installment-copy strong { font-size: 17px; }
  .finance-section .installment-copy span { margin-top: 6px; font-size: 12px; }
  .finance-section .installment-payment { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; padding: 13px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .finance-section .installment-payment-value { font-size: 29px; }
  .home-contacts { padding: 36px 20px 24px; }
  .contact-main { display: block; }
  .contact-lead h2 { font-size: 24px; }
  .contact-details { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .contact-channels { grid-template-columns: 1fr 1fr; margin-top: 26px; }
  .contact-channels a { min-height: 45px; }
  .home-contacts > div:last-child { margin-top: 30px !important; }
}

@media (max-width: 359px) {
  .site-brand-mark { height: 34px; }
  .site-brand-name > div:first-child { font-size: 13px; }
  .site-nav { gap: 8px; right: 12px; }
  .site-nav > div, .site-nav > a { font-size: 10px; }
  .hero-text h1 { font-size: 37px; }
  .home-page .package-tier-price { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-primary-cta, .package-tier, .package-tier img, .package-tier-arrow { transition: none !important; }
  .hero-photo-card { transition: none !important; }
}
