body {
    margin: 0;
   font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
 
}


body a {
    color: #717171;
}


.headbg {
  background-image: url('/design/obstanovka/images/headmeb.jpg');
  background-position: center;    /* центрирование */
  background-repeat: no-repeat;   /* без повторов */
  background-size: auto;          /* оригинальный размер */
 width: 486px;
    height: 191px;
 margin-left: auto;
    margin-right: auto;
}







.bghead {
 width: 100%;
    height: 191px;
margin-left: auto;
    margin-right: auto; 
 border-spacing: 0;
}



.bgheads {
background-image: url('/design/obstanovka/images/fonhead.jpg');
  background-position: center;    /* центрирование */
  background-repeat: repeat-x;   /* без повторов */
  background-size: auto;          /* оригинальный размер */
 width: 100%;
    height: 191px;
margin-left: auto;
    margin-right: auto; 
 border-spacing: 0;
}



.headlogo {
  background-image: url('/design/obstanovka/images/logo.jpg');
  background-position: center;    /* центрирование */
  background-repeat: no-repeat;   /* без повторов */
  background-size: auto;          /* оригинальный размер */
 width: 248px;
    height: 111px;
    float: right;
    
    position: relative;
}


td.mebeltd {
    width: 486px;
}



table.menutops{
 height: 40px;
    background-color: #4d4a4a;
    width: 100%;
 
     position: relative;
    bottom: 2px;
 
}

table.menutop ul {
    list-style: none;
    display: inline-flex;
 padding: 0;
    margin: 0;
}


table.menutop {
   width: 100%;
 margin-left: auto;
    margin-right: auto;
}

table.menutop ul li a {
    text-decoration: none;
    color: white;
    margin-right: 15px;
}

table.menutop ul li a:hover {
    text-decoration: underline;
    color: white;
    margin-right: 15px;
}

table.wrap{
    width: 100%;
 margin-left: auto;
    margin-right: auto;
}

table.osnova td{
 vertical-align: top;
}

td.leftcontent{
  width: 300px;
 
}

td.rightcontent{
  width: auto;
 padding-left: 30px;
 
}

ul.products{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки равной ширины */
  gap: 10px; /* Расстояние между элементами */
  padding: 0;
  list-style: none;
}

li.product{
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
 
}

div#catalog_menu ul li
{
 list-style-type: none;
    padding-top: 5px;
    background-color: transparent;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border: solid 1px #2B2A29;
}


div#catalog_menu ul li:hover {
    background: #d1d1d1;
}

div#catalog_menu ul li ul li:hover {
    background: #a5a9a5;
}


div#catalog_menu li a
{
    text-decoration: none;
    color: #000000;
    font-size: 15px;
    display: block;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: bold;
}

ul.products li .product_price {
    color: red;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}


ul.products h3 {
    font-size: 15px;
    text-align: center;
    font-weight: normal;
 height: 60px;
}

ul.products h3 a {
    font-size: 15px;
    text-align: center;
    font-weight: normal;
    text-decoration: underline;
    color: #1e7ec8;
}

select.variant_select {
    width: 100%;
}

ul.products li.product div.image {
    height: 205px;
    display: flex
;
    align-items: center;
    justify-content: center;
    background: #e3e3e3;
    margin-bottom: 15px;
}


ul.products li.product input.button {
background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 14px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
    text-transform: uppercase;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

ul.products li.product input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.5);
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
}

ul.products li.product input.button:active {
    transform: translateY(0);
}

ul.products li.product input.button::after {
    content: '🛒';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

ul.products li.product input.button:hover::after {
    animation: cartShake 0.5s ease;
}

@keyframes cartShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}


table.product input.button{
 background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 14px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
    text-transform: uppercase;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}



table.product input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.5);
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
}

table.product input.button:active {
    transform: translateY(0);
}

table.product input.button::after {
    content: '🛒';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

table.product input.button:hover::after {
    animation: cartShake 0.5s ease;
}

@keyframes cartShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}











/* Таблица вариантов */
.variantstovar {
    width: 100%;
    border-collapse: collapse;
    
}

/* Четные строки - светлый фон */
.variantstovar .variant:nth-child(even) {
    background-color: #f8f8f8;
}

/* Нечетные строки - белый фон */
.variantstovar .variant:nth-child(odd) {
    background-color: #fff;
}

/* Ховер на строку */
.variantstovar .variant:hover {
    background-color: #f0f8ff;
}

/* Ячейки */
.variantstovar .variant td {
    padding: 12px 15px;
    border: 1px solid #eee;
}

