:root {
  --blue: #075dcc;
  --blue-deep: #063783;
  --blue-ink: #071a3b;
  --sky: #eaf6ff;
  --coral: #ff5a45;
  --green: #12a95b;
  --line: #dfe9f5;
  --muted: #667792;
  --white: #fff;
  --shadow: 0 22px 65px rgba(0, 36, 112, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #062c56 url("assets/sochi-resort-poster-v2.jpg") center/cover fixed no-repeat; }
section[id] { scroll-margin-top: 96px; }
body { margin: 0; font-family: "Onest", system-ui, sans-serif; font-size: 16px; font-kerning: normal; text-rendering: optimizeLegibility; color: var(--blue-ink); background: transparent; min-height: 100vh; }
h1, h2, h3 { text-wrap: balance; font-kerning: normal; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page-video-bg { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; filter: saturate(1.06) contrast(1.03) brightness(.88); transition: opacity 1s ease; pointer-events: none; }
.page-video-bg.is-ready { opacity: 1; }
.site-shell { max-width: 1500px; margin: 16px auto; position: relative; z-index: 1; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.header { height: 96px; padding: 0 40px; display: flex; align-items: center; gap: 30px; position: relative; z-index: 20; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 238px; color: var(--blue); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; }
.brand-mark svg { width: 45px; height: 45px; transform: rotate(-8deg); }
.brand strong { display: block; font-size: 20px; letter-spacing: .015em; line-height: 1.05; }
.brand small { display: block; font-size: 10px; color: #6d86a7; letter-spacing: .06em; margin-top: 4px; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2vw, 34px); }
.desktop-nav a { font-size: 14px; font-weight: 600; white-space: nowrap; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--blue); transition: .25s; }
.desktop-nav a:hover::after { right: 0; }
.phone-card { border: 0; background: #e9f4ff; color: var(--blue); padding: 10px 15px; border-radius: 14px; display: flex; align-items: center; gap: 10px; text-align: left; }
.phone-card strong { display: block; font-size: 14px; }
.phone-card small { display: block; color: #6d7c93; font-size: 10px; margin-top: 2px; }
.phone-icon { font-size: 27px; line-height: 1; transform: rotate(-20deg); }
.account-button { min-height: 45px; padding: 0 14px; border: 1px solid #dce9f7; border-radius: 13px; color: var(--blue); background: white; display: flex; align-items: center; gap: 7px; font-size: 12px; }
.account-button span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e8f3ff; font-size: 17px; }
.menu-button, .mobile-menu { display: none; }

.hero { min-height: 490px; margin: 0 20px; border-radius: 0 0 22px 22px; overflow: hidden; position: relative; display: flex; align-items: center; background: linear-gradient(90deg, rgba(244,250,255,.98) 0, rgba(244,250,255,.9) 30%, rgba(244,250,255,.2) 55%, rgba(244,250,255,0) 100%), url("assets/sochi-hero.png") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 100px; background: linear-gradient(transparent, rgba(5,55,118,.08)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 52px 55px 100px; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--blue); text-transform: uppercase; margin-bottom: 20px; }
.eyebrow span { width: 28px; height: 3px; background: var(--coral); border-radius: 2px; }
.hero h1 { margin: 0; font-size: clamp(48px, 4.6vw, 72px); line-height: 1.07; letter-spacing: -.018em; font-weight: 800; }
.hero p { max-width: 620px; font-size: 18px; line-height: 1.58; margin: 21px 0 24px; }
.primary-button, .coral-button { border: 0; border-radius: 13px; background: linear-gradient(110deg, #ff644d, #ff4f3d); color: #fff; min-height: 56px; padding: 0 26px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 55px; box-shadow: 0 14px 26px rgba(255,85,65,.22); transition: transform .2s, box-shadow .2s; }
.primary-button:hover, .coral-button:hover { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(255,85,65,.32); }
.primary-button span, .coral-button span { font-size: 23px; font-weight: 400; }
.hero-note { position: absolute; z-index: 3; right: 32px; bottom: 31px; background: rgba(0,53,119,.86); backdrop-filter: blur(10px); color: white; border-radius: 16px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; }
.hero-note strong, .hero-note small { display: block; }
.hero-note strong { font-size: 14px; }
.hero-note small { font-size: 11px; opacity: .88; line-height: 1.55; margin-top: 3px; }
.sun { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 24px; }

.benefits { position: relative; z-index: 5; max-width: 760px; margin: -70px 0 0 45px; background: rgba(255,255,255,.93); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 13px 30px rgba(0,61,133,.12); display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits > div { min-height: 68px; display: flex; align-items: center; gap: 9px; padding: 10px 15px; border-right: 1px solid var(--line); }
.benefits > div:last-child { border-right: 0; }
.benefits p { font-size: 12px; line-height: 1.38; margin: 0; }
.benefit-icon { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid #a9d5ff; color: var(--blue); border-radius: 9px; font-size: 16px; }

.search-panel { position: relative; z-index: 6; margin: 18px 38px 0; padding: 15px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 38px rgba(31,76,126,.12); background: #fff; display: grid; grid-template-columns: 1.1fr 1.15fr 1fr 1fr 130px; gap: 8px; }
.search-panel label { min-height: 65px; border: 1px solid #e4ecf6; border-radius: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.field-icon { color: var(--blue); font-size: 27px; }
.search-panel label > span:last-child { min-width: 0; display: block; width: 100%; }
.search-panel small { display: block; color: #66778f; font-size: 11px; margin-bottom: 3px; }
.search-panel select { color: var(--blue-ink); font-weight: 700; font-size: 13px; border: 0; background: transparent; width: 100%; outline: 0; }
.search-button { border: 0; border-radius: 13px; background: linear-gradient(130deg, #0968da, #0649bd); color: white; display: flex; align-items: center; justify-content: center; gap: 11px; box-shadow: 0 10px 22px rgba(4,75,188,.2); }
.search-button span { font-size: 27px; font-weight: 300; }

.catalog-section, .districts, .journal, .full-service { padding: 56px 38px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-kicker { color: var(--blue); font-size: 11px; letter-spacing: .11em; font-weight: 800; }
.section-heading h2, .expert-copy h2, .districts h2 { font-size: clamp(31px, 3.1vw, 46px); line-height: 1.14; letter-spacing: -.018em; margin: 7px 0 0; }
.section-heading > a { color: var(--blue); font-weight: 800; font-size: 14px; }
.section-heading > a span { margin-left: 8px; font-size: 19px; }
.section-heading > p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; text-align: right; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 24px 0 18px; }
.chip { border: 0; background: #f1f5fa; color: #34455e; border-radius: 999px; padding: 10px 19px; font-size: 12px; font-weight: 700; transition: .25s; }
.chip.active, .chip:hover { color: var(--blue); background: #e1efff; }
.properties-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.property-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(18,66,120,.14); }
.property-media { height: 182px; position: relative; background-image: var(--image, url("assets/sochi-properties.png")); background-size: var(--size, 400% 100%); background-position: var(--pos); background-repeat: no-repeat; }
.property-badge { position: absolute; top: 12px; left: 12px; color: #fff; background: var(--blue); padding: 7px 10px; border-radius: 7px; font-weight: 800; font-size: 10px; }
.property-badge.green { background: var(--green); }
.property-badge.violet { background: #6d43c4; }
.favorite { position: absolute; right: 11px; top: 10px; width: 35px; height: 35px; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; color: var(--blue-ink); font-size: 20px; display: grid; place-items: center; }
.favorite.saved { color: #ef4056; }
.property-content { padding: 15px; }
.property-content h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -.012em; }
.property-address { color: #667892; font-size: 12px; line-height: 1.45; min-height: 35px; margin: 0; }
.property-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 13px; }
.property-price strong { color: #073e9c; font-size: 20px; }
.property-price small { color: #697b93; font-size: 11px; }
.property-meta { display: flex; gap: 6px; margin-top: 13px; }
.property-meta span { background: #f3f7fb; border-radius: 7px; padding: 8px 9px; font-size: 10px; color: #3a4c67; }
.property-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.property-actions button { min-height: 42px; border-radius: 9px; border: 1px solid #cfe0f5; color: var(--blue); background: white; font-weight: 800; font-size: 11px; }
.property-actions .details { background: var(--blue); color: white; border-color: var(--blue); }
.empty-state { text-align: center; padding: 50px 20px; border: 1px dashed #bfd2e8; border-radius: 18px; background: #f8fbff; }
.empty-state > span { font-size: 34px; color: var(--blue); }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { color: var(--muted); }

.full-service { background: #f2f7fc; border-top: 1px solid #e8f0f8; }
.scenario-grid { display: grid; grid-template-columns: 1.3fr .85fr; grid-template-rows: 1fr 1fr; gap: 13px; margin-top: 30px; }
.scenario-card { min-height: 220px; position: relative; overflow: hidden; border-radius: 21px; color: #fff; background-image: linear-gradient(0deg,rgba(2,22,57,.84),rgba(3,41,91,.08)),url("assets/sochi-investment-grid.jpg"); background-size: 300% 200%; background-repeat: no-repeat; }
.scenario-card::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(3,25,59,.25),transparent 75%); }
.scenario-life { grid-row: 1 / 3; min-height: 453px; background-position: 50% 0%; }
.scenario-apart { background-position: 100% 100%; }
.scenario-hotel { background-position: 0% 0%; }
.scenario-card > div { position:absolute; z-index:2; left:0; right:0; bottom:0; padding:30px; }
.scenario-card span { color:#a8d8ff; font-size:10px; letter-spacing:.11em; font-weight:800; }
.scenario-card h3 { max-width:540px; margin:8px 0 8px; font-size:clamp(25px,2.3vw,37px); line-height:1.16; letter-spacing:-.016em; }
.scenario-card p { max-width:550px; margin:0 0 19px; color:#e0ebf7; font-size:12px; line-height:1.62; }
.scenario-card button { padding:0; border:0; color:#fff; background:transparent; font-size:12px; font-weight:800; }
.scenario-card:not(.scenario-life) > div { padding:23px; }
.scenario-card:not(.scenario-life) h3 { font-size:25px; }
.scenario-card:not(.scenario-life) p { max-width:460px; margin-bottom:13px; font-size:11px; }
.service-ribbon { margin-top:13px; padding:16px; display:grid; grid-template-columns:repeat(4,1fr) auto; align-items:center; gap:1px; border-radius:17px; background:#fff; border:1px solid var(--line); }
.service-ribbon > div { min-height:58px; padding:7px 17px; display:grid; grid-template-columns:25px 1fr; align-content:center; border-right:1px solid var(--line); }
.service-ribbon > div > span { grid-row:1 / 3; color:#7197c0; font-size:10px; font-weight:800; }
.service-ribbon b,.service-ribbon small { display:block; }
.service-ribbon b { font-size:12px; }
.service-ribbon small { margin-top:4px; color:var(--muted); font-size:10px; line-height:1.35; }
.service-ribbon .coral-button { min-height:52px; margin-left:14px; gap:22px; padding:0 18px; font-size:12px; }

.expert-section { margin: 0 38px 56px; min-height: 330px; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .7fr 1fr; color: white; background: linear-gradient(120deg, #0866d7, #00449e); }
.expert-copy { padding: 42px 38px; position: relative; }
.expert-copy::after { content: ""; position: absolute; top: -20%; right: -65px; width: 125px; height: 140%; background: #0866d7; border-radius: 50%; z-index: 2; }
.section-kicker.light { color: #91c8ff; }
.expert-copy h2 { font-size: clamp(27px, 2.5vw, 39px); }
.expert-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; font-size: 14px; line-height:1.45; }
.expert-copy li::before { content: "✓"; color: #73d5ff; font-weight: 800; margin-right: 10px; }
.expert-photo { min-height: 100%; background: url("assets/sochi-properties.png") 100% center / 400% 100% no-repeat; }
.consult-form { padding: 40px 30px; background: rgba(1,42,105,.52); display: flex; flex-direction: column; justify-content: center; }
.consult-form h3 { margin: 0; font-size: 23px; line-height: 1.35; }
.consult-form p { font-size: 13px; line-height:1.5; opacity: .82; margin: 9px 0 18px; }
.consult-form label span, .modal-form label span { display: block; font-size: 11px; margin-bottom: 7px; opacity: .82; }
.consult-form input, .modal-form input { width: 100%; height: 50px; border: 0; border-radius: 10px; padding: 0 14px; outline: 0; }
.consult-form .coral-button { min-height: 52px; margin-top: 9px; gap: 16px; padding: 0 15px; font-size: 12px; }
.consult-form > small { font-size: 10px; line-height:1.45; opacity: .72; margin-top: 10px; }

.owner-section { margin: 0 38px 56px; padding: 42px; display: grid; grid-template-columns: 1.25fr 1fr auto; align-items: center; gap: 42px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, #041e4d, #075dcc); }
.owner-section h2 { margin: 10px 0 12px; font-size: clamp(30px, 3vw, 44px); line-height: 1.15; letter-spacing: -.017em; }
.owner-section p { margin: 0; max-width: 600px; color: #cfdef1; font-size: 13px; line-height: 1.7; }
.owner-list { display: grid; gap: 13px; }
.owner-list span { display: grid; grid-template-columns: 28px 1fr; gap: 8px; color: #e1ecfb; font-size: 12px; line-height: 1.5; }
.owner-list b { color: #8bc9ff; font-size: 10px; }
.owner-section .coral-button { min-width: 205px; gap: 18px; padding: 0 18px; font-size: 10px; }

.districts { background: #f1f7fd; }
.district-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 28px; }
.district-card { min-height: 290px; border-radius: 18px; padding: 25px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; overflow: hidden; background: linear-gradient(0deg, rgba(2,25,67,.78), rgba(3,55,110,.06)), url("assets/sochi-properties.png") 33.33% center / 400% 100% no-repeat; }
.district-card:nth-child(2) { background-position: 66.66% center; }
.district-card:nth-child(3) { background-position: 100% center; }
.district-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,21,52,.65), transparent 70%); }
.district-card > * { position: relative; z-index: 1; }
.district-card > span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #b7dbff; }
.district-card h3 { font-size: 25px; margin: 7px 0 6px; }
.district-card p { font-size: 13px; line-height: 1.55; max-width: 330px; opacity: .9; margin: 0 0 18px; }
.district-card button { align-self: flex-start; color: #fff; border: 0; background: transparent; padding: 0; font-size:12px; font-weight: 800; }
.journal { background: white; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.article-card { min-height: 410px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: grid; grid-template-rows: 215px 1fr; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(18,66,120,.14); }
.article-card img { width: 100%; height: 215px; object-fit: cover; }
.article-card > div { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.article-card span { color: var(--blue); font-size: 10px; letter-spacing: .1em; font-weight: 800; }
.article-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin: 9px 0 8px; }
.article-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 18px; }
.article-card b { margin-top: auto; color: var(--blue); font-size: 12px; }
.partners { margin: 0 38px 56px; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; background: linear-gradient(135deg,#0969d9,#033b91); color: white; }
.partner-copy { padding: 50px 45px; background: radial-gradient(circle at 85% 20%, rgba(79,173,255,.35), transparent 35%); }
.partner-copy h2 { margin: 10px 0 17px; font-size: clamp(34px,4vw,54px); line-height: 1.04; letter-spacing: -.045em; }
.partner-copy > p { max-width: 640px; color: #dceaff; font-size: 14px; line-height: 1.7; }
.partner-benefits { margin-top: 27px; display: grid; gap: 10px; }
.partner-benefits > div { display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; }
.partner-benefits b { color: #7dc1ff; font-size: 10px; }
.partner-benefits span { font-size: 13px; line-height:1.45; }
.partner-form { padding: 40px 34px; background: rgba(2,33,83,.65); }
.partner-form > span { color: #8ac9ff; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.partner-form h3 { font-size: 25px; margin: 8px 0 5px; }
.partner-form > p { margin: 0 0 20px; color: #a9c4e7; font-size: 9px; }
.partner-form label { display: block; margin-top: 11px; }
.partner-form label span { display: block; margin-bottom: 6px; color: #b7ceed; font-size: 9px; }
.partner-form input, .partner-form select { width: 100%; height: 48px; border: 0; border-radius: 10px; padding: 0 13px; background: white; color: var(--blue-ink); outline: 0; }
.partner-form .primary-button { width: 100%; min-height: 49px; margin-top: 14px; justify-content: space-between; }
.partner-form > small { display: block; margin-top: 9px; color: #91add0; font-size: 8px; line-height: 1.4; }
.partner-teaser-card { padding: 42px 34px; background: rgba(2,33,83,.65); display: flex; flex-direction: column; justify-content: center; }
.partner-teaser-card > span { color: #8ac9ff; font-size: 10px; letter-spacing: .1em; font-weight: 800; }
.partner-teaser-card h3 { font-size: 27px; line-height: 1.25; margin: 10px 0 8px; }
.partner-teaser-card p { margin: 0 0 20px; color: #c5d8f0; font-size: 12px; line-height: 1.65; }
.partner-teaser-card .primary-button { min-height: 50px; justify-content: space-between; }
.partner-teaser-card small { margin-top: 10px; color: #a9c2df; font-size: 10px; line-height:1.4; }
.partner-explainer { padding: 10px 38px 62px; }
.partner-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.partner-steps article { min-height: 205px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.partner-steps span { color: var(--blue); font-size: 10px; font-weight: 800; }
.partner-steps h3 { font-size: 17px; margin: 20px 0 8px; }
.partner-steps p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0; }
.partner-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.partner-info-grid article { padding: 30px; border-radius: 17px; background: #f1f7fd; }
.partner-info-grid h3 { font-size: 22px; margin: 8px 0 14px; }
.partner-info-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.partner-info-grid li { color: #50617a; font-size: 10px; line-height: 1.5; }
.partner-info-grid li::before { content: "✓"; margin-right: 8px; color: var(--blue); font-weight: 800; }
.partner-faq { margin-top: 12px; border: 1px solid var(--line); border-radius: 17px; padding: 0 24px; }
.partner-faq details { border-bottom: 1px solid var(--line); }
.partner-faq details:last-child { border-bottom: 0; }
.partner-faq summary { list-style: none; cursor: pointer; padding: 19px 35px 19px 0; position: relative; font-size: 12px; font-weight: 800; }
.partner-faq summary::-webkit-details-marker { display: none; }
.partner-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #e9f3ff; color: var(--blue); display: grid; place-items: center; font-size: 18px; }
.partner-faq details[open] summary::after { content: "−"; }
.partner-faq p { color: var(--muted); max-width: 800px; margin: -4px 0 19px; font-size: 10px; line-height: 1.65; }
.services { padding: 58px 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e4edf7; }
.services > div { padding: 30px; background: #fff; }
.services span { font-size: 11px; color: var(--blue); font-weight: 800; }
.services h3 { font-size: 23px; margin: 12px 0 8px; }
.services p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 330px; }
.footer { min-height: 130px; padding: 30px 40px; background: #041e4d; color: white; display: flex; align-items: center; gap: 35px; }
.brand--light { color: white; }
.footer p { font-size: 12px; line-height:1.55; color: #a8bad3; margin-left: auto; }
.footer > button { border: 1px solid #3e5f8d; color: white; background: transparent; border-radius: 10px; padding: 12px 18px; }

.mobile-bottom { display: none; }
.account-drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; pointer-events: none; }
.account-drawer.open { visibility: visible; pointer-events: auto; }
.account-backdrop { position: absolute; inset: 0; background: rgba(2,17,45,.58); backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s; }
.account-drawer.open .account-backdrop { opacity: 1; }
.account-panel { position: absolute; top: 0; right: 0; width: min(560px, 100%); height: 100%; overflow-y: auto; background: #f5f9fd; box-shadow: -25px 0 80px rgba(0,25,70,.25); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.account-drawer.open .account-panel { transform: translateX(0); }
.account-header { height: 82px; padding: 0 28px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.account-header .brand { min-width: 0; }
.account-header .brand-mark { color: var(--blue); font-size: 28px; }
.account-header > button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eff5fb; font-size: 24px; }
.account-guest { min-height: calc(100% - 82px); padding: 55px 48px; background: radial-gradient(circle at 100% 0, #d9edff, transparent 42%), #fff; }
.account-lock { width: 68px; height: 68px; margin-bottom: 27px; display: grid; place-items: center; background: #e7f2ff; color: var(--blue); border-radius: 22px; font-size: 36px; }
.account-guest h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.045em; margin: 9px 0 14px; }
.account-guest > p { max-width: 400px; color: var(--muted); line-height: 1.65; font-size: 13px; }
#account-login { margin-top: 30px; display: grid; gap: 13px; }
#account-login label span { display: block; margin-bottom: 7px; color: #6b7990; font-size: 10px; }
#account-login input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; outline: 0; }
#account-login .primary-button { width: 100%; justify-content: space-between; }
.account-guest > small { display: block; margin-top: 14px; color: #73849a; font-size: 11px; line-height:1.5; }
.account-dashboard { padding-bottom: 36px; }
.account-profile { padding: 31px 30px 23px; display: flex; align-items: center; gap: 13px; background: white; }
.account-avatar { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(145deg, #0c75e7, #0649b7); color: white; font-size: 21px; font-weight: 800; }
.account-profile small { color: var(--muted); font-size: 11px; }
.account-profile h2 { margin: 2px 0 0; font-size: 22px; }
.account-profile button { margin-left: auto; border: 0; background: transparent; color: #8a97a9; font-size: 10px; }
.account-stats { padding: 0 30px 24px; background: white; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.account-stats button { padding: 15px 8px; border: 1px solid #e2ebf5; border-radius: 12px; background: #f8fbfe; text-align: left; }
.account-stats b, .account-stats span { display: block; }
.account-stats b { color: var(--blue); font-size: 21px; }
.account-stats span { margin-top: 3px; color: #687890; font-size: 11px; }
.account-tabs { display: flex; gap: 5px; padding: 18px 25px 10px; overflow-x: auto; }
.account-tabs button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 14px; background: #e8eff7; color: #607088; font-size: 11px; font-weight: 700; }
.account-tabs button.active { background: var(--blue); color: white; }
.account-content { padding: 11px 30px; }
.account-empty { padding: 45px 25px; text-align: center; background: white; border: 1px dashed #cbd9e8; border-radius: 16px; }
.account-empty > span { font-size: 31px; color: var(--blue); }
.account-empty h3 { margin: 10px 0 5px; }
.account-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-list { display: grid; gap: 9px; }
.account-object { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 13px; padding: 9px; border-radius: 14px; background: white; border: 1px solid var(--line); }
.account-object-image { width: 92px; height: 72px; border-radius: 10px; background-image: var(--image, url("assets/sochi-properties.png")); background-size: var(--size, 400% 100%); background-position: var(--pos); background-repeat: no-repeat; }
.account-object h3 { font-size: 15px; line-height:1.3; margin: 0 0 4px; }
.account-object p { color: var(--blue); font-weight: 800; font-size: 13px; margin: 0; }
.account-object button { border: 0; background: #eff5fb; color: var(--blue); width: 32px; height: 32px; border-radius: 9px; }
.selection-card { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #0969d9, #063c95); color: white; }
.selection-card span { font-size: 10px; color: #b7dcff; }
.selection-card h3 { margin: 9px 0 6px; font-size: 20px; }
.selection-card p { font-size: 12px; opacity: .85; line-height: 1.55; }
.selection-card button { margin-top: 8px; border: 0; border-radius: 9px; padding: 10px 13px; background: white; color: var(--blue); font-weight: 800; font-size: 10px; }
.setting-card { background: white; border-radius: 14px; padding: 6px 18px; }
.setting-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row b, .setting-row small { display: block; }
.setting-row b { font-size: 14px; }
.setting-row small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.switch { width: 40px; height: 23px; padding: 3px; border: 0; border-radius: 999px; background: #c9d5e3; }
.switch::after { content: ""; display: block; width: 17px; height: 17px; border-radius: 50%; background: white; transition: .2s; }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(17px); }
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,17,45,.72); backdrop-filter: blur(7px); }
.modal-card { width: min(480px, 100%); position: relative; z-index: 1; padding: 40px; border-radius: 22px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-card h2 { font-size: 34px; letter-spacing: -.04em; margin: 9px 0 13px; }
.modal-card > p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.modal-close { position: absolute; right: 15px; top: 13px; width: 38px; height: 38px; border: 0; background: #eff5fb; color: var(--blue-ink); border-radius: 50%; font-size: 23px; }
.modal-form { display: grid; gap: 12px; margin-top: 22px; }
.modal-form label span { color: var(--blue-ink); opacity: .65; }
.modal-form input { border: 1px solid var(--line); }
.modal-form .primary-button { margin-top: 3px; gap: 50px; }
.modal-success { text-align: center; padding: 25px 0 5px; }
.modal-success > span { width: 60px; height: 60px; margin: auto; border-radius: 50%; display: grid; place-items: center; background: #e5f8ee; color: var(--green); font-size: 26px; }
.modal-success h3 { font-size: 24px; margin-bottom: 5px; }
.modal-success p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.text-button { color: var(--blue); border: 0; background: transparent; font-weight: 800; padding: 13px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: #061c43; color: white; border-radius: 12px; padding: 14px 19px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Calm premium motion: ambient movement, tactile controls and living imagery. */
.hero-note { animation: noteFloat 5.5s ease-in-out infinite; }
.primary-button, .coral-button, .search-button { position: relative; overflow: hidden; isolation: isolate; }
.primary-button::before, .coral-button::before, .search-button::before { content:""; position:absolute; z-index:0; inset:-60% auto -60% -45%; width:32%; transform:rotate(18deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent); pointer-events:none; animation:buttonGleam 5.8s ease-in-out infinite; }
.primary-button > *, .coral-button > *, .search-button > * { position:relative; z-index:1; }
.primary-button span, .coral-button span { animation:arrowNudge 2.8s ease-in-out infinite; }
.property-media { overflow:hidden; }
.property-media::after { content:""; position:absolute; inset:-30%; transform:translateX(-145%) rotate(14deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent); transition:transform .8s cubic-bezier(.2,.8,.2,1); pointer-events:none; }
.scenario-card { transition:transform .55s cubic-bezier(.2,.8,.2,1),box-shadow .55s,filter .55s; }
.scenario-card::before { content:""; position:absolute; z-index:1; width:190px; height:190px; right:-70px; top:-75px; border-radius:50%; background:rgba(105,190,255,.16); filter:blur(2px); animation:scenarioGlow 7s ease-in-out infinite alternate; }
.brand-mark { transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.chip.active { box-shadow:0 8px 20px rgba(7,93,204,.12); }

@media (hover:hover) and (pointer:fine) {
  .property-card:hover .property-media::after { transform:translateX(145%) rotate(14deg); }
  .scenario-card:hover { transform:translateY(-7px) scale(1.008); box-shadow:0 24px 55px rgba(3,44,99,.2); filter:saturate(1.06); }
  .brand:hover .brand-mark { transform:rotate(-8deg) scale(1.07); }
}

@keyframes ambientCanvas { from { background-position:48% 0%; } to { background-position:54% 24%; } }
@keyframes noteFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
@keyframes arrowNudge { 0%,72%,100% { transform:translateX(0); } 82% { transform:translateX(5px); } 90% { transform:translateX(1px); } }
@keyframes buttonGleam { 0%,68% { left:-45%; } 86%,100% { left:125%; } }
@keyframes scenarioGlow { from { transform:translate3d(0,0,0) scale(.9); opacity:.35; } to { transform:translate3d(-35px,30px,0) scale(1.2); opacity:.75; } }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .header { padding: 0 28px; }
  .phone-card { margin-left: auto; }
  .account-button b { display: none; }
  .account-button { width: 42px; padding: 0; justify-content: center; }
  .menu-button { width: 42px; height: 42px; border: 0; background: #edf5ff; border-radius: 10px; display: grid; place-content: center; gap: 4px; }
  .menu-button span { width: 19px; height: 2px; background: var(--blue); }
  .mobile-menu { position: absolute; z-index: 19; top: 92px; right: max(18px, calc((100vw - 1450px)/2)); width: 270px; border-radius: 16px; padding: 20px; background: white; box-shadow: var(--shadow); flex-direction: column; gap: 14px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu .primary-button { min-height: 47px; margin-top: 5px; gap: 14px; }
  .search-panel { grid-template-columns: repeat(4, 1fr) 90px; }
  .search-button b { display: none; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .property-media { height: 230px; }
  .service-ribbon { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .service-ribbon > div:nth-child(2) { border-right: 0; }
  .service-ribbon .coral-button { grid-column: 1 / -1; width: 100%; margin: 12px 0 0; justify-content: space-between; }
  .expert-section { grid-template-columns: 1.1fr .6fr 1fr; }
  .owner-section { grid-template-columns: 1fr 1fr; }
  .owner-section .coral-button { grid-column: 1 / -1; justify-self: start; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card:last-child { grid-column: 1 / -1; }
  .partner-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  section[id] { scroll-margin-top: 82px; }
  body { background: #f3f7fb; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .page-video-bg { display: none; }
  .site-shell { margin: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
  .header { height: 74px; padding: 0 17px; position: sticky; top: 0; border-bottom: 1px solid rgba(218,230,243,.9); box-shadow: 0 5px 18px rgba(7,41,82,.05); }
  .brand { min-width: 0; gap: 7px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 36px; height: 36px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; letter-spacing:.04em; }
  .phone-card { width: 38px; height: 38px; padding: 0; background: transparent; display: grid; place-items: center; }
  .phone-card > span:last-child { display: none; }
  .phone-icon { font-size: 25px; }
  .account-button { display: none; }
  .menu-button { width: 38px; height: 38px; }
  .mobile-menu { position: fixed; top: 70px; right: 13px; left: 13px; width: auto; }

  .hero { min-height: 360px; margin: 0 10px; border-radius: 18px; align-items: flex-start; background: linear-gradient(180deg, rgba(241,249,255,.98) 0, rgba(241,249,255,.9) 38%, rgba(241,249,255,.15) 68%, rgba(241,249,255,0) 100%), url("assets/sochi-hero.png") 61% bottom / auto 64% no-repeat, #eaf6ff; }
  .hero-content { padding: 24px 20px; width: 100%; }
  .eyebrow { font-size: 9.5px; margin-bottom: 13px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 42px); line-height: 1.12; letter-spacing: -.015em; }
  .hero p { font-size: 13px; line-height: 1.55; max-width: 94%; margin: 13px 0 16px; }
  .hero-cta { width: 100%; min-height: 50px; justify-content: space-between; }
  .hero-note { display: none; }
  .benefits { max-width: none; margin: -10px 10px 0; grid-template-columns: repeat(4, 1fr); border-radius: 14px; }
  .benefits > div { min-height: 79px; padding: 9px 3px; gap: 5px; flex-direction: column; text-align: center; justify-content: center; }
  .benefit-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 13px; }
  .benefits p { font-size: 9px; line-height:1.35; }

  .search-panel { margin: 14px 10px 0; padding: 9px; grid-template-columns: repeat(3, 1fr) 48px; gap: 6px; border-radius: 13px; box-shadow: none; }
  .search-panel label { min-height: 56px; display: block; padding: 8px; }
  .search-panel small { font-size: 9px; }
  .search-panel select { font-size: 10.5px; }
  .search-panel .field-icon { display: none; }
  .deadline-field { display: none !important; }
  .search-button { min-height: 56px; }

  .catalog-section, .districts, .journal, .full-service { margin: 10px 8px; padding: 34px 13px; border-radius: 20px; background: #fff; }
  .section-kicker { font-size: 9.5px; }
  .section-heading h2, .districts h2 { font-size: 29px; line-height:1.16; letter-spacing:-.014em; }
  .section-heading > a { font-size: 12px; }
  .section-heading > p { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 18px -13px 14px; padding: 0 13px 4px; scrollbar-width: none; }
  .chip { flex: 0 0 auto; padding: 9px 14px; font-size: 10.5px; }
  .properties-grid { grid-template-columns: 1fr; }
  .property-card { border-radius: 15px; }
  .property-media { height: 215px; }
  .property-content h3 { font-size: 19px; }
  .property-price strong { font-size: 20px; }
  .property-actions button { min-height: 45px; }

  .scenario-grid { display: flex; grid-template: none; gap: 10px; margin: 20px -13px 0; padding: 0 13px 5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .scenario-card,.scenario-life { min-width: 82%; min-height: 360px; flex: 0 0 82%; scroll-snap-align: start; }
  .scenario-card > div,.scenario-card:not(.scenario-life) > div { padding: 24px 21px; }
  .scenario-card h3,.scenario-card:not(.scenario-life) h3 { font-size: 26px; }
  .scenario-card p,.scenario-card:not(.scenario-life) p { margin-bottom: 16px; font-size: 11px; line-height:1.58; }
  .service-ribbon { padding: 10px; grid-template-columns: 1fr 1fr; border-radius: 15px; }
  .service-ribbon > div { min-height: 70px; padding: 10px 8px; grid-template-columns: 22px 1fr; }
  .service-ribbon > div:nth-child(even) { border-right: 0; }
  .service-ribbon b { font-size: 10.5px; }
  .service-ribbon small { font-size: 9px; }
  .service-ribbon .coral-button { grid-column: 1 / -1; margin: 8px 0 0; }

  .expert-section { margin: 10px 8px; grid-template-columns: 1fr; border-radius: 20px; }
  .expert-copy { padding: 30px 22px 20px; }
  .expert-copy::after, .expert-photo { display: none; }
  .expert-copy h2 { font-size: 27px; }
  .expert-copy ul { font-size: 12px; }
  .consult-form { padding: 22px; }
  .consult-form h3 { font-size: 21px; }
  .consult-form { padding-top: 8px; }

  .owner-section { margin: 10px 8px; padding: 30px 22px; grid-template-columns: 1fr; gap: 24px; border-radius: 20px; }
  .owner-section h2 { font-size: 28px; }
  .owner-section .coral-button { grid-column: auto; width: 100%; justify-self: stretch; justify-content: space-between; }

  .district-grid { grid-template-columns: 1fr; }
  .district-card { min-height: 255px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card:last-child { grid-column: auto; }
  .article-card { min-height: 390px; }
  .partners { margin: 10px 8px; grid-template-columns: 1fr; border-radius: 20px; }
  .partner-copy { padding: 36px 23px 28px; }
  .partner-copy h2 { font-size: 37px; }
  .partner-form { padding: 28px 22px; }
  .partner-teaser-card { padding: 30px 22px; }
  .partner-explainer { padding: 0 13px 40px; }
  .partner-steps, .partner-info-grid { grid-template-columns: 1fr; }
  .partner-steps article { min-height: 0; }
  .partner-faq { padding: 0 17px; }
  .services { margin: 10px 8px; grid-template-columns: 1fr; padding: 13px; border-radius: 20px; background: #fff; gap: 8px; }
  .services > div { border: 1px solid var(--line); border-radius: 13px; padding: 20px; }
  .footer { padding: 30px 18px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer p { margin: 0; }

  .mobile-bottom { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(69px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 -5px 20px rgba(7,33,76,.1); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bottom a, .mobile-bottom button { border: 0; background: transparent; color: #506079; font-size: 9.5px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; position: relative; }
  .mobile-bottom span { color: #0a326f; font-size: 22px; line-height: 1; }
  .mobile-bottom .active { color: var(--blue); font-weight: 800; }
  .mobile-bottom i { position: absolute; top: 7px; left: calc(50% + 8px); width: 17px; height: 17px; border-radius: 50%; background: var(--coral); color: white; display: grid; place-items: center; font-style: normal; font-size: 9px; }
  .account-header { height: 70px; padding: 0 17px; }
  .account-header .brand-mark { width: 34px; height: 34px; }
  .account-guest { padding: 36px 23px; }
  .account-guest h2 { font-size: 36px; }
  .account-profile { padding: 24px 18px 18px; }
  .account-stats { padding: 0 18px 18px; }
  .account-tabs { padding-left: 14px; padding-right: 14px; }
  .account-content { padding: 10px 15px; }
  .account-object { grid-template-columns: 78px 1fr auto; }
  .account-object-image { width: 78px; height: 64px; }
  .modal-card { padding: 30px 22px; }
  .modal-card h2 { font-size: 29px; }
  .toast { bottom: 83px; width: calc(100% - 30px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Readability scale: keep utility copy comfortably legible. */
.brand small,.phone-card small,.hero-note small,.search-panel small,.property-price small,.service-ribbon small,.consult-form > small,.partner-teaser-card small,.account-profile small,.account-guest > small,.account-stats span,.setting-row small { font-size:12px; }
.eyebrow,.section-kicker,.property-badge,.scenario-card span,.service-ribbon > div > span,.owner-list b,.district-card > span,.article-card span,.partner-form > span,.partner-form label span,.partner-teaser-card > span,.partner-steps span,.partner-benefits b,.selection-card span,#account-login label span { font-size:12px; }
.benefits p,.chip,.property-address,.property-price small,.property-meta span,.property-actions button,.scenario-card button,.service-ribbon b,.service-ribbon .coral-button,.consult-form label span,.modal-form label span,.consult-form .coral-button,.owner-list span,.owner-section .coral-button,.district-card button,.article-card p,.article-card b,.partner-form > p,.partner-form > small,.partner-steps p,.partner-info-grid li,.partner-faq summary,.partner-faq p,.services span,.footer p,.account-profile button,.account-tabs button,.selection-card p,.selection-card button,.modal-success p { font-size:13px; }
.scenario-card p,.scenario-card:not(.scenario-life) p,.partner-teaser-card p { font-size:14px; }
.property-meta { flex-wrap:wrap; }

@media (max-width:760px) {
  .brand small { font-size:10.5px; }
  .eyebrow,.section-kicker { font-size:11px; }
  .hero p { font-size:15px; line-height:1.58; }
  .benefits p { font-size:11px; line-height:1.4; }
  .search-panel small { font-size:11px; }
  .search-panel select { font-size:12px; }
  .chip { font-size:12px; }
  .property-badge,.property-meta span { font-size:11.5px; }
  .property-address,.property-actions button { font-size:13px; }
  .scenario-card p,.scenario-card:not(.scenario-life) p { font-size:13px; }
  .scenario-card button,.service-ribbon b { font-size:12px; }
  .service-ribbon small { font-size:11px; }
  .expert-copy ul { font-size:14px; line-height:1.55; }
  .mobile-bottom a,.mobile-bottom button { font-size:11px; }
  .mobile-bottom i { font-size:10px; }
}
