html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat-Medium', sans-serif;
    background-color: #ffffff;
    color: black;
}
a {
    text-decoration: none;
    color: #818181;
    margin: 15px;
}

a:hover {
    color: black;
    cursor: pointer;
}

h1, h2, p {
    margin: 0;
}

h2 {
    line-height: 46.5px;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    text-align:center;
    color: black;
    padding: 26px 40px;
    font-size: 1.2em;
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);   
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.7em;
    font-weight: bold;
}

.logo-group {
    display: flex;
    align-items: center;
}

.buttons {
    display: flex;
    align-items: center;
}

.nav-button {
    text-decoration: none;
    position: relative;
}

.nav-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease;
}

#searchInput {
    height: 16px !important;
    padding-left: 34px !important;
    outline: none;
    border-radius: 8px;
    border: 2px solid #9c131d;
}

#searchInput:focus {
    border: 3px solid #9c131d;
    outline: none;
    box-shadow: none;
    }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #ffffff;
    color: black;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    padding-top: 20px;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 6;
}

.sidebar.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.notifications {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
}

.notification {
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    color: white;
    display: none;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #F44336;
}

.menu-button {
    display: none;
}

main {
    background-color: #ffffff;
    min-height:50em;
}

.main-elements {
    height: 40vh;
    justify-content: space-around;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
}

.main-big-text {
    font-size: 3em;
    color: black;
}

.main-big-img {
    height: 40vh;
    float: right;
}

button {
    padding: 15px;
    background-color: #9c131d;
    color: #fff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 16px;
    font-family: 'Manrope-Medium', sans-serif;
}

button:hover {
    background-color: #fff;
    color: #9c131d;
    border: 2px solid #9c131d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.horiz-button-menu {
    display: flex;
    justify-content: center;
}

.horiz-button-menu button {
    margin-left: 40px;
    margin-right: 40px;
    background-color: #fff;
    color: black;
    border: 2px solid #fff;
    
}

.horiz-button-menu button:hover {
    background-color: #fff;
    color: #9c131d;
    border: 2px solid #9c131d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.spacer-button {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

footer {
    text-align: center;
    padding-bottom: 10px;
    background-color: #ffffff;
    color: black;
    font-size: large;
}

.modal-recovery, .modal-agreement, .modal{
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}
.modal{
    z-index:7;
}

.modal-recovery{
    z-index:8;
}

.modal-agreement{
    z-index: 8;
}

.modal-content {
    display: flex; /*попытка выравнивания */
    flex-direction: column; /*попытка выравнивания */
    height: fit-content;
    background-color: #fff;
    color: #000000;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 30px 20px 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    animation: fadeIn 0.3s;
    height: auto;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* Отступ для ссылки */
}

form {
    display: grid;
    grid-row-gap: 10px;
}

.close {
    margin-left: 3px;
    float: right;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
    text-align: center;
    font-size: 27px;
}

.modal-content p{
    text-align: center;
}

.modal-content label {
    margin-top: 7px;
}

/* Рамочки для кнопок ввода данных при регистрации */
.modal-content input {
    padding: 12px 15px;
    margin-top: 5px;
    border: 2px solid #949AA6;
    border-radius: 8px;
    font-size: 16px;
}

/* Фокус на рамках */
.modal-content input:focus {
    border-color: #9c131d;
    outline: none;
    box-shadow: 0 0 0 1px #9c131d;
}

/* Выбранная рамка */
.modal-content input:hover {
    border-color: #9c131d;
    outline: none;
    box-shadow: 0 0 0 1px #9c131d;
    transition: 0.2s;
}

.modal-content .button-container{
    display: flex;
}

/* Рамка на Мерчедел/Покупатель/Зарегистрироваться */
.modal-content button {
    margin: 10px auto 0 auto;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #9c131d;
    border: 3px solid #9c131d;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    font-size: 16px;
    position: relative;
    font-family: 'Manrope', sans-serif;
}

.modal-content button:hover {
    background-color: #9c131d;
    color: #ffffff;
    border: 3px solid #9c131d;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.modal-content .selected {
    background-color: #9c131d;
    color: #ffffff;
    border: 3px solid #9c131d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-content a {
    text-align: center;
}

.modal-content label {
  color: #1F2937; 
  font-size: 16px;
  display: block;
}

.modal-content .button-container + label {
  color: #1F2937;
}

.modal-content input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 !important;
  appearance: none;
  width: 25px;
  height: 25px;
  border: 2,5px solid #9c131d;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  border-color: #9c131d;
  box-shadow: 0 0 0 1px #9c131d;
}

input[type="checkbox"] {
  border-color: #949AA6;
  box-shadow: none;
}

