
/* Общие настройки и сброс отступов */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Палитра цветов — единая для всего сайта */
:root {
  --light-bg: #f5f5f5; /* Светло‑серый фон */
  --pantone-289: #0072ce; /* PANTONE 289 */
  --pantone-535: #5d6d8c; /* PANTONE 535 */
  --pantone-656: #e54c21; /* PANTONE 656 */
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--pantone-535);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
  min-width: 320px;
}

html {
  scroll-behavior: smooth;
}

/* Шапка сайта */
.logo-with-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0; /* чтобы блок с лого+названием не сплющивался */
}

.logo-img {
  height: 3em;       /* крупный логотип; можно менять (2.5em, 3.2em и т. п.) */
  width: auto;
  object-fit: contain;
  border-radius: 6px; /* опционально, если хотите чуть мягче углы */
}

h1 {
  font-size: 2.4rem; /* чуть крупнее, чтобы баланс с логотипом был гармоничным */
  margin: 0;
  color: var(--pantone-289);
  white-space: nowrap; /* название не будет разрываться посередине */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: white;
  border-bottom: 2px solid var(--light-blue-gray, #cfdbe5);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;       /* критично: позволяет меню сжиматься корректно */
  flex: 1;            /* меню занимает всё свободное место */
}





.dropdown-content {
  position: absolute;
  top: 100%;           /* сразу под .contacts-short */
  right: 0;             /* прижать к правому краю родителя */
  margin-top: 1rem;
  width: 100%;
  max-width: 300px;
  background: white;
  border: 1px solid rgba(74, 90, 122, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  z-index: 101;
  display: none;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.map-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(74, 90, 122, 0.1);
}

.map-frame {
  border: none;
  border-radius: 8px;
  width: 100%;
}

.toggle-btn, .toggle-map-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--pantone-289, #0072ce);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.toggle-btn:hover, .toggle-map-btn:hover {
  background-color: rgba(0, 114, 206, 0.08);
  border-color: rgba(0, 114, 206, 0.3);
}

.btn-arrow {
  float: right;
  font-size: 0.8rem;
}


.logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--pantone-289);
  text-shadow: 0 0 8px rgba(0, 114, 206, 0.4);
}
.logo-img {
  height: 7em; /* Увеличили с 1.2em до 1.8em — теперь он крупнее */
  width: auto;
  border-radius: 4px;
}



/* Отступ для якорей */
section:target {
  margin-top: -60px;
  padding-top: 60px;
}

/* Главный блок */
.hero {
  text-align: center;
  padding: 3rem 5%;
  background: linear-gradient(135deg, var(--light-bg), var(--pantone-535));
  color: var(--pantone-535);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pantone-289);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--pantone-535);
}

/* Кнопка */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: var(--pantone-289);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-color: var(--pantone-656);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Секция услуг */
.услуги {
  padding: 3rem 5%;
}

.услуги h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--pantone-289);
  font-size: 2.4rem;
}

.services {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-blue);
  font-size: 2.4rem;
}
/* Общие настройки и сброс отступов */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Палитра цветов — единая для всего сайта */
:root {
  --light-bg: #f8f9fa; /* Светло‑серый фон */
  --dark-blue: #2c3e50; /* Тёмно‑синий */
  --light-blue-gray: #6c9ebf; /* Светло‑сине‑серый */
  --gray-blue: #a0c4d9; /* Серо‑голубой */
  --light-gray-blue: #e0eaf1; /* Светло‑серо‑голубой */
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-blue);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
  min-width: 320px;
}

html {
  scroll-behavior: smooth;
}

/* Шапка сайта */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: white;
  border-bottom: 2px solid var(--light-blue-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-with-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h1 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--dark-blue);
  text-shadow: 0 0 8px rgba(44, 62, 80, 0.2);
}



/* Отступ для якорей */
section:target {
  margin-top: -60px;
  padding-top: 60px;
}

