/* ============================================================
   Контакты — изолированные стили
   Префикс: cnt- (всё под .cnt-root)
   Токены, ресет и шрифт заданы на .cnt-root (НЕ глобально),
   поэтому страница безопасно встраивается рядом с прод-шапкой,
   у которой другие шрифты — взаимного перекрытия нет.
   ============================================================ */

/* Inter — self-hosted (вариативный, 400-600). На том же домене, чтобы не
   зависеть от внешнего Google Fonts: на деве body-инжектнутый <link> на
   fonts.googleapis не подхватывался, кириллица валилась в системный фолбэк. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/inter/inter-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/inter/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

.cnt-root {
  --cnt-accent: #FE5D26;
  --cnt-accent-hover: #D95427;
  --cnt-black: #312D2B;
  --cnt-text: #272F3D;
  --cnt-bg: #F6F6F6;
  --cnt-white: #FFFFFF;
  --cnt-border: rgba(49, 45, 43, 0.1);
  --cnt-card-shadow: 0 1px 4px 0 rgba(49, 45, 43, 0.08);
  --cnt-card-bg: rgba(49, 45, 43, 0.05);
  --cnt-transition: .25s ease;
  --cnt-radius-sm: 10px;
  --cnt-radius-md: 12px;
  --cnt-radius-lg: 24px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cnt-text);
  background-color: var(--cnt-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cnt-root *,
.cnt-root *::before,
.cnt-root *::after {
  box-sizing: border-box;
}

/* Зануляем UA-отступы только у текстовых тегов через :where() (нулевая
   специфичность): классы-заголовки перебивают по порядку, а <main> с глобальным
   margin-top: 91px под фикс-шапку не затрагивается. */
.cnt-root :where(h1, h2, h3, p) { margin: 0; }

.cnt-root a {
  text-decoration: none;
  color: inherit;
}

.cnt-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cnt-root button {
  font-family: inherit;
}

.cnt-container {
  max-width: 1327px; /* как .container шапки → контент 1297px (1327 − 2×15) */
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Hero --- */
.cnt-hero {
  padding: 24px 0 32px;
}

.cnt-hero-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  color: var(--cnt-black);
}

/* --- Info grid --- */
.cnt-info {
  padding-bottom: 24px;
}

.cnt-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Cards */
.cnt-card {
  background: var(--cnt-white);
  border-radius: var(--cnt-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.cnt-card:last-child {
  margin-bottom: 0;
}

.cnt-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--cnt-black);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cnt-card-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Contact item */
.cnt-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--cnt-radius-md);
  transition: background-color var(--cnt-transition);
}

.cnt-contact:hover {
  background-color: var(--cnt-card-bg);
}

.cnt-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(254, 93, 38, 0.08);
}

.cnt-contact-icon--max {
  background: rgba(68, 84, 235, 0.08);
}

.cnt-contact-icon--tg {
  background: rgba(41, 169, 235, 0.08);
}

.cnt-contact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cnt-contact-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--cnt-text);
  opacity: 0.5;
}

.cnt-contact-value {
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--cnt-black);
}

/* Schedule */
.cnt-schedule {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cnt-schedule-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cnt-schedule-name {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--cnt-text);
  white-space: nowrap;
}

.cnt-schedule-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(49, 45, 43, 0.2);
  min-width: 20px;
  margin-bottom: 4px;
}

.cnt-schedule-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--cnt-accent);
  white-space: nowrap;
}

.cnt-socials-wrap {
  padding: 14px 24px;
}

/* Socials */
.cnt-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cnt-socials-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--cnt-text);
  opacity: 0.45;
  white-space: nowrap;
}

.cnt-socials-icons {
  display: flex;
  gap: 8px;
}

.cnt-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform var(--cnt-transition), opacity var(--cnt-transition);
  opacity: 0.85;
}

.cnt-social:hover {
  transform: scale(1.1);
  opacity: 1;
}

.cnt-social--vk { background: #0077FF; }
.cnt-social--tg { background: #29A9EB; }
.cnt-social--yt { background: #FF0000; }

/* --- Feedback section --- */
.cnt-feedback {
  padding-bottom: 64px;
}

.cnt-feedback-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--cnt-radius-lg);
  overflow: hidden;
  background: var(--cnt-accent);
  min-height: 480px;
}

.cnt-feedback-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--cnt-accent) 30%, #7B2FF2 120%);
  color: var(--cnt-white);
}

.cnt-feedback-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  margin-bottom: 12px;
  color: var(--cnt-white);
}

.cnt-feedback-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  opacity: 0.85;
  margin-bottom: 32px;
  color: var(--cnt-white);
}

.cnt-feedback-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.cnt-feedback-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--cnt-white) !important;
  opacity: 0.9;
  transition: opacity var(--cnt-transition);
}

.cnt-feedback-link:hover { opacity: 1; }
.cnt-feedback-link svg { flex-shrink: 0; }

.cnt-form-wrap {
  background: var(--cnt-white);
  padding: 32px 36px;
  border-radius: 0 var(--cnt-radius-lg) var(--cnt-radius-lg) 0;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.cnt-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cnt-tab-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--cnt-border);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--cnt-text);
  cursor: pointer;
  transition: all var(--cnt-transition);
  white-space: nowrap;
}

.cnt-tab-btn:hover {
  border-color: var(--cnt-accent);
  color: var(--cnt-accent);
}

.cnt-tab-btn--active {
  background: var(--cnt-accent);
  border-color: var(--cnt-accent);
  color: var(--cnt-white);
}

.cnt-tab-btn--active:hover {
  background: var(--cnt-accent-hover);
  border-color: var(--cnt-accent-hover);
  color: var(--cnt-white);
}