/* Первая ячейка (радиокнопка) */
.variantstovar .variant td:first-child {
    width: 40px;
    text-align: center;
}

/* Простые радиокнопки */
.variantstovar .variant_radiobutton {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Название варианта */
.variantstovar .variant_name {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: normal;
}

.variantstovar .variant_radiobutton:checked + .variant_name {
    font-weight: 600;
    color: #0066cc;
}

/* Цены */
.variantstovar .price {
    font-size: 14px;
    color: red;
    font-weight: 600;
}

.variantstovar .compare_price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.variantstovar .currency {
    font-size: 13px;
    color: #666;
}

/* Выделение выбранной строки */
.variantstovar .variant:has(.variant_radiobutton:checked) {
    background-color: #e6f2ff;
    border-left: 3px solid #0066cc;
}

/* Кнопка добавления в корзину */
.variantstovar .button {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.variantstovar .button:hover {
    background-color: #990000;
}

.variantstovar .button::before {
    content: '🛒 ';
    font-size: 14px;
}



table#variantone tr {
    background: none;
    border: 0;
}


table#variantone td {
    border: 0;
}

table#variantone td .currency,
table#variantone td .price{
  color:red;
 font-size: 35px;
}




















/* Простой CSS для корзины в красном стиле */
#cart_informer {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 10px 0;
 margin-left: 40px;
     text-align: center;
}

span.namenazvkorz{
 font-size:40px;
 display: block;
}

/* Стиль для корзины с товарами */
#cart_informer a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
     text-decoration: underline;
}

#cart_informer a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Основной текст в корзине */
#cart_informer span {
    color: #333;
}

/* Акцент на количестве товаров */
#cart_informer .highlight {
    color: #d32f2f;
    font-weight: bold;
    margin: 0 3px;
}

/* Цена */
#cart_informer .price {
    color: #d32f2f;
    font-weight: bold;
}

/* Валюта */
#cart_informer .currency {
    color: #d32f2f;
    font-weight: bold;
}

/* Для пустой корзины */
#cart_informer .empty-cart {
    color: #666;
    font-style: italic;
    padding: 8px 15px;
    border: 1px solid #ffcdd2;
    background: #ffebee;
    border-radius: 4px;
    display: inline-block;
}

/* Обертка для корзины с товарами */
#cart_informer:not(:empty) {
    padding: 10px 15px;
    border: 1px solid #ffcdd2;
    background: #ffebee;
    border-radius: 4px;
    display: inline-block;
}

/* Разделитель */
#cart_informer .separator {
    color: #999;
    margin: 0 5px;
}




























