@import "reset.css";

:root {
    --tpl-color: #8144b2;
    --caption-color: #5d119a;
    --silver-color: rgb(194, 194, 194);
    --card-radius: 20px;
    --card-small-radius: 15px;
    --fancybox-scrollbar-compensate: 0px;
}
html {
    scroll-padding-top: 120px;
}
body {
    font-family: "Onest", sans-serif;
    font-size: 1.125em;
    font-weight: 300;
    line-height: 1.2em;
}

body.fancybox-open {
    overflow: hidden;
    padding-right: var(--fancybox-scrollbar-compensate) !important;
}

.with-fancybox nav {
    width: calc(100% - var(--fancybox-scrollbar-compensate));
}

.with-fancybox .fixed {
    padding-right: var(--fancybox-scrollbar-compensate) !important;
}
#top-phone {
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}
#cookies_warning {
    box-shadow: 0px 5px 30px -2px rgba(0, 11, 48, 0.1);
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 999;
    padding: 16px 25px;
    font-size: 13px;
    max-width: min(335px,80vw);
    background: #fff;
    border-radius: 15px;
    line-height: 15px;
}
#cookies_warning .close:hover {
    opacity: 1;
}
#cookies_warning .close {
    position: absolute;
    right: 7px;
    top: 5px;
    cursor: pointer;
    opacity: 0.9;
    padding: 10px;
}
h1, .h1 {
    font-size: 2.3em;
    font-weight: 400;
    line-height: 1.2em;
}

h1 + p {
    font-size: 1em;
    margin-bottom: 30px;
    line-height: 1.4em;
}

h1 + p strong {
    color: var(--tpl-color);
    font-weight: 300;
    white-space: nowrap;
}

h2, .h2 {
    font-size: max(2.2vw, 1.775em);
    font-weight: 400;
    line-height: 1em;
    margin-bottom: 20px;
}
h2 a, .h2 a {
    color: #000;
    text-decoration: none;
}
#seo_content h1 {
    font-size: 2em;
    line-height: 1.2em;
    margin-bottom: 15px;
}
#seo_content.container {
    max-width: 760px;
}
#seo_content blockquote {
    border-left: 3px solid;
    padding-left: 21px;
    padding-top: 2px;
    padding-bottom: 0px;
    font-weight: 600;
}
#seo_content blockquote p {

}

.with-point:before, #seo_content h2:before {
    content: "•";
    font-family: Arial, serif;
    display: inline-block;
    color: var(--tpl-color);
    font-size: 90%;
    margin-right: 10px;
}
#blog-list {
    padding-bottom: 40px;
}
#seo_content strong {
    font-weight: 500;
}
#seo_content .tags {
    margin-top:10px;
    margin-bottom: 20px;
    opacity: 0.5;
}
#seo_content .tags a {
    color: #000;

}
#seo_content .page-text img.main {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
}
#seo_content h2 {
    margin-bottom: 20px;
    font-size: 1.4em;
    margin-top: 30px;
    font-weight: 600;
}
#seo_content h2:before {
    display: none;
}
#seo_content p, #seo_content ol, #seo_content ul {
    margin-bottom: 20px;
    line-height: 1.4em;
}

#seo_content ol {
    list-style-type: disc;
    list-style-position: inside;
    text-indent: 0px;
}
#seo_content ul {
    list-style: decimal;
    list-style-position: inside;
    text-indent: 0px;
}

#seo_content p + h2 {
    margin-top: 40px;
}

#seo_content.page-text strong {
    color: initial;
}
#seo_content.page-text {}
#seo_content.page-text h1 {margin-bottom: 30px;}
#seo_content.page-text p{
    font-size: 1.1em;
    margin-bottom: 20px;

}

#blog .image {
    border-top-left-radius: var(--card-small-radius);
    border-top-right-radius: var(--card-small-radius);
}

#blog .card .fio {
    font-weight: 300;
}

#blog .card {
    max-width: initial;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.container > h2 {
    margin-bottom: 40px;
}

.comment {
    opacity: 0.5;
    font-size: 90%;
    display: block;
}

.comment a {
    text-decoration: none;
}

