/* ============================================
   ОНЛАЙН-ЗАМОВЛЕННЯ — СТИЛІ СТОРІНКИ
   Друкарня РАЗ
   ============================================ */

/*  Чередування фонів секцій:
    hero       → gray-light
    catalog    → white
    how        → gray-light
    trust      → white
    gallery    → gray-light
    faq        → white
    about      → gray-light
*/

/* --- HERO --- */
.oz-hero {
    padding: 60px 20px 50px;
    background: var(--gray-light);
    text-align: center;
}

.oz-hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.oz-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 2px;
}

.oz-hero-subtitle {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1rem;
    color: var(--gray-dark);
}

.oz-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--cyan);
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(58, 175, 217, 0.15);
}

.oz-delivery-badge svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .oz-hero {
        padding: 40px 15px 35px;
    }
    .oz-hero-title {
        font-size: 1.8rem;
    }
    .oz-hero-subtitle {
        font-size: 1.05rem;
    }
    .oz-delivery-badge {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}


/* --- КАТАЛОГ ПОСЛУГ --- */
.oz-catalog {
    padding: 55px 20px 30px;
    background: var(--white);
}

.oz-services {
    max-width: 1200px;
    margin: 0 auto;
}

.oz-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .oz-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.oz-card {
    background: var(--white);
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 30px 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.oz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.oz-card:hover::before,
.oz-card.active::before {
    transform: scaleX(1);
}

.oz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(218, 26, 50, 0.15);
    border-color: var(--red);
}

.oz-card.active {
    border-color: var(--red);
    box-shadow: 0 8px 25px rgba(218, 26, 50, 0.12);
}

.oz-card-icon {
    width: 80px;
    height: 90px;
}

.oz-card-name {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    line-height: 1.25;
}

.oz-card-hint {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    line-height: 1.35;
    margin-top: -4px;
}

.oz-card-arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-light);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.oz-card-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.3s ease;
}

.oz-card.active .oz-card-arrow {
    background: var(--red);
}

.oz-card.active .oz-card-arrow::after {
    border-color: var(--white);
    transform: translate(-50%, -35%) rotate(-135deg);
}

@media (max-width: 768px) {
    .oz-card {
        padding: 20px 12px 18px;
        gap: 10px;
    }
    .oz-card-icon {
        width: 60px;
        height: 70px;
    }
    .oz-card-name {
        font-size: 1rem;
    }
    .oz-card-hint {
        font-size: 0.72rem;
    }
}


/* --- ПІДКАТЕГОРІЇ (акордеон) --- */
.oz-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.35s ease;
    padding: 0 0;
}

.oz-subcategories.open {
    max-height: 1200px;
    padding: 20px 0 10px;
}

.oz-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.oz-sub-card {
    background: var(--white);
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
}

.oz-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(218, 26, 50, 0.12);
    border-color: var(--red);
}

.oz-sub-card:hover .oz-sub-icon {
    transform: scale(1.08);
}

.oz-sub-card:hover .oz-sub-icon svg .st0 {
    fill: var(--red);
}

.oz-sub-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.oz-sub-icon svg {
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.oz-sub-icon svg .st0 {
    transition: fill 0.3s ease;
}

.oz-sub-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
}

@media (max-width: 768px) {
    .oz-sub-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .oz-sub-icon {
        width: 40px;
        height: 40px;
    }
    .oz-sub-icon svg {
        width: 28px;
        height: 28px;
    }
    .oz-sub-name {
        font-size: 0.85rem;
    }
}

.oz-card-link {
    text-decoration: none;
    color: inherit;
}


/* --- ЯК ЗАМОВИТИ --- */
.oz-how {
    padding: 55px 20px;
    background: var(--gray-light);
}

.oz-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 45px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 16px;
}

.oz-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 2px;
}

.oz-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.oz-step {
    text-align: center;
    position: relative;
}

.oz-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #c41528);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(218, 26, 50, 0.3);
}

.oz-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.oz-step-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.45;
}

.oz-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 18px;
    right: -20px;
    font-size: 1.4rem;
    color: var(--yellow);
    font-weight: 700;
}

@media (max-width: 768px) {
    .oz-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }
    .oz-step:not(:last-child)::after {
        display: none;
    }
    .oz-section-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .oz-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
    }
}


/* --- БЛОК ДОВІРИ --- */
.oz-trust {
    padding: 50px 20px;
    background: var(--white);
}

.oz-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.oz-trust-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 14px;
    background: var(--gray-light);
    transition: transform 0.3s ease;
}

.oz-trust-item:hover {
    transform: translateY(-4px);
}

.oz-trust-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1.1;
    margin-bottom: 6px;
}

.oz-trust-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.35;
}

@media (max-width: 768px) {
    .oz-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .oz-trust-num {
        font-size: 1.7rem;
    }
    .oz-trust-item {
        padding: 18px 10px;
    }
}


/* --- ФОТОГАЛЕРЕЯ --- */
.oz-gallery {
    padding: 55px 20px;
    background: var(--gray-light);
}

.oz-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.oz-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ddd;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oz-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.oz-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.oz-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .oz-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .oz-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}


/* --- ПИТАННЯ ТА ВІДПОВІДІ --- */
.oz-faq {
    padding: 55px 20px;
    background: var(--white);
}

.oz-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oz-faq-item {
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.oz-faq-item[open] {
    box-shadow: 0 4px 18px rgba(30, 58, 95, 0.1);
}

.oz-faq-q {
    padding: 18px 50px 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.oz-faq-q::-webkit-details-marker {
    display: none;
}

.oz-faq-q::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--navy);
    border-bottom: 2.5px solid var(--navy);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.oz-faq-item[open] .oz-faq-q::after {
    transform: translateY(-35%) rotate(-135deg);
    border-color: var(--red);
}

.oz-faq-item[open] .oz-faq-q {
    color: var(--red);
}

.oz-faq-a {
    padding: 0 22px 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .oz-faq-q {
        padding: 15px 44px 15px 18px;
        font-size: 0.92rem;
    }
    .oz-faq-a {
        padding: 0 18px 15px;
        font-size: 0.88rem;
    }
}


/* --- ПРО НАС --- */
.oz-about {
    padding: 50px 20px;
    background: var(--gray-light);
    text-align: center;
}

.oz-about-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 16px;
    display: inline-block;
}

.oz-about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 2px;
}

.oz-about-text {
    max-width: 800px;
    margin: 0 auto 12px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--gray-dark);
}

.oz-benefit-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin-top: 10px;
}

.oz-benefit-item {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
    margin-bottom: 4px;
}

.oz-benefit-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
    font-size: 1.1rem;
}


/* --- ПЛАВАЮЧА КНОПКА VIBER --- */
.oz-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.oz-float-viber {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7360f2, #59267c);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(115, 96, 242, 0.45);
    transition: all 0.3s ease;
    animation: oz-viber-pulse 2.5s infinite;
}

.oz-float-viber:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(115, 96, 242, 0.6);
}

.oz-float-viber svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

@keyframes oz-viber-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(115, 96, 242, 0.45); }
    50% { box-shadow: 0 6px 35px rgba(115, 96, 242, 0.7); }
}

@media (max-width: 768px) {
    .oz-float-btn {
        bottom: 18px;
        right: 18px;
    }
    .oz-float-viber {
        width: 50px;
        height: 50px;
    }
    .oz-float-viber svg {
        width: 24px;
        height: 24px;
    }
}
