:root { font-family: Onest, Arial, sans-serif; color: #161616; background: #f8f8f5; font-synthesis: none; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { min-height: 100vh; }
button, input { font: inherit; }
a { color: inherit; }
.material-symbols-rounded { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.page { min-height: calc(100vh - var(--cui-h, 0px)); display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse 65% 65% at 50% 46%, #fff4f2 0%, #f8f8f5 76%); }
.wrap { width: min(100% - 64px, 1440px); margin-inline: auto; }
.header { height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.brand { display: inline-flex; width: 140px; flex: none; }
.brand img { display: block; width: 100%; height: auto; }
.brand-description { font-size: 13px; color: #71716b; line-height: 1.3; }
.main { flex: 1; position: relative; display: grid; place-items: center; text-align: center; padding-block: 30px; isolation: isolate; }
.hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
h1 { font-size: clamp(58px, 6.5vw, 96px); line-height: 1.04; letter-spacing: -.06em; margin: 0; font-weight: 700; }
.intro { max-width: 500px; margin: 24px 0 0; color: #64645e; font-size: 18px; line-height: 1.5; text-wrap: balance; }
.actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.phone { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.025em; white-space: nowrap; }
.phone-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff1a0; }
.phone:hover .phone-icon { background: #ffe977; }
.button { min-height: 56px; padding: 0 28px; border: 0; border-radius: 50px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.button-accent { background: #e31e24; color: #161616; }
.button-accent:hover { background: #c9181e; }
.site-status { margin: 0 0 20px; padding: 9px 15px; border-radius: 24px; background: rgba(232, 232, 224, .72); color: #686860; font-size: 13px; line-height: 1.4; }
.button:focus-visible, a:focus-visible, .close:focus-visible { outline: 2px solid #77776e; outline-offset: 3px; }
input:focus-visible { outline: 1px solid #999991; outline-offset: 2px; border-color: #999991; }
.art { position: absolute; z-index: 0; pointer-events: none; width: min(66vw, 620px); aspect-ratio: 1; display: grid; place-items: center; transform: translateY(-20px); }
.art::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(227, 30, 36, .10), rgba(227, 30, 36, .035) 48%, transparent 72%); filter: blur(24px); }
.loader { width: 100%; height: 100%; position: relative; border: 1px solid rgba(227, 30, 36, .15); border-radius: 50%; }
.loader::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(transparent 0deg, transparent 125deg, rgba(227, 30, 36, .06) 175deg, rgba(227, 30, 36, .32) 220deg, rgba(227, 30, 36, .75) 275deg, rgba(227, 30, 36, .22) 320deg, transparent 360deg); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 4px), #000 calc(100% - 2px), transparent 100%); filter: blur(1px) drop-shadow(0 0 6px rgba(227, 30, 36, .55)); }
.footer { min-height: 104px; display: flex; justify-content: center; align-items: center; }
.footer[hidden] { display: none; }
.socials { display: flex; align-items: center; justify-content: center; gap: 14px; }
.social-item { width: 44px; height: 44px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; text-decoration: none; background: white; }
.social-item:not(a) { cursor: default; }
.social-item:hover { filter: brightness(.91); }
.social-item img { display: block; width: 100%; height: 100%; }
.social-max { background: linear-gradient(140deg, #188aff 5%, #7e2dff 50%, #ee39b4 100%); }
.social-max img { width: 25px; height: 25px; }
.dialog { width: min(100% - 32px, 480px); max-height: calc(100% - 32px); border: 0; border-radius: 28px; padding: 0; background: #f8f8f5; color: #161616; box-shadow: 0 24px 80px #0003; text-align: center; }
.dialog::backdrop { background: #111a; }
.dialog-inner { padding: 52px 48px 42px; position: relative; }
.close { position: absolute; right: 20px; top: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eaeae4; cursor: pointer; color: #555; }
.dialog h2 { font-size: 45px; line-height: 1.06; letter-spacing: -.055em; margin: 0; }
.dialog-copy { font-size: 15px; line-height: 1.5; color: #6a6a64; margin: 20px 0 28px; }
.callback-form { display: grid; gap: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.callback-form input { height: 54px; padding: 0 17px; border: 1px solid #d5d5ce; background: #fff; border-radius: 14px; color: #161616; text-align: center; }
.callback-form input::placeholder { color: #999; }
.submit { margin-top: 12px; width: 100%; }
.submit:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.4em; color: #555; font-size: 13px; line-height: 1.4; margin: 4px 0 0; }
.form-status:empty { display: none; }
@media (max-width: 900px) {
  .intro { max-width: 500px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 114px; }
  .brand { width: 116px; }
  .brand-description { font-size: 12px; }
  .main { padding-block: 40px 50px; }
  .art { width: min(98vw, 390px); transform: translateY(-10px); }
  h1 { font-size: clamp(30px, 9.7vw, 58px); }
  .intro { margin-top: 20px; max-width: 335px; font-size: 15px; white-space: normal; text-wrap: balance; }
  .actions { flex-direction: column; gap: 18px; margin-top: 28px; }
  .site-status { margin-bottom: 18px; font-size: 12px; }
  .phone { font-size: 16px; }
  .button { min-height: 52px; font-size: 14px; }
  .footer { min-height: 82px; padding-block: 14px; }
  .dialog-inner { padding: 52px 26px 30px; }
  .dialog h2 { font-size: 39px; }
}
@media (prefers-reduced-motion: no-preference) {
  .loader::after { animation: loader-turn 3.4s linear infinite; }
  .hero { animation: appear .75s cubic-bezier(.2,.7,.2,1) both; }
  .footer { animation: appear .8s .1s cubic-bezier(.2,.7,.2,1) both; }
  .button, .phone-icon, .social-item { transition: background .2s, opacity .2s, transform .2s; }
  .button:hover, .social-item:hover { transform: translateY(-2px); }
  @keyframes loader-turn { to { transform: rotate(360deg); } }
  @keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

/* Контактные данные клиента в композиции шаблона Аляски. */
.header { height: 175px; flex: none; }
.brand { width: min(330px, 78vw); }
.brand img { mix-blend-mode: multiply; }
.hero h1 { font-size: clamp(44px, 5.2vw, 74px); }
.button-accent { color: #fff; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; width: min(100%, 710px); margin-top: 30px; }
.contact-group h2 { margin: 0 0 10px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #686860; }
.contact-phones { display: grid; justify-items: center; gap: 8px; }
.contact-phones a { font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.contact-phones a:hover, .location a:hover { color: #c9181e; }
.contact-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.max-icon, .phone-mark { width: 22px; height: 22px; display: inline-grid; flex: none; place-items: center; border-radius: 50%; }
.max-icon { overflow: hidden; }
.max-icon img { width: 100%; height: 100%; display: block; }
.phone-mark { background: #fbe6e6; color: #c9181e; }
.phone-mark .material-symbols-rounded { font-size: 15px; }
.contact-group p, .location { color: #74746c; font-size: 13px; line-height: 1.5; }
.contact-group p { margin: 10px 0 0; }
.location { margin-top: 22px; }
.location p { margin: 0 0 4px; }
.location a { color: inherit; text-underline-offset: 3px; }
.hero .actions { margin-top: 24px; }
@media (max-width: 600px) {
  .header { height: 142px; }
  .brand { width: min(270px, 80vw); }
  .hero h1 { font-size: clamp(28px, 8.3vw, 46px); }
  .contacts { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .contact-phones a { font-size: 16px; }
  .main { padding-block: 20px 44px; }
  .hero .actions { margin-top: 22px; }
}
@media (min-width: 901px) and (max-height: 850px) {
  .header { height: 140px; }
  .brand { width: 270px; }
  .main { padding-block: 16px 24px; }
  .hero h1 { font-size: clamp(42px, 4.5vw, 64px); }
  .hero .intro { margin-top: 15px; }
  .contacts { margin-top: 20px; }
  .contact-phones { gap: 5px; }
  .contact-group p { margin-top: 6px; }
  .location { margin-top: 14px; }
  .hero .actions { margin-top: 16px; }
  .art { width: min(58vw, 560px); transform: translateY(15px); }
}

/* Размер нового логотипа с вертикальной композицией. */
.brand { width: min(280px, 78vw); }
@media (max-width: 600px) { .brand { width: min(220px, 80vw); } }
@media (min-width: 901px) and (max-height: 850px) { .brand { width: 220px; } }

/* Marketplace links follow the existing rounded controls. */
.marketplace-links { flex-wrap: wrap; justify-content: center; gap: 10px; padding-block: 12px; }
.marketplace-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #dfdcd7; border-radius: 999px; background: rgba(255,255,255,.88); color: #252525; text-decoration: none; font-size: 13px; font-weight: 700; transition: border-color .2s, color .2s; }
.marketplace-link:hover { border-color: #c9181e; color: #c9181e; }
.marketplace-link:focus-visible { outline: 2px solid #77776e; outline-offset: 3px; }
@media (max-width: 600px) { .marketplace-links { gap: 8px; } .marketplace-link { padding-inline: 14px; } }

.footer { flex-direction: column; }
.marketplace-title { margin: 0; color: #686860; font-size: 14px; line-height: 1.4; text-align: center; }

/* Компоновка по согласованным образцам клиента. Фон и анимация сохранены. */
.header { height: auto; padding-top: 28px; padding-bottom: 12px; }
.brand { width: min(280px, 75vw); }
.main { flex: 1; padding-block: 12px 38px; align-items: start; }
.hero { width: min(100%, 850px); }
.site-status { margin: 0 0 24px; padding: 10px 20px; color: #161616; font-size: 16px; }
.hero h1.intro { max-width: none; margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.025em; color: #161616; }
.contacts { width: min(100%, 760px); grid-template-columns: 1fr 1fr; gap: 0; margin-top: 22px; }
.contact-group { padding: 0 18px; }
.contact-group + .contact-group { border-left: 1px solid #d4d2cf; }
.contact-group h2 { margin-bottom: 12px; font-size: 17px; font-weight: 700; color: #161616; }
.contact-phones { gap: 7px; }
.contact-phones a { font-size: 20px; }
.contact-line { gap: 8px; }
.phone-mark { color: #e31e24; background: transparent; }
.phone-mark .material-symbols-rounded { font-size: 21px; }
.contact-group p { margin-top: 9px; font-size: 15px; color: #292929; }
.footer { width: 100%; min-height: 0; margin-top: 25px; padding: 0; }
.marketplace-title { color: #686860; font-size: 13px; }
.marketplace-links { width: 100%; gap: 9px; padding: 10px 0 0; }
.marketplace-link { min-height: 49px; min-width: 120px; padding: 0 22px; border: 0; color: white; font-size: 17px; box-shadow: inset 0 -3px 0 #0002; }
.marketplace-link:nth-child(1) { background: linear-gradient(#008cff, #0346ef); }
.marketplace-link:nth-child(2) { background: linear-gradient(#e800ca, #ae00a8); }
.marketplace-link:nth-child(3) { background: linear-gradient(#27d51c, #08a500); }
.marketplace-link:nth-child(4) { background: linear-gradient(#16a6fb, #0075e9); }
.marketplace-link:hover { color: white; filter: brightness(.92); }
.hero .actions { margin-top: 22px; }
.hero .actions .button { min-width: 270px; min-height: 60px; background: linear-gradient(#ff2626, #ed0000); font-size: 20px; }
.hero .actions .button:hover { filter: brightness(.92); }
.location { margin-top: 21px; font-size: 15px; color: #292929; }
.art { width: min(66vw, 740px); transform: translateY(5%); }
@media (max-width: 600px) {
  .header { height: auto; padding-top: 18px; padding-bottom: 12px; }
  .brand { width: min(220px, 68vw); }
  .main { padding-block: 8px 26px; }
  .site-status { margin-bottom: 14px; padding: 0; background: transparent; font-size: 14px; }
  .hero h1.intro { font-size: 16px; line-height: 1.35; }
  .contacts { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .contact-group { padding: 0; }
  .contact-group + .contact-group { border-left: 0; }
  .contact-group h2 { margin-bottom: 8px; font-size: 16px; }
  .contact-phones { gap: 5px; }
  .contact-phones a { font-size: 17px; }
  .contact-group p { margin-top: 5px; font-size: 14px; }
  .footer { margin-top: 20px; }
  .marketplace-title { font-size: 12px; }
  .marketplace-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding-top: 8px; }
  .marketplace-link { min-width: 0; min-height: 40px; padding: 0 3px; font-size: clamp(11px, 3.25vw, 14px); letter-spacing: -.035em; }
  .hero .actions { margin-top: 18px; }
  .hero .actions .button { width: min(100%, 280px); min-width: 0; min-height: 52px; font-size: 19px; }
  .location { margin-top: 19px; font-size: 13px; }
  .art { width: min(105vw, 440px); transform: translateY(0); }
}

/* Центрируем фоновый круг относительно основного блока. */
.art { align-self: center; transform: none; }
@media (max-width: 600px) { .art { align-self: start; } }

/* На большом экране центр круга совпадает с центром видимой области макета. */
@media (min-width: 601px) {
  .page { position: relative; isolation: isolate; }
  .header { position: relative; z-index: 1; }
  .main { position: static; isolation: auto; }
  .art { top: calc((100vh - var(--cui-h, 0px)) / 2); left: 50%; transform: translate(-50%, -50%); }
}

@media (max-width: 600px) { .site-status { padding: 9px 15px; background: rgba(232, 232, 224, .72); border-radius: 24px; } }
