/*==============================================
  contacts/contacts.css — Natasha Libelle
  Стили страницы «Контакты».
  Подключать ПОСЛЕ shared/base.css.
  Без инлайн-стилей. Без !important.
==============================================*/

/* ══════════════════════════════════════════════
   ХЛЕБНЫЕ КРОШКИ
══════════════════════════════════════════════ */
.cn-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  list-style: none; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.4);
  margin-bottom: 40px;
}
.cn-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.cn-breadcrumb li + li::before { content: '/'; opacity: .3; }
.cn-breadcrumb a { color: rgba(255,255,255,.4); transition: color .2s; }
.cn-breadcrumb a:hover { color: rgba(255,255,255,.75); }
.cn-breadcrumb [aria-current="page"] { color: rgba(255,255,255,.65); }

/* ══════════════════════════════════════════════
   1. HERO — КОНТАКТЫ
   Полноэкранный hero с фоновой картинкой,
   overlay-градиент снизу (как в about).
══════════════════════════════════════════════ */
.cn-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 88px;
  overflow: hidden;
  color: #fff;
}

@media (max-width: 1100px) {
  .cn-hero { padding-top: 76px; }
}
@media (max-width: 991px) {
  .cn-hero { min-height: 90svh; }
}
@media (max-width: 767px) {
  .cn-hero { min-height: 80svh; align-items: flex-start; }
}

/* Фоновое изображение */
.cn-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cn-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Тёмный overlay с градиентом снизу — hero поверх фото, сохраняем */
.cn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 9, 18, 0.30) 0%,
    rgba(12, 9, 18, 0.45) 40%,
    rgba(12, 9, 18, 0.88) 100%
  );
}

/* Декоративная линия под хедером */
.cn-hero::after {
  content: '';
  position: absolute; top: 68px; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,159,224,.25), transparent);
  z-index: 3;
}
@media (max-width: 1100px) { .cn-hero::after { top: 56px; } }

.cn-hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1520px;
  margin: 0 auto;
  padding: 120px var(--w-pad) 80px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 72px;
  align-items: end;
}

@media (max-width: 1100px) {
  .cn-hero__inner { grid-template-columns: 1fr 380px; gap: 48px; }
}

@media (max-width: 767px) {
  .cn-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 96px var(--w-pad) 56px;
    align-items: start;
  }
}

/* ── Левая колонка: заголовок ── */
.cn-hero__left {
  padding-bottom: 8px;
}

/* hero eyebrow: поверх тёмного фото — accent-l ок */
.cn-hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--c-accent-l);
  margin-bottom: 28px;
}
.cn-hero__eyebrow-line {
  width: 36px; height: 1px;
  background: var(--c-accent-l); opacity: .4;
  flex-shrink: 0;
}

.cn-hero__title {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  color: #fff;
  margin: 0 0 32px;
  letter-spacing: -.01em;
}
.cn-hero__title em {
  font-style: italic;
  color: var(--c-accent-l);
}

.cn-hero__left > p {
  font-size: 17px;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 0 48px;
}

/* Часы работы */
.cn-hours {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 40px;
}
.cn-hours__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: rgba(255,255,255,.5);
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cn-hours__row:last-child { border-bottom: none; }
.cn-hours__day { color: rgba(255,255,255,.7); }
.cn-hours__time { font-size: 13px; }


/* Кнопки-действия в hero */
.cn-hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── Правая колонка: карточки контактов ── */
.cn-contact-cards {
  display: flex; flex-direction: column; gap: 2px;
}

.cn-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px 28px;
  transition: background .2s, border-color .2s;
}
.cn-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(196,159,224,.2);
}

.cn-card p:first-child {
  font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 8px;
}

.cn-card__value {
  font-size: 20px; font-weight: 400;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  transition: color .2s;
}
a.cn-card__value:hover { color: rgba(255,255,255,.85); }

.cn-card p:last-child {
  font-size: 13px; color: rgba(255,255,255,.35);
  margin-top: 4px;
}

