/*
Theme Name: Bookiti
Author: GreenKot
Author URI: https://greenkot.ru
Version: 1.0
Text Domain: bookiti
*/

:root {
    /* Цвета из Elementor Global Colors */
    --color-primary: #063930;
    --color-secondary: #AACBC4;
    --color-text: #545454;
    --color-accent: #2EA98C;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #E5E6E8;

    font-size: 18px;
}

/* --- Общие стили для body --- */
body {
    color: var(--color-text);
    background-color: var(--color-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ebecee;
}

@media (width > 1581px) {
    body {
        padding: 0 7.5vw;
    }
}


h1 {
    font-size: 2.5rem; /* 45px */
}

h2 {
    font-size: 2rem; /* 36px */
}

h3 {
    font-size: 1.425rem; /* 26px */   
}

p {
    font-size: 1rem; /* 18px */
}

small {
    font-size: 0.75rem; /* 13.5px */
}

header .elementor-widget-heading {
    margin-right: auto;
}

.elementor-widget-heading .elementor-heading-title span {
    color: var(--color-accent);
}

header .elementor-widget-nav-menu { 
    margin: 0 auto;
}

body.home .main-grid-header h2 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 2rem;
}

body.home .main-grid-header h2 small {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1rem;
}

body.home .main-grid-header h3, body.home .main-grid-header p {
    font-size: 2rem;
    font-weight: 500;
    line-height: 2rem;
}

body.home .main-grid-header h3 small, body.home .main-grid-header p small {
    font-size: 1.33rem;
    font-weight: 400;
    line-height: 1rem;
}

.swiper-pagination-bullet {
    min-width: 14px;
    min-height: 14px;
}

.elementor-widget-n-carousel .swiper-pagination-bullet.swiper-pagination-bullet-active,
.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 40px; 
    border-radius: 10px;
    /* transition: .4s ease-in-out;
    -moz-transition: .4s ease-in-out;
    -o-transition: .4s ease-in-out;
    -webkit-transition: .4s ease-in-out; */
    animation: bulletwidth .4s ease-in-out;
}

@keyframes bulletwidth {
    0% {
        width: 14px;
    }
    100% {
        width: 40px;
    }
}

.feedback-block-title {
    position: absolute !important;
    z-index: 99;
}

.feedback-block-title .elementor-heading-title {
    text-shadow: 2px 2px #e6e6e6;
}

.feedback-block .feedback-name, .feedback-block .feedback-person {
    align-self: end;
}

.feedback-block .feedback-name .elementor-heading-title {
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 5px;
}

.feedback-block .feedback-person .elementor-heading-title {
    font-size: 0.8rem;
    font-weight: 200;
    max-width: 200px;
    text-align: right;
}

.feedback-block .feedback-text p {
    font-size: 1rem;
  font-weight: 300;
}

.feedback-block .feedback-text {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    left: 50px;
    width: calc(100% - 50px);
}

.feedback-block .feedback-text:before {
    content:'“';
    display: block;
    font-size: 8rem;
    color: var(--color-accent);
    line-height: 8rem;
}

.elementor-posts .elementor-post__card .elementor-post__meta-data {
    order: 1;
    align-self: end;
    padding: 0px;
    border: none;
}

.elementor-post__card .elementor-post__thumbnail__link {
    order: 3;
    border-radius: 30px;
    overflow: hidden;
}

.elementor-post__card .elementor-post__text {
    order: 2;
}

.elementor-posts .elementor-post__card {
box-shadow: none;
  border-radius: 30px;
  padding: 15px 30px;
  background-color: #e6e6e6;
}

.adv_carousel .swiper-slide {
    min-height: 280px;
}

.adv_carousel_header .elementor-heading-title {
    font-size: 1.3rem;
}

.adv_carousel_header .elementor-heading-title small {
    font-size: 1rem;
    font-weight: 400;
}

.adv_carousel .elementor-icon-box-title{
    margin: 0;
}

