/*@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    color: #333333;
    /*background: url("img/bgs.png") no-repeat center 100px/cover;*/
    background: center 100% / 100% no-repeat url("img/bgs.png");
    overflow-x: hidden; /* убирает горизонтальную прокрутку */
}

header {
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url("img/trener2.png") no-repeat 76% 150px/25%,
                url("img/bgs.png") no-repeat center 100px/cover,
                url("img/header.png") no-repeat center center/cover;

}

/* ломает ширину секций, в особенности с */
/*section {
    width: 90%; 
}*/

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* гарантирует, что main занимает всю ширину body */
}

a {
    text-decoration: none;
    color: #333333;
}

a:hover {
    color: rgba(51, 51, 51, 0.7);
}

a:active, a:visited {
    color: #333333;
}

p {
    margin: 0;
}

.header-wrapper {
    width: 90%;
}

.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.tel a {
    /*color: #333;*/
    font-size: 20px;
    font-style: normal;
    margin-top: 0;
    text-align: left;
    font-family: "Inter",sans-serif;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 0;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
}

.menu ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
    column-gap: 50px;
}

.menu ul li {
    font-weight: 700;
    font-size: 16px;
}

.logo-text p:last-child {
    font-size: 16px;
    margin-top: 5px;
}

.header-content {
    width: 577px;
    margin: 108px 0 163px 0;
}

.header-content h1 {
    margin: 0;
    font-size: 48px;
}

.header-content h1 span {
    color: #FF8956;
}

.header-content p {
    margin: 20px 0;
    font-size: 20px;
    width: 475px;
    line-height: 30px;
}

#btn-record {
    width: 174px;
    height: 53px;
    border: none;
    box-shadow: 0 0 50px 0#ff8956;
    box-sizing: border-box;
    align-items: center;
    border-radius: 50px;
    justify-content: center;
    background-color: #ff8956;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

#btn-record:hover {
    cursor: pointer;
    background-color: rgb(255,101,36);
    transition: 0.2s;
}

#btn-record:active {
    background-color: rgb(240,72,0);
}

#btn-watch {
    width: 221px;
    height: 53px;
    border: none;
    box-shadow: 0 0 40px 0 rgba(0,0,0,.1);
    box-sizing: border-box;
    align-items: center;
    border-radius: 50px 50px 50px 50px;
    justify-content: center;
    background-color: #fff;
    color: #333333;
    font-size: 20px;
    font-weight: 700;
    margin-left: 20px;
}

#btn-watch:hover {
    cursor: pointer;
    background-color: #d4d4d4;
    transition: 0.2s;
}

#btn-watch:active {
    background-color: #bababa;
}

.gallery {
    margin-top: 60px;
}

.about {
    margin-top: 30px;
    display: flex;
    max-height: 740px;
}

.about-img-wrapper {
    width: 560px;
    height: 716px;  
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 300px 300px 30px 30px;
}

.about-img-wrapper img {
    height: 100%;
    width: auto;
}

.benefits {
    display: flex;
    column-gap: 20px;
    transform: translate(-105%, -200%);
}

.benefit {
    width: 123px;
    height: 97px;
    background-color: #FFEFE8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
}

.benefit h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    color: #FF8956;
}

.benefit p {
    margin: 0;
    font-size: 20px;
}

.vertical-text {
    writing-mode:tb-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 80px;
    font-weight: 700;
    color: rgba(51, 51, 51, 0.05);
}

.vertical-text p {
    margin-left: 20px;
}

.about-blocks-wrapper {
    width: 515px;
    display: flex;
    flex-direction: column;
    column-gap: 23px;
}

.about-block h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
}

.about-block p {
    line-height: 27px;
    margin-top: 15px;
}

.about-block p span {
    background-color: #FF8956;
    border-radius: 7px;
    font-weight: 700;
    border-left: 2px solid #FF8956;
    border-right: 2px solid #FF8956;
}

.second {
    margin-top: 32px;
}

/*.medal {
    position: relative;
    padding-left: 50px;
    width: 244px;
}

.medal::before {
    content: url('img/medal.png');
    vertical-align:middle;
    position: absolute;
    top: 0;
    left: 0;
}*/

.videos {
    margin-top: 60px;
}

.videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.videos-header-title h1 {
    font-size: 36px;
    margin: 0 0 4px 0;
}

.videos-header-title p {
    width: 445px;
    line-height: 27px;
}

#btn-watch-all {
    width: 195px;
    height: 53px;
    border: none;
    box-shadow: 0 0 40px 0 rgba(0,0,0,.1);
    box-sizing: border-box;
    align-items: center;
    border-radius: 50px 50px 50px 50px;
    justify-content: center;
    background-color: #fff;
    color: #333333;
    font-size: 20px;
    font-weight: 700;
    margin-left: 20px;
}

#btn-watch-all:hover {
    cursor: pointer;
    background-color: #d4d4d4;
    transition: 0.2s;
}

#btn-watch-all:active {
    background-color: #bababa;
}

.videos-items {
    display: flex;
    justify-content: space-between;
    gap: 36px;
}

.circle {
    width: 260px;
    height: 408px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    overflow:hidden;
    position:relative;
}

#promo {
    min-width: 1148px;
    /*width: calc(100% - 500px);*/
}

.promo {
    background-color: #ffefe8;
    border-radius: 20px;
    padding: 30px;
    margin-top: 60px;
}