/* Tab content */
.cnt-tab-content { display: none; }
.cnt-tab-content--active { display: flex; flex-direction: column; flex: 1; }

/* Form */
.cnt-form { display: flex; flex-direction: column; flex: 1; }

.cnt-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  flex: 1;
}

.cnt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cnt-form-input,
.cnt-form-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--cnt-radius-sm);
  border: 1px solid var(--cnt-border);
  background: var(--cnt-bg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--cnt-text);
  outline: none;
  transition: border-color var(--cnt-transition), box-shadow var(--cnt-transition);
}

.cnt-form-input::placeholder,
.cnt-form-textarea::placeholder {
  color: var(--cnt-text);
  opacity: 0.35;
}

.cnt-form-input:focus,
.cnt-form-textarea:focus {
  border-color: var(--cnt-accent);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
  background: var(--cnt-white);
}

.cnt-form-textarea {
  resize: none;
  min-height: 80px;
  overflow: hidden;
}

.cnt-form-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
}

.cnt-form-submit {
  padding: 12px 28px;
  border-radius: var(--cnt-radius-md);
  background: var(--cnt-accent);
  color: var(--cnt-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  border: none;
  cursor: pointer;
  transition: background-color var(--cnt-transition);
  white-space: nowrap;
}

.cnt-form-submit:hover { background-color: var(--cnt-accent-hover); }

.cnt-form-submit--done {
  background: var(--cnt-border);
  color: var(--cnt-text);
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Checkbox */
.cnt-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.cnt-consent input[type="checkbox"] { display: none; }

.cnt-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--cnt-border);
  background: var(--cnt-bg);
  transition: background-color var(--cnt-transition), border-color var(--cnt-transition);
  flex-shrink: 0;
  margin-top: 1px;
}

.cnt-checkbox svg { display: none; }

.cnt-consent input:checked + .cnt-checkbox {
  background: var(--cnt-accent);
  border-color: var(--cnt-accent);
}

.cnt-consent input:checked + .cnt-checkbox svg { display: block; }

.cnt-consent p {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--cnt-text);
  opacity: 0.6;
}

.cnt-consent a {
  color: var(--cnt-accent) !important;
  text-decoration: none;
}

.cnt-consent a:hover { text-decoration: underline; }

/* --- Map --- */
.cnt-map-section {
  padding-bottom: 48px;
}

.cnt-map-frame {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cnt-white);
}

.cnt-map-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 1; /* над плейсхолдером — иначе он перехватывает клики по карте */
}

.cnt-map-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--cnt-white);
  color: var(--cnt-text);
  opacity: 0.5;
  font-size: 14px;
  z-index: 0;
}

.cnt-map-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--cnt-white);
  border-radius: var(--cnt-radius-md);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--cnt-text);
}

/* --- Toast (уведомление в стиле проекта, замена браузерного alert) --- */
.cnt-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  background: var(--cnt-white);
  border: 1px solid var(--cnt-border);
  border-radius: var(--cnt-radius-md);
  box-shadow: 0 12px 32px rgba(49, 45, 43, 0.18);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--cnt-black);
  opacity: 0;
  transform: translate(-50%, -16px);
  pointer-events: none;
  transition: opacity var(--cnt-transition), transform var(--cnt-transition);
}

.cnt-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cnt-toast__icon { display: flex; flex-shrink: 0; }

/* ========== Responsive ========== */

@media screen and (max-width: 991px) {
  .cnt-info-grid { grid-template-columns: 1fr; }
  .cnt-feedback-inner { grid-template-columns: 1fr; }
  .cnt-feedback-info { padding: 32px 28px; border-radius: var(--cnt-radius-lg) var(--cnt-radius-lg) 0 0; }
  .cnt-form-wrap { border-radius: 0 0 var(--cnt-radius-lg) var(--cnt-radius-lg); padding: 28px; }
  .cnt-feedback-text { margin-bottom: 20px; }
  .cnt-feedback-contacts { flex-direction: row; gap: 24px; margin-top: 0; }
  .cnt-map-frame { height: 300px; }
}

@media screen and (max-width: 768px) {
  .cnt-root section { margin-bottom: 0; }
  .cnt-hero { padding: 64px 0 24px; }
  .cnt-hero-title { font-size: 24px; line-height: 32px; }
  .cnt-card { padding: 20px; border-radius: 20px; }
  .cnt-map-frame { height: 260px; border-radius: 16px; }
  .cnt-map-section { padding-bottom: 32px; }
  .cnt-feedback { padding-bottom: 40px; }
  .cnt-feedback-inner { min-height: auto; }
  .cnt-feedback-info { padding: 28px 24px; }
  .cnt-feedback-title { font-size: 22px; line-height: 30px; }
  .cnt-form-wrap { padding: 24px 20px; }
  .cnt-tabs { gap: 4px; margin-bottom: 20px; }
  .cnt-tab-btn { padding: 6px 14px; font-size: 13px; }
  .cnt-form-row { grid-template-columns: 1fr; }
  .cnt-form-controls { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cnt-form-submit { width: 100%; text-align: center; }
  .cnt-feedback-contacts { flex-direction: column; gap: 10px; }
}

@media screen and (max-width: 480px) {
  .cnt-hero-title { font-size: 24px; line-height: 32px; }
  .cnt-card { padding: 16px; border-radius: 16px; }
  .cnt-contact { padding: 10px 8px; gap: 12px; }
  .cnt-contact-icon { width: 40px; min-width: 40px; height: 40px; }
  .cnt-contact-value { font-size: 14px; }
  .cnt-feedback-info { padding: 24px 20px; }
  .cnt-form-wrap { padding: 20px 16px; }
  .cnt-tab-btn { padding: 6px 12px; font-size: 12px; }
}