.cartblock {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Заголовок */
.cartblock .cart-title {
    color: #444;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

/* Сумма корзины */
.cartblock .cart-summary {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cartblock .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cartblock .summary-item:last-child {
    border-bottom: none;
}

.cartblock .summary-label {
    color: #666;
    font-size: 15px;
}

.cartblock .summary-value {
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.cartblock .summary-item.total {
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    margin-top: 10px;
}

.cartblock .summary-item.total .summary-label {
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.cartblock .summary-item.total .summary-value {
    color: #c62828;
    font-weight: 600;
    font-size: 18px;
}

.cartblock .summary-item.discount .summary-value {
    color: #388e3c;
}

.cartblock .summary-item.coupon-discount .summary-value {
    color: #c62828;
}

/* Разделы */
.cartblock .cart-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cartblock .section-title {
    color: #444;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Список товаров */
.cartblock .purchases-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cartblock .purchase-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 18px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.cartblock .purchase-item:hover {
    border-color: #e0e0e0;
}

.cartblock .purchase-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cartblock .purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.cartblock .purchase-info {
    flex-grow: 1;
}

.cartblock .purchase-name {
    margin-bottom: 12px;
}

.cartblock .product-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.cartblock .product-link:hover {
    color: #c62828;
}

.cartblock .variant-name {
    color: #666;
    font-size: 13px;
}

.cartblock .purchase-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.cartblock .price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cartblock .unit-price {
    color: #666;
    font-size: 13px;
}

.cartblock .total-price {
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.cartblock .quantity-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cartblock .quantity-label {
    color: #666;
    font-size: 13px;
}

.cartblock .quantity-select {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    min-width: 70px;
}

.cartblock .quantity-select:focus {
    outline: none;
    border-color: #c62828;
}

.cartblock .purchase-actions {
    display: flex;
    align-items: center;
}

.cartblock .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    transition: all 0.2s;
}

.cartblock .remove-btn:hover {
    background: #ffebee;
    color: #c62828;
}

/* Купон */
.cartblock .coupon-input-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.cartblock .coupon-input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.cartblock .coupon-input:focus {
    outline: none;
    border-color: #c62828;
}

.cartblock .coupon-btn {
    padding: 10px 24px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cartblock .coupon-btn:hover {
    background: #a81818;
}

.cartblock .coupon-error {
    color: #c62828;
    font-size: 13px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 3px solid #c62828;
}

.cartblock .coupon-info {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

/* Доставка */
.cartblock .delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cartblock .delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.cartblock .delivery-option:hover {
    border-color: #e0e0e0;
}

.cartblock .delivery-radio {
    margin-top: 2px;
    accent-color: #c62828;
}

.cartblock .delivery-label {
    flex-grow: 1;
    cursor: pointer;
}

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

.cartblock .delivery-name {
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.cartblock .delivery-price {
    color: #c62828;
    font-weight: 500;
    font-size: 15px;
}

.cartblock .delivery-description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.cartblock .delivery-free-info {
    color: #388e3c;
    font-size: 12px;
    padding: 4px 8px;
    background: #f1f8e9;
    border-radius: 3px;
    display: inline-block;
}

/* Форма */
.cartblock .customer-form {
    max-width: 600px;
}

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

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

.cartblock .form-label {
    display: block;
    color: #444;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.cartblock .form-label:after {
    content: '*';
    color: #c62828;
    margin-left: 2px;
    opacity: 0.8;
}

.cartblock .form-label[for="customer_phone"]:after,
.cartblock .form-label[for="customer_address"]:after,
.cartblock .form-label[for="order_comment"]:after {
    content: '';
    display: none;
}

.cartblock .form-input,
.cartblock .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.cartblock .form-input:focus,
.cartblock .form-textarea:focus {
    outline: none;
    border-color: #c62828;
}

.cartblock .form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Капча */
.cartblock .captcha-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    margin: 30px 0;
}

.cartblock .captcha-image img {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
 height: 70px;
}

.cartblock .captcha-input {
    flex-grow: 1;
}

.cartblock .captcha-code {
    max-width: 120px;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 500;
}

/* Кнопка отправки */
.cartblock .form-submit {
    margin-top: 30px;
}

.cartblock .submit-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 16px 24px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cartblock .submit-btn:hover {
    background: #a81818;
}

.cartblock .submit-price {
    font-weight: 600;
    font-size: 18px;
}

.cartblock .form-note {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
    max-width: 400px;
}

/* Ошибки */
.cartblock .form-error {
    color: #c62828;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #ffebee;
    border-radius: 6px;
    border-left: 4px solid #c62828;
}

/* Пустая корзина */
.cartblock .empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.cartblock .empty-icon {
    color: #d0d0d0;
    margin-bottom: 20px;
}

.cartblock .empty-title {
    color: #444;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 10px;
}

.cartblock .empty-text {
    color: #666;
    font-size: 15px;
    margin: 0 0 25px;
}

.cartblock .empty-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #c62828;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cartblock .empty-btn:hover {
    background: #a81818;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cartblock .cartblock {
        padding: 15px 10px;
    }
    
    .cartblock .purchase-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cartblock .purchase-image {
        width: 100%;
        height: auto;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .cartblock .purchase-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cartblock .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cartblock .captcha-block {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cartblock .cart-section {
        padding: 20px 15px;
    }
    
    .cartblock .submit-btn {
        max-width: 100%;
    }
}


















.orderzakaz {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px 15px;
    background: #f9f9f9;
    min-height: 100vh;
}

.orderzakaz h1 {
    color: #444;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.4;
}

.orderzakaz h1:before {
    content: "№" attr(data-order-id);
    background: #c62828;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 12px;
    font-weight: 500;
}

.orderzakaz h2 {
    color: #444;
    font-size: 19px;
    font-weight: 500;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

/* Таблица товаров */
.orderzakaz #purchases {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.orderzakaz #purchases th {
    background-color: #f5f5f5;
    color: #555;
    padding: 16px 12px;
    text-align: left;
    font-weight: 500;
    border: none;
    font-size: 14px;
}

.orderzakaz #purchases td {
    padding: 18px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
}

.orderzakaz #purchases tr:last-child td {
    border-bottom: none;
}

.orderzakaz #purchases tr:hover {
    background-color: #fafafa;
}

/* Колонки таблицы товаров */
.orderzakaz #purchases td.image {
    width: 60px;
}

.orderzakaz #purchases td.image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.orderzakaz #purchases td.name {
    color: #333;
    line-height: 1.5;
}

.orderzakaz #purchases td.name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.orderzakaz #purchases td.name a:hover {
    color: #c62828;
}

.orderzakaz #purchases .download_attachment {
    display: inline-block;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
    text-decoration: none;
    padding: 3px 8px;
    background: #ffebee;
    border-radius: 3px;
    border: 1px solid #ffcdd2;
}

.orderzakaz #purchases .download_attachment:hover {
    background: #ffcdd2;
}

