/* 1. Самое первое правило — чтобы padding/border не ломали ширину */
* {
  box-sizing: border-box;
}

/* 2. Хедер */
.header {
  width: 100%;
  min-height: 300px;
  height: auto;
  background-image: url("/img/shapka.jpg");
  background-position: center center;
  background-repeat: no-repeat;  
  background-size: cover;
}

/* 3. Общие стили ссылок */
a {
  text-decoration: none;
}

/* 4. Стили кнопок */
.button-link {
  display: inline-block;
  padding: 7px 7px;
  background-color: #306784;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-family: Arial, sans-serif;
  font-size: 19px;
}
.button-link:hover {
  background: linear-gradient(#4681f4, #305ab8);
  color: white;
}

/* 5. Стили кнопок телефона */
.button-tel {
  display: inline-block;
  padding: 3px 7px;
  background-color: #306784;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  margin: 5px;
}
.button-tel:hover {
  background: linear-gradient(#4681f4, #305ab8);
  color: white;
}

.phone-icon {
  vertical-align: middle;
  width: 22px;
  margin-right: 4px;
}

/* 6. Бегущая строка */
.marquee {
  white-space: nowrap;
  overflow: hidden;
  padding: 5px;
  background: #f0f8ff;
  color: #2c3e50;
  font: 18px Arial;
  border: 1px solid #3498db;
  border-radius: 4px;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: move 25s linear infinite;
}
.marquee span:hover {
  animation-play-state: paused;
}
@keyframes move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 7. Линии-разделители */
.separator_blue {
  border-top: 2px solid blue;
  margin: 5px 0;
}
.separator_grey {
  border-top: 1px solid #C0C0C0;
  margin: 5px 0;
}

/* 8. Заголовки категорий и рекламодатели */
.category-title {
  font-size: 25px;
  text-align: center;
  color: #fff;
  background-color: #1c8292;
  padding: 1px;
}
.reklamodatel {
  text-align: center;
  background-color: #F0FFF0;
  font-size: 25px;
}
.reklamodatel_mini {
  font-style: italic;
  text-align: center;
  background-color: #F0FFF0;
  font-size: 25px;
}

/* 9. Описание услуги (базовый стиль) */
.service-list-basic {
  font-size: 17px;
  margin: 0 10px;
  color: #565655;
}
.service-title {
  margin-bottom: 10px;
  /*text-decoration: underline;*/
  font-weight: bold;
  font-style: oblique;
}
.brands-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}
.brands-list li {
  margin-bottom: 0px;
}
.location {
  margin-top: 15px;
  font-weight: bold;
  font-style: oblique;
}

/* 10. Кнопка перехода на сайт */
.click_site {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 11. Страница репетитора (контейнер и стили) */
.tutor-page-container {
  max-width: 800px;
  margin: 24px auto;
  padding: 0 16px;
  width: 100%;
}
.section-header {
  text-align: center;
  margin-bottom: 32px;
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.section-header span {
  font-size: 26px;
  font-weight: 700;
  color: #000080;
  text-transform: lowercase;
  display: inline-block;
}
.tutor-name {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin: 28px 0 8px;
  text-align: center;
}
.tutor-role {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 24px;
}

/* Кнопка вызова */
.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 18px;
  background: linear-gradient(to bottom, #306784, #1c4a60);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(48, 103, 132, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(48, 103, 132, 0.35);
}
.btn-call img.phone-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 12px;
}

/* Список услуг*/
.service-list-tutor {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.service-list-tutor li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #444;
}
.service-list-tutor li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #306784;
  font-weight: bold;
}

.location-info {
  background: #f8f8f8;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 17px;
  color: #555;
}
.location-info strong {
  color: #222;
}

.iframe-wrapper {
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.iframe-wrapper iframe {
  width: 100%;
  min-height: 500px;
  border: none;
}

@media (max-width: 600px) {
  .tutor-name { font-size: 26px; }
  .btn-call { padding: 16px; font-size: 20px; }
}

/*раздел категории*/
    .courses-page {
      max-width: 800px;
      margin: 20px auto;
      padding: 0 15px;
    }

    .category-title {
  font-size: 20px;
  font-weight: 700;
  color: #000080;           /* твой тёмно‑синий */
  margin: 32px 0 14px;
  padding: 6px 12px;
  background: #eef2ff;     /* очень лёгкий фон */
  border-radius: 8px;
  display: inline-block;
}

    .course-card {
      background: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 10px;
      padding: 16px;
      margin-bottom: 12px;
      text-decoration: none;
      color: inherit;
      transition: box-shadow 0.2s, transform 0.1s;
      display: block;
    }

    .course-card:hover {
      box-shadow: 0 6px 16px rgba(0,0,0,0.12);
      transform: translateY(-2px);
    }

    .course-subject {
      font-size: 19px;
      font-weight: bold;
      color: #333;
      margin-bottom: 6px;
    }

    .course-teacher {
      font-size: 17px;
      color: #555;
      font-style: italic;
    }

    @media (max-width: 768px) {
      .courses-page { padding: 0 12px; }
      .category-title { font-size: 20px; border-bottom-width: 2px; }
      .course-subject { font-size: 18px; }
      .course-teacher { font-size: 16px; }
    }
    
    .marquee {
  margin-top: 5px;
}

.marquee-link {
  text-decoration: none;
  color: #333333;
}

.marquee-text {
  color: #333333;
  font-size: 16px;
}

/* Контейнер кнопок в шапке */
.header-buttons-container {
  display: flex;
  flex-wrap: nowrap;           /* кнопки не переносятся на новую строку */
  justify-content: center;      /* центрируем кнопки по горизонтали */
  align-items: center;          /* выравниваем по вертикали (по центру картинки) */
  gap: 10px;                    /* небольшой отступ между кнопками */
  margin-top: 15px;             /* отступ 15 px от картинки шапки */
  margin-bottom: 15px;          /* отступ 15 px до бегущей строки */
}

.header-buttons-container a.button-link {
  white-space: nowrap;         /* текст кнопки не переносится */
  font-size: 16px;             /* чуть меньше шрифт на мобильных */
  padding: 6px 10px;           /* компактные внутренние отступы */
  text-decoration: none;
}

/* Уменьшаем иконки на мобильных, чтобы точно влезли в ряд */
.header-buttons-container img {
  width: 22px !important;
  height: auto !important;
  vertical-align: middle;
}



