/*
* file page.css
*/

/*
 * Page - box
*/
.left-content-wrapper {
    flex: 1 1 auto;
    padding: var(--paddingwrap);
}

/*
 * Page - all
*/

.page-full {
    width: 100%;
}

.content-wrapper {
    display: flex;
    padding-bottom: 52px;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}
.colgap {
    gap: var(--colgap);
}

.marker-color ul li::marker {
    color: var(--btncolor);
}

.hero__block {
    padding: 48px 0;
    height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    --gradient-height: 40px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff var(--gradient-height), #ffffff 100%);
}

.hero__block_text {
    width: 50%;
    max-width: 600px;
    display: flex;
    margin-right: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero__block_text h1 {
    font-size: 42px;
    line-height: 125%;
}

.hero__block_text p {
    font-size: 22px;
    margin: 0 0 16px;
}

ul.hero__block_list {
    font-size: 18px;
    margin: 0 0 24px;
}

ul.hero__block_list li::marker {
    color: var(--btncolor);
}


/*
 * FAQ
*/

.questions__container {
    padding: 40px 100px 80px;
}

h2.head__section {
    margin: 0;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--headingcolor);
}

h3.head__section_cap {
    margin: 52px 0 24px;
    text-align: center;
    font-size: 18px;
    line-height: 145%;
    font-weight: 600;
    color: #5d5d5d;
    font-family: 'Nunito';
    text-transform: uppercase;
}

/*
 * Section - service
*/
.service-grid {
    display: flex;
    margin: 32px 0;
    flex-wrap: wrap;
    gap: 48px 0;
    justify-content: space-between;
}

.service {
    width: calc(33.3% - 32px);
    padding: 52px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

h2.service-title {
    text-align: center;
    line-height: 125%;
    font-family: var(--fontnunito);
    margin: 0;
}

.service-link {
    display: flex;
    justify-content: center;
}

.banner__users {
    height: 360px;
    background: url(../img/blob-scene.svg);
    background-size: cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner__users_content {
    position: relative;
    z-index: 1;
}

#primary .banner__users a.button {
    background: #0E4384;
}

.chalk-text {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: .5;
}

.chalk-text__line {
  display: block;
  font-size: 48px;
  color: #333;
  text-shadow: 
    2px 2px 0 #fff,
    4px 4px 0 rgba(0,0,0,0.1);
  position: relative;
  background: linear-gradient(45deg, 
    transparent 45%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 55%);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
}

.chalk-text__line--1 {
  transform: rotate(-1deg) translateX(-10px);
}

.chalk-text__line--2 {
  transform: rotate(-3deg) translateX(5px);
  font-size: 48px;
}

.chalk-text__line--3 {
  transform: rotate(1deg) translateX(-15px);
  font-size: 48px;
  margin-top: -10px;
}

/* Эффект неровных краёв */
.chalk-text__line::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #f8f9fa;
  z-index: -1;
  text-shadow: 
    3px 3px 3px rgba(0,0,0,0.2),
    0 0 8px rgba(255,255,255,0.5);
  opacity: 0.7;
}


/*
 * Section - FAQ
*/
.accordion-item {
    margin: 0 0 10px;
    padding-bottom: 6px;
    background: none;
    border-top: 1px solid #ccc;
    overflow: hidden;
}

.service-icon {
    display: block;
    text-align: center;
}

.accordion-item__title {
    display: block;
    position: relative;
    padding: 20px 30px 10px 0;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.01em;
    text-align: left;
}

.accordion-item__title::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    height: 12px;
    width: 12px;
    font-size: inherit;
    right: 10px;
    top: 26px;
    z-index: 9;
    bottom: 2px;
    border-style: solid;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg) translate(-25%, -25%);
    transform: rotate(45deg);
    transition: all 1s ease-in-out;
    border-color: var(--btncolor);;
}

.accordion__animation {
  overflow: hidden;
  will-change: max-height;
}

/* Начальное состояние (закрыто) */
.accordion-item:not([open]) .accordion__animation {
  animation: accordion-close 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Открытое состояние */
.accordion-item[open] .accordion__animation {
  animation: accordion-open 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== КЛЮЧЕВЫЕ КАДРЫ АНИМАЦИИ ===== */
@keyframes accordion-open {
  0% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    max-height: 1000px; /* Достаточно для большинства контента */
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accordion-close {
  0% {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    padding-bottom: 0;
  }
}

details[open] .accordion-item__title::after {
    transition: 1s;
    transform: rotate(225deg);
}

.details__content p {
    padding: 0 15px 0 30px;
    margin: 0;
    text-align: left;
    font-weight: 400;
    font-size: 20px;
    line-height: 125%;
    letter-spacing: 0.5px;
    color: #23292E;
}

.details__content li {
    font-size: 20px;
    line-height: 150%;
}

details[open] .accordion-item__title::before {
    opacity: 1;
    top: 14px;
    background: #67afd91f;
    transition: 1s;
}

.accordion-item__title:before {
    content: '';
    position: absolute;
    display: inline-block;
    vertical-align: middle;
    height: 30px;
    width: 30px;
    font-size: inherit;
    opacity: 0;
    right: 1px;
    top: 20px;
    border-radius: 50%;
    border: 1px solid #cfdff7;
    transition: 1s;
}

.accordion-item__title:hover:before {
    opacity: 1;
    background: #67afd91f;
    transition: 1s;
}

/*
 * Page - Пользователям
*/
.bg-for-users {
    background: linear-gradient(to left, transparent 0%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%),url(../img/boarding-hero-bg-user.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

/*
 * Page - Тренерам
*/
.bg-for-coaches {
    background: linear-gradient(to left, transparent 0%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%),url(../img/boarding-hero-bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

/*
 * Page - Заведениям
*/
.bg-for-institution {
    background: linear-gradient(to left, transparent 0%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%),url(../img/boarding-hero-bg-club.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}