.tags {
    display: flex;
    gap: 10px;
    font-size: 90%;
}

.tags a, .tags span,  .tags span a {
    color: var(--tpl-color);
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 95%;
}
.tags span a:hover {
    text-decoration: underline;
}
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

h3 {
}

a {
    cursor: pointer;
    text-decoration: none;
    color: #000;
}
a[href^="tel:"] {
    white-space: nowrap;
}
a:not(.nolink) {
    text-decoration: underline;
    color: var(--tpl-color);
}

a:not(.nolink):hover {
    text-decoration: none;
}

.rel {
    position: relative;
}

.silver {
    color: var(--silver-color)
}

.black {
    color: #000;
}

.bold, .fw500 {
    font-weight: 500;
}

.pb20 {
    padding-bottom: 20px;
}

.pb30 {
    padding-bottom: 30px;
}

.mb30 {
    margin-bottom: 30px;
}

.mb20 {
    margin-bottom: 20px;
}

.mb15 {
    margin-bottom: 15px;
}

.pointer {
    cursor: pointer;
}

.container {
    max-width: 1160px;
    padding: 0px 20px;
    margin-left: auto;
    margin-right: auto;
}

.container.two_col {
    display: flex;
}

.container > .btn.block {
    margin-top: 30px;
}

.rel {
    position: relative;
}

.flex {
    display: flex
}

.two_col {
    display: flex;
}

.two_col.background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    display: flex;
}

.two_col .col-1, .two_col .col-2 {
    display: flex;
    align-items: center;
}

.two_col .col-1 {
    flex: 1;
    max-height: 120vh;
    overflow: hidden;
}
.two_col .col-2 {
    flex: 1;
}

.two_col .col-2 .inner {
    padding-left: 60px;
}

.first .two_col .col-2 .inner {
    max-width: 560px;
}

.col-2.left-shadow {
    box-shadow: 0px 0px 31px rgba(0, 0, 0, 0.2);
}

section {
    margin-top: 100px;
}
section.content.top  .container {
    line-height: 1.4;
}
section.content.top  .container p{
    margin-bottom: 15px;
}
section.content.top  .container p:last-child{
    margin-bottom: 0px;
}
section.first {
    margin-top: 0px;
    padding-top: 0px;
}

section.first.is-service {
    padding-top: 100px;
}

section.first.is-service .two_col .col-1 .inner {
    padding-left: 30px;
    padding-bottom: 30px;
    max-height: max(400px,80vh);
}

