/* Avito Account - Стили в дизайне Avito */

/* === Водяной знак === */
.watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.3px;
}

/* === Локальные шрифты === */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: block;
    src: url('/fonts/roboto-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: block;
    src: url('/fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Сброс стилей === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Переменные цветов Avito === */
:root {
    --avito-blue: #00AAFF;
    --avito-green: #84D600;
    --avito-red: #FF6663;
    --avito-purple: #9B59B6;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --text-dark: #000000;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #E5E5E5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Основные стили === */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a {
    color: var(--avito-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Header === */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

.logo:hover,
.logo:hover span {
    text-decoration: none !important;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--avito-blue);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--text-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--avito-green);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* === Main Container === */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1 0 auto;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

/* === Sidebar (Фильтры) === */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-box {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background: var(--avito-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-filter:hover {
    background: #0099e6;
}

.btn-filter-reset {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}
.btn-filter-reset:hover {
    background: #f0f0f0;
    color: #333;
}

/* === Main Content === */
.main-content {
    flex: 1;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-gray);
}

.page-title {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* === Products Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Filter Toggle (mobile) === */
.filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle-icon {
    transition: transform 0.3s;
    font-size: 12px;
}

.filter-box.open + .filter-toggle .filter-toggle-icon,
.filter-toggle:has(+ form .filter-box.open) .filter-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .filter-toggle {
        display: flex;
    }

    .filter-box {
        display: none;
        margin-bottom: 15px;
    }

    .filter-box.open {
        display: block;
    }

    .filter-box h3 {
        display: none;
    }

    .filter-group input[type="number"],
    .filter-group select {
        padding: 12px;
        font-size: 16px;
    }

    .btn-filter {
        padding: 14px;
        font-size: 16px;
    }
}

/* === Hamburger Menu === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Mobile Overlay === */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 1050;
        overflow-y: auto;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 16px 0;
        font-size: 20px;
        font-weight: 500;
        color: var(--text-dark);
        border-bottom: none;
    }

    .header-actions {
        gap: 15px;
    }

    .header-actions a {
        font-size: 14px;
    }

    .logo span {
        font-size: 18px;
    }

    .logo img {
        height: 32px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

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

    .page-title {
        font-size: 22px;
    }

    .footer {
        padding: 12px 0 0;
        margin-top: 20px;
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        text-align: center;
        padding: 0 15px;
    }

    .footer-section {
        display: inline;
    }

    .footer-section h4 {
        display: none;
    }

    .footer-section ul {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 0;
    }

    .footer-section li {
        margin-bottom: 0;
        font-size: 12px;
        color: var(--text-gray);
    }

    .footer-section li::after {
        content: '·';
        margin: 0 8px;
        color: var(--text-light);
    }

    .footer-section:last-child li:last-child::after {
        display: none;
    }

    .footer-section a {
        font-size: 12px;
    }

    .footer-bottom {
        margin-top: 8px;
        padding: 8px 15px;
        font-size: 11px;
        border-top: 1px solid var(--border-color);
    }
}

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

    .page-title {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 26px;
    }

    .product-detail-title {
        font-size: 22px;
    }
}

/* === Инфо-баннер === */
.info-banner-title { font-size: 26px; margin-bottom: 20px; font-weight: 500; }
.info-banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.info-banner-heading { font-size: 19px; margin-bottom: 8px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 6px; }
.info-banner-text { font-size: 16px; opacity: 0.95; line-height: 1.6; }
.info-banner-mobile { display: none; }

@media (max-width: 768px) {
    .info-banner-title { font-size: 20px; margin-bottom: 12px; }
    .info-banner-grid { display: none; }
    .info-banner-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 15px;
        opacity: 0.95;
    }
}

/* Компактные карточки на мобильных */
@media (max-width: 768px) {
    .product-image {
        height: 140px;
    }
    .product-info {
        padding: 10px;
    }
    .product-title {
        font-size: 15px;
        margin-bottom: 5px;
    }
    .product-meta {
        gap: 6px;
        margin-bottom: 6px;
        font-size: 11px;
    }
    .product-price {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .product-status {
        font-size: 11px;
        padding: 3px 8px;
        margin-bottom: 6px;
    }
    .btn-details, .btn-buy {
        padding: 8px;
        font-size: 13px;
    }
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .product-card {
        border: 2px solid #000;
    }
    .product-image {
        border-bottom: 2px solid #000;
    }
}

/* === Product Card === */
.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--avito-blue), var(--avito-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating {
    color: var(--avito-green);
    font-weight: 500;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-status.available {
    background: #E8F5E9;
    color: var(--avito-green);
}

.product-status.sold {
    background: #FFEBEE;
    color: var(--avito-red);
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--avito-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #0099e6;
}

.btn-add-cart:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.btn-details, .btn-buy {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-details {
    background: #f0f0f0;
    color: #333;
}
.btn-details:hover {
    background: #e0e0e0;
}
.btn-buy {
    background: var(--avito-blue);
    color: white;
}
.btn-buy:hover {
    background: #0099e6;
}

/* === Buttons === */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--avito-blue);
    color: white;
}

.btn-primary:hover {
    background: #0099e6;
}

.btn-success {
    background: var(--avito-green);
    color: white;
}

.btn-success:hover {
    background: #74c000;
}

.btn-danger {
    background: var(--avito-red);
    color: white;
}

.btn-danger:hover {
    background: #ff5053;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: #888888;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--avito-blue);
}

/* === Alert === */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #E8F5E9;
    color: var(--avito-green);
    border: 1px solid var(--avito-green);
}

.alert-error {
    background: #FFEBEE;
    color: var(--avito-red);
    border: 1px solid var(--avito-red);
}

.alert-info {
    background: #E3F2FD;
    color: var(--avito-blue);
    border: 1px solid var(--avito-blue);
}

/* === Footer === */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.footer-section a {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
}

.pagination a:hover {
    background: var(--avito-blue);
    color: white;
    text-decoration: none;
}

.pagination .active {
    background: var(--avito-blue);
    color: white;
    border-color: var(--avito-blue);
}

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

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

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

.p-20 {
    padding: 20px;
}
/* === Product Detail Page === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
}

.product-detail-image {
    width: 100%;
    min-height: 400px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-detail-right {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.product-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-detail-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.product-detail-status.available {
    background: #E8F5E9;
    color: var(--avito-green);
}

.product-detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-detail-description p {
    margin-bottom: 12px;
    color: var(--text-gray);
}

.product-detail-description ul {
    margin-left: 20px;
    color: var(--text-gray);
}

.product-detail-description ul li {
    margin-bottom: 8px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-buy-now {
    flex: 1;
    padding: 16px;
    background: var(--avito-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-buy-now:hover {
    background: #74c000;
}

.btn-add-to-cart {
    flex: 1;
    padding: 16px;
    background: var(--avito-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #0099e6;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-detail-image {
        min-height: auto;
        max-height: 200px;
    }
    .product-detail-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .product-detail-meta {
        font-size: 13px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .product-detail-price {
        font-size: 24px;
    }
    .product-detail-description {
        padding: 15px;
    }
    .product-detail-description p {
        font-size: 14px;
    }
    .product-detail-actions {
        flex-direction: column;
    }
    .btn-buy-now {
        padding: 14px;
        font-size: 15px;
    }
}

/* === Product Extra Blocks === */
.product-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.product-extra-block {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 24px;
}
.product-extra-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.product-extra-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 10px;
}
.product-extra-payment {
    grid-column: 1 / -1;
    background: #e8f7ff;
    border-left: 4px solid var(--avito-blue);
}
.product-extra-payment h3 {
    color: var(--avito-blue);
}
.product-extra-payment p {
    color: #333;
    font-size: 14px;
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    color: var(--text-gray);
}
.checklist li:last-child {
    border-bottom: none;
}
.checklist li::before {
    content: '✓ ';
    color: var(--avito-green);
    font-weight: 600;
}