/* Соцсети в карточке */
.cn-card__soc {
  display: flex; gap: 8px; margin-top: 2px;
}
.cn-card__soc-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-size: 14px; color: rgba(255,255,255,.55);
  transition: color .2s;
}
.cn-card__soc-link:hover { color: #fff; }
.cn-card__soc-link img {
  width: 16px; height: 16px;
  filter: brightness(0) invert(1);
  opacity: .5;
  transition: opacity .2s;
}
.cn-card__soc-link:hover img { opacity: .9; }

/* ══════════════════════════════════════════════
   2. СЕКЦИЯ КАРТЫ
══════════════════════════════════════════════ */
.cn-map-section {
  background: #f8f2f7;
  position: relative;
}

.cn-map-section__head {
  max-width: 1520px;
  margin: 0 auto;
  padding: 64px var(--w-pad) 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cn-map-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; color: #1c1220;
  line-height: 1.1; letter-spacing: 0;
  margin: 0;
}
.cn-map-section__head p {
  font-size: 14px; color: rgba(28,18,32,.45);
  margin-top: 6px;
}

.cn-map-section__link {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}
.cn-map-section__link:hover { opacity: .7; }
.cn-map-section__link svg { transition: transform .2s; }
.cn-map-section__link:hover svg { transform: translateX(4px); }

/* Контейнер карты Яндекс.Конструктор */
.cn-map-wrap {
  width: 100%;
  line-height: 0;
  font-size: 0;
}
.cn-map-wrap > * {
  display: block;
  width: 100%;
}

/* Нижний блок под картой: плашка адреса */
.cn-map-overlay {
  max-width: 1520px;
  margin: 0 auto;
  padding: 40px var(--w-pad) 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .cn-map-overlay { grid-template-columns: 1fr; gap: 16px; padding: 32px var(--w-pad) 48px; }
}

.cn-map-fact {
  border-left: 1px solid rgba(107,63,143,.18);
  padding-left: 20px;
}
.cn-map-fact p:first-child {
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(28,18,32,.4);
  margin-bottom: 6px;
}
.cn-map-fact p:last-child {
  font-size: 15px; color: rgba(28,18,32,.75);
  line-height: 1.5;
}
.cn-map-fact p:last-child a {
  color: rgba(28,18,32,.75);
  text-decoration: none;
  transition: color .2s;
}
.cn-map-fact p:last-child a:hover { color: #1c1220; }

/* ══════════════════════════════════════════════
   3. СЕКЦИЯ «КАК ДОБРАТЬСЯ»
══════════════════════════════════════════════ */
.cn-route {
  background: #fff;
  padding: 80px 0;
}

.cn-route__inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 var(--w-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 767px) {
  .cn-route { padding: 56px 0; }
  .cn-route__inner { grid-template-columns: 1fr; gap: 40px; }
}

.cn-route__inner > div > p:first-child {
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 16px;
}

.cn-route__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; color: #1c1220;
  line-height: 1.1; letter-spacing: 0;
  margin: 0 0 20px;
}

.cn-route__inner > div > p:nth-child(3) {
  font-size: 16px; color: rgba(28,18,32,.6);
  line-height: 1.75;
  margin: 0 0 32px;
}

/* Транспортные варианты */
.cn-transport-list {
  display: flex; flex-direction: column; gap: 16px;
}
.cn-transport-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px;
  background: #f7f4f0;
  border-radius: 10px;
}
.cn-transport-item__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: rgba(107,63,143,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cn-transport-item__icon svg { color: var(--c-accent); }
.cn-transport-item div p:first-child {
  font-size: 14px; font-weight: 600; color: #1c1220;
  margin-bottom: 3px;
}
.cn-transport-item div p:last-child {
  font-size: 13px; color: rgba(28,18,32,.5);
  line-height: 1.5;
}

/* Правая колонка — фото здания */
.cn-route__photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f0ece8;
  min-height: 400px;
}
.cn-route__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════
   4. СЕКЦИЯ «НАПИШИТЕ НАМ»