section.first.is-service .two_col .col-2 .inner {
    padding-right: 20px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

section.first.is-service .two_col .inner img {
    border-radius: var(--card-radius);
}

section.first.is-service .col-1 .inner img {
    min-height: 80vh;
}

section .splide__arrow svg {
    fill: #fff;
}

section .splide__arrow--prev {
    left: 2em;
}

section .splide__arrow--next {
    right: 2em;
}

section .splide__arrow {
    height: 40px;
    width: 40px;
    background-color: var(--tpl-color);
    opacity: 1;
}

a.btn {
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

.lazy {
}

.btn {
    cursor: pointer;
    border: 1px solid var(--tpl-color);
    border-radius: 33px;
    padding: 21px 28px;
    font-size: 0.85em;
    font-weight: 400;
    display: flex;
    text-align: center;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    color: rgb(129, 68, 178);
    background-color: transparent;
    justify-content: center;
    align-items: center;
}

.first .btn {
    min-width: 100px;
}

.btn:not(.transparent) {
    _background-color: #fff;
}

.btn.inline {
    display: inline-block;
}

.btn.block {
    display: block;
}

.btn.small {
    padding: 7px 14px;
    font-size: 0.7em;
}

.btn:hover, .btn.active {
    background: linear-gradient(0.25turn, rgba(174, 138, 211, 1) 0%, rgba(132, 67, 200, 1) 100%);
    border-color: transparent;
    color: #fff;
}

.btn.fill {
    background: linear-gradient(0.25turn, rgba(174, 138, 211, 1) 0%, rgba(132, 67, 200, 1) 100%);
    border-color: transparent;
    color: #fff;
    transition: opacity 0.3s ease-in-out;
}

.btn.fill:hover {
    opacity: 0.9;
}

.mt30 {
    margin-top: 30px;
}

.fs105 {
    font-size: 105%
}

.fs110 {
    font-size: 110%;
}

.fs120 {
    font-size: 120%
}

.fs80 {
    font-size: 80%
}

.fs70 {
    font-size: 70%
}

.fs60 {
    font-size: 70%
}

nav {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 400;

}

nav + section {
    padding-top: 80px;
    margin-top: 70px;
}

nav a.btn {
    background-color: #f8f8ff;
}

nav .logo-link {
    margin-top: 10px;
    position: relative;
    z-index: 3;
}

nav .logo-link img {
    max-width: 150px;
}

nav.add-animate {
    top: -90px;
    position: fixed;
    transition: top 0.3s ease-in-out 0.1s, background 0.2s ease-in-out 0.1s;
}

nav.fixed {
    background: #fff;
    z-index: 9999;
    top: 0px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

nav .inner {
    display: flex;
    justify-content: space-between;
}

nav .right {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav .btn {
    padding: 12px 28px;
}

.z-2 {
    z-index: 2;
}

.upper {
    text-transform: uppercase;
}

.socials {
    gap: 12px;
    display: flex;
}

.socials a {
    display: inline-block;
    width: 30px;
    aspect-ratio: 1;
}

.socials a:hover {
    opacity: 0.85;
}

.socials .vk {
    background: url("/assets/tpl/img/social/vk.svg") no-repeat center center;
    background-size: contain;
}

.socials .whatsapp {
    background: url("/assets/tpl/img/social/whatsapp.svg") no-repeat center center;
    background-size: contain;
}

.socials .tg {
    background: url("/assets/tpl/img/social/tg.svg") no-repeat center center;
    background-size: contain;
}
#mobile-social-link {
    display: flex;
}
.detail:after {
    content: "→";
    margin-left: 5px;
}

.detail {
    cursor: pointer;
    color: var(--tpl-color);
}

.two-col-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 и 1/3 */
    grid-template-rows: 1fr 1fr; /* две строки */
    gap: 20px;
    max-height: 90vh; /* ограничение по высоте экрана */
    height: 90vh; /* растягиваем на всю высоту */
    overflow: hidden; /* обрезаем лишнее */

}

.two-col-gallery + .specialist-list {
    margin-top: 20px;
    grid-template-columns: repeat(4, 1fr);
}

/* Общие стили для блоков с изображениями */
.two-col-gallery > div {
    overflow: hidden; /* чтобы изображения не выходили за границы */
}

.two-col-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* сохраняет пропорции, обрезая лишнее */
    display: block; /* убирает лишние отступы */
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* Первое изображение занимает две строки */
.two-col-gallery .image:nth-child(1) {
    grid-row: span 2; /* = grid-row: 1 / 3 */
}

/* Второе и третье изображения — в правой колонке (1/3 ширины) */
.two-col-gallery .image:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.two-col-gallery .image:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.two-simple-col .two-col-gallery {
    margin-top: 30px;
}

.two-simple-col .flex div.first {
    flex-shrink: 0;
    min-width: max(35%, 300px);
}

.two-simple-col div.first {
    max-width: 40%;
}

.two-simple-col .next {
    font-size: 1.2em;
    line-height: 1.4em;
}

.btn-group {
    display: flex;
    gap: 10px;
}

#recordFormWrapper {
    margin-bottom: 40px;
}
.splide__pagination__page.is-active {
    background: #9a76b3 !important;
}
.popup .btn:not([type=submit]) {
    padding: 12px 22px;
}

.f-html.popup {
    padding: 0px;
    border-radius: var(--card-radius);
    max-width: min(660px, 90vw);
}

.f-html.popup img {
    max-width: 100%;
}

.f-html.popup .content {
    box-sizing: border-box;
    line-height: 1.3em;
    padding: 40px 45px;
}

.f-html.popup > img {
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
}
.f-html.popup .seo-content {
    padding: 40px 45px;
}
.f-html.popup .seo-content .btn {
    margin-top: 20px;
}
.f-html.popup .seo-content strong {
    font-weight: 500;
}
.f-html.popup .seo-content .text {
    line-height: 1.4em;
}
.f-html.popup .seo-content h3 {
    font-size: 2em;
    line-height: 1.2em;
    font-weight: 500;
    margin-bottom: 37px;
}
.f-html.popup .seo-content p{
    margin-bottom: 15px;
}

.fancybox__dialog .f-html {
    position: initial;
}

.fancybox__dialog .fancybox__slide .f-button[data-fancybox-close] {
    right: 20px;
    top: 20px;
}

.ymaps-layers-pane {
    -webkit-filter: grayscale(100%);
}


.block_type_1  .container .splide__track{
    padding-bottom: 40px;
}
.block_type_1 .items .inner-content {
    padding: 20px 20px;
    display: block;
}
.block_type_1 {}
.block_type_1 .items {
    display: flex;
}
.block_type_1 .splide {position: initial}
.block_type_1 .items .item {}
.block_type_1 .items .item {}
.block_type_1 .items .content {}
.block_type_1 .items .img {
    display: block;
    border-top-left-radius: var(--card-small-radius);
    overflow: hidden;
    border-top-right-radius: var(--card-small-radius);
}
.block_type_1 .items .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.block_type_1 .items .name {
    font-size: 1em;
    line-height: 1.3em;
    display: block;
    margin-bottom: 14px;
}
.block_type_1 .items .description {
    font-size: 80%;
    line-height: 1.5em;
}

.block_type_2 {}

.block_type_3 {
}
.block_type_3 .items {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.block-list .inner-content a{
    margin-top: 10px;
}
.block_type_3 .inner-content {
    display: flex;
    padding: 20px;
    box-sizing: border-box;
    max-width: 300px;
    align-items: start;
    flex-direction: column;
    justify-items: center;
    justify-content: center;
}
.block_type_3 .img img{
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.block_type_3 .img{
    max-width: 240px;
    max-height: 250px;
    border-top-left-radius: var(--card-small-radius);
    border-bottom-left-radius: var(--card-small-radius);
    overflow: hidden;
}
.block_type_3 .content{
    display: flex;
}


#bottom-links {
    line-height: 1em;
    margin-top: 20px;
}

#bottom-links a {
    color: #000;
    text-decoration: none;
}

#bottom-links a:hover {
    text-decoration: underline;
}

