/* Кастомные стили для шапки (только логотип по центру) */
.simple-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--theme-border);
}

.logo img {
    max-height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .logo img {
        max-height: 80px;
    }
}

/* Баннер на всю ширину с высотой 700px */
.fullwidth-banner {
    height: 700px;
    width: 100%;
    background-image: url('/img/image.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullwidth-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

/* Стили заголовков в стиле index-2.html */
.fullwidth-banner .title-box {
    transform: translateY(-80px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.fullwidth-banner .content-box {
    transform: translateY(80px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.fullwidth-banner .sub-title {
    font-family: "Caveat", cursive;
    display: inline-block;
    color: var(--secondary);
    font-size: 34px;
    margin-bottom: 15px;
    position: relative;
}

.fullwidth-banner .sub-title.single {
    margin-left: 0;
}

.fullwidth-banner .sub-title.single::before,
.fullwidth-banner .sub-title.single::after {
    display: none;
}

.fullwidth-banner .slide-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.fullwidth-banner .lead {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .fullwidth-banner {
        height: 500px;
    }
    .fullwidth-banner .sub-title {
        font-size: 24px;
    }
    .fullwidth-banner .slide-title {
        font-size: 42px;
    }
    .fullwidth-banner .lead {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .fullwidth-banner {
        height: 400px;
    }
    .fullwidth-banner .sub-title {
        font-size: 20px;
    }
    .fullwidth-banner .slide-title {
        font-size: 32px;
    }
    .fullwidth-banner .lead {
        font-size: 16px;
    }
    .two-columns-section .content-col {
        margin-bottom: 0px;
    }
    .img-col{
        margin-top: 0px;
    }
}

.slide-title a {
    color: white;
}

/* Секция "две колонки" (текст + фото) */
.two-columns-section {
    padding: 80px 0;
}

.two-columns-section .content-col h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--headings-color);
}

.two-columns-section .content-col p {
    margin-bottom: 25px;
    color: var(--body-color);
    line-height: 1.6;
}

.two-columns-section .img-col img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

@media (max-width: 991px) {
    .two-columns-section {
        padding: 50px 0;
    }
    .two-columns-section .content-col {
        margin-bottom: 40px;
    }
    .two-columns-section .content-col h2 {
        font-size: 32px;
    }
}

/* Блок: Цель и задачи проекта */
.goals-section {
    padding: 80px 0;
    background-color: var(--shade);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header .sub-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    background: transparent;
}

.section-header .main-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--headings-color);
    margin-bottom: 20px;
}

.section-header .goal-description {
    font-size: 20px;
    color: var(--body-color);
    line-height: 1.5;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.goal-description strong {
    color: var(--primary);
    font-weight: 700;
}

/* Карточки задач */
.tasks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.task-card {
    flex: 1 1 calc(25% - 30px);
    min-width: 220px;
    background: var(--white);
    border-radius: 20px;
    padding: 40px 20px 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--theme-border);
}

.task-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.task-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-icon img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.task-card:hover .task-icon img {
    transform: scale(1.1);
}

.task-card p {
    font-size: 15px;
    color: var(--body-color);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 991px) {
    .task-card {
        flex: 1 1 calc(50% - 30px);
    }
    .section-header .main-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .task-card {
        flex: 1 1 100%;
    }
    .goals-section {
        padding: 50px 0;
    }
    .section-header .goal-description {
        font-size: 18px;
        padding: 20px;
    }
}

/* БЛОК: Слово писателя с видео */
.writer-video-section {
    padding: 80px 0;
    background: var(--white);
}

.writer-video-section .section-header {
    margin-bottom: 50px;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

@media (max-width: 768px) {
    .writer-video-section {
        padding: 50px 0;
    }
}

/* БЛОК: Книжная мастерская */
.workshop-section {
    padding: 80px 0;
    background-color: var(--shade);
}

.workshop-description {
    font-size: 18px;
    color: var(--body-color);
    margin-top: 15px;
    text-align: center;
}

.workshop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.workshop-item {
    flex: 1 1 calc(20% - 30px);
    min-width: 150px;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--theme-border);
    cursor: pointer;
}

.workshop-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.workshop-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workshop-icon img {
    max-width: 180px;
    max-height: 180px;
    transition: all 0.3s ease;
}

.workshop-item:hover .workshop-icon img {
    transform: scale(1.1);
}

.workshop-title {
    font-size: 18px;
    font-weight: 600;
    color: #3f1900;
    margin: 0;
    transition: all 0.3s ease;
}

.workshop-item:hover .workshop-title {
    color: var(--primary);
}

@media (max-width: 991px) {
    .workshop-item {
        flex: 1 1 calc(33.33% - 30px);
    }
}

@media (max-width: 768px) {
    .workshop-section {
        padding: 50px 0;
    }
    .workshop-item {
        flex: 1 1 calc(50% - 30px);
        min-width: 140px;
        padding: 20px 15px;
    }
    .workshop-icon {
        width: 180px;
        height: 180px;
    }
    .workshop-icon img {
        max-width: 180px;
        max-height: 180px;
    }
    .workshop-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .workshop-item {
        flex: 1 1 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* ========== БЛОК: Книга на полке (фоновое изображение + белая карточка справа) ========== */
.book-showcase-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.book-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.book-image-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: all 0.3s ease;
}

.book-image-wrapper:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.2));
}

/* Белая карточка для правой колонки */
.white-card {
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.book-info-col .section-header {
    margin: 0 0 30px;
    text-align: left;
}

.book-info-col .section-header .sub-title {
    font-size: 18px;
    /*font-family: "Caveat", cursive;*/
    display: inline-block;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.book-info-col .section-header .sub-title.single {
    margin-left: 100px;
}

.book-info-col .section-header .sub-title.single::before {
    content: "";
    background: url("../images/icons/arrow-right.svg") no-repeat center left/contain;
    width: 70px;
    height: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -90px;
}

.book-info-col .section-header .sub-title.single::after {
    content: "";
    background: url("../images/icons/arrow-left.svg") no-repeat center right/contain;
    width: 70px;
    height: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -90px;
}

.book-info-col .section-header .main-title {
    color: var(--headings-color);
    font-size: 42px;
    font-weight: 700;
    margin-top: 10px;
}

.book-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-family-headings);
}

.book-description p {
    margin-bottom: 20px;
    color: var(--body-color);
    line-height: 1.7;
}

.book-actions {
    margin-top: 30px;
}

.book-actions .btn-primary {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.book-actions .btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.book-actions .btn-primary i {
    margin-left: 8px;
    transition: all 0.3s ease;
}

.book-actions .btn-primary:hover i {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .book-showcase-section {
        padding: 50px 0;
    }
    .book-image-col {
        margin-bottom: 40px;
    }
    .book-image-wrapper {
        max-width: 300px;
    }
    .book-title {
        font-size: 28px;
    }
    .book-info-col .section-header {
        text-align: center;
    }
    .book-info-col .section-header .sub-title.single {
        margin-left: 0;
    }
    .book-info-col .section-header .sub-title.single::before {
        display: none;
    }
    .white-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .book-image-wrapper {
        max-width: 250px;
    }
    .book-title {
        font-size: 24px;
    }
    .white-card {
        padding: 20px;
    }
    .book-info-col .section-header .main-title,
    .main-title{
        font-size: 32px;
    }
}

/* ========== ПОДВАЛ (FOOTER) ========== */
.simple-footer {
    background: var(--primary);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========== ВЫЕЗЖАЮЩЕЕ МЕНЮ (СПРАВА) ========== */
/* ========== ШАПКА С ГАМБУРГЕРОМ ========== */
/*.simple-header .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.simple-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.simple-header .logo img {
    max-height: 100px;
    width: auto;
    transition: all 0.3s ease;
}*/

/* Кнопка гамбургера */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
    margin-bottom: -100px;
    margin-right: 40px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация при открытом меню */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 576px) {
    .simple-header .logo img {
        /*max-height: 80px;*/
    }
}

/* ========== ЗАТЕМНЕНИЕ ФОНА ========== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== ВЫЕЗЖАЮЩЕЕ МЕНЮ (СПРАВА) ========== */
.canvas-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
}

.canvas-menu.open {
    right: 0;
}

.canvas-header {
    position: absolute;
    top: 20px;
    right: 20px;
}

.canvas-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--headings-color);
    transition: all 0.3s ease;
}

.canvas-close:hover {
    transform: rotate(90deg);
    color: var(--secondary);
}

.canvas-nav {
    margin-top: 20px;
}

.canvas-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.canvas-menu-list li {
    margin-bottom: 20px;
}

.canvas-menu-list li a {
    font-size: 24px;
    font-weight: 600;
    color: var(--headings-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--theme-border);
}

.canvas-menu-list li a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

@media (max-width: 576px) {
    .canvas-menu {
        width: 100%;
        right: -100%;
    }
    .canvas-menu-list li a {
        font-size: 20px;
    }
}