/* Общие стили */
:root {
    --primary-color: #ffb237;
    --secondary-color: #ffb237;
    --accent-color: #ffb237;
    --dark-color: #000000;
    --text-color: #000000;
    --light-gray: #fef4e8;
    --border-color: #fef4e8;
    --background-light: #fef4e8;
    --background-white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family:
    'Roboto',
    sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e69f2f;
}

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

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Страница книги */
.book-details {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    margin: 0rem auto;
    background-color: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    width: calc(100% - 4rem);
}

.book-image {
    position: relative;
}

.book-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.book-badges {
    position: absolute;
    top: 15px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.new {
    background-color: var(--primary-color);
}

.badge.bestseller {
    background-color: var(--accent-color);
}

.book-info {
    display: flex;
    flex-direction: column;
}

.book-author {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.book-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.book-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1rem;
}

.meta-label {
    color: #828282;
}

.meta-value {
    font-weight: 500;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.buy-ebook {
    /* Копируем стили .print-on-demand */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: var(--background-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.buy-ebook:hover {
    background-color: #e69f2f;
    transform: translateY(-2px);
}

/* Обёртка для правильного позиционирования иконки */
.print-on-demand-wrapper {
    display: inline-block; /* чтобы ширина соответствовала кнопке */
}

/* Стили для самой кнопки печати (оставляем без изменений) */
.print-on-demand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: var(--background-white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.print-on-demand:hover {
    background-color: #e69f2f;
    transform: translateY(-2px);
}

/* Иконка-ссылка «?» поверх кнопки */
.info-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--dark-color);
    color: var(--background-white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.info-icon:hover {
    background-color: var(--primary-color);
}

/* Табы с информацией о книге */
.book-tabs {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    overflow: hidden;
    max-width: 1200px;
    width: calc(100% - 4rem);
    margin: 4rem auto;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-light);
}

.tab-btn {
    flex: 1;
    padding: 1.2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: var(--background-light);
}

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

.tab-content {
    display: none;
    padding: 3rem;
}

.tab-content.active {
    display: block;
}

/* Описание и фичи книги */
.book-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Содержание книги */
.contents-list {
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.contents-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contents-list ul {
    margin-top: 0.8rem;
    list-style-type: disc;
}

/* Автор */
.author-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.author-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 0.5rem 0 1.5rem;
}

.author-achivements {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 12px;
}

.author-achivements ul {
    list-style-type: none;
    padding: 0;
}

.author-achivements li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.author-achivements li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Где купить */
.book-shops {
    background-color: var(--background-white);
    padding: 4rem 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0rem auto;
    text-align: center;
    max-width: 1200px;
    width: calc(100% - 4rem);
}

.book-shops h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.book-shops p {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.shop-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.shop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background-color: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.shop-card:hover::before {
    opacity: 0.05;
}

.shop-card img {
    max-width: 140px;
    height: auto;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.shop-card:hover img {
    transform: scale(1.05);
}

.shop-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Адаптивность */
@media (max-width: 992px) {
    .book-details,
    .book-shops,
    .book-tabs {
        width: calc(100% - 2rem);
        padding: 2rem;
    }
    
    .book-details {
        grid-template-columns: 1fr;
    }
    
    .book-image {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .author-profile {
        grid-template-columns: 1fr;
    }
    
    .author-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .book-details,
    .book-tabs,
    .book-shops {
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .process-steps, 
    .book-features, 
    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .book-details,
    .book-tabs,
    .book-shops {
        width: calc(100% - 1rem);
        padding: 1rem;
    }

    .book-actions {
        flex-direction: column;
    }
    
    .book-meta {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex-basis: 50%;
        padding: 1rem;
        font-size: 1rem;
    }
} 

/* ========== Правки для хлебных крошек ========== */

/* 1. Глобально задать цвет ссылок */
a {
  color: var(--text-color);
}
a:hover {
  color: var(--primary-color);
}

/* 2. Контейнер хлебных крошек */
.breadcrumb {
  max-width: 1200px;
  width: calc(100% - 4rem);
  margin: 0 auto 1.5rem;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  background-color: var(--background-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 3. Список */
.breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Прячем скроллбар (опционально) */
.breadcrumb-list::-webkit-scrollbar { display: none; }
.breadcrumb-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 4. Пункты и разделители */
.breadcrumb-item {
  white-space: nowrap;
  font-size: 0.95rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 0.5rem;
  color: #aaa;
}

/* Ссылки внутри крошек */
.breadcrumb-item a {
  color: var(--text-color) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-item a:hover {
  color: var(--primary-color);
}

/* Активный пункт */
.breadcrumb-item.active {
  color: var(--dark-color);
  font-weight: 500;
}

/* Сбрасываем margin-bottom только у списка и пунктов */
.breadcrumb-list,
.breadcrumb-item {
  margin-bottom: 0 !important;
}

.breadcrumb {
  margin-bottom: 1.5rem; /* или то значение, которое вам нужно */
}

/* 5. Адаптивные отступы */
@media (max-width: 992px) {
  .breadcrumb {
    width: calc(100% - 2rem);
    padding: 2rem;
  }
}
@media (max-width: 480px) {
  .breadcrumb {
    width: calc(100% - 1rem);
    padding: 1rem;
  }
  /* Прячем середину и добавляем «...» */
  .breadcrumb-item:nth-child(n+3):nth-child(-n+4) { display: none; }
  .breadcrumb-item:first-child::after {
    content: "...";
    margin: 0 0.5rem;
    color: #aaa;
  }
}