#contacts .socials {
    gap: 6px;
}

#contacts .inner {
    padding: 90px;
}

#contacts .inner h2 {
    margin-bottom: 22px;
    font-size: max(2.54vw, 1.875em);
}

#contacts .inner p {
    line-height: 1.5em
}

#contacts .inner p.first a {
    text-decoration: none;
    font-size: 130%;
    line-height: 140%;
    color: #000;
}

#record + #contacts {
    margin-top: 0px;
}

.two_col {
    overflow: hidden
}

.two_col .col-1.top-align {
    align-items: baseline;
}

.two_col .col-1 img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.breadcrumb {}
.breadcrumb li {
    display: inline-block;
    font-size: 90%;
    opacity: 0.6;
}
.breadcrumb li:after {
    content: "/";
    display: inline-block;
    font-size: 77%;
    margin-left: 8px;
    margin-right: 3px;
}
.breadcrumb li:last-child:after {
    display: none;
}
.breadcrumb li a{}
#map {
    width: 100%;
    height: min(70vh, 570px);
    min-height: 100%;
}

select {
    cursor: pointer;
}

input, select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0px;
    border: 1px solid transparent;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type=checkbox] {
}

input:not([type=checkbox]).error {
    padding-left: 10px;
    border-color: red;
}

input:not([type=checkbox]).error + span:before {
    content: "Пожалуйста, заполните обязательное поле";
}

input[type=checkbox] {
    display: none
}

input[type=checkbox]:checked + .indicator {
    border-color: #9a76b3;
    opacity: 1;
}

input[type=checkbox] + .indicator {
    border: 2px solid #000;
    height: 20px;
    opacity: .3;
    aspect-ratio: 1;
    position: relative;
    display: inline-block;
    transition: all .2s;
    vertical-align: middle;
    cursor: pointer;
}