input[type="checkbox"]:checked {
  background-color: #9c131d;
  border-color: #9c131d;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  text-align: center;
}

.checkbox-container p {
  margin: 0;
  color: #1F2937;
  align-items: center;
}

.eye-link {
    position: absolute;
    right: 10px;
    top: 3px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}

.PerDataLink {
  color: #9c131d;
  transition: all 0.3s ease;
  border-bottom: 1px dashed #9c131d;
}

.PerDataLink:hover {
  color: #d32f2f;
  border-bottom-color: transparent;
}

.symbols-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.card:hover .card-fav {
    display: flex;
}

.card-fav {
    height: 25px;
    width: 25px;
    display: none;
    position: absolute;
    top: 150px;
    right: -5px;
    z-index: 6;
}


.card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    width: 200px; /* Ширина карточки */
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.card:hover {
    cursor: pointer;
    background-color: #eee;
    border-color: #9c131d;
}

.card-image-block {
    position: relative;
}

.card-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.card-title {
    font-size: 1.2em;
    margin: 10px 0;
}

.card-price {
    font-size: 1.1em;
    color: #333;
}

.card button {
    margin: 10px auto 0 auto;
    padding: 12px 20px;
    background-color: #9c131d;
    color: #fff;
    border: 2px solid #9c131d;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
}

.card button:hover {
    background-color: #fff;
    color: #9c131d;
    border: 2px solid #9c131d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-image-small {
    width: 50px;
    height: auto;
}

.card-image-large {
    width: 100px;
    height: auto;
}

.placeholder {
    width: 50px;
    height: 50px;
    background-color: #ccc;
}

.PerDataLink {
    transition: 0.3s;
    margin: 0px;
}

.PerDataLink:hover {
    color: #9c131d;
    transition: 0.3s;
}

#how-to-order {
    text-align: center;
    margin: 40px 0;
}

.order-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.order-step {
    margin: 20px;
    text-align: center;
}

.order-step img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.dropdown-button{
    background-color: #9c131d;
    border: 2px solid #9c131d;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-button:hover {
    background-color: white;
}

.menu-icon {
    transition: all 0.3s ease;
}

.dropdown-button:hover .menu-icon {
    content: url("assets/menu-red.png");
}


@media screen and (max-width: 860px) {
    header{
        padding: 0px 5px;
        justify-content: center;
    }

    .logo-group {
        flex-grow: 1;
        justify-content: center;
    }

    .sidebar.active {
        display: block;
        transform: translateX(0);
    }

    .menu-button {
        display: block;
    }

    .header-content{
        display: contents;
    }

    .buttons {
        display: none !important; 
    }

    .dropdown{
        display: none !important; 
    }

    #searchInput {
        flex-grow: 1;
    }

    nav{
        display: grid;
    }

    .main-elements {
        height: 20vh;
    }
    
    .main-big-text {
        padding-top:10px ;
        font-size: 28px;
    }

    .main-big-img {
        height: 20vh;
        float: right;
    }

    .horiz-button-menu button {
        margin-left: 5px;
        margin-right: 5px;
        background-color: #fff;
        color: black;
        border: 2px solid #fff;   
    }
}

.chatbot-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    padding: 10px 15px;
    background-color: #9c131d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Убедитесь, что чат выше других элементов */
}

.chatbot-header {
    background-color: #9c131d;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.user-message {
    text-align: right;
    color: #000000;
}

.bot-message {
    text-align: left;
    color: #9c131d;
}