@media (max-width: 768px) {
    .product-extra {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }
    .product-extra-block {
        padding: 16px;
    }
    .product-extra-block h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .product-extra-block p {
        font-size: 14px;
    }
    .checklist li {
        padding: 8px 0;
        font-size: 14px;
    }
}

/* === Content Pages (Instructions, Info, About) === */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.info-block {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 48px 52px;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.info-block h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--avito-blue);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.info-block h3 {
    font-size: 23px;
    font-weight: 600;
    color: #111111;
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.info-block h3:first-child,
.info-block h2 + h3 {
    margin-top: 0;
}

.info-block p {
    font-size: 18px;
    line-height: 1.75;
    color: #222222;
    margin-bottom: 16px;
    max-width: 680px;
}

.info-block ul,
.info-block ol {
    list-style: none;
    margin: 28px 0 32px 0;
    padding: 0;
}

.info-block ol {
    counter-reset: list-counter;
}

.info-block li {
    position: relative;
    font-size: 18px;
    line-height: 1.75;
    color: #222222;
    margin-bottom: 14px;
    padding-left: 28px;
}

.info-block li:last-child {
    margin-bottom: 0;
}

.info-block ul > li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--avito-blue);
}

.info-block ol > li::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--avito-blue);
}

.info-block ul ul {
    margin: 12px 0 12px 0;
}

