/* AP-R · «Контакты» (/about/kontakty/) и «Партнёрам» (/partnery/) в стиле about_v2 — 08.10.2026.
   Источник: C:\Users\Сергей\AP-R\mockups\kontakty-2026-10-08\build\kontakty.css (сборка devbuild.py) + копия инлайн-стилей about/index_v2.php ниже.
   Токены (--navy, --teal, --green, --line …) и базовые классы (about-hero, section-head, team-card, contact-row, doc, final) — about.css. */
/* AP-R · «Контакты» в стиле about_v2 (08.10.2026). Дополнения к дизайн-системе сайта: только компоновка, токены — сайта. */
.kt-hero .hero-portrait{aspect-ratio:4/3; max-height:470px; justify-self:stretch}
.kt-hero .hero-portrait img{object-position:center}
.kt-hero .hero-sub{margin-bottom:22px}
.kt-quick{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.kt-btn{display:inline-flex; align-items:center; gap:9px; padding:13px 20px; border-radius:14px; font-size:15px; font-weight:700;
  text-decoration:none; border:1px solid transparent; transition:.15s; line-height:1; white-space:nowrap}
.kt-btn svg{width:18px; height:18px; flex:0 0 auto}
.kt-btn-phone{background:var(--green); color:var(--green-dark); border-color:var(--green); font-size:19px; font-weight:800; padding:14px 22px}
.kt-btn-phone:hover{background:var(--green-press); border-color:var(--green-press)}
.kt-btn-tg{background:#229ED9; color:#fff}
.kt-btn-tg:hover{background:#1b8dc3}
.kt-btn-max{background:linear-gradient(135deg,#4cf 0%,#53e 66%,#93d 100%); color:#fff}
.kt-btn-max:hover{filter:brightness(.95)}
.kt-btn-max svg{width:20px; height:20px}
.kt-btn-mail{background:#fff; color:var(--navy); border-color:var(--line)}
.kt-btn-mail:hover{border-color:var(--navy)}
.kt-quick-note{font-size:13px; color:var(--muted); width:100%}
.about-hero .hero-stats-row .s .n .u{font-size:16px; color:var(--teal); font-weight:700; margin-left:4px}

/* панель контактов в первом экране (вариант 2) */
.kt-panel{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%); color:#fff; border-radius:28px; padding:32px;
  box-shadow:var(--shadow-lg); position:relative; overflow:hidden}
.kt-panel::before{content:''; position:absolute; right:-120px; top:-120px; width:360px; height:360px; border-radius:50%;
  background:radial-gradient(circle,var(--teal) 0%,transparent 70%); opacity:.25}
.kt-panel > *{position:relative; z-index:1}
.kt-panel .kt-p-eyebrow{font-size:12px; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:#8da4b6}
.kt-panel .kt-p-phone{display:block; color:#fff; text-decoration:none; font-size:34px; font-weight:800; letter-spacing:-.01em; margin:6px 0 2px; line-height:1.1}
.kt-panel .kt-p-phone:hover{color:var(--green)}
.kt-panel .kt-p-sub{font-size:14px; color:#bccad6}
.kt-panel .kt-p-rows{margin:22px 0 0; padding:0; list-style:none; border-top:1px solid rgba(255,255,255,.14)}
.kt-panel .kt-p-rows li{display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.1); font-size:15px}
.kt-panel .kt-p-rows li .ic{width:36px; height:36px; border-radius:10px; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; flex:0 0 auto}
.kt-panel .kt-p-rows li .ic svg{width:17px; height:17px}
.kt-panel .kt-p-rows li .l{font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:#8da4b6; font-weight:600}
.kt-panel .kt-p-rows li .v{color:#fff; font-weight:600; text-decoration:none}
.kt-panel .kt-p-rows li a.v:hover{color:var(--green)}
.kt-panel .kt-quick{margin-top:18px}
.kt-panel .kt-btn-mail{background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.22)}
.kt-panel .kt-btn-mail:hover{border-color:#fff}

/* карточки офисов */
.kt-offices{display:grid; grid-template-columns:repeat(5,1fr); gap:16px}
.kt-office{background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; display:flex; flex-direction:column; transition:.15s; min-width:0}
.kt-office:hover{transform:translateY(-2px); border-color:var(--teal); box-shadow:var(--shadow)}
.kt-office .ph{aspect-ratio:16/10; background:linear-gradient(135deg,var(--navy) 0%,#1e5f7a 60%,var(--teal) 100%); position:relative; overflow:hidden}
.kt-office .ph img{width:100%; height:100%; object-fit:cover; display:block}
.kt-office .ph .tag{position:absolute; left:12px; top:12px; background:rgba(255,255,255,.92); color:var(--navy); font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; padding:5px 9px; border-radius:999px}
.kt-office .bd{padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1}
.kt-office h3{font-size:19px; margin:0; color:var(--navy); letter-spacing:-.005em}
.kt-office .addr{font-size:14px; color:var(--ink-2); line-height:1.45}
.kt-office .hrs{font-size:13px; color:var(--muted); display:flex; align-items:center; gap:6px}
.kt-office .hrs svg{width:14px; height:14px}
.kt-office .reps{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); margin-top:2px}
.kt-office .reps .avs{display:flex}
.kt-office .reps .avs img{width:28px; height:28px; border-radius:50%; object-fit:cover; object-position:center top; border:2px solid #fff; margin-left:-8px; background:#e6f7f8}
.kt-office .reps .avs img:first-child{margin-left:0}
.kt-office .acts{display:flex; gap:8px; margin-top:auto; padding-top:8px; flex-wrap:wrap}
.kt-act{display:inline-flex; align-items:center; gap:6px; padding:9px 12px; border-radius:10px; font-size:13px; font-weight:600; text-decoration:none;
  background:var(--teal-soft); color:var(--navy); border:1px solid transparent; transition:.15s; cursor:pointer; font-family:inherit}
.kt-act:hover{background:#d5f1f3; border-color:var(--teal)}
.kt-act svg{width:14px; height:14px}
.kt-act.ghost{background:#fff; border-color:var(--line)}
.kt-act.ghost:hover{border-color:var(--navy); background:#fff}

/* карта */
.kt-map{position:relative; border-radius:20px; overflow:hidden; background:var(--bg-sky); box-shadow:var(--shadow); height:460px; margin-top:24px}
.kt-map .ymap{position:absolute; inset:0}
.kt-map .kt-map-note{position:absolute; left:14px; top:14px; z-index:5; background:rgba(255,255,255,.94); border-radius:12px; padding:10px 14px; font-size:13px; color:var(--ink-2); box-shadow:var(--shadow); max-width:360px}
.kt-map .kt-map-note b{color:var(--navy)}
.kt-map .kt-map-fallback{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; text-align:center; padding:20px}
.apr-map-pin.is-active{background:var(--teal)}
.apr-map-pin.is-active::after{border-top-color:var(--teal)}

/* список офисов + карта (вариант 2) */
.contact-row.office{cursor:pointer; border-radius:12px; padding:12px 10px; margin:0 -10px; transition:.15s}
.contact-row.office:hover{background:var(--bg)}
.contact-row.office.is-active{background:var(--bg-mint)}
.contact-row.office.is-active .ic{background:var(--navy); color:#fff}
.contact-row .route{font-size:12px; color:var(--teal); text-decoration:none; font-weight:600; margin-left:10px; white-space:nowrap}
.contact-row .route:hover{text-decoration:underline}
.contacts-grid.kt-v2{grid-template-columns:1fr 1.15fr}
.contacts-grid.kt-v2 .map-wrap{aspect-ratio:auto; min-height:560px}
.contacts-grid.kt-v2 .kt-map{height:100%; margin:0; border-radius:0; box-shadow:none}

/* «как связаться» — три пути (вариант 2) */
.kt-ways{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.kt-way{background:#fff; border:1px solid var(--line); border-radius:20px; padding:28px; display:flex; flex-direction:column; gap:10px; transition:.15s}
.kt-way:hover{border-color:var(--teal); box-shadow:var(--shadow)}
.kt-way .ic{width:48px; height:48px; border-radius:12px; background:var(--teal-soft); color:var(--navy); display:flex; align-items:center; justify-content:center}
.kt-way .ic svg{width:22px; height:22px}
.kt-way h3{font-size:20px; margin:6px 0 0; color:var(--navy)}
.kt-way p{font-size:14px; color:var(--ink-2); margin:0; line-height:1.55}
.kt-way .kt-quick{margin-top:auto; padding-top:8px}
.kt-way .ph{border-radius:14px; overflow:hidden; aspect-ratio:16/9; margin:-8px -8px 4px; }
.kt-way .ph img{width:100%; height:100%; object-fit:cover; display:block}

/* по городам (вариант 3) */
.kt-tabs{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px}
.kt-chip{display:inline-flex; align-items:center; gap:8px; padding:11px 18px; border-radius:999px; border:1px solid var(--line); background:#fff;
  color:var(--navy); font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; transition:.15s}
.kt-chip svg{width:14px; height:14px; color:var(--teal)}
.kt-chip:hover{border-color:var(--teal)}
.kt-chip.is-active{background:var(--navy); color:#fff; border-color:var(--navy)}
.kt-chip.is-active svg{color:var(--green)}
.kt-city{display:none; grid-template-columns:1fr 1.1fr; gap:28px; align-items:start}
.kt-city.is-active{display:grid}
.kt-citycard{background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden}
.kt-citycard .ph{aspect-ratio:16/8; position:relative; background:linear-gradient(135deg,var(--navy) 0%,#1e5f7a 60%,var(--teal) 100%)}
.kt-citycard .ph img{width:100%; height:100%; object-fit:cover; display:block}
.kt-citycard .ph .cap{position:absolute; left:0; right:0; bottom:0; padding:18px 22px; color:#fff; background:linear-gradient(transparent,rgba(10,34,55,.85)); font-size:24px; font-weight:800; letter-spacing:-.01em}
.kt-citycard .bd{padding:10px 24px 20px}
.kt-citycard .contact-row{padding:12px 0}
.kt-reps{padding:0 24px 24px}
.kt-reps h4{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--teal); margin:8px 0 10px; font-weight:700}
.kt-rep{display:flex; align-items:center; gap:14px; padding:12px 0; border-top:1px solid var(--line)}
.kt-rep img{width:52px; height:52px; border-radius:50%; object-fit:cover; object-position:center top; flex:0 0 auto; background:#e6f7f8}
.kt-rep .nm{font-size:15px; font-weight:700; color:var(--navy)}
.kt-rep .rl{font-size:12px; color:var(--muted)}
.kt-rep .ch{margin-left:auto; display:flex; gap:6px}
.kt-rep .ch a{width:34px; height:34px; border-radius:8px; display:flex; align-items:center; justify-content:center; text-decoration:none; color:#fff; transition:.15s}
.kt-rep .ch a:hover{transform:scale(1.08)}
.kt-rep .ch a svg{width:15px; height:15px}
.kt-rep .ch a.tg{background:#229ED9}
.kt-rep .ch a.gn{background:var(--green); color:var(--green-dark)}
.kt-rep .ch a.mx{background:linear-gradient(135deg,#4cf 0%,#53e 66%,#93d 100%)}
.kt-rep-none{font-size:14px; color:var(--ink-2); padding:12px 0; border-top:1px solid var(--line); line-height:1.5}
.kt-city .kt-map{margin:0; height:100%; min-height:560px; position:sticky; top:96px}

/* команда — большие фото (08.10, замечание Сергея: «я в кружке, нужно большие фото») */
.kt-team{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.kt-team .team-card.lead{grid-column:span 2}
.kt-tcard{background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; display:flex; flex-direction:column; transition:.15s; min-width:0}
.kt-tcard:hover{transform:translateY(-2px); border-color:var(--teal); box-shadow:var(--shadow)}
.kt-tcard .ph{aspect-ratio:4/5; background:linear-gradient(135deg,#e6f7f8,#c8e8eb); overflow:hidden}
.kt-tcard .ph img{width:100%; height:100%; object-fit:cover; object-position:center top; display:block}
.kt-tcard .bd{padding:18px 20px 20px; display:flex; flex-direction:column; gap:5px; flex:1}
.kt-tcard h3{font-size:18px; margin:0; color:var(--navy); letter-spacing:-.005em; line-height:1.2}
.kt-tcard .role{font-size:13px; color:var(--muted)}
.kt-tcard .kt-cities{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; line-height:1.5}
.kt-tcard .quote{font-size:13px; color:var(--ink-2); font-style:italic; line-height:1.5; margin-top:4px}
.kt-tcard .channels{display:flex; gap:6px; margin-top:auto; padding-top:14px}
.kt-tcard .channels a{width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; text-decoration:none; color:#fff; transition:.15s}
.kt-tcard .channels a:hover{transform:scale(1.08)}
.kt-tcard .channels a svg{width:16px; height:16px}
.kt-tcard .channels a.tg{background:#229ED9}
.kt-tcard .channels a.gn{background:var(--green); color:var(--green-dark)}
.kt-tcard .channels a.mx{background:linear-gradient(135deg,#4cf 0%,#53e 66%,#93d 100%)}
.kt-tcard .channels a.mx svg{width:20px; height:20px}
.about-main .team-card.lead .lead-links a{white-space:nowrap}

/* партнёрам (страница /partnery/) */
.kt-offer{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.kt-offer .kt-way h3{font-size:18px}
.kt-logos{display:grid; grid-template-columns:repeat(5,1fr); gap:14px}
.kt-logos .partner{min-height:96px; padding:14px 18px; position:relative}
.kt-logos .partner img{max-width:100%; max-height:52px; width:auto; height:auto; display:block; transition:opacity .15s}
.kt-logos .partner img.c{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:calc(100% - 36px); opacity:0}
.kt-logos .partner:hover img.g{opacity:0}
.kt-logos .partner:hover img.c{opacity:1}
.kt-steps{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; counter-reset:kt}
.kt-step{background:#fff; border:1px solid var(--line); border-radius:20px; padding:26px 26px 28px; position:relative}
.kt-step .num{width:40px; height:40px; border-radius:12px; background:var(--navy); color:#fff; font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; margin-bottom:14px}
.kt-step h3{font-size:18px; margin:0 0 8px; color:var(--navy)}
.kt-step p{font-size:14px; color:var(--ink-2); line-height:1.55; margin:0}

/* остальные застройщики каталога — текстом */
.kt-rest{margin-top:16px}
.kt-rest-btn{background:#fff; border:1px solid var(--line); border-radius:999px; padding:10px 18px; font-size:14px; font-weight:600; color:var(--navy); cursor:pointer; font-family:inherit; transition:.15s}
.kt-rest-btn:hover{border-color:var(--teal)}
.kt-rest-btn[aria-expanded="true"]{background:var(--navy); color:#fff; border-color:var(--navy)}
.kt-rest-list{margin:14px 0 0; font-size:13px; line-height:1.8; color:var(--muted)}

/* соцсети и «ещё» */
.kt-more{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.kt-more .doc{cursor:default}
.kt-more .doc .meta{line-height:1.6; font-size:13px; color:var(--ink-2)}
.kt-more .doc .meta b{color:var(--navy)}
.kt-copy{font-size:12px; color:var(--navy); font-weight:600; margin-top:8px; display:inline-flex; gap:6px; align-items:center; background:var(--teal-soft); border:0; border-radius:8px; padding:6px 10px; cursor:pointer; font-family:inherit}
.kt-copy:hover{background:#d5f1f3}
.kt-social{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:28px}
.kt-social .lbl{font-size:13px; color:var(--muted); margin-right:6px}
.kt-social a{display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 14px 0 10px; border-radius:12px; background:#fff; border:1px solid var(--line); color:var(--navy); text-decoration:none; font-size:13px; font-weight:600; transition:.15s}
.kt-social a:hover{border-color:var(--teal)}
.kt-social a svg{width:18px; height:18px}
.kt-social a.tg svg{color:#229ED9}
.kt-social a.mx svg{color:#53e}


@media (min-width:1024px) and (max-width:1199px){
  .kt-offices{grid-template-columns:repeat(3,1fr)}
  .kt-offer{grid-template-columns:repeat(2,1fr)}
  .kt-logos{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:761px) and (max-width:1023px){
  .kt-offices{grid-template-columns:repeat(2,1fr)}
  .kt-ways,.kt-more,.kt-offer,.kt-team{grid-template-columns:1fr 1fr}
  .kt-logos{grid-template-columns:repeat(3,1fr)}
  .kt-steps{grid-template-columns:1fr}
  .kt-city{grid-template-columns:1fr}
  .kt-city .kt-map{position:relative; top:auto; min-height:380px}
  .contacts-grid.kt-v2{grid-template-columns:1fr}
  .contacts-grid.kt-v2 .map-wrap{min-height:420px}
  .kt-hero .hero-portrait{aspect-ratio:16/10; max-height:none}
}
@media (max-width:760px){
  .kt-hero .hero-portrait{aspect-ratio:16/10; max-height:none; order:1}
  .kt-quick{gap:8px}
  .kt-btn{padding:12px 14px; font-size:14px}
  .kt-btn-phone{width:100%; justify-content:center; font-size:18px}
  .kt-panel{padding:22px; border-radius:20px}
  .kt-panel .kt-p-phone{font-size:28px}
  .kt-offices,.kt-ways,.kt-more,.kt-offer,.kt-steps{grid-template-columns:1fr; gap:12px}
  .kt-team{grid-template-columns:1fr 1fr; gap:10px}
  .kt-team .team-card.lead{grid-column:span 2}
  .kt-tcard .bd{padding:12px 12px 14px}
  .kt-tcard h3{font-size:15px}
  .kt-tcard .quote{display:none}
  .kt-tcard .channels a{width:34px; height:34px}
  .kt-logos{grid-template-columns:repeat(2,1fr); gap:10px}
  .kt-office .ph{aspect-ratio:16/8}
  .kt-map{height:360px; margin-top:16px}
  .contacts-grid.kt-v2{grid-template-columns:1fr}
  .contacts-grid.kt-v2 .map-wrap{min-height:360px}
  .kt-map .kt-map-note{left:10px; top:10px; right:56px; max-width:none; font-size:12px; padding:8px 10px}
  .kt-city{grid-template-columns:1fr; gap:14px}
  .kt-city .kt-map{position:relative; top:auto; min-height:340px}
  .kt-citycard .bd,.kt-reps{padding-left:18px; padding-right:18px}
  .kt-tabs{gap:6px; margin-bottom:18px}
  .kt-chip{padding:9px 13px; font-size:13px}
}

/* ===== копия инлайн-стилей about/index_v2.php (lead-карточка, попап телефона, метка карты) — 08.10.2026 ===== */
.about-main .team-card.lead{ grid-template-columns:1fr 220px; align-items:center; gap:28px }
.about-main .team-card.lead .av{ width:220px; height:auto; aspect-ratio:3/4; max-height:300px; border-radius:18px; margin:0; background:transparent }
.about-main .team-card.lead .av img{ border-radius:18px; width:100%; height:100%; object-fit:cover; object-position:center top }
@media (max-width:980px){ .about-main .team-card.lead{ grid-template-columns:1fr 180px } .about-main .team-card.lead .av{ width:180px } }
@media (max-width:760px){
  .about-main .team-card.lead{ grid-template-columns:1fr; text-align:center }
  .about-main .team-card.lead .av{ width:170px; height:auto; aspect-ratio:3/4; margin:14px auto 0; order:-1 }
  .about-main .team-card.lead .lead-links{ justify-content:center }
}
.about-main .team-card.lead .lead-links .mx{ background:linear-gradient(135deg,#4cf 0%,#53e 66%,#93d 100%); color:#fff }
.about-main .team-card.lead .lead-links .mx svg{ width:16px; height:16px }
.apr-call-pop{ position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; background:rgba(10,34,55,.55); padding:20px }
.apr-call-pop[hidden]{ display:none }
.apr-call-box{ background:#fff; border-radius:20px; padding:34px 28px 28px; max-width:360px; width:100%; text-align:center; box-shadow:0 24px 60px rgba(10,34,55,.32); position:relative }
.apr-call-x{ position:absolute; top:10px; right:14px; border:0; background:none; font-size:26px; line-height:1; color:#9aa6b2; cursor:pointer }
.apr-call-eyebrow{ font-size:12px; color:#6c7785; text-transform:uppercase; letter-spacing:.07em; margin-bottom:10px }
.apr-call-num{ display:block; font-size:28px; font-weight:800; color:#13374f; text-decoration:none; letter-spacing:-.01em; margin-bottom:18px }
.apr-call-copy{ border:0; background:#eef7f1; color:#163d10; font-weight:700; font-size:14px; padding:11px 20px; border-radius:12px; cursor:pointer; transition:.15s }
.apr-call-copy:hover{ background:#e0f0e6 }
.apr-map-pin{ position:absolute; left:0; top:0; display:flex; align-items:center; width:max-content; background:#13374f; padding:8px 13px; border-radius:12px; box-shadow:0 4px 14px rgba(10,34,55,.42); transform:translate(-50%,-100%) }
.apr-map-pin img{ height:22px; width:auto; display:block }
.apr-map-pin::after{ content:''; position:absolute; left:50%; bottom:-7px; transform:translateX(-50%); border:7px solid transparent; border-top-color:#13374f; border-bottom:0 }

/* ===== раскладка «по городам» (в макете была инлайн) ===== */
.kt-cities{display:grid; grid-template-columns:1fr 1.1fr; gap:28px; align-items:start}
.kt-city{grid-template-columns:1fr}
.kt-city .kt-map-col{display:none}
.kt-cities .kt-map{margin:0; height:100%; min-height:620px; position:sticky; top:96px}
.kt-rep-av{width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,#e6f7f8,#c8e8eb); flex:0 0 auto}
.kt-rep-none a{color:var(--navy); font-weight:700; text-decoration:none}
.kt-page .hero-portrait img{display:block}
@media (max-width:1023px){ .kt-cities{grid-template-columns:1fr} .kt-cities .kt-map{position:relative; top:auto; min-height:380px} }
@media (max-width:760px){ .kt-cities{gap:14px} .kt-cities .kt-map{min-height:340px} }
