/* =========================================================
   КОНТАКТЫ — дополняет styles.css
   Герой — сам номер телефона крупным кеглем на чёрном листе.
   ========================================================= */
:root { --sky: #5aaef6; --sand: #efe4cf; }

/* ---------- HERO ---------- */
.c-hero {
  container-type: inline-size;
  margin-top: 5px;
  display: flex; flex-direction: column; gap: 56px;
  padding: 32px 32px 28px; border-radius: var(--r-xl); background: var(--black); color: #fff;
}
.c-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.c-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 30px; background: #1b1a22;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: -.02em; text-transform: uppercase;
}
.c-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #6b6a72; }
.c-status.is-open .c-status__dot { background: var(--lime); animation: rec 1.6s ease-out infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(234, 254, 32, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(234, 254, 32, 0); } }

.c-hero__main { display: flex; flex-direction: column; gap: 18px; }
.c-hero__kicker { max-width: 520px; font-family: var(--f-display); font-size: clamp(18px, 1.53vw, 22px); line-height: 1.3; letter-spacing: -.026em; color: rgba(255, 255, 255, .7); }
.c-hero__phone {
  display: inline-block; align-self: flex-start;
  font-family: var(--f-display); font-weight: 500;
  font-size: 11.6cqw; line-height: .95; letter-spacing: -.06em; white-space: nowrap;
  margin-left: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: color .3s, background-size .5s var(--ease);
}
.c-hero__phone:hover { color: var(--lime); background-size: 100% 3px; }
.c-hero__row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.c-hero__mail {
  font-family: var(--f-ui); font-weight: 600; font-size: clamp(24px, 3.3vw, 48px); letter-spacing: -.05em; color: var(--pink);
  transition: color .3s;
}
.c-hero__mail:hover { color: #fff; }
.c-hero__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.c-copy {
  height: 42px; padding: 0 18px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .3);
  font-weight: 600; font-size: 14px; letter-spacing: -.03em; color: #fff;
  transition: background-color .25s, color .25s, border-color .25s;
}
.c-copy:hover { background: #fff; color: #000; }
.c-copy.is-done { background: var(--lime); border-color: var(--lime); color: #000; }

.c-hero__bottom {
  display: flex; gap: 12px 40px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: -.02em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.c-hero__label { color: var(--pink); margin-right: 6px; }

/* ---------- КАНАЛЫ ---------- */
.c-channels-wrap { margin-top: 4px; }
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.channel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 220px; padding: 24px; border-radius: var(--r-md); background: var(--surface);
  transition: transform .4s var(--ease);
}
.channel:hover { transform: translateY(-3px); }
.channel__label { font-family: var(--f-mono); font-size: 11.2px; text-transform: uppercase; letter-spacing: -.02em; color: var(--muted); }
.channel__value { margin-top: auto; font-weight: 600; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; user-select: all; }
.channel__note { min-height: 2.8em; font-size: 13.5px; line-height: 1.4; letter-spacing: -.02em; color: var(--ink-2); }
.channel .mailcard__copy { margin-top: 12px; display: inline-flex; align-items: center; }
.channel--accent { background: var(--lime); }
.channel--accent .channel__label, .channel--accent .channel__note { color: rgba(0, 0, 0, .6); }

/* ---------- ОФИСЫ ---------- */
.offices-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.office { display: flex; flex-direction: column; gap: 4px; }
.office__map {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-md);
  background:
    linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    #e9eef5;
}
.office__map--sand { background:
    linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--sand); }