.info-block ul ul > li::before {
    width: 5px;
    height: 5px;
    top: 12px;
    background: #999;
}

.info-block strong {
    color: #111111;
    font-weight: 600;
}

.info-block a {
    color: var(--avito-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-block a:hover {
    color: #0088cc;
}

/* Warning блок */
.info-block.warning {
    border-left: 4px solid #F57C00;
    background: #FFFAF0;
}

.info-block.warning h2 {
    color: #E65100;
    border-bottom-color: #F57C00;
}

.info-block.warning h3 {
    color: #BF360C;
}

/* Success блок */
.info-block.success {
    border-left: 4px solid #558B2F;
    background: #F9FBF4;
}

.info-block.success h2 {
    color: #33691E;
    border-bottom-color: #558B2F;
}

.info-block.success h3 {
    color: #33691E;
}

.product-image-link {
    text-decoration: none;
}

@media (max-width: 768px) {
    .content-page {
        padding-bottom: 20px;
    }

    .info-block {
        padding: 28px 24px;
        margin-bottom: 24px;
    }

    .info-block h2 {
        font-size: 22px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .info-block h3 {
        font-size: 17px;
        margin-top: 24px;
    }

    .info-block p,
    .info-block li {
        font-size: 15px;
    }
}

/* === Auth Pages === */
.auth-card {
    max-width: 400px;
    margin: 60px auto;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    color: var(--text-dark);
}
.auth-card .form-group {
    margin-bottom: 18px;
}
.auth-card .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-card .form-control {
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
.auth-card .form-control:focus {
    border-color: var(--avito-blue);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
    background: #fff;
}
.auth-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}
.auth-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-gray);
}
.auth-link a {
    font-weight: 500;
}
/* === Profile Dropdown === */
.profile-dropdown {
    position: relative;
}
.profile-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: none;
}
.profile-toggle:hover {
    background: var(--bg-light);
    text-decoration: none;
}
.profile-toggle svg {
    flex-shrink: 0;
}
.profile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 8px;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    z-index: 1200;
    overflow: hidden;
}
.profile-dropdown:hover .profile-menu,
.profile-dropdown.open .profile-menu {
    display: block;
}
.profile-menu-email {
    padding: 14px 16px 10px;
    font-size: 13px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.15s;
}
.profile-menu a:hover {
    background: var(--bg-light);
    text-decoration: none;
}
.profile-menu a:last-child {
    border-top: 1px solid var(--border-color);
    color: var(--avito-red);
}
.profile-menu a:last-child:hover {
    background: #fff5f5;
}
@media (max-width: 768px) {
    .auth-card {
        margin: 20px 15px;
        padding: 28px 22px;
    }
    .auth-title {
        font-size: 21px;
        margin-bottom: 22px;
    }
    .auth-card .form-control {
        padding: 13px 14px;
        font-size: 16px;
    }
    .auth-btn {
        padding: 14px;
        font-size: 16px;
    }
    .profile-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        min-width: auto;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    }
    .profile-menu-email {
        padding: 16px 20px 12px;
        font-size: 14px;
    }
    .profile-menu a {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* === Orders Page === */
.orders-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 16px;
}
.orders-empty .btn {
    margin-top: 20px;
}
.orders-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.orders-header-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}
.orders-header-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--avito-blue);
    background: #e8f4ff;
    padding: 3px 12px;
    border-radius: 12px;
}
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.order-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.order-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.order-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    gap: 16px;
}
.order-card-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.order-date {
    font-size: 12px;
    color: var(--text-light);
}
.order-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-status {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 6px;
    align-self: flex-start;
}
.order-status-success {
    color: #1b7a2b;
    background: #e8f5e9;
}
.order-status-warning {
    color: #e6a200;
    background: #fff8e1;
}
.order-status-error {
    color: #c62828;
    background: #ffebee;
}
.order-btn {
    align-self: flex-start;
    margin-top: 6px;
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: 6px;
}
.order-card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.order-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}
.order-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
}
.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .orders-list {
        gap: 10px;
    }
    .order-card-body {
        padding: 14px 16px;
        gap: 12px;
    }
    .order-title {
        font-size: 14px;
    }
    .order-thumb {
        width: 64px;
        height: 64px;
    }
    .order-btn {
        padding: 7px 14px !important;
        font-size: 12px !important;
    }
}