══════════════════════════════════════════════ */
.cn-form-section {
  background: #f8f2f7;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.cn-form-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 70% 50%, rgba(107,63,143,.06) 0%, transparent 65%);
  pointer-events: none;
}

.cn-form-section__inner {
  position: relative; z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 var(--w-pad);
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1000px) {
  .cn-form-section__inner { grid-template-columns: 1fr 460px; gap: 48px; }
}
@media (max-width: 767px) {
  .cn-form-section { padding: 56px 0 72px; }
  .cn-form-section__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Левая: текст */
.cn-form-section__inner > div > p:first-child {
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 20px;
}
.cn-form-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300; color: #1c1220;
  margin: 0 0 20px;
  line-height: 1.1; letter-spacing: 0;
}
.cn-form-section__inner > div > p:nth-child(3) {
  font-size: 16px; color: rgba(28,18,32,.55);
  line-height: 1.75; margin: 0 0 40px;
}

/* Контактные иконки */
.cn-contact-quick {
  display: flex; flex-direction: column; gap: 16px;
}
.cn-contact-quick__item {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  color: rgba(28,18,32,.65);
  font-size: 15px;
  transition: color .2s;
}
.cn-contact-quick__item:hover { color: #1c1220; }
.cn-contact-quick__item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid rgba(107,63,143,.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  transition: border-color .2s, background .2s;
}
.cn-contact-quick__item:hover .cn-contact-quick__item-icon {
  border-color: rgba(107,63,143,.35);
  background: rgba(107,63,143,.06);
}

/* Форма */
.cn-form {
  background: #fff;
  border: 1px solid rgba(107,63,143,.12);
  border-radius: 16px;
  padding: 40px;
}
@media (max-width: 600px) { .cn-form { padding: 28px 20px; } }

.cn-form__title {
  font-size: 18px; font-weight: 700; color: #1c1220;
  margin: 0 0 28px;
}

.cn-form__field {
  margin-bottom: 16px;
}
.cn-form__label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(28,18,32,.45);
  margin-bottom: 8px;
}
.cn-form__input,
.cn-form__textarea {
  width: 100%; box-sizing: border-box;
  background: #faf7f3;
  border: 1.5px solid rgba(28,18,32,.12);
  border-radius: 8px;
  color: #1c1220;
  font-family: inherit; font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.cn-form__input::placeholder,
.cn-form__textarea::placeholder { color: rgba(28,18,32,.3); }
.cn-form__input:focus,
.cn-form__textarea:focus {
  border-color: var(--c-accent);
  background: #fff;
}
.cn-form__textarea {
  min-height: 120px; resize: vertical; line-height: 1.6;
}

.cn-form__select {
  width: 100%; box-sizing: border-box;
  background: #faf7f3;
  border: 1.5px solid rgba(28,18,32,.12);
  border-radius: 8px;
  color: #1c1220;
  font-family: inherit; font-size: 15px;
  padding: 14px 16px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(28,18,32,.35)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.cn-form__select option { background: #fff; color: #1c1220; }
.cn-form__select:focus { border-color: var(--c-accent); }

.cn-form__privacy {
  font-size: 12px; color: rgba(28,18,32,.4);
  margin: 16px 0 0;
  line-height: 1.5;
}
.cn-form__privacy a { color: var(--c-accent); text-decoration: underline; }
.cn-form__privacy a:hover { color: #52307a; }

/* Успешное отправление */
.cn-form__success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.cn-form__success-icon {
  width: 48px; height: 48px;
  background: rgba(107,63,143,.1);
  border: 1px solid rgba(107,63,143,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cn-form__success-icon svg { color: var(--c-accent); }
.cn-form__success-title {
  font-size: 18px; font-weight: 700; color: #1c1220;
  margin-bottom: 8px;
}
.cn-form__success-text {
  font-size: 14px; color: rgba(28,18,32,.5);
}


