.agent-profile-page{padding:22px 0 92px;background:#fff;color:#172543}.agent-profile-breadcrumbs{display:flex;align-items:center;gap:9px;margin-bottom:20px;color:#7b879b;font-size:12px}.agent-profile-breadcrumbs a{display:flex;align-items:center;gap:7px;color:#66758d;text-decoration:none}.agent-profile-breadcrumbs a:hover{color:#ef4c20}.agent-profile-breadcrumbs svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;transform:rotate(180deg)}.agent-profile-card{display:grid;grid-template-columns:390px minmax(0,1fr);gap:42px;overflow:hidden;padding:22px;border:1px solid #dfe6ef;border-radius:17px;background:linear-gradient(135deg,#fff 0%,#fff 66%,#f8faff 100%);box-shadow:0 12px 36px rgba(18,34,66,.055)}.agent-profile-photo{position:relative;min-height:470px;overflow:hidden;border-radius:13px;background:#edf1f6}.agent-profile-photo>img{width:100%;height:100%;object-fit:cover;object-position:center top}.agent-profile-photo>span:first-child{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#ef4c20;font-size:34px;font-weight:400}.agent-profile-experience{position:absolute;left:16px;bottom:16px;max-width:calc(100% - 32px);padding:9px 12px;border-radius:8px;background:rgba(23,37,67,.8);color:#fff;font-size:12px;line-height:1.3;backdrop-filter:blur(5px)}.agent-profile-info{min-width:0;padding:17px 20px 10px 0}.agent-profile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.agent-profile-role{display:block;margin-bottom:8px;color:#ef4c20;font-size:13px;line-height:1.4;font-weight:400}.agent-profile-heading h1{margin:0;font-size:36px;line-height:1.18;letter-spacing:-.65px}.agent-profile-socials{display:flex;gap:8px;flex:none}.agent-profile-socials a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #dfe5ee;border-radius:50%;background:#fff}.agent-profile-socials img{width:24px;height:24px}.agent-profile-location{display:flex;align-items:center;gap:8px;margin:14px 0 0;color:#68768d;font-size:13px}.agent-profile-location svg{width:17px;height:17px;fill:none;stroke:#8190a6;stroke-width:1.8}.agent-profile-description{max-width:800px;margin-top:22px;color:#5f6e85;font-family:ValionRobotoLight,Arial,sans-serif;font-size:16px;line-height:1.62}.agent-profile-description p{margin:0 0 12px}.agent-profile-metrics{display:flex;align-items:stretch;gap:9px;margin-top:24px}.agent-profile-metrics a{display:flex;align-items:baseline;gap:6px;min-width:124px;padding:13px 15px;border-radius:9px;background:#f5f7fa;color:#6c798e;text-decoration:none;font-size:11px}.agent-profile-metrics strong{color:#172543;font-size:19px}.agent-profile-actions{display:flex;align-items:center;gap:10px;margin-top:20px}.agent-profile-actions .agents-contact-reveal{display:flex;align-items:center;justify-content:center;gap:9px;height:48px;padding:0 18px;border:1px solid #ef4c20;border-radius:9px;background:#ef4c20;color:#fff;font:400 13px Stolzl,Arial,sans-serif;cursor:pointer}.agent-profile-actions .agents-contact-reveal:hover{background:#d9431b}.agent-profile-actions .agents-contact-reveal.is-revealed{background:#fff;color:#ef4c20}.agent-profile-actions .agents-contact-reveal svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.agent-profile-messenger{display:flex;align-items:center;gap:8px;height:48px;padding:0 14px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;color:#52617a;text-decoration:none;font-size:12px}.agent-profile-messenger img{width:31px;height:31px}.agent-profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid #e4e9f0}.agent-profile-facts>div{display:flex;align-items:flex-start;gap:10px;min-width:0}.agent-fact-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border-radius:9px;background:#fff0e9;color:#ef4c20}.agent-fact-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.agent-profile-facts>div>span:last-child{display:flex;min-width:0;flex-direction:column;gap:3px}.agent-profile-facts small{color:#8591a4;font-size:10px}.agent-profile-facts strong{overflow:hidden;color:#34415b;font-size:12px;line-height:1.4;text-overflow:ellipsis}.agent-profile-section{padding-top:76px;scroll-margin-top:20px}.agent-profile-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:28px}.agent-profile-section-head>div>span{display:block;margin-bottom:7px;color:#ef4c20;font-size:12px;font-weight:400}.agent-profile-section-head h2{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.45px}.agent-profile-section-head>a{display:flex;align-items:center;gap:8px;color:#ef4c20;text-decoration:none;font-size:13px;font-weight:400}.agent-profile-section-head>a b{font-size:18px}.agent-profile-reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.agent-review-card{display:grid;grid-template-columns:170px minmax(0,1fr);min-height:240px;overflow:hidden;border:1px solid #dfe5ee;border-radius:14px;background:#fff;box-shadow:0 7px 24px rgba(18,34,66,.045)}.agent-review-image{display:block;overflow:hidden;background:#edf1f5}.agent-review-image img{width:100%;height:100%;object-fit:cover}.agent-review-body{min-width:0;padding:21px}.agent-review-stars{margin-bottom:9px;color:#ffb300;letter-spacing:2px}.agent-review-meta{color:#8a95a6;font-size:11px}.agent-review-card h3{margin:7px 0 10px;font-size:17px;line-height:1.35}.agent-review-card p{display:-webkit-box;margin:0;overflow:hidden;color:#64728a;font-family:ValionRobotoLight,Arial,sans-serif;font-size:14px;line-height:1.55;-webkit-line-clamp:6;-webkit-box-orient:vertical}.agent-profile-empty{margin:0;padding:28px;border-radius:12px;background:#f6f8fb;color:#68768d}.agent-profile-listings{display:grid;gap:18px}.agent-profile-listings .listing{grid-template-columns:36% minmax(0,1fr);min-height:300px}.agent-profile-listings .listing>.agent{display:none}.agent-profile-listings .listing-info{border-right:0}.agent-profile-listings--sold .listing{opacity:.82}.agent-profile-listings--sold .listing:after{content:"Продано";position:absolute;top:14px;left:14px;z-index:4;padding:8px 11px;border-radius:7px;background:rgba(23,37,67,.82);color:#fff;font-size:11px;font-weight:400}.agent-profile-listings--sold .listing{position:relative}
@media(max-width:1100px){.agent-profile-card{grid-template-columns:330px minmax(0,1fr);gap:30px}.agent-profile-photo{min-height:430px}.agent-profile-info{padding-right:8px}.agent-profile-metrics{flex-wrap:wrap}.agent-profile-facts{grid-template-columns:1fr 1fr}.agent-profile-listings .listing{grid-template-columns:40% minmax(0,1fr)}}
@media(max-width:800px){.agent-profile-page{padding-top:14px}.agent-profile-card{grid-template-columns:1fr;padding:14px}.agent-profile-photo{min-height:0;aspect-ratio:4/4.25}.agent-profile-info{padding:8px 5px 8px}.agent-profile-heading h1{font-size:30px}.agent-profile-reviews{grid-template-columns:1fr}.agent-profile-listings .listing{grid-template-columns:1fr;min-height:0}.agent-profile-listings .listing-media{height:330px}.agent-profile-listings .listing-info{border-top:1px solid #e0e6ef}.agent-profile-section{padding-top:58px}}
@media(max-width:600px){.agent-profile-breadcrumbs{margin-bottom:14px}.agent-profile-breadcrumbs>span{display:none}.agent-profile-card{border-radius:14px}.agent-profile-photo{aspect-ratio:1/1.06}.agent-profile-heading h1{font-size:25px}.agent-profile-socials a{width:38px;height:38px}.agent-profile-description{font-size:15px}.agent-profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.agent-profile-metrics a{display:flex;min-width:0;flex-direction:column;gap:2px;padding:11px 9px}.agent-profile-metrics strong{font-size:17px}.agent-profile-actions{display:grid;grid-template-columns:1fr 1fr}.agent-profile-actions .agents-contact-reveal{grid-column:1/-1}.agent-profile-messenger{justify-content:center}.agent-profile-facts{grid-template-columns:1fr;margin-top:20px}.agent-profile-section-head{align-items:flex-start;flex-direction:column;margin-bottom:22px}.agent-profile-section-head h2{font-size:25px}.agent-profile-section-head>a{align-self:flex-end;margin-top:-8px}.agent-review-card{grid-template-columns:110px minmax(0,1fr);min-height:210px}.agent-review-body{padding:16px}.agent-review-card h3{font-size:15px}.agent-review-card p{-webkit-line-clamp:5;font-size:13px}.agent-profile-listings .listing-media{height:270px}}
@media(max-width:400px){.agent-review-card{grid-template-columns:1fr}.agent-review-image{height:210px}.agent-profile-messenger span{display:none}.agent-profile-messenger img{width:36px;height:36px}}

/* Keep the profile within the viewport even when contact labels are long. */
.agent-profile-page{max-width:100%;overflow:hidden}
.agent-profile-card,.agent-profile-info,.agent-profile-heading,.agent-profile-actions,.agent-profile-facts{min-width:0}
.agent-review-card--text{grid-template-columns:minmax(0,1fr)}
@media(max-width:800px){.agent-profile-card{grid-template-columns:minmax(0,1fr)}.agent-profile-photo{width:100%;max-width:100%}}
@media(max-width:600px){.agent-profile-heading{flex-wrap:wrap}.agent-profile-socials{margin-left:auto}.agent-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-profile-messenger{min-width:0;padding:0 8px}.agent-profile-description{max-width:100%;overflow:hidden}}

/* Review photos and Google avatars stay square instead of stretching with the text. */
.agent-review-image{width:100%;height:auto;aspect-ratio:1/1;align-self:start}
@media(max-width:400px){.agent-review-card{grid-template-columns:105px minmax(0,1fr)}.agent-review-image{height:auto;aspect-ratio:1/1}}

/* Property cards on an agent page follow the catalogue layout exactly. */
.agent-profile-listings .listing>.agent{display:flex}
.agent-profile-listings .listing-info{border-right:initial}
@media(min-width:1301px){.agent-profile-listings .listing{grid-template-columns:440px minmax(0,1fr) 264px;min-height:330px}}
@media(min-width:1081px) and (max-width:1300px){.agent-profile-listings .listing{grid-template-columns:38% minmax(0,1fr) 210px;min-height:0}}
@media(min-width:801px) and (max-width:1080px){.agent-profile-listings .listing{grid-template-columns:41% minmax(0,1fr);min-height:0}}
@media(max-width:800px){.agent-profile-listings .listing{display:block;min-height:0}.agent-profile-listings .listing-info{border-top:0}}
.agent-profile-listings--sold .listing{opacity:1}
.agent-profile-listings--sold .listing:after{display:none}

/* Compact profile heading and a square original portrait. */
.agent-profile-photo{min-height:0;aspect-ratio:1/1}
.agent-profile-heading h1{font-size:31px;line-height:1.2}
.agent-profile-description{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.agent-profile-description p{display:contents}
@media(max-width:600px){.agent-profile-photo{aspect-ratio:1/1}.agent-profile-heading h1{font-size:23px}.agent-profile-description{-webkit-line-clamp:2}}

/* Compact Google reviews: avatar, author and rating share one header. */
.agent-profile-reviews--google .agent-review-card{display:block;min-height:0}
.agent-profile-reviews--google .agent-review-body{display:flex;flex-direction:column;height:100%;padding:23px}
.google-review-heading{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:start;gap:12px}
.google-review-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;overflow:hidden;border-radius:50%;background:#f0f3f8;color:#8190a6}
.google-review-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.google-review-avatar svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6}
.google-review-author{min-width:0}.agent-profile-reviews--google .google-review-author h3{margin:0 0 7px;font-size:17px;line-height:1.35;font-weight:400}
.agent-profile-reviews--google .agent-review-stars{margin:0;font-family:Arial,sans-serif;font-size:18px;line-height:1;letter-spacing:2px}
.google-review-heading time{color:#8792a4;font-size:11px;line-height:1.6;white-space:nowrap}
.agent-profile-reviews--google .google-review-text{margin:20px 0 0;color:#627088;font-family:ValionRobotoLight,Arial,sans-serif;font-size:15px;line-height:1.58;-webkit-line-clamp:6}
.agent-profile-reviews--google .google-review-text.is-expanded{display:block;overflow:visible}
.google-review-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:auto;padding-top:16px}
.google-review-footer button{padding:0;border:0;background:none;color:#ef4c20;font:400 12px/1.4 Stolzl,Arial,sans-serif;cursor:pointer;text-align:left}
.google-review-footer button[hidden]{display:none}.google-review-footer button:hover{text-decoration:underline}
.google-review-source{margin-left:auto}.google-review-source b{font:400 20px/1 Arial,sans-serif;background:conic-gradient(#4285f4 0deg 100deg,#34a853 100deg 175deg,#fbbc05 175deg 230deg,#ea4335 230deg 290deg,#4285f4 290deg);background-clip:text;-webkit-background-clip:text;color:transparent}
@media(max-width:700px){.agent-profile-reviews--google{grid-template-columns:minmax(0,1fr)}.agent-profile-reviews--google .agent-review-body{padding:18px}.google-review-heading{grid-template-columns:42px minmax(0,1fr);gap:10px}.google-review-avatar{width:42px;height:42px}.google-review-heading time{grid-column:2;margin-top:-3px}.agent-profile-reviews--google .google-review-author h3{font-size:15px}.agent-profile-reviews--google .google-review-text{font-size:14px;margin-top:16px}}

/* Softer headings throughout the realtor profile. */
.agent-profile-heading h1{font-size:26px;line-height:1.3;font-weight:400;letter-spacing:-.3px}
.agent-profile-section-head h2{font-size:24px;line-height:1.3;font-weight:400;letter-spacing:-.25px}
@media(max-width:700px){.agent-profile-heading h1{font-size:21px}.agent-profile-section-head h2{font-size:20px}}

@media(max-width:700px){.agent-profile-section-head{flex-direction:row;align-items:center;gap:12px}.agent-profile-section-head>div{min-width:0}.agent-profile-section-head>a{align-self:center;flex:none;margin-top:0;white-space:nowrap;font-size:12px}}

/* Match the property page's square messenger controls. */
.agent-profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.agent-profile-actions .agent-profile-messenger{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0;overflow:hidden;border:0;border-radius:10px;color:#fff;transition:filter .15s}
.agent-profile-actions .agent-profile-messenger img{display:block;width:44px;height:44px;border-radius:10px}
.agent-profile-actions .agent-profile-messenger svg{width:29px;height:29px}
.agent-profile-actions .agent-profile-messenger--facebook{background:#1877f2}
.agent-profile-actions .agent-profile-messenger--instagram{background:linear-gradient(35deg,#f9ce34,#ee2a7b 55%,#6228d7)}
.agent-profile-actions .agent-profile-messenger:hover{filter:brightness(.92)}
.agent-profile-actions .agent-profile-messenger:focus-visible{outline:2px solid #172543;outline-offset:3px}
@media(max-width:600px){.agent-profile-actions{display:flex;gap:8px}.agent-profile-actions .agents-contact-reveal{flex-basis:100%;margin-bottom:4px}}

/* Let the portrait fill the card's entire photo column. */
.agent-profile-card{padding:0;align-items:stretch}
.agent-profile-photo{align-self:stretch;aspect-ratio:auto;min-height:390px;border-radius:0}
.agent-profile-photo>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.agent-profile-info{padding:28px 28px 28px 0}
@media(max-width:800px){.agent-profile-card{gap:0}.agent-profile-photo{min-height:0;aspect-ratio:1/1}.agent-profile-info{padding:22px 18px}}

.agent-profile-description[data-expandable]{cursor:pointer}.agent-profile-description.is-expanded{display:block;overflow:visible;-webkit-line-clamp:unset}.agent-profile-description.is-expanded p{display:block}.agent-profile-description.is-expanded p:last-child{margin-bottom:0}.agent-profile-description:focus-visible{outline:2px solid #ef4c20;outline-offset:4px;border-radius:4px}

/* Fill the profile card's photo column up to its outer edges. */
.agent-profile-card>.agent-profile-photo{align-self:stretch;aspect-ratio:auto;min-height:390px;height:auto;width:100%}
@media(max-width:800px){.agent-profile-card>.agent-profile-photo{aspect-ratio:1/1;min-height:0}}

@media(min-width:601px){.agent-profile-info .agent-profile-facts{display:flex;flex-wrap:wrap;gap:20px 64px}.agent-profile-info .agent-profile-facts>div{flex:0 1 auto;max-width:100%}}

@media(min-width:701px){.agent-profile-reviews--google .google-review-text:not(.is-expanded){-webkit-line-clamp:2}}

.agent-profile-section-head .agent-section-count{display:inline-block;margin-left:6px;color:#7a879b;font-size:.75em;line-height:inherit;font-weight:400;vertical-align:baseline}

/* Mobile contact rows; desktop keeps the compact inline social icons. */
.agent-profile-secondary-socials{display:contents}
.agent-profile-secondary-socials .agent-profile-messenger span{display:none}
@media(max-width:800px){
.agent-profile-info .agent-profile-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.agent-profile-info .agent-profile-actions .agents-contact-reveal{flex:1 1 0;min-width:0;grid-column:auto;height:44px;margin:0;padding:0 8px;gap:6px;font-size:12px}
.agent-profile-actions .agents-contact-reveal span{white-space:nowrap}
.agent-profile-actions .agents-contact-reveal svg{flex:none;width:18px;height:18px}
.agent-profile-info .agent-profile-secondary-socials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:0 0 100%;margin-top:2px}
.agent-profile-actions .agent-profile-secondary-socials .agent-profile-messenger{display:flex;gap:7px;min-width:0;width:100%;height:44px;padding:0 10px;font-size:12px;font-weight:400}
.agent-profile-secondary-socials .agent-profile-messenger svg{width:24px;height:24px;flex:none}
.agent-profile-secondary-socials .agent-profile-messenger span{display:inline}
.agent-profile-secondary-socials:has(>a:only-child){grid-template-columns:minmax(0,1fr)}
.agent-profile-info .agent-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.agent-profile-facts>div{gap:8px}.agent-profile-facts strong{overflow:visible}
}
@media(max-width:360px){.agent-profile-info .agent-profile-actions .agents-contact-reveal{font-size:11px;padding:0 6px;gap:4px}.agent-profile-actions .agents-contact-reveal svg{width:16px;height:16px}.agent-profile-info .agent-profile-facts{gap:10px}.agent-profile-facts .agent-fact-icon{width:30px;height:30px}}

/* Counters and profile facts use the regular face rather than browser-default bold. */
.agent-profile-metrics strong,.agent-profile-facts strong{font-weight:400}