/* Главный блок */
.hero {
  text-align: center;
  padding: 3rem 5%;
  background: linear-gradient(135deg, var(--light-bg), var(--gray-blue));
  color: var(--dark-blue);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--dark-blue);
}

/* Кнопка */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: var(--dark-blue);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-color: var(--light-blue-gray);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Секция услуг */
.услуги {
  padding: 3rem 5%;
}

.услуги h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-blue);
  font-size: 2.4rem;
}

/* Контейнер карточек (оставляем как есть) */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Карточка (оставляем стиль карточек услуг) */
.card-flex {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(108, 158, 191, 0.3);
}

.card-flex:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.card-content {
  padding: 1.8rem;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 1.2rem;
  color: var(--dark-blue);
  font-size: 1.4rem;
}

.card-content p {
  color: var(--dark-blue);
  line-height: 1.7;
}

.card-button {
  width: 100%;
  padding: 0.9rem;
  background-color: var(--light-blue-gray);
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  margin-top: auto;
  border-top: 1px solid rgba(44, 62, 80, 0.3);
}

.card-button:hover {
  background-color: var(--gray-blue);
  color: white;
  transform: scale(1.03);
}

/* Секция «О нас» */
.about {
  padding: 3rem 5%;
  margin: 2rem 0;
  border-radius: 12px;
  background: var(--light-gray-blue);
  backdrop-filter: blur(5px);
}

.about h1 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--dark-blue);
  font-size: 2.2rem;
}

.about p {
  margin-bottom: 1.5rem;
  text-indent: 40px;
  color: var(--dark-blue);
  line-height: 1.8;
}

/* Задачи компании */
.tasks-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30))
}
/* Секция «О нас» */
.about {
  padding: 3rem 5%;
  margin: 2rem 0;
  border-radius: 12px;
  background: rgba(93, 109, 140, 0.7);
  backdrop-filter: blur(5px);
  
}

.about h1 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--pantone-289);
  font-size: 2.2rem;
}

.about p {
  margin-bottom: 1.5rem;
  text-indent: 40px;
  color: var(--pantone-535);
  line-height: 1.8;
}

.features {
  max-width: 600px;
  margin: 2.5rem
}
.tasks-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.task-card {
  display: flex;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
}

.task-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.task-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.task-content h3 {
  color: var(--pantone-289);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.task-content p {
  color: var(--pantone-535);
  line-height: 1.6;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .task-card {
    flex-direction: column;
    text-align: center;
  }
  
  .task-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
  }
}.logo-with-title {
  display: flex;
  align-items: center;
  gap: 1rem; /* Отступ между логотипом и текстом */
}


h1 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--pantone-289); /* Цвет из вашей цветовой схемы */
}


/* Форма заявки на консультацию */
.consultation {
  padding: 4rem 5%;
  background-color: white;
  margin: 3rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.consultation h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  color: var(--dark-blue);
  position: relative;
}

.consultation h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--light-blue-gray);
  margin: 1rem auto;
  border-radius: 2px;
}

.consultation-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--light-gray-blue);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--dark-blue);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--light-blue-gray);
  box-shadow: 0 0 0 3px rgba(108, 158, 191, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(44, 62, 80, 0.6);
}

.form-group select {
  cursor: pointer;
}

/* Стили для кнопки в форме */
.consultation .btn {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* Раздел контактов */
.contacts {
  padding: 4rem 5%;
  background: linear-gradient(135deg, var(--light-bg), var(--light-gray-blue));
  margin: 3rem 0;
  border-radius: 12px;
}

.contacts h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  color: var(--dark-blue);
  position: relative;
}

.contacts h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--light-blue-gray);
  margin: 1rem auto;
  border-radius: 2px;
}

.contact-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--light-blue-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--dark-blue);
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark-blue);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--light-blue-gray);
  transform: translateY(-3px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .consultation,
  .contacts {
    padding: 2rem 3%;
  }
  
  .consultation h2,
  .contacts h1 {
    font-size: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.2rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: left;
  }
  
  .contact-icon {
    margin-bottom: 0.5rem;
  }
}