.orderzakaz #purchases td.price {
    color: #333;
    font-weight: 500;
    text-align: right;
    padding-right: 15px;
    white-space: nowrap;
}

.orderzakaz #purchases td.amount {
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.orderzakaz #purchases th.price {
    text-align: right;
    padding-right: 15px;
    color: #333;
    font-weight: 600;
}

/* Цветные строки */
.orderzakaz #purchases tr:nth-last-child(2) th {
    background-color: #f0f0f0;
    color: #333;
}

.orderzakaz #purchases tr:last-child th {
    background-color: #2c2c2c;
    color: white;
    font-size: 15px;
}

.orderzakaz #purchases tr:nth-last-child(3):not(:last-child):not(:nth-last-child(4)) {
    background-color: #fff8e1;
}

.orderzakaz #purchases tr:nth-last-child(4):not(:last-child):not(:nth-last-child(5)) {
    background-color: #f1f8e9;
}

/* Таблица информации о заказе */
.orderzakaz .order_info {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.orderzakaz .order_info tr {
    border-bottom: 1px solid #f5f5f5;
}

.orderzakaz .order_info tr:last-child {
    border-bottom: none;
}

.orderzakaz .order_info td {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
}

.orderzakaz .order_info td:first-child {
    color: #666;
    font-weight: 500;
    width: 180px;
    border-right: 1px solid #f0f0f0;
    background: #fafafa;
}

.orderzakaz .order_info td:last-child {
    color: #333;
}

/* Способы оплаты */
.orderzakaz #deliveries {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.orderzakaz #deliveries li {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.orderzakaz #deliveries li:hover {
    border-color: #c62828;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.1);
}

.orderzakaz #deliveries .checkbox {
    float: left;
    margin-right: 12px;
    margin-top: 3px;
}

.orderzakaz #deliveries h3 {
    margin: 0 0 10px;
    color: #444;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.orderzakaz #deliveries h3 label {
    cursor: pointer;
    display: block;
}

.orderzakaz #deliveries .description {
    color: #666;
    font-size: 14px;
    padding-left: 28px;
    line-height: 1.5;
}

/* Кнопки */
.orderzakaz .button {
    background-color: #c62828;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.orderzakaz .button:hover {
    background-color: #a81818;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
}

.orderzakaz input[type="submit"].button {
    min-width: 200px;
}

/* Форма оплаты */
.orderzakaz form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin: 25px 0;
}

/* Сообщения о статусе */
.orderzakaz .order-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 15px;
    vertical-align: middle;
}

.orderzakaz .status-accepted {
    background-color: #e3f2fd;
    color: #1565c0;
}

.orderzakaz .status-processing {
    background-color: #fff3e0;
    color: #ef6c00;
}