.d_carousel .d_carousel_item {
    padding-top: 75px;
}

.d_carousel .elementor-social-icons-wrapper {
    margin-top: 30px;
}

.d_carousel .d_carousel_item:before {
     content: '';
     width: 100%;
     border-radius: 30px;
    min-height: 500px;
    max-height: 500px;
    background-image: linear-gradient(166deg, #013236 56%, var( --e-global-color-accent ) 100%);
    position: absolute;
    bottom: 10px;
    z-index: -10;
    display: block;
    top: auto;
}

.d_carousel .d_carousel_block {
    max-width: 600px;
    min-height: 500px;
}

.d_carousel .d_carousel_block:before {
    content: '';
    width: 640px;
    height: 680px;
    display: block;
    background-image: linear-gradient(138deg, #013236 50%, var( --e-global-color-accent ) 100%);
    position: absolute;
    -webkit-mask-image: url( https://test2.greenkot.ru/wp-content/uploads/2026/01/asimetrik-square.svg );
    -webkit-mask-size: contain;
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    top: -110px;
    bottom: 0;
    left: 0px;
}

.d_carousel .d_carousel_block > div.elementor-element {
    left: 10%;
    align-items: center;
}

.d_carousel .d_carousel_block > div.elementor-element > div:not(.elementor-widget-heading) {
    left: 10%;
    margin-bottom: 10px;
}

.d_carousel .d_carousel_block > div.elementor-element > div:not(.elementor-widget-heading) .elementor-widget-heading  {
    padding-left: 30px;
}

.d_carousel .d_carousel_title .elementor-heading-title {
    font-size: 2.6rem;
    font-weight: 600;
    padding-top: 20px;
}

.d_carousel .d_carousel_title .elementor-heading-title small {
    font-size: 1.5rem;
}

.d_carousel .d_carousel_img {
    position: absolute;
  max-width: 900px !important;
  bottom: -0px;
  right: 0;
  max-height: 580px;
  display: flex;
}

.d_carousel .d_carousel_img img {
    object-fit: contain;
}

body.home .main-banner_button {
    margin-top: auto;
}

body.home .main-banner_title {
    max-width: 400px;
    width: 100%;
  min-height: 400px;
  flex-direction: column;
  justify-content: start;
}

body.home .main-banner_title:before {
  content: '';
  width: 520px;
  height: 620px;
  display: block;
  background-image: linear-gradient(133deg, #013236 50%, var( --e-global-color-accent ) 100%);
  position: absolute;
  -webkit-mask-image: url('/wp-content/uploads/2026/01/mask-banner.svg');
  -webkit-mask-size: contain;
  -webkit-mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  top: -210px;
  bottom: 0;
  left: -50px;
  opacity: .9;
}

body.home .main-banner_title h2.elementor-heading-title:after  {
  content: '';
  width: 60px;
  height: 60px;
  display: block;
  background-color: #fff;
  position: absolute;
  -webkit-mask-image: url('/wp-content/uploads/2026/01/arrow.svg');
  -webkit-mask-size: contain;
  -webkit-mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  top: -30px;
  right: -20px;
}

body.home .main-banner_title .elementor-widget-heading h2.elementor-heading-title small {
  font-size: 3rem;
}

body.home .main-banner_title .elementor-widget-heading h3.elementor-heading-title span {
  color: #fff;
}

body.home .main-banner_title .elementor-widget-heading h3.elementor-heading-title {
    display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.7rem;
}

body.home .d_carousel_title:before {
    content:'';
    width: 100px;
    height: 30px;
    background-image: url('/wp-content/uploads/2026/01/bookiti-logo-white.svg"');
    display: block;
    position: absolute;
    top: -50px;
  left: 0px;
  background-repeat: no-repeat;
  background-position: 50%;
}

body.home .elementor-widget-n-carousel[data-id="39c19c0"] {
    border-radius: 30px;
    overflow: hidden;
}