/* Altaiflora Testimonials v1.0.2 — all selectors scoped; no Phoenix overrides */
.af-testimonials{box-sizing:border-box;--aft-green:#2f7d18;--aft-green-deep:#256915;--aft-tint:#f2f7ed;--aft-text:#18211b;--aft-muted:#778079;--aft-outline:#e7ece6;--aft-gold:#f9a30b;--aft-gap:20px;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;color:var(--aft-text);width:100%;max-width:1480px;margin:20px auto 56px;padding:0 16px;line-height:1.5;isolation:isolate}
.af-testimonials *, .af-testimonials *::before,.af-testimonials *::after{box-sizing:border-box}
.af-testimonials button{font-family:inherit;cursor:pointer;background:transparent;border:0;color:inherit}
.af-testimonials button:focus-visible,.af-testimonials [tabindex]:focus-visible{outline:3px solid #72b943;outline-offset:4px}
.af-testimonials img{display:block;max-width:100%}
.af-testimonials__hero{min-height:255px;border-radius:35px;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr .92fr;align-items:center;padding:35px clamp(24px,6vw,104px);background:radial-gradient(ellipse at 77% 54%,rgba(191,217,163,.30),transparent 38%),radial-gradient(ellipse at 12% 80%,#e9f4df,transparent 33%),linear-gradient(112deg,#fcfdfb 12%,#f3f8ee 90%);border:1px solid rgba(222,235,211,.65)}
.af-testimonials__hero-copy{position:relative;z-index:2;max-width:615px}
.af-testimonials__eyebrow{display:flex;gap:15px;align-items:center;font-size:15px;font-weight:500;margin-bottom:10px;letter-spacing:.012em}
.af-testimonials__eyebrow span{width:31px;height:2px;background:#37882c;flex:0 0 31px}
.af-testimonials__hero h2{font-size:clamp(27px,2.6vw,39px);font-weight:800;line-height:1.18;letter-spacing:-.035em;margin:0 0 13px;color:#161d17}
.af-testimonials__hero p{margin:0;font-size:clamp(15px,1.25vw,18px);line-height:1.55;max-width:540px;color:#353f37}
.af-testimonials__leaf{position:absolute;width:240px;filter:drop-shadow(0 12px 10px rgba(49,120,23,.17));z-index:1;pointer-events:none;user-select:none}
.af-testimonials__leaf--top{top:-104px;right:32%;transform:rotate(4deg)}
.af-testimonials__leaf--bottom{left:-123px;bottom:-74px;transform:rotate(160deg);filter:blur(2px)}
.af-testimonials__hero-art{position:relative;height:183px;display:flex;gap:13px;align-items:center;justify-content:flex-end;z-index:2;transform:perspective(1200px) rotateY(-6deg)}
.af-testimonials__hero-mini{flex:0 0 226px;height:184px;background:rgba(255,255,255,.93);border-radius:13px;padding:15px 16px;box-shadow:0 15px 24px rgba(24,45,16,.12),0 0 0 1px rgba(43,78,35,.04);position:relative;overflow:hidden;transform:rotate(-2deg)}
.af-testimonials__hero-mini--wb{transform:rotate(2deg) translateY(2px)}
.af-testimonials__hero-mini-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}
.af-testimonials__hero-mini-top img{width:40px;height:40px;border-radius:8px}
.af-testimonials__hero-mini-top span{color:var(--aft-gold);font-size:15px;letter-spacing:1px;white-space:nowrap}
.af-testimonials__hero-mini i{display:block;background:#dce1e5;border-radius:5px;height:8px;margin:6px 0;width:88%}
.af-testimonials__hero-mini i:nth-of-type(2){width:77%}
.af-testimonials__hero-mini i:nth-of-type(3){width:45%}
.af-testimonials__hero-mini-pics{display:flex;gap:5px;margin-top:11px}
.af-testimonials__hero-mini-pics img{width:46px;height:46px;object-fit:cover;border-radius:6px}
.af-testimonials__hero-ghost{width:170px;height:158px;position:absolute;right:-183px;top:10px;background:#fff;border-radius:15px;box-shadow:0 12px 36px rgba(21,51,20,.12);filter:blur(5px);opacity:.55;transform:rotate(7deg)}
.af-testimonials__content{padding:76px clamp(0px,3.2vw,44px) 0;position:relative}
/* Explicit separation from hero even when a Phoenix template normalizes section spacing. */
.af-testimonials .af-testimonials__hero + .af-testimonials__content{padding-top:76px}
.af-testimonials__content::before{content:"";position:absolute;pointer-events:none;z-index:-1;bottom:4px;left:0;height:170px;width:100%;background:radial-gradient(ellipse at 5% 45%,rgba(160,213,118,.18),transparent 29%),radial-gradient(ellipse at 95% 50%,rgba(173,219,135,.13),transparent 33%)}
.af-testimonials__heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 23px}
.af-testimonials__heading h2{font-family:Georgia,'Times New Roman',serif;font-weight:600;font-size:clamp(27px,3vw,43px);line-height:1.2;letter-spacing:-.02em;margin:0;color:#172018}
.af-testimonials__heading h2 span{color:#589e35;font-family:Arial,sans-serif;font-size:.6em;vertical-align:middle;margin-left:8px}
.af-testimonials__toggle{display:flex;gap:12px;align-items:center;justify-content:center;color:var(--aft-green)!important;font-size:15px;font-weight:700;padding:8px 0;white-space:nowrap;transition:color .2s}
.af-testimonials__toggle span{font-size:25px;line-height:1;transition:transform .2s}
.af-testimonials__toggle:hover{color:#164911!important}
.af-testimonials__toggle:hover span{transform:translateX(4px)}
.af-testimonials__carousel{position:relative}
.af-testimonials__track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * var(--aft-gap))/3);gap:var(--aft-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0 20px;scrollbar-width:none;padding:18px 20px 46px;scroll-behavior:smooth}
.af-testimonials__track::-webkit-scrollbar{display:none}
.af-testimonials__track.is-all{display:grid;grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto;overflow:visible;scroll-snap-type:none}
.af-testimonials__card{min-width:0;min-height:351px;padding:20px 20px 18px;background:#fff;border:1px solid #eef0eb;border-radius:15px;box-shadow:0 9px 20px rgba(23,51,26,.085);display:flex;flex-direction:column;position:relative;transform:translateY(0) scale(1);scroll-snap-align:start;scroll-snap-stop:normal;transition:transform .34s cubic-bezier(.2,.8,.25,1),box-shadow .34s ease,border-color .34s ease}
.af-testimonials__card:hover,.af-testimonials__card:focus-within{z-index:1;transform:translateY(-7px) scale(1.007);border-color:#cfe6c9;box-shadow:0 27px 38px -17px rgba(33,83,37,.29),0 14px 28px rgba(37,75,29,.14)}
.af-testimonials__source-row{display:flex;gap:8px;justify-content:space-between;align-items:center;min-height:50px;margin-bottom:14px}
.af-testimonials__source{min-width:0;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:#3e4540}
.af-testimonials__source span{min-width:0;line-height:1.3}
.af-testimonials__badge{width:47px;height:47px;flex:0 0 47px;border-radius:9px}
.af-testimonials__date{color:var(--aft-muted);font-size:11px;white-space:nowrap;font-weight:400}
.af-testimonials__byline{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:10px;min-height:27px}
.af-testimonials__avatar{display:grid;place-items:center;background:#e4ece0;border-radius:50%;height:25px;width:25px;flex:0 0 25px;color:#639565;font-size:13px}
.af-testimonials__byline strong{font-size:14px;font-weight:700;max-width:57%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.af-testimonials__customer-label{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#6d776e;margin-left:auto;white-space:nowrap}
.af-testimonials__customer-label::before{content:"";width:7px;height:7px;border-radius:50%;background:#78ad55}
.af-testimonials__stars{font-size:23px;line-height:1;letter-spacing:1.6px;color:var(--aft-gold);margin-bottom:13px;white-space:nowrap}
.af-testimonials__review-content{flex:1;min-width:0}
.af-testimonials__review-text{font-size:14px;line-height:1.6;color:#29312a;margin:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow-wrap:anywhere}
.af-testimonials__card.is-reading .af-testimonials__review-text{display:block;-webkit-line-clamp:unset;line-clamp:unset}
.af-testimonials__readmore{font-size:12px;color:var(--aft-green)!important;padding:5px 0!important;text-align:left;font-weight:600}
.af-testimonials__readmore:hover{text-decoration:underline}
.af-testimonials__photos{display:flex;gap:7px;margin-top:13px;align-items:center;flex-wrap:nowrap;min-width:0}
.af-testimonials__photos img{width:calc((100% - 21px)/4);height:64px;border-radius:7px;object-fit:cover;border:1px solid #f1f1ef;background:#f5f5f2}
.af-testimonials__photos img:only-child{width:70px}
.af-testimonials__photos img:nth-child(2):last-child{width:70px}
.af-testimonials__text-only{margin-top:auto;display:flex;gap:8px;align-items:center;padding-top:12px;font-size:11px;font-style:italic;color:#91a18d}
.af-testimonials__text-only span{font-family:Georgia,serif;font-size:27px;color:#bdd5ad;line-height:1}
.af-testimonials__arrow{position:absolute;top:43%;z-index:4;display:grid;place-items:center;background:#fff!important;border-radius:50%;width:49px;height:49px;box-shadow:0 5px 17px rgba(22,51,18,.15);transition:transform .18s,opacity .18s;transform:translateY(-50%);border:1px solid #edf2e9!important}
.af-testimonials__arrow:hover:not(:disabled){transform:translateY(-50%) scale(1.08)}
.af-testimonials__arrow svg{width:24px;height:24px;fill:none;stroke:#29352a;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.af-testimonials__arrow--prev{left:-25px}
.af-testimonials__arrow--next{right:-25px}
.af-testimonials__arrow:disabled{opacity:.3;cursor:not-allowed}
.af-testimonials__content.is-expanded .af-testimonials__arrow{display:none}
.af-testimonials__footer{display:flex;justify-content:center;position:relative;align-items:center;min-height:30px}
.af-testimonials__pages{display:flex;justify-content:center;align-items:center;gap:9px}
.af-testimonials__pages button{border-radius:10px!important;background:#dce2dc!important;min-width:10px;height:10px;padding:0!important;transition:background .2s,transform .2s}
.af-testimonials__pages button[aria-current="true"]{background:#4a9c28!important;transform:scale(1.12)}
.af-testimonials__counter{font-size:12px;color:#899189;position:absolute;right:0}
.af-testimonials__content.is-expanded .af-testimonials__pages,.af-testimonials__content.is-expanded .af-testimonials__counter{display:none}
@media(max-width:1120px){.af-testimonials__hero{grid-template-columns:1fr .8fr;padding-left:48px;padding-right:36px}.af-testimonials__hero-mini{flex-basis:185px;height:172px;padding:13px}.af-testimonials__hero-mini-top img{width:34px;height:34px}.af-testimonials__hero-mini-top span{font-size:13px}.af-testimonials__track{grid-auto-columns:calc((100% - var(--aft-gap))/2)}.af-testimonials__track.is-all{grid-template-columns:repeat(2,minmax(0,1fr))}.af-testimonials__content{padding-top:62px}.af-testimonials .af-testimonials__hero + .af-testimonials__content{padding-top:62px}.af-testimonials__date{max-width:100px;white-space:normal;text-align:right}}
@media(max-width:700px){.af-testimonials{margin:12px auto 36px;padding:0 12px;--aft-gap:12px}.af-testimonials__hero{min-height:226px;display:block;padding:35px 27px 28px;border-radius:24px}.af-testimonials__hero h2{font-size:29px}.af-testimonials__hero p{font-size:15px;max-width:470px}.af-testimonials__hero-art{display:none}.af-testimonials__leaf--top{right:-117px;top:-87px;opacity:.47}.af-testimonials__leaf--bottom{opacity:.5}.af-testimonials__content{padding:48px 2px 0}.af-testimonials .af-testimonials__hero + .af-testimonials__content{padding-top:48px}.af-testimonials__heading{align-items:flex-end;gap:9px;margin-bottom:17px}.af-testimonials__heading h2{font-size:28px;max-width:65%}.af-testimonials__heading h2 span{margin-left:1px}.af-testimonials__toggle{font-size:13px}.af-testimonials__track{grid-auto-columns:100%;scroll-padding:0 17px;padding:16px 17px 42px}.af-testimonials__track.is-all{grid-template-columns:1fr}.af-testimonials__card{min-height:340px;padding:16px 16px 17px}.af-testimonials__source-row{margin-bottom:11px}.af-testimonials__review-text{font-size:14px}.af-testimonials__arrow{width:38px;height:38px;top:44%}.af-testimonials__arrow--prev{left:-11px}.af-testimonials__arrow--next{right:-11px}.af-testimonials__arrow svg{height:20px;width:20px}.af-testimonials__counter{font-size:11px}}
@media(min-width:701px) and (max-width:840px){.af-testimonials__hero-art{opacity:.65}.af-testimonials__hero-mini--wb{display:none}.af-testimonials__hero{grid-template-columns:1fr 190px}}
@media(prefers-reduced-motion:reduce){.af-testimonials__track{scroll-behavior:auto}.af-testimonials *{transition:none!important;transform:none!important}}
/* Preserve native hidden state even under aggressive Phoenix button rules. */
.af-testimonials button[hidden]{display:none!important}

/* v1.0.2 — mobile Phoenix isolation: reserve actual layout space for the heading.
   A flex column + an in-flow header protect against template header positioning,
   and a firm margin prevents "Все отзывы" from overlaying the first review. */
@media (max-width: 700px) {
  .af-testimonials .af-testimonials__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .af-testimonials .af-testimonials__heading {
    display: flex !important;
    position: relative !important;
    float: none !important;
    transform: none !important;
    height: auto !important;
    min-height: 44px;
    width: 100%;
    flex: 0 0 auto;
    margin: 0 0 27px !important;
    padding: 0 !important;
    align-items: flex-end;
  }
  .af-testimonials .af-testimonials__heading h2 {
    position: static;
    float: none;
    margin: 0 !important;
  }
  .af-testimonials .af-testimonials__heading .af-testimonials__toggle {
    flex: 0 0 auto;
    align-self: flex-end;
  }
  .af-testimonials .af-testimonials__carousel,
  .af-testimonials .af-testimonials__footer {
    position: relative;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    clear: both;
  }
}