/* === Checkout Page === */
.checkout-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.checkout-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.checkout-info-block {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.checkout-info-block h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.checkout-info-block p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}
.checkout-info-block ul,
.checkout-info-block ol {
    padding-left: 20px;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}
.checkout-form {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.checkout-form-section {
    margin-bottom: 22px;
}
.checkout-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 10px;
}
.checkout-form .form-control {
    border-radius: 10px;
    background: #fafafa;
    padding: 13px 16px;
    font-size: 15px;
    border: 1.5px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-form .form-control:focus {
    border-color: var(--avito-blue);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.12);
    background: #fff;
}
.crypto-selector {
    display: flex;
    gap: 12px;
}
.crypto-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: #fafafa;
    flex: 1;
}
.crypto-option input {
    display: none;
}
.crypto-option span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}
.crypto-option:hover {
    border-color: #ccc;
    background: #f5f5f5;
}
.crypto-option.active {
    border-color: var(--avito-blue);
    background: #e8f7ff;
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.12);
}
.crypto-option.active span {
    color: var(--avito-blue);
}
.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    margin-bottom: 18px;
    border-top: 1px solid var(--border-color);
}
.checkout-total-label {
    font-size: 16px;
    color: var(--text-gray);
}
.checkout-total-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}
.checkout-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1.4;
}
.checkout-agree input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.checkout-agree a {
    color: var(--avito-blue);
    text-decoration: underline;
}
.checkout-agree a:hover {
    color: var(--text-dark);
}
.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .checkout-title {
        font-size: 22px;
    }
    .checkout-form {
        padding: 24px 20px;
    }
    .crypto-option {
        padding: 12px 14px;
    }
}
.checkout-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* === Pay Page === */
.pay-body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pay-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 36px;
    width: 100%;
    max-width: 620px;
    position: relative;
}
.pay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.pay-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}
.pay-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pay-store-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}
.pay-order-title {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.3;
}
.pay-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.pay-amount-label {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}
.pay-amount-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}
.pay-field {
    margin-bottom: 16px;
}
.pay-select {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
    font-size: 15px;
    color: var(--text-dark);
}
.pay-select.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.pay-select-arrow {
    margin-left: auto;
}
.pay-select-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
    font-size: 15px;
    color: var(--text-dark);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.pay-select-input:focus {
    outline: none;
    border-color: var(--avito-blue);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.12);
}
.pay-warning {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #e65100;
    margin-bottom: 16px;
}
.pay-btn {
    width: 100%;
    padding: 15px;
    background: var(--avito-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: background 0.2s;
}
.pay-btn:hover {
    background: #0095e0;
}
.pay-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
}
.pay-details {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px 24px;
    align-items: start;
}
.pay-qr {
    grid-row: 1 / 4;
    width: 150px;
    flex-shrink: 0;
    align-self: start;
    line-height: 0;
    margin-top: 6px;
}
.pay-qr img {
    display: block;
    width: 150px;
    height: 150px;
}
.pay-qr canvas {
    display: block;
    width: 150px !important;
    height: 150px !important;
}
@media (max-width: 520px) {
    .pay-details {
        grid-template-columns: 1fr;
    }
    .pay-qr {
        grid-row: auto;
        text-align: center;
    }
}
.pay-network-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1b7a2b;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
}
.pay-copy-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pay-copy-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}
.pay-copy-row {
    display: flex;
    gap: 8px;
    position: relative;
}
.pay-copy-input {
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-dark);
    min-width: 0;
    user-select: none;
    cursor: pointer;
    word-break: break-all;
    line-height: 1.4;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}
