﻿/* ==========================================================================
   Contacts Page CSS — Единый файл стилей страницы «Контакты»
   Подключает общую базу (shared-base.css) и содержит все стили страницы
   ========================================================================== */
@import url("shared-base.css");

/* ==========================================================================
   1. Хлебные крошки
   ========================================================================== */
.breadcrumbs {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breadcrumbs__link {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: var(--text-white);
}

.breadcrumbs__separator {
  color: var(--text-muted);
  user-select: none;
}

.breadcrumbs__current {
  color: var(--accent-green);
  font-weight: 700;
}

/* ==========================================================================
   2. Контактная секция (Contact Section)
   ========================================================================== */
.contacts-section {
  padding: 120px 0 60px 0;
  position: relative;
  z-index: 5;
  background-color: var(--bg-main);
}

.contacts-section .container {
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
}

/* ==========================================================================
   3. Карточки контактов (Contact Cards Grid)
   ========================================================================== */
.contact-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background-color: rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.0) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top center, rgba(210, 236, 43, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 236, 43, 0.3);
  box-shadow: 0 10px 30px rgba(210, 236, 43, 0.15);
}

.contact-card:hover::before {
  opacity: 1;
}

/* Иконка контакта */
.contact-card__icon {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  background: rgba(210, 236, 43, 0.06);
  border: 1.5px solid rgba(210, 236, 43, 0.35);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(210, 236, 43, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card__icon svg {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(210, 236, 43, 0.35);
  border-color: var(--accent-green);
}

/* Контейнер заголовка и информации */
.contact-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Заголовок карточки */
.contact-card__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  line-height: 1.2;
}

/* Информация (номер, email, адрес) */
.contact-card__info {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Кнопка-ссылка в карточке */
.contact-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text-white);
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-main), var(--bg-main)), var(--accent-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin-top: auto;
  font-family: var(--font-main);
}

.contact-card__btn:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
  box-shadow:
    0 0 25px rgba(231, 217, 48, 0.25),
    0 0 10px rgba(108, 189, 64, 0.25);
}

.contact-card__btn:active {
  transform: scale(0.98);
}

.contact-card__btn .arrow {
  transition: transform 0.3s ease;
  font-size: 16px;
}

.contact-card__btn:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   4. Получите консультацию специалиста (Consultation)
      Стили скопированы из style.css, т.к. consultation определён только там
   ========================================================================== */
.consultation {
  width: 100%;
  padding: 50px 0;
  background: var(--accent-gradient);
  border-radius: 0;
  position: relative;
  z-index: 5;
  color: #0b0e0f;
  box-shadow: 0 0 50px rgba(210, 236, 43, 0.4);
}

.consultation__container {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
}

.consultation__card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.consultation__info {
  display: flex;
  flex-direction: column;
}

.consultation__title {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: #0b0e0f;
  letter-spacing: -0.3px;
}

.consultation__desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(11, 14, 15, 0.8);
  margin: 0;
}

.consultation__form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.consultation__input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.consultation__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.consultation__input:hover,
.consultation__input:focus {
  border-color: #0b0e0f;
  background: rgba(0, 0, 0, 0.35);
}

.consultation__btn {
  background: #0b0e0f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, background-color 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consultation__btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.consultation__policy {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(11, 14, 15, 0.75);
  cursor: pointer;
}

.consultation__checkbox {
  accent-color: #0b0e0f;
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

/* ==========================================================================
   5. Адаптивные стили
   ========================================================================== */

/* Планшет — 992px */
@media (max-width: 992px) {
  .contacts-section {
    padding: 110px 0 40px 0;
  }

  .contacts-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .contact-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .breadcrumbs {
    padding-top: 0;
    margin-bottom: 16px;
  }

  /* Консультация — планшет */
  .consultation.consultation {
    padding: 20px 20px;
    background: transparent;
    box-sizing: border-box;
    box-shadow: none;
  }

  .consultation .consultation__container {
    width: 90%;
    max-width: 100%;
    padding: 0;
  }

  .consultation .consultation__card {
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    background: var(--accent-gradient);
    padding: 28px 20px;
    grid-template-columns: 1fr;
    gap: 24px;
    box-shadow: 0 0 40px rgba(210, 236, 43, 0.4);
  }

  .consultation__form {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation__input:nth-child(3),
  .consultation__btn {
    grid-column: 1 / -1;
  }
}

/* Мобильный — 576px (Нативный мобильный интерфейс) */
@media (max-width: 576px) {
  .contacts-section {
    padding: 85px 0 24px 0;
  }

  .contacts-section .container {
    padding: 0 16px;
  }

  .breadcrumbs {
    padding-top: 0;
    margin-bottom: 14px;
  }

  .breadcrumbs__list {
    font-size: 11px;
  }

  .contact-cards__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  /* Нативные мобильные плашки-карточки (Touch list items) */
  .contact-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    background-color: rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.0) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    gap: 16px;
  }

  .contact-card:active {
    transform: scale(0.98);
    border-color: rgba(210, 236, 43, 0.4);
  }

  .contact-card__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(210, 236, 43, 0.08);
    border: 1px solid rgba(210, 236, 43, 0.3);
    box-shadow: 0 0 12px rgba(210, 236, 43, 0.15);
  }

  .contact-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .contact-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
  }

  .contact-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
    line-height: 1.2;
  }

  .contact-card__info {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    min-height: auto;
    line-height: 1.35;
    text-align: left;
    justify-content: flex-start;
  }

  .contact-card__btn {
    display: none;
  }

  /* Консультация — 1 в 1 с главной страницей на мобильном */
  .consultation.consultation {
    padding: 15px 15px;
    background: transparent;
    box-sizing: border-box;
    box-shadow: none;
  }

  .consultation .consultation__card {
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
    background: var(--accent-gradient);
    padding: 24px 16px;
    box-shadow: 0 0 40px rgba(210, 236, 43, 0.4);
  }

  .consultation__title {
    font-size: 24px;
  }

  .consultation__form {
    grid-template-columns: 1fr;
  }

  .consultation__input:nth-child(3),
  .consultation__btn {
    grid-column: auto;
  }
}
