/* CSS Variables */
:root {
    --primary: #647FFE;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #1D1D1F;
    --gray: #5C6C98;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --success: #4cc9f0;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Geologica", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

main {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12.5px 24px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 300px;

    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;


}

.template-preview-page .btn {
    position: absolute; 
    opacity: 0;
    transition: .3s ease;
}

.template-card-page:hover .btn {
    opacity: 1;
}

.btn-header {
font-weight: 400;
font-style: Regular;
font-size: 18px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: -0.01px;
color: var(--primary);
padding: 12.5px 24px;
border-radius: 300px;
border: 1px solid var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow);
}



.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}



.btn-outline:hover {
    background-color: var(--light-gray);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    box-shadow: 0px 1px 4.24px 0px #647FFE33;
    z-index: 1000;
    transition: var(--transition);
    height: 80px;
}

.menu {
    display: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary)!important;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent);
}

.logo{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:10px;
  row-gap:2px;
  align-items:center;
  text-decoration:none;
  color:var(--primary)!important;
}

.logo img{
  grid-row:1 / span 2;
  width:45px;
  height:41px;
  display:block;
}

.logo span:first-of-type{
  font-size:1.8rem;
  font-weight:700;
  line-height:1.05;
font-weight: 700;
font-style: Bold;
font-size: 24px;
leading-trim: NONE;
line-height: 80%;
letter-spacing: 0px;

}

.logo span:last-of-type {
    font-size: .85rem;
    font-weight: 500;
    opacity: .8;
    line-height: 1.05;
    font-weight: 300;
    font-style: Light;
    font-size: 10px;
    leading-trim: NONE;
    line-height: 80%;
    color: var(--gray);
    letter-spacing: 0px;
    text-align: right;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    transition: .3s ease;
}

nav a:hover {
    color: #647FFE;
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--dark);
}

.intro_col {
    display: flex;
    align-items: center;
    gap: 38px;
}

.intro_l {
    display: flex;
    flex-direction: column;
    max-width: 550px;
}

.intro {
    padding-top: 196px;
    padding-bottom: 100px;
}

.intro_col_subtitle {
    font-weight: 300;
    font-style: Light;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.intro_col_title {
    all: unset;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 124%;
    letter-spacing: 0px;
    margin-bottom: 16px;
}

.intro_l p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    color: var(--gray);
    letter-spacing: 0px;
    margin-bottom: 40px;
}

.intro_l button {
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    width: fit-content;

}

.intro_l button, .btn.hiw_btn, .cta_r .btn, .btn_benefits {
    transition: .3s ease;
}

.btn_benefits:hover {
    color: #5266E5;
}

.intro_l button:hover, .btn.hiw_btn:hover, .cta_r .btn:hover {
    background: #5266E5;
}

.article {
    padding: 100px 0px;
    background: #F7F8FF;
}

.article_title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.article_title h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.article_title p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--gray);
}

.article_grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  grid-template-rows:repeat(2,auto);
  gap:30px;
}

.article_block {
    padding: 40px;
    padding-bottom: 44px;
    display: flex;
    gap: 24px;
    background: #FFFFFF;
    box-shadow: 0px 4px 17px 0px #647FFE33;
    border-radius: 16px;
}

.article_r {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.article_r h3 {
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
}

.article_r p {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.article_l img {
    min-width: 59px;
}

.article_r h3 span {
    color: var(--primary);
}

.swiper {
    padding: 100px 0px;
}

.swiper_title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.swiper_title_l h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
}

.swiper_title_l p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--gray);
    margin-top: 16px;
}

.swiper_title_r a {
    background-color: transparent;
    border: 0px solid var(--border);
    padding: 9px 16px;
    padding-right: 38px;
    font-size: 14px;
    color: #647FFEB2;
    leading-trim: NONE;
    line-height: 100%;
    position:relative;
}

.swiper_title_r a::after{
  content:'';
  position:absolute;
  right:16px;
  top:50%;
  width:16px;
  height:16px;
  background:url(/assets/img/create/icons/btn_arrow.svg) no-repeat center;
  transform:translateY(-50%) rotate(180deg);
}

.templates-track {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.tpl_card {
    width: calc(20% + 10px);
    background: #d9d9d9;
    aspect-ratio: 253 / 340;
    border: 1px solid #D5DAFF;
    border-radius: 16px;
    overflow: clip;
}

.tpl_card.main{
    height: 400px;
    width: calc(20% + 40px);
    box-shadow: 0px 4px 17px 0px #647FFE33;


}

.templates_track {
    display: flex;
    gap: 16px;
    align-items: center;
}

.templates_action {
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.templates_arrow_btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F7F8FF;
}

#templates_arrow_left {
    transform: rotate(180deg);
    margin-left: 8px;
}

#templates_arrow_right {
    margin-right: 8px;
}

.templates_arrow_dots {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: #D1D9FF;
}

.templates_arrow_dots.is-active {
    background: var(--primary);
}

.statistic {
    padding: 60px 0px;
    background: #F7F8FF;
}

.statistic_title {
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: #1D1D1F;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
}

.statistic_col {
    display: flex;
    gap: 30px
}

.statistic_block {
    flex: 1;
}

.statistic_block h3 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 124%;
    letter-spacing: 0px;
}

.statistic_block p {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--gray);
}

.hiw {
    padding: 100px 0px;
}

.hiw_title h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    text-align: center;
}

.hiw_title p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    text-align: center;
    color: var(--gray);
    margin-top: 16px;
    margin-bottom: 60px;
}

.hiw_col {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.hiw_block {
    flex: 1;
}

.hiw_img {
    position: relative;
}

.hiw_img span {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 60px;
    height: 60px;
    background: #fff;
    box-shadow: 0px 4px 17px 0px #647FFE33;
    font-weight: 900;
    font-style: Black;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: #9FA9FF;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

.hiw_img img {
    border-radius: 16px;
    box-shadow: 0px 4px 17px 0px #647FFE33;

}

.hiw_title {
    margin-top: 32px;
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    margin-bottom: 16px;
}

.hiw_subtitle {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.btn.hiw_btn {
    margin: 0 auto;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    border-radius: 300px;
}

.hiw_action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits{
  padding:100px 0;
  background:
    #7C8BFE
    url("/assets/img/benefits/bg.png")
    center / contain
    no-repeat;
  color:#fff;
}


.benefits_col {
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

.benefits_l {
    width: 48%;
}

.benefits_r {
    width: 52%;
}

.benefits_l h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.benefits_l p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    margin-top: 16px;
    margin-bottom: 40px;
}

.benefits_l img {
    border-radius: 16px;
    max-width: 519px;
    object-fit: cover;
    width: 100%;
}

.benefits_r {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 140px;
    align-items: flex-start;
}

.benefits_block {
    display: flex;
    gap: 24px;
    align-items: center;
}

.benefits_text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.benefits_icon img {
    box-shadow: 2.98px 8.93px 33.06px -4.3px #1634501A;

}

.btn_benefits {
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    border-radius: 300px;
    color: #647FFE;
    background: #FFFFFF;
    margin-top: 16px;
}

.faq {
    background: #F7F8FF;
}

.faq_col {
    padding: 70px 110px;
    background: #fff;
    border-radius: 16px;
}

.faq_col h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 60px;
}

.faq_block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    border-bottom: 1px solid #D5DAFF;
    flex-direction: column;
}

.faq_q {
        padding: 24px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
}

.faq_a ul {
    list-style: inherit;
    padding-left: 15px;
}

.faq_a {
    max-width: 850px;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: #5C6C98;
    
    overflow: hidden;
    max-height: 0;
    transition: .3s ease;
}

.faq_block .faq_q img {
    transition: .3s ease;
}

.faq_block.active .faq_a {
    overflow: inherit;
    max-height: 180px;
}

.faq_block.active .faq_q img {
    transform: rotate(180deg);
    transition: .3s ease;
}

.cta {
  padding-top: 100px;
  padding-bottom: 0;
  background: #fff url("/assets/img/cta/bg.png") center / auto 100% no-repeat;
  
}

.cta_col {
    display: flex;
    gap: 130px
}

.cta_r h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    margin-bottom: 16px;
}