.orderzakaz .status-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.orderzakaz .status-paid {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* К оплате блок */
.orderzakaz h2:has(+ h2) {
    background: linear-gradient(135deg, #c62828, #d32f2f);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    border: none;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orderzakaz h2:has(+ h2) form {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.orderzakaz h2:has(+ h2) input[type="submit"] {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    font-size: 14px;
}

.orderzakaz h2:has(+ h2) input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .orderzakaz {
        padding: 15px 10px;
    }
    
    .orderzakaz h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .orderzakaz #purchases {
        font-size: 13px;
    }
    
    .orderzakaz #purchases th,
    .orderzakaz #purchases td {
        padding: 12px 8px;
    }
    
    .orderzakaz .order_info td {
        padding: 12px 15px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .orderzakaz .order_info td:first-child {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
    }
    
    .orderzakaz .order_info td:last-child {
        padding-top: 8px;
    }
    
    .orderzakaz #deliveries li {
        padding: 15px;
    }
    
    .orderzakaz #deliveries .description {
        padding-left: 0;
        padding-top: 10px;
        clear: both;
    }
    
    .orderzakaz .button {
        width: 100%;
        box-sizing: border-box;
        padding: 14px;
    }
    
    .orderzakaz h2:has(+ h2) {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Статусы текстом */
.orderzakaz h1 span.status {
    display: inline-block;
    margin-left: 10px;
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.orderzakaz h1 span.status:before {
    content: "•";
    margin-right: 5px;
    color: #c62828;
}

/* Печать */
@media print {
    .orderzakaz {
        background: white;
        padding: 0;
        max-width: none;
    }
    
    .orderzakaz .button,
    .orderzakaz form,
    .orderzakaz .download_attachment {
        display: none !important;
    }
    
    .orderzakaz #purchases,
    .orderzakaz .order_info {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


.contacttel {
    float: left;
    display: block;
    position: relative;
 
     text-align: center;
    color: white;
}


.footer {
    background: #d5d5d5;

width: 100%;
}


table.bghead td {
    width: 33%;
}


table.footertd {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
 table-layout: fixed; 
     border-spacing: 0;
}


table.footertd td {
     width: 33.33%; 
}


.schetchik {
    text-align: right;
    margin-right: 100px;
}





/* Общие стили для поискового блока */
#search {
    position: relative;
    max-width: 355px;
  
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

/* Стили формы */
#search form {
    display: flex;
    position: relative;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

#search form:focus-within {
    border-color: #4f46e5;
    box-shadow: 
        0 4px 20px rgba(79, 70, 229, 0.15),
        0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

/* Поле ввода */
.input_search {
    flex: 1;
    padding: 0px 24px;
    padding-right: 60px; /* Место для кнопки */
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1f2937;
    outline: none;
    line-height: 1.5;
    transition: all 0.2s ease;
   
}

.input_search::placeholder {
    color: #9ca3af;
    font-weight: 400;
    transition: color 0.2s ease;
}

.input_search:focus::placeholder {
    color: #d1d5db;
}

/* Анимация при фокусе */
@keyframes inputFocus {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.input_search:focus {
    background: linear-gradient(
        90deg,
        rgba(79, 70, 229, 0.02) 0%,
        rgba(79, 70, 229, 0.05) 50%,
        rgba(79, 70, 229, 0.02) 100%
    );
    background-size: 200% 100%;
    animation: inputFocus 2s ease infinite;
}

/* Стили для кнопки поиска */
.button_search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Минимальная перезапись стандартных стилей кнопки */
.button_search[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Текст кнопки скрыт, используем псевдоэлемент */
.button_search {
       color: white;
    font-size: 16px;
}

/* Иконка лупы с анимацией */
.button_search::before {
    content: "🔍";
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Эффект при наведении */
.button_search:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2);
}

.button_search:hover::before {
    transform: scale(1.1);
}

/* Эффект при нажатии */
.button_search:active {
    transform: translateY(-50%) scale(0.95);
    background: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(79, 70, 229, 0.3);
}

.button_search:active::before {
    transform: scale(0.9);
    opacity: 0.8;
}

/* Эффект при фокусе с клавиатуры */
.button_search:focus {
    outline: 2px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}

/* Альтернативный вариант кнопки с SVG иконкой */
.button_search.alternative {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.button_search.alternative::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Третий вариант кнопки с анимацией */
.button_search.animated::before {
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Текст внутри формы для подсказок */
#search::after {
    content: attr(data-hint);
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search:focus-within::after {
    opacity: 1;
}

/* Адаптивные стили */
@media (max-width: 640px) {
    #search {
        margin: 15px;
    }
    
    .input_search {
        padding: 14px 20px;
        padding-right: 56px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .button_search {
        width: 40px;
        height: 40px;
        right: 4px;
    }
    
    .button_search::before {
        font-size: 16px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    #search form {
        background: #1f2937;
        border-color: #374151;
        box-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.05);
    }
    
    #search form:focus-within {
        border-color: #818cf8;
        box-shadow: 
            0 4px 20px rgba(129, 140, 248, 0.2),
            0 0 0 4px rgba(129, 140, 248, 0.1);
    }
    
    .input_search {
        color: #f9fafb;
        background: transparent;
    }
    
    .input_search::placeholder {
        color: #6b7280;
    }
    
    .input_search:focus {
        background: linear-gradient(
            90deg,
            rgba(129, 140, 248, 0.1) 0%,
            rgba(129, 140, 248, 0.15) 50%,
            rgba(129, 140, 248, 0.1) 100%
        );
    }
    
    .button_search {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    }
    
    .button_search:hover {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }
}

/* Анимация загрузки для кнопки */
.button_search.loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Состояния валидации */
.input_search:invalid {
    border-bottom: 2px solid #ef4444;
}
