﻿/**
 * Trend School — восстановление стилей Tara 10.0.0 customize.
 */

/* Палитра и переменные как на старом сайте. */
:root {
  --color-primary: #e3831c;
  --color-secondary: #a7bd43;
  --color-primary-light: #f2e8dd;
  --primary: #e3831c;
  --bg-body: #f4f4ef;
  --body-bg: #f4f4ef;
  --text-color: #595959;
  --bold-color: #222222;
  --header-top-bg: #e4e4dd;
  --light: #f7f7f2;
  --border: #dbdbd3;
  --shadow: 0 0 6px 1px #cccccc;
  --max-height-wl-carousel: 350px;
  --max-height-wl-carousel_total: 380px;
}

body {
  background-color: var(--body-bg);
  color: var(--text-color);
}

/* Шапка */
.header-top {
  background: var(--header-top-bg);
  box-shadow: inset 0 -2px 2px #b9ad8c;
}

.header-top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

/* Соцсети — как в Tara 10.0.0 customize (не Tara 10.1.2) */
ul.social-icons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.social-icons li {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.footer ul.social-icons li {
  padding: 0;
  border: 0;
}

ul.social-icons li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: #c4bdb5;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transition: background 0.4s ease;
}

.social-icons li a {
  color: #ffffff;
}

ul.social-icons li a:hover {
  background: var(--primary);
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  ul.social-icons li a {
    width: 30px;
    height: 30px;
  }
}

.footer-privacy-link {
  margin-top: 6px;
}

.footer-privacy-link a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-privacy-link a:hover {
  color: var(--primary);
}

/* Заголовки блоков — как h3 на старом сайте */
.block-title {
  position: relative;
}

.homepage-content .block,
.content-home .block,
.page-content.homepage-content .block {
  margin-bottom: 70px;
}

.homepage-content h3.block-title,
.content-home h3.block-title,
.homepage-content h2.block-title,
.content-home h2.block-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
}

.homepage-content h3.block-title::after,
.content-home h3.block-title::after,
.homepage-content h2.block-title::after,
.content-home h2.block-title::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  width: 50px;
  height: 2px;
  margin-left: -25px;
  background: var(--primary);
}

.region-content-home {
  display: flex;
  flex-direction: column;
}

/* Хлебные крошки */
#breadcrumb {
  background: #e4e4dd;
  box-shadow: 0 1px 1px #b9ad8c;
}

@media (min-width: 768px) {
  .width25 {
    width: 25%;
  }
}

.SliderImage {
  width: auto;
  height: 350px;
}

.PaggingAnons {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

.grid__item {
  height: auto;
}

.anons-view {
  padding: 40px 30px;
  border: 1px solid #ffffff;
  background-color: #ffffff;
  border-radius: 30px;
  box-sizing: border-box;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1) !important;
  height: auto;
  text-align: center;
}

.sliderrow {
  margin-left: auto;
  margin-right: auto;
}

.anons-view ul {
  list-style: none;
}

/* В карточках родитель часто font-weight: 300 — bolder в Tara 10.1.2 не даёт жирности */
.anons-view strong,
.anons-view b {
  font-weight: 700;
}

.block-content.box,
.homepage-content .box:not(.otzuvu),
.view-content.box:not(.otzuvu) {
  position: relative;
  background-color: var(--light);
  box-shadow: var(--shadow);
  padding: 1rem;
  border-radius: 1rem;
}

/* Блок «Цены и расписание» */
.view-spisok-kursov .views-view-responsive-grid__item-inner {
  height: 100%;
}

/* Описание курсов — разметка из редактора (strong, списки и т.д.) */
.view-spisok-kursov .anons-view [field="descr"],
.view-spisok-kursov .anons-view [field="descr"] .field-item {
  text-align: center;
}

.view-spisok-kursov .anons-view [field="descr"] ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0;
}

.view-spisok-kursov .anons-view [field="descr"] em,
.view-spisok-kursov .anons-view [field="descr"] i {
  font-style: italic;
}

.view-spisok-kursov .anons-view a.LinkToDesc {
  text-decoration: none;
}

/* Отзывы */
.view--otzyvy-uchenikov .view-content {
  position: relative;
}

.mySwiper-FotoUchenikov {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.otzuvu,
.otzuvu.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 500px;
  max-height: 500px;
  width: auto;
  min-width: 40%;
  max-width: 95%;
  background-color: #ffffff !important;
  border-radius: 20px !important;
  padding: 10px !important;
  box-shadow: none !important;
  position: relative;
  margin-left: 15px;
  margin-right: 15px;
  box-sizing: border-box;
}

.homepage-content div.otzuvu-body::before,
.view--otzyvy-uchenikov div.otzuvu-body::before {
  position: absolute;
  content: "";
  left: 5%;
  width: 90%;
  height: 2px;
  background: var(--primary);
  top: 12%;
}

.otzuvu-title {
  color: #000000;
  font-size: 1.2rem;
  position: relative;
  width: 100%;
  text-align: center;
}

.otzuvu-title h4 {
  color: #000000;
  margin: 0.5rem 0;
}

.otzuvu-body span p a,
.otzuvu-body span,
.otzuvu-body {
  color: #000000;
  font-size: 0.8rem;
  line-height: 1.2;
}

.otzuvu-body {
  padding: 20px;
  overflow: hidden;
}

.otzuvu-body a {
  color: #000000;
  text-decoration: none;
}

/* SEO: H1 в брендинге на главной */
h1.site-name {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

h1.site-name a,
.site-name a {
  text-decoration: none;
}

h2.anons-view-title {
  margin: 0 0 10px;
}

/* Swiper слайды отзывов */
.view--otzyvy-uchenikov .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

/* Десктоп: меню — затемнение только у ссылки, не у пустого места в li */
@media (min-width: 768px) {
  .region-primary-menu .menu-item-level-1:hover {
    background-color: transparent;
    color: var(--bold-color);
  }

  .region-primary-menu .menu-item-level-1:hover > a,
  .region-primary-menu .menu-item-level-1:hover > span {
    color: var(--bold-color);
  }

  .region-primary-menu .menu-item-level-1 a,
  .region-primary-menu .menu-item-level-1 > span {
    display: inline-block;
    transition: background-color 0.2s ease;
  }

  .region-primary-menu .menu-item-level-1 a:hover,
  .region-primary-menu .menu-item-level-1 > span:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--bold-color);
  }

  /* Блок «О нас» — больше отступ между картинкой и текстом */
  #rec259224697 {
    gap: 2.5rem;
  }

  #rec259224697 > .w50 {
    flex-basis: calc(50% - 1.25rem);
  }
}