.office__road { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.office__road--a { left: -10%; right: -10%; top: 58%; height: 14px; transform: rotate(-8deg); }
.office__road--b { top: -10%; bottom: -10%; left: 34%; width: 10px; transform: rotate(14deg); }
.office__road--c { top: -10%; bottom: -10%; left: 70%; width: 18px; transform: rotate(-6deg); }
.office__river { position: absolute; left: -10%; right: -10%; bottom: 8%; height: 34px; background: #b9d8f4; border-radius: 40px; transform: rotate(4deg); }
.office__sea { position: absolute; right: -20%; top: -30%; width: 55%; height: 160%; background: #a8d4ee; border-radius: 50%; }
.office__pin {
  position: absolute; left: 52%; top: 44%; width: 44px; height: 44px; margin: -44px 0 0 -22px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pink);
  box-shadow: 0 10px 20px rgba(255, 135, 213, .5);
  animation: pin 2.6s var(--ease) infinite;
}
.office__pin i { position: absolute; inset: 14px; border-radius: 50%; background: #fff; }
@keyframes pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.office__tag {
  position: absolute; left: calc(52% + 30px); top: calc(44% - 40px);
  padding: 6px 10px; border-radius: 20px; background: var(--black); color: #fff;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em;
}
.office__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-md); background: var(--surface); flex: 1; }
.office__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.office__city { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.045em; line-height: 1; }
.office__badge { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 20px; background: var(--lime); font-weight: 600; font-size: 12px; letter-spacing: -.03em; }
.office__badge--muted { background: var(--tile); }
.office__addr { font-size: 18px; line-height: 1.35; letter-spacing: -.03em; color: var(--ink-2); }
.office__btns { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.office__btns .mailcard__copy {
  margin-top: 0; height: auto; padding: 15.25px 25.6px 16px; border-radius: 30px;
  background: transparent; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--black);
  font-family: var(--f-btn); font-weight: 600; font-size: 15.5px; line-height: 18.4px; letter-spacing: -0.025em;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease);
}
.office__btns .mailcard__copy:hover { background: var(--black); color: #fff; transform: translateY(-2px); }
.office__btns .mailcard__copy.is-done { background: var(--lime); color: #000; box-shadow: inset 0 0 0 1.5px var(--lime); }

/* ---------- ФОРМА ---------- */
.c-form-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px;
  padding: 68px 51px 51px; border-radius: var(--r-lg); background: var(--night); color: #fff;
}
.c-form-info { display: flex; flex-direction: column; gap: 48px; }
.next { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.next li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.next__n { font-family: var(--f-mono); font-size: 13px; color: var(--pink); padding-top: 4px; }
.next b { font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.045em; }
.next p { margin-top: 4px; font-size: 15px; letter-spacing: -.03em; color: rgba(255, 255, 255, .6); }
.c-person { margin-top: auto; }

.c-form { gap: 24px; }
.c-form .form__title { font-size: 38px; }
.c-types { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.c-types__list { display: flex; flex-wrap: wrap; gap: 6px; }
.c-type { position: relative; cursor: pointer; }
.c-type input { position: absolute; opacity: 0; pointer-events: none; }
.c-type span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 30px;
  background: var(--tile); font-weight: 600; font-size: 13.5px; letter-spacing: -.03em;
  transition: background-color .2s, color .2s;
}
.c-type:hover span { background: #ebebeb; }
.c-type input:checked + span { background: var(--black); color: #fff; }
.c-type input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.c-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1100px) {
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .offices { grid-template-columns: 1fr; }
  .c-form-wrap { grid-template-columns: 1fr; padding: 40px 24px 24px; gap: 40px; }
  .c-person { margin-top: 0; }
}
@media (max-width: 720px) {
  .c-hero { padding: 20px 20px 22px; gap: 40px; }
  .c-hero__phone { font-size: 11.2cqw; }
  .channels { grid-template-columns: 1fr; }
  .channel { min-height: 0; }
  .channel__value { margin-top: 12px; }
  .office__body { padding: 22px 20px; }
  .c-form__pair { grid-template-columns: 1fr; }
  .c-form .form__title { font-size: 32px; }
}
/* кнопка-ссылка в hero */
a.c-copy { display: inline-flex; align-items: center; }

/* иконка Telegram справа от ника */
.c-hero__mail .c-hero__tg { display: inline-block; width: .82em; height: .82em; margin-left: .3em; vertical-align: -.08em; transition: transform .35s var(--ease); }
.c-hero__mail:hover .c-hero__tg { transform: translate(2px, -2px) rotate(-8deg); }
