/* ════════════════════════════════════════════════════════════════
   Գնային բաժնի (#pricing) գեղեցկացում + ինտերակտիվություն։
   Միացվում է hy/en/ru index.php-ում՝ calculator.css-ից ՀԵՏՈ։
   Վարքը՝ /js/pricing-plus.js (գնի անիմացիա, փաթեթների սանդուղք)։
   calculator.js-ը և tile-երի տրամաբանությունը ՉԵՆ փոխվել։
   ════════════════════════════════════════════════════════════════ */

/* --- Ամբողջ քարտը՝ փափուկ ստվեր ու նուրբ գրադիենտ եզր --- */
#pricing .pk-home {
    position: relative;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(10, 55, 59, .10), 0 2px 8px rgba(10, 55, 59, .05);
    transition: box-shadow .3s ease, transform .3s ease;
}
#pricing .pk-home::before {
    content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 21.5px;
    background: linear-gradient(135deg, rgba(31, 184, 160, .55), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 62%, rgba(255, 122, 0, .55));
}
@media (hover: hover) {
    #pricing .pk-home:hover { box-shadow: 0 24px 54px rgba(10, 55, 59, .14), 0 2px 8px rgba(10, 55, 59, .05); }
}

/* --- Գլխամաս՝ մուգ փիրուզագույն, փաթեթի անունը՝ pill, գինը՝ մեծ --- */
#pricing .pk-home .calc-result {
    border: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 13px 16px !important;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, .22), transparent 55%),
        radial-gradient(90% 120% at 0% 100%, rgba(31, 184, 160, .28), transparent 60%),
        linear-gradient(135deg, #0e4d52 0%, #0a373b 100%);
    color: #fff;
}
#pricing .pk-home .calc-name {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: 1px;
    transition: background .25s ease;
}
#pricing .pk-home .calc-price {
    color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.3px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(255, 122, 0, .35);
}
#pricing .pk-home .calc-price span { color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; }

/* Գինը փոխվելիս՝ կարճ «ցատկ» */
#pricing .pk-home .calc-result.pk-bump .calc-price { animation: pkBump .45s cubic-bezier(.3, 1.6, .5, 1); }
#pricing .pk-home .calc-result.pk-bump .calc-name { animation: pkFlash .6s ease; }
@keyframes pkBump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pkFlash { 0% { background: rgba(255, 122, 0, .75); } 100% { background: rgba(255, 255, 255, .12); } }

#pricing .pk-home .calc-options {
    border: 0 !important;
    border-radius: 0 0 20px 20px !important;
    padding: 12px 12px 14px !important;
}

/* --- Փաթեթների սանդուղք (JS-ով ավելացվում է գլխամասի տակ) --- */
#pricing .pk-ladder-wrap { margin: 0 0 10px; }
#pricing .pk-ladder-hint {
    margin: 0 2px 6px; font-size: 12px; font-weight: 600; color: #6b7a7c; text-align: center;
}
@media (max-width: 600px) { #pricing .pk-ladder-hint { display: none; } }
#pricing .pk-ladder {
    position: relative;
    display: flex; gap: 6px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    padding: 3px 2px 6px;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
#pricing .pk-ladder::-webkit-scrollbar { display: none; }
#pricing .pk-step {
    flex: none; scroll-snap-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    min-width: 66px; padding: 6px 9px;
    border-radius: 11px; border: 1.5px solid #e4ebeb; background: #f7f9f9;
    font-family: inherit; cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}
#pricing .pk-step b { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; color: #143b40; }
#pricing .pk-step small { font-size: 10px; font-weight: 600; color: #7a8a8c; white-space: nowrap; }
#pricing .pk-step:hover { border-color: #ffb27a; transform: translateY(-1px); }
#pricing .pk-step:active { transform: scale(.95); }
#pricing .pk-step.on {
    border-color: transparent;
    background: linear-gradient(135deg, #ff9a3c, #ff6a00);
    box-shadow: 0 6px 14px rgba(255, 106, 0, .3);
}
#pricing .pk-step.on b, #pricing .pk-step.on small { color: #fff; }

/* --- Tile-եր՝ hover, ընտրելիս «pop» --- */
@media (hover: hover) {
    #pricing .pk-home .pk-base .pk-tile { transition: transform .2s ease, box-shadow .2s ease; }
    #pricing .pk-home .pk-base .pk-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(10, 55, 59, .08); }
    #pricing .pk-home button.pk-tile:hover .pk-imgwrap { transform: translateY(-3px) rotate(-2deg); }
}
#pricing .pk-home .pk-imgwrap { transition: transform .2s ease; }
#pricing .pk-home .pk-tile.pk-pop .pk-imgwrap { animation: pkPop .45s cubic-bezier(.3, 1.6, .5, 1); }
#pricing .pk-home .pk-tile.pk-pop .pk-plus { animation: pkPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pkPop { 0% { transform: scale(.85); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
#pricing .pk-home .pk-add .pk-tile.on .pk-imgwrap img { filter: drop-shadow(0 6px 10px rgba(255, 106, 0, .25)); }

