* {
    margin: 0;
    padding: 0;
}

:root {
    --chocolate: #2E241B;
    --natural: #F4ECE4;
    --creme: #D8D1C2;
}

@font-face {
    font-family: SK Nomerok;
    src: url(fonts/SKNomerok-Regular.woff2) format("woff2"), url(fonts/SKNomerok-Regular.woff) format("woff");
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 1;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulsate-fwd{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}
@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 1;
    }
}


@keyframes slide-out-top {
    0% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateY(-300px);
                transform: translateY(-300px);
        opacity: 1;
    }
}

/* Создаем ключевые кадры для анимации появления справа */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0%);
    }
}

/* Создаем ключевые кадры для анимации скрытия вправо */
@keyframes slideOutToRight {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(100%);
    }
}

@-webkit-keyframes slide-out-right {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
    100% {
      -webkit-transform: translateX(50px);
              transform: translateX(50px);
      opacity: 0;
    }
}

@keyframes slide-out-right {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
    100% {
      -webkit-transform: translateX(50px);
              transform: translateX(50px);
      opacity: 0;
    }
}


@keyframes tracking-in-expand-fwd {
    0% {
        letter-spacing: -0.5em;
        transform: translateZ(-700px);
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        transform: translateZ(0);
        opacity: 1;
    }
}

@keyframes rotatePlus {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(45deg);
    }
}