.chatbot-input {
    display: flex;
    padding: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.dropdown-content {
    text-align:start;
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    overflow: hidden;
    right: 0;
    left: auto;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    /* overflow: hidden; */
    margin: 10 10px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.dropdown-content a:hover {
    background-color: #9c131d;
    color: white;
    border: 2px solid #9c131d;
    border-color: #9c131d;
    /* transition: all 0.3s ease; */
}

.dropdown-content .highlighted {
    background-color: #9c131d;
    border-radius:8px;
    color: white;
    margin: 0 8px;
    border: 2px solid #9c131d;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.attributions {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}
.attributions a {
  color: #9c131d;
  text-decoration: none;
}

.input-with-icon {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  transition: border-color 0.3s;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 55%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  box-sizing: border-box;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s;
}

/* Плейсхолдеры */
input::placeholder {
  color: #999;
  font-size: 14px;
}

input:focus {
  border-color: #9c131d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(156, 19, 29, 0.2);
}

.button-container {
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  padding: 0 30px;
}

.modal-content h2 {
  font-size: 35px !important;
  text-align: center;
  margin: 0;
  padding: 0 40px;
  line-height: 1.2;
}

.button-container button {
  width: 170px;
}

.input-with-icon:hover .icon-stylus {
  content: url("assets/stylus-red.png");
}

.input-with-icon:hover .icon-vk {
  content: url("assets/vk-red.png");
}

.input-with-icon:hover .icon-login {
  content: url("assets/login-red.png");
}

.input-with-icon:hover .icon-email {
  content: url("assets/email-red.png");
}

.input-with-icon:hover .icon-password {
  content: url("assets/password-red.png");
}

.password-container:hover .icon-password {
    content: url("assets/password-red.png");
}

.password-container:hover .eye-link img {
    content: url("assets/yin-yang-red.png");
}

.form-input-container {
  width: 100%;
  max-width: 500px;
  margin-bottom: 8px;
}

.form-input-container .input-icon {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

#LogInForm {
  display: grid;
  grid-row-gap: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#LogInForm .input-with-icon {
  position: relative;
  width: 100%;
}

#LogInForm .password-container {
  position: relative;
  display: flex;
  align-items: center;
}

#LogInForm input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #949AA6;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

#LogInForm input:focus {
  border-color: #9c131d;
  outline: none;
  box-shadow: 0 0 0 1px #9c131d;
}

#LogInForm input:hover {
    border-color: #9c131d;
    outline: none;
    box-shadow: 0 0 0 1px #9c131d;
    transition: 0.2s;
}

#LogInForm button {
  width: 50%;
  padding: 12px 20px;
  margin-top: 25px;
}

#LogInForm a {
    text-decoration: none;
    color: #818181;
    margin: 15px;
}

#LogInForm a body {
    margin: 0;
    font-family: 'Montserrat-Medium', sans-serif;
    background-color: #ffffff;
    color: black;
}

#LogInForm .input-with-icon input,
#LogInForm .password-container input {
    padding-left: 40px;
}

#RecoveryForm {
    display: grid;
    grid-row-gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#RecoveryForm .input-with-icon {
    position: relative;
    width: 100%;
}

/* Шрифт */
@font-face {
  font-family: 'Montserrat-SemiBold';
  src: url('fonts/Montserrat/Montserrat-SemiBold.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat-Regular';
  src: url('fonts/Montserrat/Montserrat-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat-Medium';
  src: url('fonts/Montserrat/Montserrat-Medium.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
 
#description {
  display: flex;
  align-items: center; 
  gap: 40px; 
  padding: 110px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#description .text-block,
#description .image-block {
  flex: 1;
}

#description .text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#description .collage-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

#description .main-title {
  font-family: 'Montserrat-SemiBold', sans-serif;
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

#description .subtitle {
  font-family: 'Montserrat-Medium', sans-serif;
  font-size: 1.6em;
  margin-bottom: 30px;
  color: #333333;
  line-height: 1.4;
}

#description .order-button {
  padding: 15px 45px;
  background: #9c131d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.3em;
  cursor: pointer;
  transition: 0.1s;
  width: fit-content;
}

#description .order-button:hover {
  background: #7a0f16;
  transform: translateY(-2px);
}

.circulation-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.circulation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    text-align: center;
}

.circulation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.circulation-image-container {
    /* max-width: 100%;
    max-height: 100%; */
    position: relative;
    height: 210px;
    width: 100%;
    overflow: hidden;
    padding: 30px 65px 25px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circulation-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.circulation-content {
    padding: 0px 25px 25px;
}

.circulation-card h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #333;
}

.circulation-stock {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.circulation-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.price-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.price-label {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.old-price {
    color: #333;
    font-size: 18px;
}

.price-arrow {
    color: #999;
    font-size: 20px;
    align-self: center;
    line-height: 1;
}

.new-price {
    color: #9c131d;
    font-weight: bold;
    font-size: 16px;
}

.collective-printing {
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.printing-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.printing-content h2 {
    text-align: center;
    color: black;
    margin-bottom: 30px;
    font-size: 35px;
}

.printing-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px auto;
    max-width: 1000px;
}

.benefit-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.benefit-item img {
    width: 140px;
    height: 140px;
    margin-bottom: 17px;
}

.benefit-item p {
    font-size: 19px;
    line-height: 1.5;
    min-height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.printing-content .learn-more-button {
    padding: 15px 45px;
    background: #9c131d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.3em;
    cursor: pointer;
    transition: transform 0.1s ease;
    width: fit-content;
    font-family: 'Manrope-Medium', sans-serif;
    display: inline-block;
}

.learn-more-button:hover {
    background-color: #7a0f16;
    transform: translateY(-2px);
}

.learn-more-button:active {
    transform: translateY(1px);
}