input[type=checkbox] + .indicator:after {
    display: none;
    border: solid #000;
}

input[type=checkbox]:checked + .indicator:after {
    border-color: #9a76b3;
    border-width: 0 2px 2px 0;
    content: "";
    display: block;
    height: 10px;
    left: 7px;
    position: absolute;
    top: 2px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 3px;

}

input[type=text]:focus, input[type=tel]:focus {
    box-shadow: none;
    outline: none;
}

input[type=text], input[type=tel] {
    border: 1px solid transparent;
    display: block;
    padding: 20px 0px;
    width: 100%;
    box-sizing: border-box;

}

input[type=text], input[type=tel], select {
    border-bottom: 1px solid #b3b3b3;
    background-color: transparent;
}

select option {
    font-size: 18px; /* Увеличивает текст */
    padding: 10px; /* В некоторых браузерах не работает */
    height: 40px;
}

.recordForm .checkbox-wrapper {
    display: inline-block;
    width: initial
}

.recordForm .checkbox-wrapper.error .indicator {
    border-color: red;
    opacity: 1;
}

#record {
    background: #f8f8ff;
    margin-top: 60px;
}

#record .recordForm .first {
    display: flex;
    gap: 15px;
}

#record .recordForm .first .group {
    flex: 1 0 0;
}

#record .col-2 .inner {
    padding-right: 60px;
}

#record h2 {
    font-size: max(3vw, 26px);
}

.recordForm .aggrement-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 15px;
    line-height: 17px;
    max-width: 500px;
}

.recordForm {
}

.recordForm .btn {
    padding-left: 60px;
    padding-right: 60px;
}

.recordForm .errorMessage {
}

.recordForm h2 {
}

.recordForm h2 + p {
}

.recordForm .first {
}

.recordForm label {
    display: block
}

.recordForm label.error:after, .recordForm label.error:after {
    content: "Пожалуйста, заполните обязательное поле";
    display: block;
    position: absolute;
    bottom: -22px;
    left: 0px;
    color: red;
    font-size: 13px;
}

.recordForm label.error input[type=text],
.recordForm label.error input[type=tel] {
    border-color: red;
    padding-left: 15px;
}

.recordForm .group {
    margin-bottom: 30px;
    position: relative;
}

.recordForm .group .select-wrapper {
    _margin-top: 10px;
}

.history .col-1 {
    align-items: baseline;
    font-size: 1.2em;
    line-height: 1.3em;
}

.history .item {

}

.history .item:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    opacity: 0.5;
    background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%, /* Полная прозрачность (начало) */ rgba(0, 0, 0, 0.1) 15%, /* Начало перехода */ rgba(0, 0, 0, 0.3) 30%, /* Полный черный */ rgba(0, 0, 0, 0.3) 70%, /* Продолжение черного */ rgba(0, 0, 0, 0.1) 85%, /* Начало обратного перехода */ rgba(0, 0, 0, 0) 100% /* Полная прозрачность (конец) */
    );
    margin-top: 40px;
    margin-bottom: 40px;
}

.history .item:last-child:after {
    display: none;
}

.history .col-1, .history .col-2 {
}

.before-after {
    border-radius: var(--card-small-radius);
    overflow: hidden;
}


.popup button[type=submit] {
    width: 100%;
}

.select-wrapper {
    position: relative
}

.select-wrapper:after {

    border-color: #000 transparent transparent;
    border-top-color: #9a76b3;
    border-style: solid;
    border-width: 6px 5px 0;
    bottom: 0;
    content: " ";
    height: 0;
    margin: auto;
    pointer-events: none;
    position: absolute;
    right: 5px;
    top: 0;
    width: 0;
}

.recordForm select {
}

section.personal-gallery + section.other-images {
    margin-top: 20px;
}

section.personal-gallery + section.other-images .specialist-list {
    margin-top: 0px;
}

.personal-gallery {
}

.specialist-list {
    width: 100%;
    box-sizing: border-box;
}

.specialist-list .card {
    height: 100%;
}