.card-button {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--light-blue-gray);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    margin-top: auto;
    border-top: 1px solid rgba(44, 62, 80, 0.3);
    text-align: center; /* Центрируем текст внутри кнопки */
    text-decoration: none; /* Убираем подчёркивание гиперссылки */
    display: inline-block; /* Обеспечивает корректное применение width и padding */
}

/* Стили для состояния наведения (сохраняем эффект как у кнопки) */
.card-button:hover {
    background-color: var(--gray-blue);
    color: white;
    transform: scale(1.03);
    text-decoration: none; /* Гарантируем отсутствие подчёркивания при наведении */
}

/* Убираем обводку при фокусе (например, при навигации с клавиатуры) */
.card-button:focus {
    outline: none
}
.logo-link {
    text-decoration: none; /* Убираем подчёркивание */
    color: inherit; /* Наследуем цвет от родителя */
}

.logo-link:hover {
    text-decoration: underline; /* Можно добавить подчёркивание при наведении */
    /* Или другой эффект, если нужно */
}
.no-underline {
    text-decoration: none; /* Убираем подчёркивание */
    color: inherit; /* Наследуем цвет от родительского элемента */
    cursor: default; /* Курсор остаётся стандартным (как для текста) */
}

/* Убираем стили для всех состояний ссылки */
.no-underline:hover,
.no-underline:focus,
.no-underline:active {
    text-decoration: none;
    color: inherit;
    outline: none; /* Убираем контур фокуса */
}

.services-grid {
  grid-template-columns: 1fr; /* Одна колонка на мобильных */
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem 1rem;
}

.service-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
}

.services-list li {
  padding: 0.5rem 0;
}

.hero-content-enhanced {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Вступление к услугам */
.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 1.5rem auto 3rem;
  color: var(--pantone-535);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Сетка услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;

  /* Новые свойства, чтобы текст не «съезжал» */
  display: flex;
  flex-direction: column;
  min-height: 100%;           /* карточка растягивается по высоте, выравнивая контент */
  box-sizing: border-box;     /* padding не увеличивает ширину сверх заданной */
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Иконка услуги */
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 114, 206, 0.1);
  border-radius: 50%;
}

/* Заголовок услуги */
.service-card h3 {
  color: var(--pantone-289);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* Список услуг */
.services-list {
  list-style: none;
  padding-left: 0;
}

.services-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 114, 206, 0.1);
  color: var(--pantone-535);
  position: relative;
}

.services-list li:last-child {
  border-bottom: none;
}

/* Добавление маркера перед пунктами */
.services-list li::before {
  content: "•";
  color: var(--pantone-656);
  margin-right: 0.8rem;
  font-weight: bold;
}
/* Сетка услуг — крупнее, с хорошим отступом */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    padding: 3rem 5%;
}

/* Карточка услуги — заметно больше, фиксированная высота «закрытой» части,
   а раскрытая часть просто показывает заранее подготовленный блок */
.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 240px; /* фиксируем высоту «закрытой» карточки */
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* Иконка — чуть крупнее, с мягким фоном */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-radius: 50%;
}