.pay-copy-input:active {
    background: #eef6ff;
}
.pay-copied-toast {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #26A17B;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-50%) translateX(10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.pay-copy-btn {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.pay-copy-btn:hover {
    background: #eee;
}
.pay-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    color: var(--text-gray);
    font-size: 14px;
}
.pay-waiting-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid #e0e0e0;
    border-top-color: #26A17B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.pay-expired {
    text-align: center;
    margin-top: 20px;
}
@media (max-width: 480px) {
    .pay-card {
        padding: 28px 22px;
    }
    .pay-amount-value {
        font-size: 24px;
    }
}

/* ============================= */
/* === Order Chat Page (oc-) === */
/* ============================= */

.oc-product-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* --- Top row: instruction + order info --- */
.oc-top-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.oc-instruction-block {
    flex: 1;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.oc-instruction-text {
    max-height: 7.5em;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.oc-instruction-text.expanded {
    max-height: 600px;
}
.oc-instruction-text p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: 4px;
}
.oc-instruction-toggle {
    background: none;
    border: none;
    color: var(--avito-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0;
    font-family: inherit;
}
.oc-instruction-toggle:hover {
    text-decoration: underline;
}

/* --- Order info card --- */
.oc-order-info {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.oc-order-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.oc-order-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 6px;
}
.oc-order-number {
    font-weight: 700;
    color: var(--text-dark);
    font-family: monospace;
    font-size: 15px;
}
.oc-copy-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
}
.oc-copy-btn:hover {
    background: var(--bg-light);
}
.oc-order-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.oc-order-status {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1b7a2b;
    background: #e8f5e9;
    padding: 4px 14px;
    border-radius: 6px;
}

/* --- Rating --- */
.oc-rating-block {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.oc-rating-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}
.oc-stars {
    display: flex;
    gap: 4px;
}
.oc-star {
    cursor: pointer;
    transition: transform 0.15s;
}
.oc-star:hover {
    transform: scale(1.2);
}
.oc-rating-thanks {
    font-size: 14px;
    color: var(--avito-green);
    font-weight: 500;
}

/* --- Chat section --- */
.oc-chat-section {
    margin-bottom: 24px;
}
.oc-chat-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.oc-chat-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f7ff;
    border: 1px solid #b3e0ff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}
.oc-chat-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    min-height: 320px;
    max-height: 480px;
    overflow: hidden;
}
.oc-chat-messages {
    padding: 16px;
    min-height: 320px;
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.oc-chat-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 60px 20px;
}