.promo h1 {
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 36px;
    margin: 30px 0;
    text-align: center;
}

.promo img {
    border-radius: 20px;
}

.promo p {
    margin-top: 30px;
    max-width: 456px;

    color: #333;
    font-size: 22px;
    font-style: normal;
    margin-top: 0;
    text-align: left;
    font-family: "Raleway",sans-serif;
    font-weight: 500;
    line-height: 33px;
    margin-bottom: 0;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
}

.promo-block:nth-child(2) p {
    padding-top: 100px;
}

.promo-block {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.service-wrapper {
    width: 1260px;
    display: flex;
    column-gap: 20px;
}

.services h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
    margin: 60px 0;
    text-align: center;
}

.service {
    width: 300px;
    display: flex;
    flex-direction: column;
}

.last {
    padding-bottom: 20px;
}

.crop-img {  
    width: 300px;  
    height: 168px;  
    object-fit: cover;  
    object-position: bottom;  
}  

.contacts {
    margin-top: 88px;
    display: flex;
    justify-content: space-between;
    background-color: #FFEFE8;
    padding: 80px 114px 80px 100px;
    border-radius: 20px;
}

.contacts-info {
    width: 495px;
    padding-right: 100px;
}

.contacts-info h1 {
    font-size: 36px;
    margin: 0;
    padding: 0 0 4px 0;
}

.contacts-info p {
    width: 420px;
    padding: 0 0 20px 0;
    display: flex;
    justify-content: center;
    /*gap: 20px;*/

}

.contacts-trener-img {
    border-radius: 20px;
    height: 565px;
}

.text {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    padding-left: 26px;
}

.text::placeholder {
    color: #999;
    font-size: 18px;
    font-weight: 400;
}

.contacts input {
    font-size: 18px;
}

.contacts input:focus {
    outline: 1px solid #FF8956;
}

.checkbox-text {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    color: black;
    padding-bottom: 20px;
}

.checkbox-text a {
    color: #FF8956;
    text-decoration: underline;
    white-space: nowrap;
}

.checkbox-text a:hover{
    opacity: 0.7;
}

/* для элемента input c type="checkbox" */
.submit_container>input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

/* для элемента label, связанного с .submit_container */
.submit_container > span {
  display: inline-flex;
  align-items: center;
  user-select: none;
  flex-wrap: wrap;
  word-break: break-word;  /* или overflow-wrap: break-word */
}

/* создание в label псевдоэлемента before со следующими стилями */
.submit_container>span::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid #adb5bd;
  border-radius: 0.25em;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

/* стили при наведении курсора на checkbox */
.submit_container>input:not(:disabled):not(:checked)+span:hover::before {
  border-color: #ffd1bd;
}

/* стили для активного чекбокса (при нажатии на него) */
.submit_container>input:not(:disabled):active+span::before {
  background-color: #ffd1bd;
  border-color: #ffd1bd;
}

/* стили для чекбокса, находящегося в фокусе */
.submit_container>input:focus+span::before {
  box-shadow: 0 0 0 0.2rem rgba(255, 132, 0, 0.25);
}

/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.submit_container>input:focus:not(:checked)+span::before {
  border-color: #ffd1bd;
}

/* стили для чекбокса, находящегося в состоянии checked */
.submit_container>input:checked+span::before {
  border-color: #FF8956;
  background-color: #FF8956;
  background-image: url("img/check.png");
}

/* стили для чекбокса, находящегося в состоянии disabled */
.submit_container>input:disabled+span::before {
  background-color: #e9ecef;
}

#btn-call {
    width: 100%;
    height: 53px;
    border: none;
    box-shadow: 0 0 50px 0#ff8956;
    box-sizing: border-box;
    align-items: center;
    border-radius: 10px;
    justify-content: center;
    background-color: #ff8956;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

#btn-call:hover {
    cursor: pointer;
    background-color: rgb(255,101,36);
    transition: 0.2s;
}

#btn-call:active {
    background-color: rgb(240,72,0);
}

.service > button {
    margin-top: auto;
}

.social {
    padding-top: 40px;
    display: flex;
    justify-content: center;
    gap: 45px;
}

.social a:hover {
    opacity: 0.7;
}

.social-label {
    font-weight: 900;
    font-size: 18px;
    font-family: "Red Hat Display",sans-serif;
    margin-left: 25px;
}

.social-label p {
    padding: 0;
    margin-left: -5px;
}

.asterisk {
    color: #FF8956; /* оранжевый, как ссылка */
    font-size: 20px;
    font-weight: bold;
}

.footnote {
    font-size: 12px;
    font-style: italic;
    color: #777;
    margin-top: 15px;
    line-height: 1.4;
    max-width: 460px;
}

.footnote .asterisk {
    font-size: 12px; /* подстроим под размер сноски */
    margin-right: 3px;
}

.wa {
    padding-right: 7px;
}

.tg {
    padding-right: 28px;
}

footer {
    width: 85%;
    display: flex;
    justify-content: space-between;
    margin: 60px 0 64px 0;
}

.foot {
    align-self: center;
}

/* Модальное окно политики конфиденциальности */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    padding: 30px 30px 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
    padding-right: 30px; /* чтобы не наезжал крестик */
}

.modal-body {
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-body h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #FF8956;
}

.modal-body p {
    margin: 10px 0;
    font-size: 16px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #FF8956;
}