/* --- Tile-երի խտացում (հատկապես հեռախոսում) --- */
#pricing .pk-home .pk-base .pk-tile { padding: 9px 3px 7px; border-radius: 12px; gap: 5px; }
#pricing .pk-home .pk-tico { height: 30px; }
#pricing .pk-home .pk-tico svg { width: 26px; height: 26px; }
#pricing .pk-home .pk-mark { top: 5px; right: 5px; width: 17px; height: 17px; }
#pricing .pk-home .pk-add .pk-tile img { height: 48px; }
#pricing .pk-home .pk-add .pk-tile .tl { min-height: 0; font-size: 11px; }
#pricing .pk-home .pk-addlbl { margin: 10px 0 8px; }
#pricing .pk-home .pk-group { margin-top: 10px; }
#pricing .pk-home .pk-head { padding: 9px 12px; }

/* --- Բիզնես կալկուլյատոր՝ նույն խտությամբ.
   ներառվածները՝ հորիզոնական տողեր (պատկերակ + տեքստ) երկու սյունակով,
   ավելացվողները՝ փոքր քառակուսիներ, վերջին տողը՝ կենտրոնում --- */
#pricing #business-calculator .pk-base.pk-base-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#pricing #business-calculator .pk-base .pk-tile {
    flex-direction: row; justify-content: flex-start; gap: 8px;
    padding: 8px 15px 8px 9px; min-height: 44px; min-width: 0; box-sizing: border-box; text-align: left;
}
#pricing #business-calculator .pk-base .pk-tico { height: auto; flex: none; }
#pricing #business-calculator .pk-base .pk-tico svg { width: 20px; height: 20px; }
#pricing #business-calculator .pk-base .tl { text-align: left; font-size: 11px; line-height: 1.2; }
#pricing #business-calculator .pk-base .pk-mark { top: -5px; right: -5px; width: 16px; height: 16px; }
#pricing #business-calculator .pk-base .pk-mark svg { width: 9px; height: 9px; }
#pricing #business-calculator .pk-base .pk-tile.pk-wide { justify-content: center; }
#pricing #business-calculator .pk-tiles.pk-add { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px 6px; }
#pricing #business-calculator .pk-add .pk-tile { width: calc(33.333% - 4px); }
#pricing #business-calculator .pk-add .pk-imgwrap { height: 48px; align-items: center; }
#pricing #business-calculator .pk-bico { width: 46px; height: 46px; border-radius: 11px; }
#pricing #business-calculator .pk-bico svg { width: 22px; height: 22px; }

/* --- CTA՝ կալկուլյատորից ԴՈՒՐՍ (գրանցումը փաթեթից կախված չէ) --- */
#pricing .pk-cta-wrap { max-width: 500px; margin: 16px auto 0; text-align: center; }
#pricing .pk-cta-note { margin: 7px 0 0; font-size: 12px; font-weight: 600; color: #6b7a7c; }
#pricing .pk-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin: 0; padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(120deg, #ffb45e 0%, #ff8a1f 30%, #ff6a00 55%, #f25a1d 75%, #ff9a3c 100%);
    background-size: 220% 100%;
    animation: pkCtaFlow 7s ease-in-out infinite alternate;
    color: #fff !important; text-decoration: none !important;
    font-size: 16.5px; font-weight: 800; letter-spacing: .2px;
    text-shadow: 0 1px 1px rgba(120, 40, 0, .28);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 -3px 7px rgba(170, 60, 0, .25), 0 10px 22px rgba(255, 106, 0, .3);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
#pricing .pk-cta::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-20deg);
    animation: pkCtaShine 4.5s ease-in-out infinite;
}
#pricing .pk-cta svg { width: 19px; height: 19px; flex: none; }
#pricing .pk-cta .pk-cta-arrow { transition: transform .2s ease; }
#pricing .pk-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
#pricing .pk-cta:hover .pk-cta-arrow { transform: translateX(4px); }
#pricing .pk-cta:active { transform: translateY(1px); }
@keyframes pkCtaFlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes pkCtaShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }

/* Սակագների տեքստային ցանկը՝ SEO/AI-ի համար DOM-ում է, բայց տեսողապես մեկ բացվող տող */
#pricing .vc-tariffs-box { max-width: 500px; margin: 12px auto 0; text-align: center; }
#pricing .vc-tariffs-box summary {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
    font-size: 12.5px; font-weight: 700; color: #0e6f68; padding: 4px 8px; border-radius: 8px;
}
#pricing .vc-tariffs-box summary::-webkit-details-marker { display: none; }
#pricing .vc-tariffs-box summary::after {
    content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
#pricing .vc-tariffs-box[open] summary::after { transform: translateY(1px) rotate(-135deg); }
#pricing .vc-tariffs-box summary:hover { background: rgba(31, 184, 160, .08); }
#pricing .vc-tariffs-box .vc-tariffs { margin-top: 6px !important; font-size: 12px !important; }

@media (prefers-reduced-motion: reduce) {
    #pricing .pk-cta, #pricing .pk-cta::after,
    #pricing .pk-home .calc-result.pk-bump .calc-price,
    #pricing .pk-home .calc-result.pk-bump .calc-name,
    #pricing .pk-home .pk-tile.pk-pop .pk-imgwrap,
    #pricing .pk-home .pk-tile.pk-pop .pk-plus { animation: none; }
}