@keyframes rotateMinus {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes slide-in-bottom{0%{transform:translateY(1000px);opacity:1}100%{transform:translateY(0);opacity:1}}

@keyframes slide-out-bottom{0%{transform:translateY(0);opacity:1}100%{transform:translateY(1000px);opacity:1}}

@keyframes slide-right{0%{transform:translateX(-100px)}100%{transform:translateX(0px)}}

@keyframes slide-in-top {
    0% {
        -webkit-transform: translateY(-50px); 
                transform: translateY(-50px); 
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
                transform: translateY(0);
        opacity: 1;
    }
}

@-webkit-keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(50px);
              transform: translateX(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(50px);
              transform: translateX(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }




/* Общие стили */

body {
    font-family: SK Nomerok;
    color: var(--chocolate);
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 116%;
    background-color: var(--natural);
    hyphens: initial;
    overflow-wrap: break-word;
    cursor: url('img/cursor.svg'), auto;
}

.footer {
    cursor: url('img/cursor_inv.svg'), auto;
}

body::-webkit-scrollbar {
    width: 0px;
}

a {
    color: var(--chocolate);
    text-decoration: none;
    align-items: center;
    display: flex;
    cursor: url('img/cursor-hand.svg'), pointer;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s, transform 0.5s;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

h1 {
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    font-style: normal;
    line-height: 70%;
}

h2 {
    font-size: 48px;
    font-weight: 400;
    font-style: normal;
    display: flex;
    align-items: center;
    line-height: 100%;
}

h3 {
    font-size: 36px;
    font-weight: 400;
    font-style: normal;
    display: flex;
    align-items: center;
    line-height: 70%;
}

img {
    height: 100%;
    max-width: 100%;
}

ul {
    list-style-type: disc;
}

.lih2 {
    margin: 5px 0;
}

.btn {
    font-size: 24px;
    letter-spacing: 1.2px;
    color: var(--creme);
    background-color: var(--chocolate);
    padding: 18px 58px;
    border-radius: 0px;
}

.signup_mobile{
padding: 20px 0px;
}

.btn:hover {
    filter: brightness(150%);
}

.btn:active {
    color: var(--chocolate);
    border: 2px solid var(--chocolate, --chocolate);
    background: none;
}

.btn:disabled {
    color: var(--natural);
    background-color: rgba(46, 36, 27, 0.50);
    opacity: 0.5;
    cursor: not-allowed;
}

.signup_mobile {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0px;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s, transform 0.5s;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fill {
    margin: 0;
    background-color: var(--chocolate);
    color: var(--natural);
    padding: 10px 7px 5px 7px;
    display: inline-block;
}

@keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }}

.title_fill {
    margin: 0;
    background-color: var(--chocolate);
    color: var(--natural);
    display: inline-block;
    animation: fade-in 0.7s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.fill_price {
    margin: 0;
    background-color: var(--chocolate);
    color: var(--natural);
    padding: 7px 7px 2px 7px;
    display: inline-block;
}

.fill_inverse {
    font-size: 36px;
    margin: 0;
    background-color: var(--natural);
    color: var(--chocolate);
    padding: 10px 7px 5px 7px;
    display: inline-block;
}


.underline {
    margin: 0;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 2px;
    transition: all 0.5s, transform 0.5s;
}

.title_underline {
    margin: 0;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}



.section {
    height: 100vh;
    margin-bottom: 80px;
    justify-content: center;
    overflow: hidden;
}

.section::-webkit-scrollbar {
    width: 0px;
}

.center {
    padding: 100px;
}

.title {
    margin-bottom: 50px;
}

.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/image-noise.png');
    pointer-events: none;
    opacity: 0.1; 
    mix-blend-mode: overlay; 
}

.title_typing {
    padding: 30px 7px 19px 7px;
    display: inline-block;
}

/* Стиль для раздела "menu" */

.burger-icon {
    display: none;
    cursor: url('img/cursor-hand.svg'), pointer;
}

.burger-icon img {
    width: 44px;
    height: 44px;
}

.mobile-menu {
    font-size: 24px;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 50%;
    height: 100vh;
    overflow-y: auto;
    background: var(--creme);
    color: #30241A;
    flex-direction: column;
    align-items: center;
    z-index: 9999999;
    justify-content: space-between;
    animation:slide-right .5s cubic-bezier(.25,.46,.45,.94) both;
}


.mobile-menu hr {
    width: 50%;
    border: none;
    height: 1px;
    background-color: var(--chocolate);
    margin: 10px 0;
}

.logo_mobile {
    display: flex;
    width: 100%;
    justify-content: space-between;
    text-align: center;
    padding-top: 50px;
    gap: 30px;
}

.header_links_mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
    gap: 20px;
}

.mob_but {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
    width: calc((100% - 80px));
}

.menu {
    background-image: url(img/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-left: 80px;
    padding-right: 80px;
}

.header {
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    border: none;
    text-align: center;
    align-items: center;
}

.logo img {
    width: 400px;
}

.header_links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.line {
    color: #C6C2C1;
}

.line-learn { color: var(--natural);}

.arrback {
    display: flex;
}

.arrback:hover {
    text-decoration: underline;
}

.header_link, .hl {
    color: var(--chocolate);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.header_link:hover, .hl:hover {
    text-decoration: underline;
}

.language-switcher {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher:hover {
    text-decoration: underline;
}

.language-switcher img {
    min-height: 30px;
    min-width: 30px;
    max-height: 30px;
    max-width: 30px;
}

.signup {
    display: none;
    position: absolute;
    bottom: 100px;
    right: 80px;
}

.burger-icon {
    display: none;
}

.mobile-menu {
    display: none;
}

.cross {
    width: 44px;
    height: 44px;
}

.undertext img {
    margin-top: 50px;
    width: 450px;
}

/* Стиль для раздела "about" */

.about {
    background-color: var(--natural);
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: relative;
    height: 100vh;
}

.about_text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: calc(100% - 200px);
    gap: 40px;
}

.about_text_button {
    overflow: hidden;
    flex: 1;
}

.about_image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.about_image img {
    width: 100%;
    object-fit: cover;
}

.about_title {
    margin: 0;
}

.learn-info {
    padding: 20px 0px 20px 0px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.learn-info img {
    display: flex;
    align-items: center;
}

.learn-info:hover {
    text-decoration: underline;
}

.learn-header {padding-top: 0;}

.section-learn {   
    height: auto;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 80px;
    padding-right: 80px;
    margin-bottom: 0;
}

.header.section-learn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Стиль для раздела "services" */


.services {
    display: flex;
    background-color: var(--natural);
    width: 100%;
    position: relative;
    overflow: unset;
    height: 100vh;
    overflow: hidden;
}

.services_image {
    flex: 1;
    position: relative;
    height: 100vh;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
z-index: 10000;
}

.services_image img {
    width: 100%;
    object-fit: cover;
    position: absolute;
}

.page_question {
    position: absolute;
    background-color: var(--natural);
    color: var(--chocolate);
    top: 0;
    left: 0;
    height: 100vh;
    width: 50%;
    transition: opacity 0.5s, transform 0.5s;
    display: none;
    z-index: 100000;
}

.page_question img {
    object-fit: cover;
    width: 100%;
}

.page_question.show {
    display: flex; 
    animation: slideInFromLeft 0.5s forwards;
}

.page_question.hide {
display: flex;
animation: slideOutToLeft 0.5s forwards;
}

.drag{
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: grab;
}

.services_image.hide {
    animation:slide-out-bottom .5s cubic-bezier(.55,.085,.68,.53) both;
}

.services_image.extend {
    animation:slide-in-bottom .5s cubic-bezier(.25,.46,.45,.94) both;
}

.services_title {
display: flex;
transition: opacity 0.5s, transform 0.5s;
}

.button_sign {
    position: fixed;
    bottom: 40px;
    right: 20px; 
    width: 120px; 
    height: 120px; 
    background-color: #B7605F; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
    color: var(--natural); 
    font-size: 24px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
    transition: background-color 0.3s; 
    z-index: 1000000;
    transition: right 0.3s ease;
    text-align: center;
}

.button_sign.show {
    right: 40px;
}

.question {
    position: fixed;
    bottom: 40px;
    left: -100px; 
    width: 80px; 
    height: 80px; 
    background-color: var(--natural); 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; 
    font-size: 24px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
    transition: background-color 0.3s; 
    z-index: 10000;
    transition: left 0.3s ease;
    cursor: url('img/cursor-hand.svg'), pointer;
    z-index: 9999999;
}

.question.show {
    left: 40px;
}

.question img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out; /* Добавляем transition для плавного изменения прозрачности */
}

.question.hidden img {
    opacity: 0;
}


.question.bounce {animation:pulsate-fwd .5s ease-in-out infinite both;}

.blog_about {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.blog_about::-webkit-scrollbar {
    width: 0px;
}

.slide-out-top {
    animation: slide-out-top .5s cubic-bezier(.55,.085,.68,.53) both;
}

.slide-in-top {
    animation: slide-in-top .5s cubic-bezier(.25,.46,.45,.94) both;
}

.fixed-image {
    position: unset;
    position: absolute !important;
    z-index: -2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.sticky-image {
    position: unset;
    position: sticky !important;
    top: 0;
}

.rotate-plus {
    animation: rotatePlus 0.3s ease forwards;
}

.rotate-minus {
    animation: rotateMinus 0.3s ease forwards;
}

.services_container {
    flex: 1;
    overflow: hidden;
    transition: height 0.5s, transform 0.5s;
}

.services_container.s {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: height 0.5s, transform 0.5s;
}

.services_image.si {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
}

.services_container::-webkit-scrollbar {
    width: 0px;
}

.hr-line {
    border-top: 2px solid #30241A;
}

.ulh2 {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: opacity 0.5s, transform 0.5s;
    margin-top: 0;

}

.ullong {
    list-style-type: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ulh2.with-margin {
    margin-top: 40px; 
}

.lih2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: url('img/cursor-hand.svg'), pointer;
}

.lilong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0px;
}

.text_container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    height: calc(100% - 200px);
    
}

.drag {
    display: none;
}

.rotate-plus {
    animation: rotatePlus 0.3s ease forwards;
}

.rotate-minus {
    animation: rotateMinus 0.3s ease forwards;
}

.text_hair {
    transition: opacity 0.5s, transform 0.5s;
}

.text__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.text__active .text__content {
    max-height: 1000px;
}

.headerhair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: url('img/cursor-hand.svg'), pointer;
    transition: transform 0.3s ease;
}

.headerhair:hover {
    color: rgba(46, 36, 27, 0.7);
}

.headerhair:hover img {
    filter: brightness(250%)
}

.overlay-container {
   background-color: var(--natural);
   color: var(--chocolate);
   display: none; 
   flex-direction: column;
   position: sticky;
   top: 0;
   height: 100vh;
   width: 100%;
   transition: opacity 0.5s, transform 0.5s;
}

.overlay-li {
   background-color: var(--creme);
   color: var(--chocolate);
   display: none; 
   flex-direction: column;
   position: sticky;
   top: 0;
   height: 100vh;
   width: 100%;
   transition: opacity 0.5s, transform 0.5s;
}

.text-wrapper::-webkit-scrollbar {
    width: 0px;
}

.arrow-flipped {
    transform: scaleX(-1);
    transition: transform 0.3s ease;
}

.overlay-container.show, .overlay-li.show {
    display: flex; 
    animation: slideInFromRight 0.5s forwards;
}

.overlay-container.hide, .overlay-li.hide {
    display: flex;
   animation: slideOutToRight 0.5s forwards;
}

.overlay-container::-webkit-scrollbar {
    width: 0px;
}

.overlay-li::-webkit-scrollbar {
    width: 0px;
}

.overlay-content {
    font-size: 24px;
}

.content-frame {
    border-left: 3px solid #30241A; 
    padding-left: 20px;
    padding-top: 4px;
    font-size: 36px;
    line-height: 100%;
}


.descriptions {
    display: flex;
    flex-direction: column;
    gap: 40px;
    line-height: 116%;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
}

.descriptions_overlay {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 24px;
    line-height: 116%;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
}

.descriptions_text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 24px;
    line-height: 116%;
    align-items: flex-start;
height: auto;
}

.texthairs {
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}


.text_overlay {overflow-y: auto;}

.text_overlay::-webkit-scrollbar {
    width: 0px;
}

.expanded {
    height: 80vh;
}

.texthairs::-webkit-scrollbar {
    width: 0px;
}

.pngtop {
    position: absolute;
    height: 300px;
    background: linear-gradient(to bottom, rgba(21, 204, 189, 1), rgba(210, 204, 189, 0));
}

.btn_services {
    position: unset;
    bottom: unset;
    right: unset;

}

.hairlist {
    display: flex;
    gap: 10px;
}

.nonestyle {
    display: none;
}

.noneimage img {
    opacity: 0;
display: none;
}

.noneimage {cursor: unset;}

.text-wrapper {
    height: 100%;
    overflow-y: auto;
}

.block_top {
    position: absolute;
    top: 16vh;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #C5BDAC, #C5BDAC00);
    z-index: 1;
    display: none;
}

.block_bottom {
    position: absolute;
    bottom: 18vh;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #C5BDAC00, #C5BDAC);
    z-index: 1;
    display: none;
}


/* Стиль для раздела "portfolio" */

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.portfolio {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.portfolio::-webkit-scrollbar {
    width: 0px;         
}

.portfolio_gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portfolio_gallery::-webkit-scrollbar {
    width: 0px;         
}

.image-wrapper {

    flex-basis: 30vh;
    position: relative;
    transition: transform 0.3s;
    cursor: url('img/cursor-hand.svg'), pointer;
    overflow: visible;
}

.image-wrapper {
    flex-basis: 30vh;
    position: relative;
    transition: transform 0.3s;
    cursor: url('img/cursor-hand.svg'), pointer;
    overflow: hidden;
}

.portfolio_item_tl {
    transform-origin: top left;
}

.portfolio_item_tr {
    transform-origin: top right;
}

.portfolio_item_bl {
    transform-origin: bottom left;
}

.portfolio_item_br {
    transform-origin: bottom right;
}

.portfolio_item_tl.zoomed,
.portfolio_item_br.zoomed,
.portfolio_item_tr.zoomed,
.portfolio_item_bl.zoomed {
    transform: scale(2.06);
    z-index: 2;
}

.image-wrapper img {
    object-fit: cover;
    aspect-ratio: 1/1;
}

.image_phrase img {
    object-fit: contain;
}

.portfolio_item_tl.no-zoom {
    pointer-events: none;
}

.image-wrapper:hover .image {
    transform: scale(1);
    transition: transform 0.3s;
    cursor: url('img/cursor-hand.svg'), pointer;
}

.portfolio.stop-animation {
    animation: none;
}

.portfolio.animated {
    animation: scroll 40s linear infinite;
}

/* Стиль для раздела "contacts" */

.contacts {
    background-color: var(--creme);
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: relative;
    height: 100vh;
}

.contacts_map {
    flex: 1;
    position: relative;
    height: 100vh;
}

.contacts_text {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.contact-info-blok {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact_blok {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    height: calc(100% - 200px);
}

.contacts_map iframe {
    width: 100%;
    height: 100vh;
}

.contact-info {
    padding: 30px 0px 30px 0px;
    display: flex;
    align-items: center;
}

.info-icon {
    margin-right: 30px;
}

.info-icon img {
    width: 44px;
    height: 44px;
}

.contact-link {
    width: 400px;
}

.contact-info:hover {
    text-decoration: underline;
}

.cont {display: flex;
flex-wrap: wrap;}

a.info-icon img {
    width: 44px;
    height: 44px;
    vertical-align: middle;
}

/* Стиль для раздела "blog" */

.blog {
    background-color: var(--natural);
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: relative;
    margin-bottom: 0px;
}

.blog_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog_text {
    flex: 1;
    flex-basis: 50%;
    position: relative;
    overflow: hidden;
}

.blog_title {
    margin-bottom: 70px;
}

.blog_image {
    flex: 1;
    flex-basis: 50%;
    flex-direction: column;
    align-items: center;
    display: flex;
    align-items: center;
}

.blog_image img {
    object-fit: cover;
    width: 100%;
    height: 100vh;
}

/* Стиль для раздела "footer" */

.footer {
    height: 180px;
    background-color: var(--chocolate);
    color: #96918D;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}   

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px 0px 50px;
    width: 100%;
}

.foot img {
    display: flex;
    object-fit: contain;
}

.back {
    border-radius: 6px;
    background-color: var(--chocolate);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.back_footer p {
    color: #96918D;
    margin-right: 120px;
}

.back img {
    display: none;
    height: 44px;
}

.foot:hover p {
    color: var(--natural);
    text-decoration: underline;
}

.foot:hover a {
    color: var(--natural);
    text-decoration: underline;
}

.privacy {
    color: #96918D;
}

.foot:hover img {
    filter: brightness(200%)
}

.blog,
.footer {
    margin-bottom: 0px;
}

#scrollButton {
    position: fixed;
    bottom: 30px; 
    right: -100px;
    transition: right 0.3s ease;
}

#scrollButton.show {
    right: 30px; /* Показываем кнопку при прокрутке */
}

#scrollButton:hover {
    filter: brightness(120%);
}


/* 404 страница */

body.error-404 {
    background-image: url("img/error_image.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.picture {
    width: 33%;
}

.error {
    padding-bottom: 10vh;
    width: 24vh;
}

.error_text {
    padding: 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: space-between;
}

.button404_text {
    display: flex;
    align-items: center;
    width: 33%;
    height: 25vh;
}

.errorpicture {
    display: none;
    width: 34%;
}

.picture2 {
    display: none;
}

/* Page Learn More */

.learn_page1,
.learn_page2,
.learn_page3 {
    display: flex;
    background-color: var(--natural);
    width: 100%;
    height: 100%;
    position: relative;
    overflow: unset;
}

.learn_image1,
.learn_image2,
.learn_image3 {
    display: flex;
    flex: 1;
}

.learn_image1 img,
.learn_image2 img,
.learn_image3 img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: sticky;
    top: 0;
}



.container1,
.container2,
.container3 {
    flex: 1;
    overflow: hidden;
}

.text_page1_1 {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

.title_learn {
    padding-bottom: 0;
}

.text_page2_1,
.text_page2_2,
.text_page3_1,
.text_page3_2 {
    background-color: var(--creme);
    min-height: 100vh;
    display: flex;
    align-items: center;
    height: auto;
}

.text_page2_2,
.text_page3_2 {
    background-color: var(--natural);
}

.cc {
    margin-top: 60px;
}

/* СТИЛИ */

/* Стили для компов и больших планшетов */

@media screen and (max-width: 1440px) and (orientation: landscape) {
    body {
        font-size: 24px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
    font-size: 32px;
    }

    .btn {
        font-size: 22px;
        padding: 16px 50px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}

.button_sign {
    height: 110px;
    width: 110px;
    bottom: 20px;
}

    .fill {
        padding: 7px 7px 7px 7px;
    }

    .title_typing {
        padding: 18px 7px 10px 7px;
    }

    .descriptions_text, .descriptions_overlay {
        font-size: 20px;
    }

    .texthairs {gap: 20px;}
 
    .about_text {
        gap: 30px;
    }

    .content-frame {font-size: 28px;}

    .ulh2.with-margin {
        margin-top: 30px;
    }

    .ulh2 {gap: 20px;}

    .title {margin-bottom: 20px;}

    .text_container, .descriptions, .contact_blok, .about_text {
        height: calc(100% - 160px);
    }

    .drag {
        display: none;
    }
    
    .back_footer p {
        margin-right: 100px;
    }

    .descriptions {
        gap: 30px;
    }

    .underline {
        text-decoration-thickness: 2px;
        text-underline-offset: 2px;
    }

    .center {padding: 80px;}

    .section {
        margin-bottom: 20px;
    }

.page1 {overflow-y: auto;}

    .page1::-webkit-scrollbar {
        width: 0px;         
    }

    .logo img {
        max-width: 250px;
    }

    .undertext img {
        margin-top: 40px;
        width: 300px;
    }

    .portfolio {
        padding: 0;
    }

    .contact-link {
        width: 300px;
    }

    .contact_blok {
        display: flex;
        flex-direction: column;
        gap: 70px;
    }

    .contact-info {
        padding: 20px 0px 20px 0px;
    }

.footer {height: 140px;}

    .blog,
    .footer {
        margin-bottom: 0px;
    }

    .gallery {
        padding: 30px;
    }

    .error_text {
        padding: 20px;
    }

    .errorpicture {
        display: none;
    }

    .picture2 {
        display: none;
    }

    .back {margin: 10px;}
    .back img {height: 36px;}
}

/* Стили для больших планшетов вертикальные */

@media screen and (max-height: 1440px) and (orientation: portrait) {
    body {
        font-size: 24px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
    font-size: 32px;
    }

    .btn {
        font-size: 22px;
        padding: 16px 50px;
    }

.signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 80px;
    }

    .fill {
        padding: 7px 7px 7px 7px;
    }

    .title_typing {
        padding: 18px 7px 5px 7px;
    }

    .descriptions_text, .descriptions_overlay {
        font-size: 20px;
    }

    .drag {
        display: flex;
    }

    .texthairs {gap: 20px;}
 
    .about_text {
        gap: 30px;
    }

    .content-frame {font-size: 28px;}

    .ulh2.with-margin {
        margin-top: 30px;
    }

    .ulh2 {gap: 20px;}

    .title {margin-bottom: 20px;}

    .text_container, .descriptions, .contact_blok, .about_text {
        height: calc(100% - 160px);
    }

    .page_question.show {
        top: unset;
        bottom: 0;
        height: 50vh;
        width: 100%;
    }

    .page_question.show {
        animation: slide-in-bottom 0.5s forwards;
    }
    
    .page_question.hide {
    animation: slide-out-bottom 0.5s forwards;
    }

    .question_image {
        content: url('img/question_mobile.png');
    }

    .descriptions {
        gap: 30px;
    }

    .contact-info {
        padding: 0;
    margin: 0;
    }

    .underline {
        text-decoration-thickness: 2px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
    }

    .logo_mobile img {
        width: 250px;
    }

    .undertext img {
        display: none;
        margin-top: 30px;
        width: 300px;
    }

    .logo img {
        width: 250px;
    }

    .header_links {
        display: none;
    }

    .learn-info {
        padding: 0;
    }

    .signup {
        display: none;
    }

    .burger-icon {
        display: flex;
    }

    .cross {
        padding-right: 80px;
    }

    .logomob {
        padding-left: 80px;
    }

    .signup_mobile {
        position: relative;
             display: flex;
    justify-content: center;
    width: 100%;
    }

    .mob_but {
        gap: 20px;
    }

    .language-switcher {
        margin-left: 0;
        padding-bottom: 40px;
    }

    .about {
        flex-direction: column;
    }

    .about_text_button {
        order: 1;
        height: 50vh;
    }

    .about_image {
        order: 2;
        height: 50vh;
    }

    .about_image img {
        object-position: center;
    }

    .services {
        flex-direction: column;
    }

    .services_image {
        flex: 1;
        order: 1;
    }

    .services_container {
        flex: 1;
        order: 0;
    }

    .servimage {
        display: flex;
    }

    .page1 {
        height: 50vh;
    }

    .page2 {
        height: auto;
 
    }

    .page2 img {
        object-fit: contain;
        height: 100%;
    }

    .page3 {
        min-height: 100vh;
    }

    .servimage img {
        height: 50vh;
    }

    .page3 {
        display: flex;
    }

    .services_text {
        gap: 0px;
    }

    .imserv {
        display: none;
    }

    .portfolio {
        padding: 0;
    }

    .horizontal_layout {
        gap: 4px;
        padding-bottom: 4px;
    }

    .arrow {
        display: none;
    }

    .contacts {
        flex-direction: column;
    }

    .cc {margin: 0;}

    .contact-info {
        padding: 10px 0px 10px 0px;
    }

    .contacts_text {
        flex: 1;
        height: 50vh;
        order: 1;
    }

    .contacts_map {
        flex: 1;
        height: 50vh;
        order: 0;
    }

    .contacts_map iframe {
        height: 50vh;
    }

    .contact_blok {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

.contacts_title {
    margin-bottom: 20px;
}

    .blog {
        flex-direction: column;
        margin-bottom: 0;
    }

    .blog_text {
        position: relative;
        order: 1;
        height: 50vh;
    }

    .blok-blog {
        overflow-y: auto;
    }

    .blog_image {
        order: 2;
        height: 50vh;
    }

    .blog_image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .blog_container {
        gap: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
    }

    .footer {
        height: 100px;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-bottom: 0px;
    }


    .foot {
        height: 7vh;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .image_foot {
        height: 60px;
    }

    body.error-404 {
        background-image: none;
        background-color: var(--natural);
    }

    .gallery {

        justify-content: center;
        overflow: hidden;
        padding: 0;
    }

    .error {
        display: none;
    }

    .picture2,
    .errorpicture {
        display: flex;
    }

    .errorpicture {
        max-height: 60vh;
        width: auto;
    }

    .picture {
        height: 30vh;
        width: auto;
        margin-right: -3%;
    }


    .button404_text,
    .error_text {
        position: absolute;
    }

    .button404_text {
        width: 70%;
        justify-content: center;
    }

    .error_text {
        padding: 0;
        height: 80vh;
        align-items: center;
    }
.learn_page1, .learn_page2, .learn_page3 {
flex-direction: column;
}

.text_page1_1, .text_page2_1, .text_page2_2, .text_page3_1, .text_page3_2 {
    height: auto;
    min-height: 50vh;
}

.learn_image1 img, .learn_image2 img, .learn_image3 img {
    height: 50vh;
}

.image-wrapper {
    pointer-events: none;
    flex-basis: 23vh;
}

.button_sign {
    height: 110px;
    width: 110px;
    bottom: 30px;
}

.footer {
    height: 120px;
}

}

/* Стили для планшетов горизонтальные */

@media screen and (max-width: 1024px) and (orientation: landscape) {
    body {
        font-size: 20px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 26pX;
    }

    .btn {
        font-size: 20px;
        padding: 14px 30px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 40px;
    }

    .fill {
        padding: 7px 7px 7px 7px;
    }

    .question {
        height: 70px;
        width: 70px;
        bottom: 30px;

    }

    .drag {
        display: none;
    }
    

    .question.show {
        left: 30px;
    }

    .button_sign {
        height: 100px;
        width: 100px;
        bottom: 30px;
    }

    .button_sign.show {
        right: 30px;
    }

    .title_underline {
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    .texthairs {gap: 10px;}

    .text_container, .descriptions, .contact_blok, .about_text {
        height: calc(100% - 80px);
    }

    .about_text {
        gap: 30px;
    }

    .learn-info {
        padding: 10px 0px 10px 0px;
        gap: 20px;
    }

    .text_container {
        gap: 20px;
    }

    .descriptions_text, .descriptions_overlay {
        font-size: 18px;
    }

    .ulh2.with-margin {
        margin-top: 20px;
    }

    .ulh2 {gap: 16px;}
    .ullong {gap: 4px;}

    .content-frame {font-size: 24px;}
   
    .underline {
        text-decoration-thickness: 2px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
    }

    .logo_mobile img {
        width: 250px;
    }

    .logo img {
        max-width: 250px;
    }

    .undertext img {
        margin-top: 30px;
        width: 300px;
    }

    .menu {
        padding-left: 40px;
        padding-right: 40px;
    }

    .cross {
        padding-right: 40px;
    }

    .logomob {
        padding-left: 40px;
    }

    .header_links {
        display: none;
    }

    .signup {
        display: none;
    }

    .btn_services {display: flex;}

    .burger-icon {
        display: flex;
    }

    .signup_mobile {
        position: relative;
    }

    .title {
        margin-bottom: 10px;
    }

    .section-learn {
        padding-right: 40px;
        padding-left: 40px;
    }

    .language-switcher {
        margin-left: 0;
        padding-bottom: 40px;
    }

    .page1 {
        height: 100vh;
    }

    .portfolio {
        padding: 0;
        gap: 6px;
    }

    .portfolio_gallery {
        -webkit-overflow-scrolling: touch;
    }

    .portfolio_item_tl,
    .portfolio_item_tr,
    .portfolio_item_bl,
    .portfolio_item_br {
     
        flex-basis: 30vh;   
        display: flex;
    }

    .arrow {
        display: none;
    }

    .info-icon img {
        max-width: 44px;
    }

    .contact-link {
        width: 250px;
    }

    .contact-info-blok {
        gap: 0;
    }

    .blok-blog {
        height: 50vh;
        overflow-y: auto;
    }

    .info-icon {
        margin-right: 6px;
    }

    .footer {
        height: 140px;
       
    }

    .image_foot {
        height: 40px;
    }

.contact_blok {gap: 20px;}
.contact-info {
    padding: 10px;
}

    .back {
        gap: 0px;
        margin: 0;
    }

    .back_footer p {margin-right: 100px;}

    body.error-404 {
        background-image: none;
        background-color: var(--natural);
    }

    .gallery {
        padding: 15px;
    }

    .error {
        display: none;
    }

    .errorpicture {
        display: flex;
    }

    .picture2 {
        display: none;
    }

}

/* Стили для планшетов вертикальные */

@media screen and (max-height: 1024px) and (orientation: portrait) {
    body {
        font-size: 20px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 26pX;
    }

    .btn {
        font-size: 20px;
        padding: 14px 30px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 40px;
    }

    .drag {
        display: flex;
    }

    .question {
        height: 70px;
        width: 70px;
        bottom: 30px;
    }

    .question.show {
        left: 30px;
    }

    .button_sign {
        height: 100px;
        width: 100px;
        bottom: 20px;
    }

    .button_sign.show {
        right: 20px;
    }

    .fill {
        padding: 7px 7px 7px 7px;
    }

    .title_typing {
        padding: 18px 7px 10px 7px;
    }

    .title_underline {
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    .texthairs {gap: 10px;}

    .text_container, .descriptions, .contact_blok, .about_text {
        height: calc(100% - 80px);
    }

    .about_text {
        gap: 30px;
    }

    .learn-info {
        padding: 10px 0px 10px 0px;
        gap: 20px;
    }

    .text_container {
        gap: 20px;
    }

    .descriptions_text, .descriptions_overlay {
        font-size: 18px;
    }

    .ulh2.with-margin {
        margin-top: 20px;
    }

    .ulh2 {gap: 16px;}
    .ullong {gap: 4px;}

    .content-frame {font-size: 24px;}

    .underline {
        text-decoration-thickness: 2px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
    }

    .menu {
        padding-left: 40px;
        padding-right: 40px;
    }

    .cross {
        padding-right: 40px;
    }

    .mobile-menu {
        width: 100%;
    }

    .logomob {
        padding-left: 40px;
    }

    .signup_mobile {
        position: relative;
    }

    .mob_but {
        gap: 20px;
    }

    .language-switcher {
        margin-left: 0;
        padding-bottom: 40px;
    }

    .about {
        flex-direction: column;
    }

    .about_title {
        margin-bottom: 10px;
    }

    .about_text_button {
        order: 1;
        height: 50vh;
    }

    .about_image {
        order: 2;
        height: 50vh;
    }

    .about_image img {
        object-position: top;
    }

    .learn-info {
        margin-top: 10px;
    }

    .services {
        flex-direction: column;
    }

    .servimage {
        display: flex;
    }

    .page1 {
        height: auto;
    }


.section-learn {
    padding-left: 40px;
    padding-right: 40px;
}

    .servtext {
        display: flex;
        height: auto;
    }

    .servimage img {
        height: 50vh;
    }

    .page3 {
        display: flex;
    }

    .services_text {
        gap: 0px;
    }

    .imserv {
        display: none;
    }

    .portfolio {
        padding: 0;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
    }

    .horizontal_layout {
        gap: 4px;
        padding-bottom: 4px;
    }

    .portfolio_item_tl,
    .portfolio_item_tr,
    .portfolio_item_bl,
    .portfolio_item_br {
  
        display: flex;
        flex-basis: 23vh;
    }

    .arrow {
        display: none;
    }

    .contacts {
        flex-direction: column;
    }

    .contacts_map {
        order: 1;
        height: 50vh;
    }

    .contacts_map iframe {
        height: 50vh;
    }

    .contacts_text {
        order: 2;
        height: 50vh;
    }

    .contact-info {
        padding: 0;
    }


    .contact-info-blok {
        gap: 20px;
    }

    .contact-link {
        width: 300px;
    }

    .info-icon {
        margin-right: 20px;
    }

    .contact_blok {
        display: flex;
        flex-direction: column;
        gap: 20px;

    }

    .contacts_title {
        margin-bottom: 20px;
    }

    .blog {
        flex-direction: column;
    }

    .blog_title {
        margin-bottom: 40px;
    }

    .blog_text {
        position: relative;
        order: 1;
        height: 50vh;
    }

    .blok-blog {
        height: 26vh;
        overflow-y: auto;
    }

    .blog_image {
        order: 2;
        height: 50vh;
    }

    .blog_image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .footer {
        height: 70px;
        padding-top: 20px;
        padding-bottom: 20px;
        font-size: 18px;
    }

    .foot {
        height: 10px;
        padding-top: 20px;
        padding-bottom: 20px;
        padding: 0px 20px 0px 20px;
    }

    .image_foot {
        height: 36px;
    }

    .back {
        gap: 0px;
        margin: 0;
        padding: 7px;
    }

    .back img {
        height: 36px;
    }

    .button_sign {
        height: 100px;
        width: 100px;
        bottom: 30px;
    }
    
    .footer {
        height: 100px;
    }

}

/* Стили для телефонов горизонтальные M L */

@media screen and (max-width: 767px) and (orientation: landscape) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 32px;
        padding-bottom: 10px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .title {
        margin-bottom: 10px;
    }

    .texthairs {
        gap: 10px;
    }

    .question {
        height: 60px;
        width: 60px;
        bottom: 20px;
    }

    .drag {
        display: none;
    }
    

    .question.show {
        left: 20px;
    }

    .button_sign {
        height: 80px;
        width: 80px;
        bottom: 10px;
        font-size: 20px;
    }

    .button_sign.show {
        right: 10px;
    }

    .texthairs img {
        height: 30px;
    }

    .learn-info img {width: 30px;}

    .about_text {
        gap: 10px;
    }

    .learn-info {
        padding: 0;
        gap: 10px;
    }

    .text_container, .descriptions, .contact_blok, .about_text {
        height: calc(100% - 60px);
    }

    .text_container {
        gap: 10px;
    }

    .descriptions {
        gap: 10px;
    }
    
    .title_typing {
        padding: 10px 5px 6px 5px;
    }

    .descriptions_text, .descriptions_overlay {
        font-size: 12px;
    }

    .content-frame {font-size: 20px;}

    .descriptions_text {gap: 10px;}

    .hr-line {
        border-top: 1px solid #30241A;
    margin: 0;
    }

    .arrow-container {
        margin-left: -28px;
    }

    .arrow-container2 {
        margin-left: -0px;
    }

    .arrow-container img, .arrow-container2 img {
        height: 28px;
    }

    .ulli {margin: 0px 0px 0px 30px;
    }

    .ulh2.with-margin {
        margin-top: 10px;
    }

    .ulh2 {gap: 10px;}


.section-learn {padding-bottom: 0;}

    .hh{margin-bottom: 10px;}
 
    .btn {
        font-size: 18px;
        padding: 12px 24px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 30px;
    }

    .fill {
        padding: 5px 5px 5px 5px;
    }

    .underline {
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
    }

    .section-learn {
        padding-right: 30px;
        padding-left: 30px;
    }

    .title_learn {
padding-bottom: 0px;
    }

    .menu {
        padding-left: 40px;
        padding-right: 40px;
    }

    .header {
        align-items: stretch;
    }

    .about_text_button {    
        overflow-y: auto;
    }

    .about_text_button::-webkit-scrollbar { 
        width: 0px;
    }

    .header,
    .logo_mobile {
        padding-top: 20px;
    }

    .info-icon img {
        max-width: 28px;
    }

    .contact-info {
        margin-bottom: 0px;
    }

    .header, .logo_mobile {
        padding-top: 10px;
    }

    .logo img, .logomob img {
        width: 200px;
    }

    .undertext img {
        display: none;
        margin-top: 30px;
        width: 250px;
    }

    .cross {
        padding-right: 30px;
    }

    .logomob {
        width: 250px;
        padding-left: 30px;
    }

    .mobile-menu {
        font-size: 16px;
    }

.header_links_mobile {
    gap: 10px;
}

    .header_link {
        font-size: 20px;
    }

    .mob_but, .language-switcher {padding-bottom: 10px;}

    .page1 {
        height: auto;
    }

    .page3 .title {
        margin-bottom: 10px;
    }

    .portfolio {
        padding: 0;  
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .horizontal_layout {
        gap: 4px;
        padding-bottom: 4px;
    }

    .portfolio_gallery {
        margin-top: 15px;
        height: 100vh;
    }

    .arrow {
        display: none;
    }

    .contact-info {
        padding: 0px;
    }

    .contact-info {
        margin-bottom: 0px;
    }

    .contact_blok {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .blog_title {
        margin-bottom: 10px;
    }

    .blok-blog {
        height: 60vh;
        overflow-y: auto;
    }

    .foot {
        padding: 0px 20px 0px 20px;
    }

    .footer {
        height: 100px;
        font-size: 12px;
    }

    .back_footer p {

        font-size: 16px;
    }

    .footer img {
        height: 20px;
    }

    .back img {
        height: 28px;
    }

    .back {
        gap: 5px;
        padding: 0;
        margin-right: 7px;
    }

    .gallery {
        padding: 15px;
    }

    .button404_text,
    .errorpicture {
        width: 48%;
    }

    .button404_text {
        height: 40vh;
    }

    .picture {
        display: none;
    }

    .errorpicture {
        content: url('img/errorpicture_horizont.png');
    }
    .errorpicture401 {
        content: url('img/errorpicture_horizont401.png');
    }
    .errorpicture403 {
        content: url('img/errorpicture_horizont403.png');
    }

    .errorpicture500 {
        content: url('img/errorpicture_horizont500.png');
    }



    .picture2 {
        display: none;
    }

    .cc{margin-top: 40px;
        padding-top: 0;}

.portfolio {gap: 2px;}

    .image-wrapper {

    flex-basis: 30vh;
    }

    .section-learn {
        padding-right: 30px;
        padding-left: 30px;
    }

}

/* Стили для телефонов вертикальные M L */

@media screen and (max-height: 767px) and (orientation: portrait) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 32px;
        padding-bottom: 10px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }



    .texthairs img {
        height: 30px;
    }

    .learn-info img {width: 30px;}

    .drag {
        display: flex;
    }

    .about_text {
        gap: 10px;
    }

    .learn-info {
        padding: 0;
        gap: 10px;
    }

    .question {
        height: 60px;
        width: 60px;
        bottom: 20px;
    }

    .question.show {
        left: 20px;
    }

    .button_sign {
        height: 80px;
        width: 80px;
        bottom: 10px;
        font-size: 20px;
    }

    .button_sign.show {
        right: 10px;
    }

    .text_container, .descriptions, .contact_blok, .about_text {
        height: calc(100% - 60px);
    }

    .text_container {
        gap: 20px;
    }

    .descriptions {
        gap: 10px;
    }
    
    .title_typing {
        padding: 10px 5px 6px 5px;
    }

    .descriptions_text, .descriptions_overlay {
        font-size: 12px;
    }

    .ulh2.with-margin {
        margin-top: 16px;
    }
    
    .texthairs {
        gap: 16px;
    }

    .ulh2 {gap: 16px;}
    
    .ullong {
    gap: 0px;
}

    .content-frame {font-size: 20px;}

    .descriptions_text {gap: 10px;}

    .hr-line {
        border-top: 1px solid #30241A;
    margin: 0;
    }

    .hr-line {
        border-top: 1px solid #30241A;
    margin: 0;
    }

    .arrow-container {
        margin-left: -28px;
    }

    .arrow-container2 {
        margin-left: -0px;
    }

    .arrow-container img, .arrow-container2 img {
        height: 28px;
    }

    .ulli {margin: 0px 0px 0px 30px;
    }

    .hh{margin-bottom: 10px;}

    .btn {
        font-size: 18px;
        padding: 12px 24px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 30px;
    }

    .header_link {
        font-size: 20px;
    }

    .fill {
        padding: 2px 2px 2px 2px;
    }

    .mob_but, .language-switcher {padding-bottom: 10px;}

    .underline {
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
        height: 100vh;
    }

    .title {margin: 0px;
    }

    .header, .logo_mobile {
        padding-top: 10px;
    }

    .logo img, .logomob img {
        width: 200px;
    }

    .undertext img {
        margin-top: 30px;
        width: 250px;
    }

    .mobile-menu {
        height: 100vh;
        width: 100%;
    }

    .logo img {
        width: 200px;
    }

    .undertext img {
        display: none;
        margin-top: 30px;
        width: 250px;
    }

    .menu {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logomob {
        padding-left: 20px;
    }

    .learn-info {
        padding: 0px;
        gap: 10px;
    }

    .header,
    .logo_mobile {
        padding-top: 20px;
    }

    .cross {
        padding-right: 20px;
    }

    .about_text_button {
        overflow-y: auto;
    }

    .about_text_button::-webkit-scrollbar { 
        width: 0px;
    }

    .page1 {
        height: auto;
    }

    .portfolio {
        padding: 0;
        gap: 2px;
    }

    .horizontal_layout {
        gap: 4px;
        padding-bottom: 4px;
    }

    .portfolio_gallery {
        margin-top: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .portfolio_item_tl,
    .portfolio_item_tr,
    .portfolio_item_bl,
    .portfolio_item_br {
 
        display: flex;
        flex-basis: 23vh;
    }

    .arrow {
        display: none;
    }

    .contacts {
        flex-direction: column;
    }

    .contacts_text {
        flex: 1;
        height: auto;
        order: 1;
    }

    .contacts_map {
        flex: 1;
        height: 50vh;
        order: 0;
    }

    .contact_blok{
    height: calc(100% - 40px);
    gap: 4px;
    }

    .contact_blok::-webkit-scrollbar { 
        width: 0px;
    }

    .contacts_map iframe {
        height: 50vh;
    }



    .contact-link {
        max-width: 200px;
    }

    .contact-info {
        margin-bottom: 0px;
    }

    .blok-blog {
        height: 30vh;
        overflow-y: auto;
    }

    .info-icon img {
        max-width: 28px;
    }

    .footer {
        height: 60px;
        font-size: 12px;
    }

    .footer p {
        font-size: 16px;
    }

    .footer img {
        height: 20px;
    }

    .back {
        gap: 5px;
        padding: 0;
        margin-right: 7px;
    }

    .back img {height: 28px;}


    .section-learn {
        padding-right: 30px;
        padding-left: 30px;
    }

    .back_footer p {
        margin-right: 100px;
    }

}

/* Стили для телефонов горизонтальные S */

@media screen and (max-width: 420px) and (orientation: landscape) {
    body {
        font-size: 12px;
        padding: 0;
        margin: 0;
    }

    h1 {
        font-size: 24px;
        padding-bottom: 10px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 20px;
    }

    .drag {
        display: none;
    }
    

.header {padding-top: 10px;}

.contact-info-blok {margin-top: 0;}

.header_link {
    font-size: 16px;
    }

.header_links_mobile {
    gap: 10px;
    }

    .fill {
        padding: 5px 5px 5px 5px;
    }

    .underline {
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
        height: 100vh;
        overflow-y: auto;
    }

    .question {
        height: 50px;
        width: 50px;
        bottom: 10px;
    }

    .question.show {
        left: 10px;
    }

    .button_sign {
        height: 70px;
        width: 70px;
        bottom: 10px;
        font-size: 16px;
    }

    .button_sign.show {
        right: 10px;
    }

    .services {
        height: 100vh;
        overflow-y:unset;
    }

    .services_image {
        display: none;
    }

    .logo img {
        width: 150px;
    }

    .undertext img {
        display: none;
        margin-top: 30px;
        width: 200px;
    }

    .logo_mobile img {
        width: 150px;
    }

    .ulh2 {gap: 6px;}

    .ullong {
        gap: 0px;
    }

    .ulh2.with-margin {
        margin-top: 10px;
    }

.mobile-menu {font-size: 16px;
max-width: 100%;}
.language-switcher img {
    min-height: 20px;
    min-width: 20px;
    max-height: 20px;
    max-width: 20px 
}

.language-switcher {padding-bottom: 20px;}

    .menu {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cross {
        padding-right: 15px;
    }

    .learn-info {
        padding: 2px;
        gap: 2px;
    }

    .portfolio {
        gap: 1px;
    }

    .logomob {
        padding-left: 15px;
    }

    .footer {
        height: 60px;
        padding-top: 16px;
        padding-bottom: 16px;
        margin-bottom: 0px;
        font-size: 8px;
    }



    .foot {
        padding: 0px 10px 0px 10px;
    }

    .back {
        gap: 0px;
    }

    .footer img {
        height: 24px;
    }

.image-wrapper {

        flex-basis: 29vh;
    }


    .texthairs {
        gap: 10px;
    }
    
    .headerhair img {
        height: 26px;
    }
    
    .title {margin-bottom: 0px;}

.texthairs img {
        height: 20px;
    }

.learn-info img {width: 20px;}

.text_container, .descriptions, .about_text, .contact_blok {
    height: calc(100% - 40px);
}

.about_image {display: none;}

.info-icon img {
    max-width: 24px;
    max-height: 24px;
}

.contact-info {
    padding: 0px;
}

#scrollButton {
    bottom: 20px; 
    right: -30px;

}

#scrollButton.show {
    right: 20px; /* Показываем кнопку при прокрутке */
}
.back {
    border-radius: 2px;}

.back_footer p {
    font-size: 10px;
    margin-right: 100px;
}

.logo_mobile {
    gap: 0px;
    padding-top: 10px;
}
.mob_but {padding: 0;}



    .button404_text,
    .errorpicture {
        width: 50%;
    }

    .button404_text {
        height: 60vh;
    }

    .picture {
        display: none;
    }

    .errorpicture {
        content: url('img/errorpicture_horizont.png');
    }

    .errorpicture401 {
        content: url('img/errorpicture_horizont401.png');
    }
    .errorpicture403 {
        content: url('img/errorpicture_horizont403.png');
    }

    .errorpicture500 {
        content: url('img/errorpicture_horizont500.png');
    }

    .section-learn {
        padding-right: 20px;
        padding-left: 20px;
    }
    
        .ulh2.with-margin {
        margin-top: 16px;
    }
    
    .texthairs {
        gap: 16px;
    }

    .ulh2 {gap: 16px;}
    
    .ullong {
    gap: 0px;
}

}

/* Стили для телефонов вертикальные S */

@media screen and (max-height: 420px) and (orientation: portrait) {
    body {
        font-size: 12px;
        padding: 0;
        margin: 0;
    }

    h1 {
        font-size: 24px;
        padding-bottom: 10px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    
.header {padding-top: 10px;}

.contact-info-blok {margin-top: 0;}

.drag {
    display: flex;
}

.header_link {
    font-size: 16px;
    }

.header_links_mobile {
    gap: 10px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .signup_mobile{
padding: 20px 0px;
}


    .center {
        padding: 20px;
    }

.header_link {
    font-size: 16px;
    }

.header_links_mobile {
    gap: 10px;
    }

    .ulh2 {gap: 6px;}

    .ullong {
        gap: 0px;
    }

    .ulh2.with-margin {
        margin-top: 10px;
    }

    .services_image {
        display: none;
    }

    .contact-info-blok {
gap: 4px;
    }

    .texthairs {
        gap: 10px;
    }

    .texthairs {
        gap: 10px;
    }

    
    .question {
        height: 50px;
        width: 50px;
        bottom: 10px;
    }

    .question.show {
        left: 10px;
    }

    .button_sign {
        height: 50px;
        width: 50px;
        bottom: 10px;
    }

    .button_sign.show {
        right: 10px;
    }
    
    .headerhair img {
        height: 26px;
    }
    
    .title {margin-bottom: 0px;}

.texthairs img {
        height: 20px;
    }

.learn-info img {width: 20px;}

.text_container, .descriptions, .about_text, .contact_blok {
    height: calc(100% - 40px);
}

    .fill {
        padding: 5px 5px 5px 5px;
    }

    .underline {
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }

    .section {
        margin-bottom: 0px;
        height: 100vh;
    }

    .logo img {
        width: 150px;
    }

    .undertext img {
        display: none;
        margin-top: 30px;
        width: 200px;
    }

    .logo_mobile img {
        width: 150px;
    }

.mobile-menu {font-size: 16px;}
.language-switcher img {
    min-height: 20px;
    min-width: 20px;
    max-height: 20px;
    max-width: 20px 
}

.language-switcher {padding-bottom: 20px;}

    .menu {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cross {
        padding-right: 15px;
    }

    .learn-info {
        padding: 2px;
        gap: 2px;
    }

    .portfolio {
        gap: 1px;
    }

    .logomob {
        padding-left: 15px;
    }

    .footer {
        height: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        margin-bottom: 0px;
        font-size: 8px;
    }

    .foot {
        padding: 0px 10px 0px 10px;
    }

    .back {
        gap: 0px;
    }

    .footer img {
        height: 24px;
    }


    .button_sign {
        height: 70px;
        width: 70px;
        bottom: 10px;
        font-size: 16px;
    }

    .button_sign.show {
        right: 10px;
    }

.image-wrapper {

    flex-basis: 23vh;
}

.info-icon img {
    max-width: 24px;
    max-height: 24px;
}

.contact-info {
    padding: 0px;
}

#scrollButton {
    bottom: 20px; 
    right: -20px;

}

#scrollButton.show {
    right: 20px; /* Показываем кнопку при прокрутке */
}
.back {
    border-radius: 2px;}

.back_footer p {
    font-size: 10px;
    margin-right: 50px;
}
.logo_mobile {gap: 0px;}

.section-learn {
    padding-right: 20px;
    padding-left: 20px;
}
.contact-info-blok {margin-top: 0;}

.footer {
    height: 60px;
}

}

/* Стили для телефонов горизонтальные XS */

@media screen and (max-width: 320px) and (orientation: landscape) {
    .drag {
        display: none;
    }
    

.image-wrapper {
    flex-basis: 29vh;
    }

}

/* Стили для телефонов вертикальные XS */

@media screen and (max-height: 320px) and (orientation: portrait) {
    .drag {
        display: flex;
    }
}