/* Messages */
.oc-msg {
    display: flex;
}
.oc-msg-user {
    justify-content: flex-start;
}
.oc-msg-seller {
    justify-content: flex-end;
}
.oc-msg-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.oc-msg-user .oc-msg-bubble {
    background: #00AAFF;
    color: #fff;
    border-bottom-left-radius: 4px;
}
.oc-msg-seller .oc-msg-bubble {
    background: #f0f0f0;
    color: var(--text-dark);
    border-bottom-right-radius: 4px;
}
.oc-msg-sender {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
}
.oc-msg-text {
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}
.oc-msg-time {
    font-size: 11px;
    opacity: 0.6;
    text-align: right;
}

/* Chat input */
.oc-chat-input-row {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: var(--bg-white);
}
.oc-chat-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: transparent;
}
.oc-chat-send {
    width: 52px;
    background: var(--avito-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.oc-chat-send:hover {
    background: #0095e0;
}
.oc-chat-send:disabled {
    opacity: 0.5;
}

/* --- Product description --- */
.oc-product-desc-block {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}
.oc-product-desc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.oc-product-desc-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 12px;
}
.oc-product-desc-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* --- Toast notification --- */
.oc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.oc-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .oc-product-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    .oc-top-row {
        flex-direction: column;
        gap: 16px;
    }
    .oc-order-info {
        width: 100%;
    }
    .oc-instruction-block {
        padding: 16px 18px;
    }
    .oc-order-info {
        padding: 16px 18px;
    }
    .oc-rating-block {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 18px;
    }
    .oc-chat-hint {
        font-size: 13px;
        padding: 10px 14px;
    }
    .oc-msg-bubble {
        max-width: 85%;
    }
    .oc-product-desc-block {
        padding: 16px 18px;
    }
}

/* === Роадмап (как купить) === */
.roadmap-section {
    margin-top: 40px;
    margin-bottom: 40px;
}
.roadmap-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 24px;
}
.roadmap {
    position: relative;
    padding-left: 28px;
}
.roadmap::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.roadmap-step {
    position: relative;
    padding: 0 0 28px 28px;
    cursor: pointer;
}
.roadmap-step:last-child {
    padding-bottom: 0;
}
.roadmap-dot {
    position: absolute;
    left: -28px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #00AAFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.6s ease, transform 0.6s ease;
}
.roadmap-dot span {
    font-size: 14px;
    font-weight: 700;
    color: #00AAFF;
    transition: color 0.6s ease;
}
.roadmap-step:hover .roadmap-dot,
.roadmap-step.active .roadmap-dot {
    background: #00AAFF;
    transform: scale(1.12);
}
.roadmap-step:hover .roadmap-dot span,
.roadmap-step.active .roadmap-dot span {
    color: #fff;
}
.roadmap-content strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.roadmap-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.55;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    opacity: 0;
}
.roadmap-step:hover .roadmap-content p,
.roadmap-step.active .roadmap-content p {
    max-height: 150px;
    opacity: 1;
}
@media (max-width: 768px) {
    .roadmap {
        padding-left: 24px;
    }
    .roadmap-step {
        padding-left: 24px;
    }
    .roadmap-dot {
        left: -24px;
        width: 26px;
        height: 26px;
    }
    .roadmap-dot span {
        font-size: 12px;
    }
    .roadmap-content p {
        max-height: none;
        opacity: 1;
    }
}

/* === Блок гарантий (главная) === */
.guarantees-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 16px;
}
.guarantee-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.guarantee-item strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}
.guarantee-item span {
    font-size: 13px;
    color: #888;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .guarantees-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .guarantee-item {
        padding: 14px 14px;
    }
}

/* === Блок доверия (product.php) === */
.trust-block {
    background: #f8fbff;
    border: 1px solid #e0eef9;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 20px;
}
.trust-block h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.trust-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.trust-item strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}
.trust-item span {
    font-size: 13px;
    color: #888;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-block {
        padding: 18px 16px;
    }
}