.cta_r p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--gray);
    margin-bottom: 40px;
}

footer {
    padding-top: 75px;
    padding-bottom: 35px;
    background: #F7F8FF;
}

footer .logo {
    max-width: 214px;
}

.footer_l span {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--gray);
}

.footer_col {
    display: flex;
    justify-content: space-between;
}

.footer_r {
    display: flex;
    gap: 60px;
    padding-bottom: 40px;
}

.footer_list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.footer_list div {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.footer_list a {
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    transition: .3s ease;
}

.footer_list a:hover {
    color: #647FFE;
}

.footer_l {
    display: flex;
    flex-direction: column;
    justify-content: space-between;    
}

footer .logo span:first-of-type {
    color: #647FFE;
}

.footer_list a.active {
    color: #647FFE;
}

@media(max-width: 768px) {
    .intro_col {
        display: flex;
        align-items: center;
        gap: 60px;
        flex-direction: column;
    }
    .intro_col_subtitle {
        font-family: Geologica;
        font-weight: 300;
        font-style: Light;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;
        margin-bottom: 16px;
    }
    .intro_col_title {
        font-family: Geologica;
        font-weight: 600;
        font-style: SemiBold;
        font-size: 36px;
        leading-trim: NONE;
        line-height: 124%;
        letter-spacing: 0px;
        text-align: center;

    }
    .intro_l p {
        font-family: Geologica;
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;
        margin-bottom: 40px;
    }
    .intro_l {
        display: flex;
        flex-direction: column;
        max-width: 550px;
        align-items: center;
    }    
    .intro {
        padding-top: 120px;
        padding-bottom: 0;
    }
    .article_title h2 {
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px;
        text-align: center;
    }
    .article_title p {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;
    }
    .article_grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 30px;
    }    
    .article_block {
        padding: 24px 20px;
        padding-bottom: 44px;
        display: flex;
        gap: 16px;
        background: #FFFFFF;
        box-shadow: 0px 4px 17px 0px #647FFE33;
        border-radius: 16px;
        flex-direction: column;
    }    
    .article_r h3 {
        font-weight: 500;
        font-style: Medium;
        font-size: 24px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        max-width: 320px;
    }   
    .swiper_title_l h2 {
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px;

    }
    .swiper_title {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        flex-direction: column;
        align-content: center;
        text-align: center;
        gap: 27px;
    }
    .swiper_title_l p {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;

    }
    .tpl_card {
        min-width: calc(80% + 10px);
        background: #d9d9d9;
        aspect-ratio: 253 / 340;
        border: 1px solid #D5DAFF;
        border-radius: 16px;
    }
    .tpl_card.main {
        height: inherit; 
        min-width: calc(80% + 40px);
        box-shadow: 0px 4px 17px 0px #647FFE33;
    }        
    .templates_track {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .statistic_col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .statistic_block h3 {
        font-weight: 600;
        font-style: SemiBold;
        font-size: 36px;
        leading-trim: NONE;
        line-height: 124%;
        letter-spacing: 0px;

    }
    .statistic_block p {
        font-weight: 400;
        font-style: Regular;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;

    }
    .container {
        padding: 0 15px;;
    }
    .hiw_col {
        display: flex;
        gap: 50px;
        margin-bottom: 60px;
        flex-direction: column;
    }
    .hiw_title h2 {
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px;
        text-align: center;
    }   
    .hiw_title p {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;

    }
      .benefits_col {
        display: flex;
        justify-content: space-between;
        gap: 50px;
        flex-direction: column;
    }  
    .benefits_l, .benefits_r {
        width: 100%;
    }
   .benefits_l h2 {
       font-family: Geologica;
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px;

   }
    .benefits_l p {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
    
    }
    .benefits_r {
        margin-top: 0;
    }
   .benefits_icon img {
        box-shadow: 2.98px 8.93px 33.06px -4.3px #1634501A;
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    .benefits_block {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }   
    h3.benefits_title {
        font-weight: 500;
        font-style: Medium;
        font-size: 24px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;

    }
    .benefits_subtitle {
        font-weight: 400;
        font-style: Regular;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;

    }
   .btn_benefits {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: -0.01px;
        border-radius: 300px;
        color: #647FFE;
        background: #FFFFFF;
        margin-top: 16px;
        width: fit-content !important;
        margin: 0 auto;
        margin-top: 16px;
    }
    .faq_col {
        padding: 70px 24px;;
    }
   .faq_col h2 {
       font-family: Geologica;
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px;
        text-align: left;
   }
   .faq_q {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        gap: 10px
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;

   }
   .faq_block.active .faq_a {
        overflow: inherit;
        max-height: 500px;
    }
   .faq_block.active .faq_q img {
       
   }
   .faq {
       padding: 40px 0px;;
   }
   .cta_col {
        display: flex;
        gap: 50px;
        flex-direction: column-reverse;
    }
    .cta {
        background: #fff;
    }
    .cta_r h2 {
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px;
        text-align: center;

    }
    .cta_r p {
        font-weight: 400;
        font-style: Regular;
        font-size: 20px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;

    }
    .cta_r .btn {
        width: fit-content;
        margin: 0 auto;
    }
    .cta_r {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .footer_col {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 50px;
    }   
    .footer_r {
        display: flex;
        gap: 50px 16px;
        padding-bottom: 40px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }    
    #footer_transfer {
        font-family: Geologica;
        font-weight: 400;
        font-style: Regular;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        color: var(--gray);
        margin: 0 auto;
    }
    .menu {
        padding: 32px;
        position: absolute;
        
        background: #fff;
        z-index: 10;
        width: -webkit-fill-available;
    }
    .menu{
      display:none;
      opacity:0;
      transition:opacity .2s ease;
    }

    .menu_list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 24px;
        border-bottom: 1px solid #D5DAFF;
        align-items: flex-start;
    }
    .menu_list a {
        font-weight: 400;
        font-style: Regular;
        font-size: 20px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
    }
    .menu .menu_list:nth-child(2) {
        padding-bottom: 0;
        padding-top: 24px;
        border: 0;
    }
    .menu .menu_list:nth-child(2) a {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: -0.01px;
    color: var(--gray);
    }
    .menu .header_action {
        display: flex;
    }
    .header_action {
        display: none;
    }
    .btn-header {
        text-align: center;
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: -0.01px;
        color: var(--primary);
        padding: 12.5px 24px;
        border-radius: 300px;
        border: 1px solid var(--primary);
        width: 100%;
        margin-top: 120px;
    }
}

.section-title h2 {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 124%;
    letter-spacing: 0px;
    margin-bottom: 16px;
}

.section-title p {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.templates {
    padding-top: 0px;
}


@media(max-width: 768px) {
    .section-title h2 {
        font-weight: 600;
        font-style: SemiBold;
        font-size: 32px;
        leading-trim: NONE;
        line-height: 130%;
        letter-spacing: 0px
    }
    .section-title p {
        font-weight: 400;
        font-style: Regular;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;
    }    
}












































































/* Templates Page Styles */
.templates-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.templates-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.templates-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.filters-section {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: white;
    min-width: 150px;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 15px 25px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab:hover:not(.active) {
    background-color: var(--light-gray);
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    padding-top: 180px;
    background-color: white;
    text-align: center;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.category {
    padding: 12px 24px;
    background-color: var(--light);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.category:hover:not(.active) {
    background-color: var(--light-gray);
}

.templates-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.template-card-page {
    background-color: white;
    /*overflow: hidden;*/
    transition: var(--transition);
    cursor: pointer;
}

.template-preview-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.template-preview-page img {
    width: 100%;
    height: 100%;
    aspect-ratio: 210 / 297;
    /*object-fit: cover;*/
    border-radius: 16px;
    border: 1px solid #D5DAFF;
    transition: var(--transition);
}

.template-card-page:hover .template-preview-page img {
    box-shadow: 0px 4px 17px 0px #647FFE33;

}

.template-card-page:hover .template-name-page {
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--primary);
}

.template-info-page {
    padding-top: 24px;
}

.template-name-page {
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;

}

.template-colors-page {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.color-dot-page {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--border);
}

.template-formats-page {
    display: flex;
    gap: 10px;
}

.format-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.format-badge.pdf {
    background-color: #ffebee;
    color: #d32f2f;
}

.format-badge.docx {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* Editor Styles */
body.editor-page {
    background:#F0F4FF;
    /*overflow: hidden;*/
}

@media(min-width: 768px) {
    .editor-page .container {
        min-height: 100vh;
    }
    .editor-page header .container {
        min-height: inherit;
    } 
    .editor-page .editor-container {
        min-height: 100vh;
        max-width: 1770px;
        margin: 0 auto;
    }
}

.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: var(--headerH);
    /*min-height: calc(100vh - 70px);*/
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 0px;
}

.section-title-editor {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    /*margin-bottom: 20px;*/
}

.form-group.full {
    grid-column: span 2;
}

.form-group.full-width {
    grid-column: 1/-1;
}

label {
    display: block;
    /*margin-bottom: 8px;*/
    font-weight: 500;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.photo-upload:hover {
    border-color: var(--primary);
}

.photo-upload i {
    font-size: 2.5rem;
    color: var(--gray);
    margin-bottom: 15px;
}


.skill-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.skill-dots {
    display: flex;
    gap: 5px;
}

.skill-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.skill-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.text-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    /*overflow: hidden;*/
}

.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.editor-btn:hover {
    background: var(--light-gray);
}

.editor-content {
    padding: 15px;
    min-height: 150px;
}

.custom-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.custom-section {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.custom-section:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.custom-section i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}


.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, #ef4444, #f59e0b, #eab308, #22c55e);
    width: 10%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.progress-step {
    text-align: center;
    /*flex: 1;*/
    position: relative;
}

.progress-steps .progress-line {
    content: '';
    position: absolute;
    top: 15px;
    left: 3px;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: -2;
}

.progress-step.active .step-icon {
    background: var(--primary);
    color: #fff;
}

.step-name {
    font-size: 0.8rem;
    color: var(--gray);
}

.progress-step.active .step-name {
    color: var(--primary);
    font-weight: 500;
}

.form-side, .preview-section {
    /*height: calc(100vh - var(--headerH));*/
    /*overflow: auto;*/
}

.preview-section {
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
}

.preview-container {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    
}

.preview-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.a4-preview {
    flex: 1;
    background: none;
    border: 0;
        
    box-shadow: none;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
}

.a4-content {
    width: calc((100vh - 70px - 120px) * 210 / 297);
    height: calc(100vh - 70px - 120px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 25mm;
    overflow: hidden;
    position: relative;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.resume-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.resume-title {
    font-size: 1.2rem;
    color: var(--gray);
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.resume-section {
    margin-bottom: 20px;
}

.section-title-preview {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.item-title {
    font-weight: 600;
}

.item-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.item-subtitle {
    color: var(--gray);
    margin-bottom: 5px;
}

.item-description {
    font-size: 0.9rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--light);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.preview-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.preview-actions .btn {
    flex: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-20px);
    }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .templates-grid, .templates-grid-page {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid, .templates-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .editor-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .form-side, .preview-section {
        height: auto;
    }
    
    .form-section, .progress-section {
        margin: 0 20px 30px;
    }
    
    .a4-content {
        width: 100%;
        height: auto;
        padding: 16mm;
    }
}

@media (max-width: 767px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .templates-grid, .templates-grid-page {
        /*grid-template-columns: 1fr;*/
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-step {
        flex: 0 0 calc(50% - 10px);
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-sections {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
    }
}

/* Focus styles for accessibility */
/*button:focus, a:focus, select:focus, .tab:focus, .color-dot:focus, .category:focus, input:focus, textarea:focus {*/
/*    outline: 2px solid var(--primary);*/
/*    outline-offset: 2px;*/
/*}*/

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* последний видимый .progress-step */
.progress-steps .progress-step
  :not([style*="display:none"])
  :not(:has(~ .progress-step:not([style*="display:none"])))
  ::after { content: none; }



header .container {
    max-width: 1284px;
    padding: 0 20px;
}



/* ====== ЛЕЙАУТ 60/40 ====== */
.editor-container{
  display:grid;
  grid-template-columns: minmax(0, 65%) minmax(360px, 35%);
  gap:0;
  margin-top: -0px;
}

@media(max-width: 1600px) {
.editor-container{
  display:grid;
  grid-template-columns: minmax(0, 68%) minmax(360px, 32%);
  gap:0;
  margin-top: -0px;
}    
}

/* слева — обычный поток, скролл у страницы */
.form-side{
    padding-top: var(--headerH);
}

/* справа — «прилипшая» колонка с внутренним скроллом */
.preview-section{
  position:sticky;
  top:var(--headerH);
  align-self:start;
  height:calc(100vh - var(--headerH));
  display:flex;
  flex-direction:column;
  overflow:hidden;           /* внешний скролл убран */
}

/* внутренний скроллируемый контейнер справа */
.preview-container{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:auto;             /* СКРОЛЛ ТУТ */
  border-radius:0;
  box-shadow:none;
  padding:16px 12px;
}

/* заголовок превью (опционально) */
.preview-header{ padding:0 4px 12px; }
.preview-title{ margin:0; font:600 18px/1.2 system-ui; }
.preview-header p{ margin:2px 0 0; color:#666; font:13px/1.4 system-ui; }

/* ====== ПРОГРЕСС/ФОРМА ====== */
.progress-section{ background:#FFFFFF99; border-radius:16px; padding:20px; margin:20px; border: 1px solid #FFFFFF; margin-bottom: 30px; }
.progress-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.progress-header h2{ 
font-weight: 600;
font-style: SemiBold;
font-size: 24px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: 0px;

}
.progress-percent{ 
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--primary);
}
.progress-bar{ height:10px; background:#edf0f5; border-radius:999px; overflow:hidden; margin-bottom:10px; }
.progress-fill{ height:100%; width:0; background: linear-gradient(90deg, #647FFE 0%, #5EA7FE 100%);
 transition:width .25s; }
.progress-steps{ display:flex; gap:18px;}
.progress-step{ display:flex; flex-direction:column; align-items:center; gap:6px; color:#9aa1ad; }
.progress-step .step-icon{ width:34px; height:34px; border-radius:999px; display:grid; place-items:center; border:2px solid #cfd6e4; background:#fff; position: relative
font-weight: 500;
font-style: Medium;
font-size: 14px;
leading-trim: NONE;
line-height: 22px;
letter-spacing: -0.01px;
vertical-align: middle;
    
}
.progress-step .step-icon::after {
    content: "";
    width: calc(100% + 16px);
    height: 32px;
    background: #f5f8ffe8;
    position: absolute;
    z-index: -1;
}
.progress-step.active{ color:#2a2f3a; }
.progress-step.active .step-icon{ border-color: var(--primary); }

.form-section{ 
    background:#FFFFFF99; 
    border-radius:16px; padding:32px 24px; margin:20px; box-shadow:0 5px 15px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 16px; 
    border: 1px solid #FFFFFF
}
.section-title{ 
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    margin: 0;
 }
.section-subtitle{ 
font-family: Geologica;
font-weight: 400;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: -0.01px;
color: var(--gray);
margin-bottom: 24px;
}
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-group{ display:flex; flex-direction:column; gap:6px; }
.form-group.full-width{ grid-column:1/-1; }
label{ font-family: Geologica;
font-weight: 400;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: -0.01px;
color: var(--dark);
 }
input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="month"],input[type="date"],textarea{
  width:100%; padding:12px 14px; border:1px solid #e2e8f0; border-radius:12px; font:14px/1.3 system-ui; outline:none;
}
.text-editor{ border:1px solid #e2e8f0; border-radius:12px; }
.editor-toolbar{ display:flex; gap:6px; padding:8px; background:#f8fafc; border-bottom:1px solid #e2e8f0; position: relative}
.editor-btn{ border:0; background:transparent; padding:8px; border-radius:8px; cursor:pointer; }
.editor-content{ min-height:120px; padding:12px; }

.photo-upload {
    display: flex;
    place-items: center;
    gap: 16px;
    width: fit-content;
    cursor: pointer;
}
.photo-upload img {
    width: 61px;
    height: 61px;
    object-fit: cover;
    border: 1px solid #DEE3F2;
    border-radius: 16px;
}

.photo-upload button {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    color: #647FFE;
    background: transparent;
}

.photo-upload button:nth-child(2) {
    color: #FF5761;
}

.photo-upload .actions {
    display: flex;
    gap: 16px;
}

.photo-upload p {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    color: #647FFE;
}

.add-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    color: var(--primary);
    cursor: pointer;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    text-align: center;
    justify-content: center;

    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    
    transition: .3s ease;

}

.add-more:hover
{
    background: #f7f7f7;
}

.block_delete:hover {
    background: #f7f7f7;    
}

.custom-sections{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.custom-section{ display:grid; place-items:center; border:1px dashed #d1d5db; border-radius:12px; padding:18px; gap:6px; }

.form-navigation{ display:flex; justify-content:space-between; gap:12px; margin-top:16px; }

/*.btn{*/
/*  display:inline-flex;*/
/*  gap:8px;*/
/*  align-items:center;*/
/*  border-radius:12px;*/
/*  padding:10px 14px;*/
/*  font:600 14px/1 system-ui;*/
/*  cursor:pointer;*/
/*  border:1px solid transparent;*/
/*  white-space:nowrap;*/
/*}*/
.btn-primary{ 
    
    background-color: var(--primary);
    border: 0px solid var(--border);
    padding: 9px 16px;
    padding-right: 38px;
    border-radius: 300px;
    
    font-size: 14px;
    color: #fff;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -0.01px;


    background-image: url(/assets/img/create/icons/btn_arrow_2.svg);
    background-repeat: no-repeat;
    background-position: right 16px center;
        transition: .3s ease;  
}

.btn-primary:hover {
    background-color: #5266E5;
}

.btn-outline {
    background-color: transparent;
    border: 0px solid var(--border);
    padding: 9px 16px;
    padding-left: 38px;
    
    font-size: 14px;
    color: #647FFEB2;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -0.01px;


    background-image: url(/assets/img/create/icons/btn_arrow.svg);
    background-repeat: no-repeat;
    background-position: 16px center;
    
}

/* ====== UI точек навыков ====== */
.skill-dots{ display:inline-flex; gap:8px; margin:0 10px; vertical-align:middle; }
.skill-dot{ width:14px; height:14px; border-radius:50%; border:1px solid #cfd6e4; cursor:pointer; }
.skill-dot.active{ background:#4361ee; border-color:#4361ee; }
.skill-dot.hover{ outline:2px solid rgba(67,97,238,.25); }

/* ====== МОБИЛКА ====== */
@media (max-width:991px){
  .editor-container{ grid-template-columns:1fr; }
  .preview-section{ position:static; height:auto; }
  .preview-container{ overflow:visible; }
}

/* ===================================================================== */
/* =====================  П Р Е В Ь Ю  /  A 4  ========================= */
/* ===================================================================== */

/* область превью — занимает всё доступное место в правой колонке */
.a4-preview {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    
    border-radius: 30px;
    /*background: #fff;*/
    padding: 40px 47px;

}

/* оболочка «страницы»; сюда масштабируется iframe */
.a4-preview .page-holder{
  position:relative;
  margin:0 auto;
  background:#fff;
  border-radius:2px;
  outline:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
}

/*#resumePreview{*/
/*  width:794px;*/
/*  height:1123px;*/
/*  border:none;*/
/*  display:block;*/
/*  transform-origin: top left; */
/*}*/

.preview-frame{width:794px;height:1123px;border:none;display:block;position:absolute;inset:0;transition:opacity .22s ease}

.preview-actions{
  position:sticky;
  bottom:0;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
  padding:12px 12px 12px 0;
  z-index:1;
}


.export-switch{display:flex;gap:10px;align-items:center}
.fmt-label{min-width:80px;text-align:center;font:700 14px/1 system-ui}
#sidebar-colors{display:flex;gap:8px;flex-wrap:wrap}
#sidebar-colors .color-dot-page{width:18px;height:18px;border-radius:50%;border:1px solid #e5e7eb;cursor:pointer}
#sidebar-colors .color-dot-page.active{outline:2px solid rgba(67,97,238,.35)}




#export-layer[hidden]{display:none}
.export-mask{
  position:fixed; left:0; right:0; bottom:0; top:var(--headerH,80px);
  background:#fff; z-index:9998;
}
.export-center{
  position:absolute; inset:0; display:grid; place-items:center; padding:24px;
}
.export-loading,.export-success{
  display:grid; gap:14px; justify-items:center; text-align:center;
  background:#fff; border:1px solid var(--border,#e5e7eb);
  border-radius:16px; padding:28px 32px; box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.spinner{
  width:44px; height:44px; border-radius:50%;
  border:4px solid rgba(67,97,238,.15); border-top-color:var(--primary,#4361ee);
  animation: spin 1s linear infinite;
}
.loading-text{ font:600 14px/1.2 system-ui; color:#111827 }
.export-success h3{ margin:6px 0 2px; font:700 18px/1.2 system-ui; color:#111827 }
.export-success .muted{ color:#6b7280; font:14px/1.5 system-ui }
.export-success a{ text-decoration: underline; }
@keyframes spin{to{transform:rotate(360deg)}}
.curently_label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 5px;
}
.curently_label input {
    width: fit-content;
    
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag, .iti--allow-dropdown .iti__flag-container4 .iti__selected-flag, .iti--separate-dial-code .iti__selected-flag { 
    background: rgb(0, 0, 0, 0)!important;
}

.custom_date_select {
    display: flex;
}

.custom_date_select select{
  --arrow-x: 12px;
  --arrow-size: 14px;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path fill='currentColor' d='M297.4 438.6C309.9 451.1 330.2 451.1 342.7 438.6L502.7 278.6C515.2 266.1 515.2 245.8 502.7 233.3C490.2 220.8 469.9 220.8 457.4 233.3L320 370.7L182.6 233.4C170.1 220.9 149.8 220.9 137.3 233.4C124.8 245.9 124.8 266.2 137.3 278.7L297.3 438.7z'/></svg>");
  background-repeat:no-repeat;
  background-position:right var(--arrow-x) center;
  background-size:var(--arrow-size);
  padding-right: calc(var(--arrow-x) + var(--arrow-size) + 8px);
  color: inherit;
}

.custom_date_select select:first-child{
  border-radius:12px 0 0 12px;
}

.custom_date_select select:last-child{
  border-radius:0 12px 12px 0;
}

/* IE/старый Edge */
.custom_date_select select::-ms-expand{display:none;}

#custom_date_block {
    margin-bottom: 0!important;
}

.text-editor{position:relative}
.ce-counter{
  position:absolute; right:8px; bottom:6px;
  font:600 11px/1 system-ui; opacity:.6; user-select:none; pointer-events:none
}
.ce-counter.warn{opacity:.95}


/* Skills chips — компактные */
.skills-wrap{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}

#skills-section .skill-item{
  /*--chipPadR:36px;*/
  position:relative;
  display:flex;align-items:center;gap:10px;
  border-radius:999px;background:#fff;
  flex:0 0 auto;max-width:100%;white-space:nowrap;
  padding-right:var(--chipPadR);
}

#skills-section .skill-item .form-grid{display:inline-flex;gap:12px;align-items:center;width:auto}
#skills-section .skill-item .form-group{margin:0;width:auto;min-width:0;flex:0 0 auto}
#skills-section .skill-item input[type="text"]{
  width:auto;min-width:6ch;padding:9px 16px;padding-right: 38px;border-radius:999px;transition:none!important;
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: -0.01px;

}
#skills-section .skill-item input[type="text"]:hover,
#skills-section .skill-item input[type="text"]:focus{transition:none!important}

#skills-section .skill-item .skill-level{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#skills-section .skill-item .skill-dots{display:flex;gap:6px}
#skills-section .skill-item .skill-dot{width:14px;height:14px;border-radius:50%;border:1px solid #cfd6e4;cursor:pointer}
#skills-section .skill-item .skill-dot.active{background:#4361ee;border-color:#4361ee}
#skills-section .skill-item label{position:absolute;left:-9999px}

/* крестик удаления навыка (внутри чипа) */
#skills-section .skill-remove{
  position:absolute; right:18.5px; top:12.5px;
  border:0;  cursor:pointer;    background: transparent;
  color:#6b7280; font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  transition: .2s ease;
}
#skills-section .skill-remove:hover{color:#374151}

.skills-suggest{margin-top:12px; position: relative}
.skills-suggest-title{font:600 13px/1.2 system-ui;color:#6b7280;margin-bottom:8px;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: -0.01px;
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.skills-suggest-grid{display:flex;flex-wrap:wrap;gap:8px;     margin-top: 22px;
}
.suggest-chip{padding:9px 16px;border-radius:999px;background:#EDF0FF;font:600 12px/1 system-ui;cursor:pointer}
.suggest-chip:hover{background:#e5e7eb}


.form-overlay {
    padding: 32px 24px;
    background: #fff;
    border-radius: 16px;
}

.form-overlay.bigger {
    padding: 56px 22px;
    position: relative;
}

.country-suggest {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  max-height: 260px;
  overflow-y: auto;
  width: 100%;
  margin-top: 6px;
}

.country-suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.country-suggest-item:hover,
.country-suggest-item.active {
  background: #f1f5ff;
}

input::placeholder {
    font-family: Geologica;
font-weight: 400;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: -0.01px;
color: var(--gray);
}

.flatpickr-input {
    background-image: url(/assets/img/create/icons/data.svg);
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 44px!important;
}

.block_delete {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #1D1D1F1F;
    border-radius: 8px;
    position: absolute;
    top: 24px;
    right: 24px;
}

.skills-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    padding: 10px 14px 10px 18px;
    border: 1px solid #1D1D1F1F;
    border-radius: 8px;
    position: absolute;
    right: 0;
    top: -6px;
    

    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0px;

}


#design-section .form-grid {
    display: flex;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    flex-direction: column;
    max-width: 415px;
}

.btn.reset {
    background: transparent;
    border: 1px solid #1D1D1F1F;
    color: var(--dark);
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0px;
    padding: 8px 15px;;
    border-radius: 8px;
}

.pc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    align-content: center;
}
.pc-modal[hidden]{display:none}
.pc-mask{position:absolute;inset:0;background:rgba(10,12,18,.55);backdrop-filter:blur(6px)}
.pc-card{position:relative;max-width:600px;width:min(600px,calc(100vw - 32px));margin:32px auto;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.pc-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px; padding-top: 20px; padding-bottom: 42px;
}
.pc-title{
font-weight: 500;
font-style: Medium;
font-size: 20px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: 0px;
}
.pc-x{border:0;border-radius:10px;background:transparent;font-size:26px;line-height:1;cursor:pointer}
.pc-x img {
    width: 14.5px;
    height: 14.5px;
        filter: opacity(0.7);
}
.pc-body{padding:0px 32px}
.pc-stage{width:100%;
/*height:min(520px,60vh);*/
background:#f6f7fb;border-radius:0px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pc-stage img{max-width:100%;display:block}
.pc-foot{display:flex;gap:10px;justify-content:flex-end;padding:24px 20px; padding-top: 42px; }
.pc-foot button:first-child {
    padding: 9px 16px;
    background: NONE;
}
.pc-foot button:last-child {
        padding: 9px 16px;
    background-image: NONE;
}

.create_with_ai {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 14px;
    padding-left: 16px;
    border-radius: 8px;
    position: absolute;
    top: 8px;
    right: 16px;
        
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0px;
    
    transition: .3s ease;
}

.create_with_ai:hover {
    background: #5266E5;
    color: #fff;
}

.create_with_ai img {
    transition: .3s ease;    
}

.create_with_ai:hover img { 
    filter: brightness(3.5);
}

.create_with_ai_alert {
    font-size: 12px;
    line-height: 120%;
    padding: 12px 14px;
    background: #FFFFFF80;
    box-shadow: 0 4px 4px #638DF530;
    position: absolute;
    border: 1px solid #1D1D1F1F;
    bottom: calc(100% + 8px);
    color: #000;
    gap: 10px;
    width: max-content;
    border-radius: 8px;
    display: flex;
    align-items: center;
    z-index: 5;

    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.create_with_ai_alert.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.create_with_ai_alert::after{
    content:'';
    position:absolute;
    left:50%;
    top:100%;
    transform:translateX(-50%);
    width:0;
    height:0;
    border-left:6px solid transparent;
    border-right:6px solid transparent;
    border-top:6px solid #fff;
    filter: drop-shadow(0 0 6px rgba(0,0,0,.12)); /* тень для треугольника */
}

    #skeleton-screen {
        position: fixed;
        inset: 0;
        background-color: #F0F4FF;
        z-index: 999999;
        display: flex;
        flex-direction: column;
        transition: opacity 0.4s ease-out;
        font-family: sans-serif;
    }

    .shimmer {
        background: #e2e8f0;
        background-image: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
        background-size: 200% 100%;
        animation: gemini-shimmer 1.5s infinite;
        border-radius: 12px;
    }

    @keyframes gemini-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .skel-header-top {
        height: 70px;
        margin-bottom: 20px;
        border-radius: 0;
        opacity: 0.5;
    }

    .skel-main-container {
        display: flex;
        max-width: 1750px;
        margin: 0 auto;
        width: 100%;
        gap: 30px;
        padding: 0 20px;
    }

    .skel-left-column {
        flex: 1.6;
        display: flex;
        flex-direction: column;
        gap: 20px; /* Отступ между верхним и нижним блоком */
    }

    .skel-block {
        background: white;
        border-radius: 24px;
        padding: 30px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    }
    .skel-step-block { height: fit-content; }
    .skel-progress-bar { height: 10px; width: 100%; border-radius: 20px; margin-bottom: 20px; }
    .skel-steps-row { display: flex; justify-content: space-between; padding: 0 10px; }
    .skel-circle { width: 40px; height: 40px; border-radius: 50%; }

    /* Стили для блока формы */
    .skel-form-block { flex-grow: 1; }
    .skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
    .skel-input { height: 45px; width: 100%; border-radius: 10px; }
    .skel-line { border-radius: 6px; }

    /* Правая колонка */
    .skel-preview-side {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .skel-a4-paper {
        width: 100%;
        aspect-ratio: 1 / 1.414;
        max-width: 480px;
        background: white;
        box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    }


.modal_cwa {
    position: absolute;
    z-index: 999;
display: none;      /* Скрыта физически */
    opacity: 0;         /* Полностью прозрачна */
    transition: opacity 0.3s ease; /* Плавный переход за 0.3 сек */
    /*min-width: 640px;*/
    max-width: 640px;
    background: #fff;
        border-radius: 8px;
        box-shadow: 0px 4px 28px 0px #0000000F;

}



.modal_cwa_close {
    width: 10px;
    height: 10px;
    filter: opacity(0.7);
    background: transparent;
}

.modal_cwa_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    
    padding: 20px;
    padding-bottom: 10px;

}

.modal_cwa_main {
    padding: 0 20px;;
}

.modal_cwa_main_subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 24px;

    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    color: var(--gray);
    margin-bottom: 16px;
}

.modal_cwa_item {
    padding: 16px;
    border: 1px solid var(--Line-grey, #1D1D1F1F);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    text-align: left;
    background: transparent;
    transition: .3s ease;
}

.modal_cwa_item:hover .modal_cwa_block {
    border: 1px solid #5266E5;
}

.modal_cwa_item:hover .modal_cwa_block span {
    background: #5266E5;
}

.modal_cwa_items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 340px;
}

.modal_cwa_block {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 1px solid #1D1D1F1F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    position: relative;
    transition: .3s ease;
}

.modal_cwa_block span {
    width: 11px;
    height: 1px;
    border-radius: 1000px;
    background: #303133;
    transition: .3s ease;
    display: inline-block;
    position: absolute;
}

.modal_cwa_block span:last-child {
    transform: rotate(90deg);
}

.modal_cwa_footer {
    padding: 24px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal_cwa_footer button {
    right: inherit;
    top: inherit;
    position: relative;
}

.modal_cwa.is-open {
    display: block;
}

.modal_cwa.is-visible {
    opacity: 1;
}

@media(max-width: 768px) {
    header .container {
        padding: 0 15px;
    }
}

.editor-contnet-ai {
    padding: 16px;
    padding-bottom: 20px;
    background: #EDF0FF;
}

#description_ai {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;

}

.description_ai_action {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.description_ai_action button {
    position: sticky;
}

.change_template .change_template_btn {
    position: sticky;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 14px;
    padding-left: 16px;
    border-radius: 8px;
        
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 120%;
    letter-spacing: 0px;
    
    transition: .3s ease;
}

.change_template_btn:hover {
    background: #5266E5;
    color: #fff;
}

.change_template_btn svg {
    transition: .3s ease;    
}

.change_template_btn:hover svg { 
    filter: brightness(3.5);
}

.change_template {
        align-items: flex-start;
}

.change_template label {
    color: var(--gray);
}

.change_template label span {
    color: #1D1D1F;
}

#pcImg { max-width: 100%; max-height: 70vh; display: block; }

















.modal_change_template {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.modal_change_template.is-open { display: block; }
.modal_change_template.is-visible { opacity: 1; }

.modal_change_template__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
}

.modal_change_template__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 20px 70px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal_change_template__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

.modal_change_template__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s ease;
}

#ctTitle {
font-family: Geologica;
font-weight: 500;
font-style: Medium;
font-size: 20px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: 0px;
    
}

.modal_change_template__close:hover { background: rgba(82,102,229,.08); border-color: rgba(82,102,229,.35); }
.modal_change_template__close img { width: 12px; height: 12px; filter: opacity(.75); }

.modal_change_template__body {
  padding: 18px 20px;
  overflow: auto;
  flex: 1;
}

.modal_change_template__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .modal_change_template__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .modal_change_template__dialog { width: calc(100vw - 24px); max-height: calc(100vh - 40px); }
  .modal_change_template__grid { grid-template-columns: 1fr; }
}

.modal_change_template__card {

  border-radius: 14px;
  background: #fff;
  /*padding: 12px;*/
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal_change_template__card {
    border: 1px solid #D5DAFF
}

.modal_change_template__card.is-selected {
  border-color: rgba(100,127,254,.55);
  box-shadow: 0px 4px 17px 0px rgba(100,127,254,.12);
}

.modal_change_template__card:hover {
    border-color: rgba(100,127,254,.55);  
}

.modal_change_template__thumb {
  width: 100%;
  aspect-ratio: 210 / 297;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
    /*border: 1px solid #647FFE;*/
  position: relative;
}

.modal_change_template__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal_change_template__check {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal_change_template__check img {
  width: 14px;
  height: 14px;
}

.modal_change_template__card.is-active .modal_change_template__check {
  display: inline-flex;
}

.modal_change_template__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  display: none;
  gap: 10px;
}

.modal_change_template__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: #111827;
}

.modal_change_template__footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(29,29,31,.12);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal_change_template__btn.btn {
    height: 32px;
    padding: 6px 16px;
font-weight: 400;
font-style: Regular;
font-size: 14px;
leading-trim: NONE;
line-height: 140%;
letter-spacing: -0.01px;

}

.modal_change_template__btn.btn-2 {
    height: 32px;
    padding: 6px 16px;
    font-family: Geologica;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -0.01px;
    color: var(--primary);
    background: transparent;
}

.modal_change_template__btn:hover { background: rgba(17,24,39,.04); }

.modal_change_template__btn_primary {
  border-color: #5266E5;
  background: #5266E5;
  color: #fff;
}
.modal_change_template__btn_primary:hover { filter: brightness(.96); }


/* --- Contact Modal Styles --- */
.cm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cm-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.cm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.55);
    backdrop-filter: blur(4px);
}

.cm-card {
    position: relative;
    width: min(600px, calc(100vw - 32px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cm-modal.is-open .cm-card {
    transform: translateY(0);
}

/* Header */
.cm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid transparent;
}

.cm-title {
    font-family: 'Geologica', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

.cm-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: color 0.2s ease;
}

.cm-close:hover {
    color: var(--dark);
}

/* Body & Form */
.cm-body {
    padding: 0 32px 32px 32px;
}

.cm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cm-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cm-field.full {
    grid-column: 1 / -1;
}

.cm-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.cm-input,
.cm-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    color: var(--dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.cm-textarea {
    min-height: 120px;
    resize: vertical;
}

.cm-input::placeholder,
.cm-textarea::placeholder {
    color: #9CA3AF;
}

.cm-input:focus,
.cm-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 127, 254, 0.1);
}

.cm-footer {
    padding-top: 10px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-direction: column;
}

.cm-policy {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 44px;
    line-height: 1.4;
}

.cm-policy a {
    color: var(--primary);
    text-decoration: underline;
}

.cm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cm-btn {
    padding: 10px 24px;
    border-radius: 300px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-btn.secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.cm-btn.primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.cm-btn.primary:hover {
    background: var(--primary-dark);
}

/* Success State */
.cm-success-view {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px 50px;
}

.cm-success-icon {
    width: 80px;
    height: 80px;
    background: #F0F4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.cm-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.cm-success-text {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 380px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
    .cm-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cm-footer {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }
    .cm-policy {
        max-width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    .cm-modal {
        align-items: center;
        padding: 16px;
    }

    .cm-card {
        width: 100%;
        margin: 0;
        border-radius: 16px;
        position: relative;
        transform: none;
        max-height: 85vh;
        overflow-y: auto;
    }
    .template-card-page:hover .template-name-page, .template-name-page  {
        font-family: Geologica;
        font-weight: 500;
        font-style: Medium;
        font-size: 20px;
        leading-trim: NONE;
        line-height: 140%;
        letter-spacing: 0px;
    }
    .templates-grid-page {
        gap: 50px 16px
    }
    .template-preview-page .btn {
            font-size: 12px;
            padding: 6px 16px;
            width: fit-content;
    }
}

.pm-header {
    display: none;
}

.pm-header-left button {
    background: transparent;
    display: flex;
}

.pm-header-main {
    font-family: Geologica;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    text-align: center;
}

.pm-header-right {
    font-family: Geologica;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0px;
    color: var(--primary);
}

.preview-actions {
    display: none;
}


@media(max-width: 768px) {
    .preview-actions {
        display: flex;
        padding: 0;
        border: 0;
    }
    .progress-steps, .progress-bar, .progress-header {
        display: none;
    }
    .pm-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .progress-section {
        border-radius: 30px;
    }
    .form-navigation button:first-child {
        display: none;
    }
    .form-navigation button {
        width: -webkit-fill-available;
    }
    .form-navigation {
        margin-top: 0;
    }
    .form-section {
        gap: 16px
    }
    .form-grid .form-group {
        grid-column: span 2;
    }
    .create_with_ai {
        font-size: 0 !important;
        gap: 0px
    }
    .create_with_ai > * {
        font-size: 12px; 
    }    
    .create_with_ai_alert {
        width: 200px;
    }
    .create_with_ai_alert svg {
        min-width: 16px;
    }
    .skills-suggest-title {
        margin-bottom: 55px;
    }
    .skills-refresh {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: transparent;
        padding: 10px 14px 10px 18px;
        border: 1px solid #1D1D1F1F;
        border-radius: 8px;
        position: absolute;
        right: inherit;
        top: 28px;
        font-weight: 400;
        font-style: Regular;
        font-size: 12px;
        leading-trim: NONE;
        line-height: 120%;
        letter-spacing: 0px;
    }    
    .editor-content {
        /* ... твои отступы и высота ... */
        
        /* Самое важное: */
        overflow-wrap: anywhere; /* Или break-word, но anywhere мощнее для длинных строк */
        word-break: normal;      /* Запрещаем разрывать обычные слова посередине */
        
        /* Для подстраховки */
        white-space: pre-wrap;   /* Сохраняет пробелы и переносы строк пользователя */
        max-width: 100%;
    } 
    .preview-actions button {
        background: #fff;
        color: var(--primary);
        border: 1px solid var(--primary);
        padding: 6px;
    }
    .preview-actions {
        margin-top: 0;        
    }
    .a4-preview {
        opacity: 0;
        display: none;
    }
    .preview-container {
        padding: 20px;
        padding-top: 0;
        padding-bottom: 40px;
    }
    .modal_change_template__grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
    .modal_change_template__footer button {
        flex: 1;
    }
}

.header_lang_switch {
    display: flex;
    position: relative;
}

.header_lang_switch:hover .header_lang__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header_lang_switch button {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5C6C98;
    background: transparent;
    height: fit-content;
    font-family: Geologica;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: -0.01px;
    padding: 9.5px 0;
}

.header_action {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header_lang__list {
    position: absolute;
    left: -20px;
    top: 100%;
    display: flex;
    flex-direction: column;
    padding: 13px 20px;
    background: #fff;
    border: 1px solid #D5DAFF;
    color: #1D1D1F;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.header_lang__list a {
    padding: 6px 0;
}

.header_lang__list .active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .header_action {
        display: none;
    }
}

    /* Page Specific Styles for Resume Ready Page */
    .page-resume-ready {
        background-color: #F7F8FF; /* Светлый фон как на скрине */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .resume-success-section {
        padding-top: 140px; /* Отступ от фиксированного хедера */
        padding-bottom: 50px;
        text-align: center;
    }
.rs-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rs-header h1 {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--dark);
}

.rs-header p {
    font-size: 20px;
    color: var(--gray);
}

.rs-content-wrapper {
    display: flex;
    gap: 17px;
    align-items: stretch;
    text-align: left;
}

.rs-preview {
    position: relative;
    display: flex;
    justify-content: center;
    background: #F2F4F8;
    box-shadow: 0px 4px 17px 0px #647FFE33;
    max-width: 410px;
    width: 100%;
}

.rs-preview img {
    box-shadow: var(--shadow);
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-info {
    flex: 1;
    padding: 75px;
    background: #FFFFFF;
    background-image: url(/assets/img/resume-ready/resume_ready.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rs-info h2 {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 140%;
    margin-bottom: 16px;
    color: var(--dark);
}

.rs-info > p {
    color: var(--gray);
    margin-bottom: 32px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
}

.rs-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.rs-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.rs-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #E2F2E9;
    border-radius: 50%;
    color: #1CAF70;
    flex-shrink: 0;
}

.rs-check-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.rs-actions .btn {
    width: fit-content;
    max-width: 380px;
    padding: 16px 32px;
    font-weight: 500;
    background-image: none;
}

@media (max-width: 992px) {
    .rs-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .rs-preview {
        order: -1;
        max-width: 100%;
    }

    .rs-preview img {
        height: auto;
    }

    .rs-info {
        padding: 40px 20px;
        width: 100%;
    }

    .rs-header h1 {
        font-size: 36px;
    }
}

/* --- Изоляция стилей: всё работает только внутри .dashboard-page --- */

/* Основной фон и сброс для этой страницы */
.dashboard-page {
    background-color: #f9fafb;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

/* Контейнер контента */
.dashboard-page .dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Заголовок страницы */
.dashboard-page .content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.dashboard-page .content-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111827;
}

.dashboard-page .content-header p {
    color: #6b7280;
    margin: 0;
    font-size: 16px;
}

/* Сетка документов (GRID) */
.dashboard-page .documents-grid {
    display: grid;
    /* Адаптивная сетка: либо 2 колонки, либо 1, в зависимости от ширины */
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); 
    gap: 24px;
    margin-bottom: 40px;
}

/* Карточка документа */
.dashboard-page .document-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex; /* Картинка слева, текст справа */
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 260px; /* Фиксированная высота для аккуратности */
}

.dashboard-page .document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Превью (левая часть карточки) */
.dashboard-page .document-preview {
    width: 180px; /* Фиксированная ширина картинки */
    flex-shrink: 0;
    background-color: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.dashboard-page .document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы картинка заполняла область красиво */
    object-position: top center;
    display: block;
}

/* Плейсхолдер, если нет картинки */
.dashboard-page .preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #f3f4f6;
}

/* Оверлей с кнопками (карандаш/удалить) */
.dashboard-page .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard-page .document-preview:hover .thumb-overlay {
    opacity: 1;
}

.dashboard-page .overlay-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #111827;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.dashboard-page .overlay-btn:hover {
    transform: scale(1.1);
}

.dashboard-page .overlay-btn.delete {
    background: #ef4444;
    color: white;
}

/* Информация о документе (правая часть карточки) */
.dashboard-page .document-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- ИСПРАВЛЕНИЕ ЗАГОЛОВКА --- */
.dashboard-page .document-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
    
    /* Разрешаем перенос строк */
    white-space: normal; 
    line-height: 1.4;
    
    /* Ограничиваем высоту 2 строками, чтобы не ломать карточку, если название гигантское */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Мета-данные (даты) */
.dashboard-page .document-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-page .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Прогресс бар */
.dashboard-page .progress-section {
    margin: 0; padding: 0;
}

.dashboard-page .progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #4b5563;
}

.dashboard-page .progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.dashboard-page .progress-fill {
    height: 100%;
    background-color: #2563eb; /* Основной синий цвет */
    border-radius: 3px;
}

/* Кнопки действий (Скачать/Открыть) */
.dashboard-page .document-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.dashboard-page .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}


.dashboard-page .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Пагинация */
.dashboard-page .pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.dashboard-page .pager a, 
.dashboard-page .pager span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-page .pager a.on {
    background: #111827;
    color: white;
    border-color: #111827;
}

.dashboard-page .pager .disabled {
    color: #d1d5db;
    pointer-events: none;
}

/* CTA Блок внизу */
.dashboard-page .cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.dashboard-page .cta-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.dashboard-page .cta-section .btn {
    display: inline-flex;
    background: white;
    color: #2563eb;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    width: auto;
}

.dashboard-content {
    padding-top: 80px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .dashboard-page .documents-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
    
    .dashboard-page .document-card {
        height: auto; /* Высота подстраивается */
        flex-direction: column; /* Картинка сверху, текст снизу */
    }
    
    .dashboard-page .document-preview {
        width: 100%;
        height: 200px;
    }

    .dashboard-page .document-actions {
        flex-direction: row;
    }
}

.description_ai_action .create_with_ai {
    font-size: 12px!important;
    padding: 8px 10px;
    gap: 3px;
}