/* Заголовок карточки */
.service-card h3 {
    color: var(--pantone-289);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Блок с раскрывающимся текстом — это и есть «занавес» */
.service-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 2.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* При наведении — «занавеска» выезжает плавно, без дёрганий */
.service-card:hover .service-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Список услуг внутри «занавески» */
.services-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.services-list li {
    padding: 0.6rem 0;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600; /* жирный текст */
    position: relative;
    padding-left: 1.8rem; /* место под галочку */
}

/* Галочка вместо точки */
.services-list li::before {
    content: "✓";
    color: var(--pantone-289); /* цвет галочки в вашей палитре */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* Чтобы на мобильных не ломалось, можно чуть уменьшить высоту карточки */
@media (max-width: 640px) {
    .service-card {
        height: 220px;
        grid-column: 1 / -1;
    }
    .service-icon {
        font-size: 2.4rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
}
/* Стили для блока контактов в шапке */
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contacts-short {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;            /* уменьшили отступ, чтобы блок стал компактнее */
  flex-shrink: 0;           /* не сжимается */
  position: relative;
  display: flex;            /* важно: делаем сам блок flex, чтобы элементы внутри были ровно */
  flex-direction: column;
  gap: 0rem;             /* отступы между строками внутри контактов */
  align-items: stretch;      /* строки по ширине блока */
}

.info-line {
  margin-bottom: 0.5rem;
  color: var(--pantone-535);
  font-size: 0.9rem;
  line-height: 1.4;
}

.map-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 114, 206, 0.1);
}

.map-frame {
  border: none;
}

.toggle-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  background-color: var(--dark-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.toggle-btn:hover {
  background-color: var(--pantone-656);
}

.btn-text {
  display: inline-block;
  margin-right: 0.5rem;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Состояние "раскрыто" */
.contacts-short.expanded {
  max-height: 400px; /* Ограничение, чтобы не улетало слишком высоко */
  padding-bottom: 1.5rem;
}

.contacts-short.expanded .toggle-btn {
  background-color: var(--pantone-656);
}

.contacts-short.expanded .btn-arrow {
  transform: rotate(180deg);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .header-right {
    flex-direction: column;
    gap: 1rem;
  }
  .contacts-short {
    margin-top: 1rem;
  }
}

.contact-link {
  color: var(--pantone-535);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.7;
  cursor: pointer;
}
/* Обертка иконки в цитате — аккуратный кружок */
.quote-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 114, 206, 0.1);
  color: var(--pantone-289);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Сама цитата — чистый, «воздушный» блок */
.quote-text {
  margin: 0;
  padding: 1.8rem 2rem;
  background: #ffffff;
  border-left: 5px solid var(--pantone-289);
  font-style: italic;
  color: var(--pantone-535);
  line-height: 1.7;
  font-size: 1.1rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 0 10px 10px 0;
}

/* Автор цитаты — скромно, снизу */
.quote-author {
  display: block;
  margin-top: 1.2rem;
  text-align: right;
  font-weight: 600;
  color: var(--pantone-289);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Для quote-card отключаем «занавеску» (чтобы не выезжала лишняя плашка) */
.quote-card {
  height: auto !important;       /* отменяем фиксированную высоту */
  overflow: visible !important;  /* чтобы блок не обрезался */
  box-shadow: none;               /* убираем тень карточки — её даёт сама цитата */
  border: none;                    /* убираем рамку карточки */
  cursor: default;                 /* убираем «эффект карточки» */
}
.quote-card:hover {
  transform: none;
  box-shadow: none;
}
/* Убираем скрытие/показ service-info внутри цитаты, если оно есть */
.quote-card .service-info {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: none;            /* чтобы не мешал при наведении */
}

.round-image {
  width: 100px;
  height: 100px;
  object-fit: cover;       /* картинка заполняет квадрат без искажений */
  border-radius: 70%;      /* делает квадрат круглым */
  display: block;
}
.round-image1 {
  width: 70px;
  height: 70px;
  object-fit: cover;       /* картинка заполняет квадрат без искажений */
  border-radius: 70%;      /* делает квадрат круглым */
  display: block;
}

.service-card22 {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 240px;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  border: 1px solid #e2e8f0;

  /* Уменьшаем базовый размер шрифта в карточке */
  font-size: 1rem; /* ≈ в 1.5 раза меньше стандартного 1rem */
}

.prices-section-full12 {
  width: 100%;
  max-width: 100%;
  padding: 3rem 5%;           /* боковые отступы для читаемости; если нужно «в край» — поставь 0 */
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.92); /* лёгкий белый фон, чтобы не сливалось с общим фоном */
}

.prices-notes12 {
  width: 100%;
  max-width: 960px;          /* комфортная ширина текста даже на больших экранах */
  margin: 0 auto;             /* центрируем блок внутри секции */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid rgba(108, 158, 191, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.notes-title12 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem 0;
  font-size: 1.35rem;
  color: var(--dark-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.note-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.notes-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--pantone-289), transparent);
  margin-bottom: 1.75rem;
}

.prices-list12 {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.prices-list12 li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--pantone-535);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Галочка вместо точки */
.prices-list12 li::before {
  content: "✓";
  color: var(--pantone-289);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

.prices-list12 li:last-child {
  margin-bottom: 0;
}

.map-container {
  width: 100%;
  margin-top: 1rem;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 400px; /* Меняй это значение, если нужна другая высота */
  border-radius: 12px; /* Скругление как у твоих карточек */
  overflow: hidden;   /* ГЛАВНОЕ: обрезает всё, что вылезает */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Лёгкая тень для красоты */
}

.map-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10; /* Поверх iframe, чтобы перехватывать клик */
  display: block;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: none; /* Убирает стандартную рамку у iframe */
  display: block; /* Убирает лишние отступы снизу */
}
  * Стили для блока согласия */
.consent-block {
    margin: 1.5rem 0 2rem;
    padding: 1rem;
    background-color: var(--light-bg, #f5f7fa);
    border-radius: 12px;
    border: 1px solid rgba(108, 158, 191, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    cursor: pointer;
    color: var(--pantone-535, #5a6b82);
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pantone-289, #3b82f6); /* цвет галочки под твой синий */
    margin-top: 3px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .checkbox-label {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkbox-text {
        margin-top: 6px;
    }
}

.site-footer {
  text-align: center;
  /* Было 10rem — стало 3rem: фон начинается ближе к контенту */
  padding: 3rem 5%;
  background-color: #e3f2fd;
  color: #1e293b;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  /* Убрали padding, чтобы не было двойного отступа вместе с .site-footer */
  padding: 0;
}

/* Блок дисклеймера */
.footer-disclaimer {
  width: 100%;
  max-width: 800px;
  text-align: center;
  line-height: 1.6;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-disclaimer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #1e293b;
}

/* Блок ссылок */
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.footer-link {
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--footer-accent, #d1a354);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copyright {
  color: #334155;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #cbd5e1;
  padding-top: 1rem;
}


@media (max-width: 768px) {
  /* Шапка: логотип и меню друг под другом, контакты — отдельным блоком */
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .logo-with-title {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 1.8rem; /* чуть меньше на мобильном */
    text-align: center;
  }

  .logo-img {
    height: 3.5rem; /* крупный, но не вылезает за экран */
    width: auto;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }





  .info-line {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .toggle-btn {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
  }

  /* Главный блок — уменьшаем отступы и шрифты */
  .hero {
    padding: 2rem 3%;
  }

  .hero h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    max-width: 100%;
  }

  /* Карточки услуг: одна в ряд, фиксированная высота убирается, чтобы текст не обрезался */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 3%;
  }

  .service-card {
    height: auto; /* важно: убираем фиксированную высоту, чтобы «занавеска» не ломалась */
    padding: 1.5rem;
    display: block; /* отключаем flex-обёртку, чтобы layout был проще */
  }

  .service-info {
    position: static; /* на мобильном «занавеска» всегда видна */
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-top: 1px solid rgba(108, 158, 191, 0.2);
    margin-top: 1rem;
  }

  .service-card:hover .service-info {
    /* на мобильном hover почти не работает, поэтому оставляем статичным */
    transform: none;
  }

  .service-icon {
    font-size: 2.4rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  /* Список услуг внутри карточки — оставляем галочки, уменьшаем шрифт */
  .services-list li {
    font-size: 0.9rem;
    padding-left: 1.4rem;
  }

  /* Форма консультации: уменьшаем отступы, поля на всю ширину */
  .consultation {
    padding: 2rem 3%;
  }

  .consultation h2 {
    font-size: 2rem;
  }

  .consultation-form {
    max-width: 100%;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  .checkbox-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkbox-text {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .consent-block {
    padding: 1rem;
    margin: 1.2rem 0 1.8rem;
  }

  .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Блок контактов: иконки и текст друг под другом */
  .contact-item {
    flex-direction: column;
    text-align: left;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Карта: на мобильном — на всю ширину, высота чуть меньше */
  .map-wrapper {
    height: 300px;
  }

  /* Секция «О нас» и задачи */
  .about {
    padding: 2rem 3%;
  }

  .about p {
    text-indent: 0; /* убираем большой отступ на мобильном */
  }

  .tasks-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .task-card {
    flex-direction: column;
    text-align: center;
  }

  .task-icon {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .task-content h3 {
    font-size: 1.3rem;
  }

  /* Цены: список на всю ширину, компактнее */
  .prices-section-full12 {
    padding: 2rem 3%;
  }

  .prices-notes12 {
    padding: 1.5rem;
    margin: 0 0 1rem;
  }

  .notes-title12 {
    font-size: 1.2rem;
  }

  .prices-list12 li {
    font-size: 0.9rem;
    padding-left: 1.6rem;
  }

 
  .footer-content {
    padding: 1rem;
    text-align: center;
  }



  .footer-link:last-child {
    border-bottom: none;
  }


  /* Цитата: чуть компактнее */
  .quote-icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .quote-text {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }

  .quote-author {
    font-size: 0.9rem;
    text-align: center;
  }
}

h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --btn-size: 44px;
  --btn-radius: 6px;
  --border-thick: 3px;
  --border-color: #000;
  --icon-scale: 0.7;
}

.header-wrapper {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 16px;               /* небольшой зазор между кнопками и контактами */
  flex-wrap: wrap;
}

/* Меню по центру: flex:1 занимает всё свободное место */
.nav-center-wrapper {
  flex: 1;
  text-align: center;
  min-width: 0;            /* важно, чтобы не ломало ширину на узких экранах */
}

.nav ul {
  list-style: none;
  display: inline-flex;
  gap: 32px;
  flex-wrap: wrap;
}

.nav li { display: block; }

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0072ce;
  transition: width 0.25s ease;
}

.nav a:hover { color: #0072ce; }
.nav a:hover::after { width: 100%; }


/* Контейнер: по центру, отступ снизу */
.centered-oval-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
  margin-bottom: 40px;
}

/* Овальная кнопка: шире, красивее + неоновая обводка */
.oval-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 70px;
  border-radius: 999px;

  /* Базовая рамка (почти незаметная) — чтобы не было «скачка» толщины при hover */
  border: 1px solid rgba(224, 224, 224, 0.7);

  background-color: #ffffff;
  color: #333;
  text-decoration: none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.3;
}

/* Неоновая обводка через box-shadow — это стабильнее, чем border + transition */
.oval-btn:hover {
  border-color: var(--pantone-289, #0072ce);
  background-color: #f9fbfd;
  color: var(--pantone-289, #0072ce);

  /* Синевато-неоновая обводка: цвет, размытие, распространение */
  box-shadow:
    0 0 8px rgba(0, 114, 206, 0.4),
    0 0 16px rgba(0, 114, 206, 0.3),
    0 6px 20px rgba(0, 114, 206, 0.22);

  transform: translateY(-3px);
}

/* Анимация: подчёркивание из центра при наведении */
.oval-btn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--pantone-289, #0072ce);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.oval-btn:hover::after {
  width: 85%;
}

/* Иконка */
.mess-icon {
  width: 22px;
  height: 22px;
  margin-right: 14px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.oval-btn:hover .mess-icon {
  transform: scale(1.15);
}

.mess-text {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .centered-oval-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .oval-btn {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 70px;
    font-size: 14px;
  }

  .mess-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  /* На мобильном неон выглядит слишком агрессивно — делаем его мягче */
  .oval-btn:hover {
    box-shadow:
      0 0 6px rgba(0, 114, 206, 0.3),
      0 4px 12px rgba(0, 114, 206, 0.18);
    transform: translateY(-2px);
  }

  .oval-btn::after {
    width: 0;
  }

  .oval-btn:hover::after {
    width: 100%;
  }
}