.specialist-list .card-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.specialist-list.other {
    display: block;
}

.specialist-list:not(.other) .card {
    overflow: hidden;
    border-top-left-radius: var(--card-small-radius);
    border-top-right-radius: var(--card-small-radius);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.specialist-list .card .image {
    position: relative;
    max-width: 100%;
    overflow: hidden;

}

.specialist-list:not(.other) .card .image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 240px;
}

.specialist-list .card .image .first {

}

.specialist-list .card .image .next {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.specialist-list .card .image:hover .next {
    opacity: 1;
}

.specialist-list .card .description {
    padding: 27px 30px;
    display: flex;
    gap: 14px;
    flex-direction: column;
    flex-shrink: 0;
    flex-grow: 1;
}

.specialist-list .card .fio {
}

.specialist-list .card .special {
}

.specialist-list .card .detail {
    margin-top: auto;
    padding-top: 20px;
    font-size: 85%;
}

.specialist-list .splide {
    position: initial;
}

.priceEditor {
    display: inline-block;
    border: 1px solid silver;
    margin: 0px;
    max-width: 115px;
    padding: 10px;
}
#before-review-photo {margin-top: 20px;}
#before-review-photo img {max-width: 100%;}
#jGrowl {
    display: none !important;
}
#page-content + #contacts {
    margin-top: 0px;
}
@media screen and (max-width: 1200px) {

}

@media screen and (max-width: 980px) {

    #contacts .silver {
        font-size: 0.8em;
        line-height: 1.4em;
        display: block;
    }
    #contacts .inner,
    #record .col-2 .inner {
        padding: 20px
    }

    #record .recordForm .first {
        flex-direction: column;
    }
}

@media screen and (max-width: 750px) {

}
@media screen and (max-width: 600px) {
    .only-pc {
        display: none !important;
    }
}
@media screen and (min-width: 600px) {
    .only-mobile {
        display: none !important;
    }

}
@media screen and (max-width: 600px) {
    .history .two_col .col-2 .inner{
        padding-left: 0px;
        padding-right: 0px;
    }
    section:not(#index_top) {
        margin-top: 0px;
    }
    section.first.is-service .two_col .col-1 .inner{
        padding-left: 20px;
        padding-right: 20px;
    }
    section.first.is-service .two_col .col-2 .inner {
        padding-left: 20px;
    }
    .two_col .btn-group {
        flex-direction: column;
    }
    .two_col .btn-group .btn {
        display: inline-block;
    }
    .before-after {
        margin-top: 20px;
    }
    .history .two_col .inner {
        font-size: 0.8em;
        line-height: 1.2em;
        margin-top: 20px;
    }
    .history .col-1 {
        order: 2;
    }
    .history .col-2 {
        order: 1;
    }
    .two_col .col-2 .inner {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 20px;
    }
    #map {
        height: min(60vh, 350px);
    }
}

@media screen and (max-width: 480px) {
    .f-html.popup .content {
        padding: 30px 20px;
    }
    .popup h2,.f-html.popup .seo-content h3 {
        font-size: 1.2em;
    }
    input[type=text], input[type=tel] {
        padding: 10px 0px;
    }
    .recordForm label.error:after, .recordForm label.error:after {
        font-size: 11px;
    }
    .recordForm .aggrement-wrapper {
        font-size: 13px;
        line-height: 15px;
    }
    section.personal-gallery + section.other-images {
        margin-top: 20px !important;
    }
    #record h2 {
        margin-top: 40px;
    }
    #contacts .inner {
        padding-top: 40px;
    }
    #licenseLink {
        font-size: 0.7em;
    }
    .recordForm .btn {
        width: 100%;
    }
    .two-col-gallery {
        max-height: 52vh;
        min-height: 260px;
    }
    #bottom-links .bottom-text {
        max-width: 90%;
    }
}

@media screen and (max-width: 380px) {
    #mobile-social-link .socials{
        gap: 7px;
    }
    .socials a {
        width: 24px;
    }
    section .splide__arrow--prev {
        left: 0;
    }
    section .splide__arrow--next {
        right: 0;
    }
}