/* Unset default styles */
.dd-breadcrumb-item:not(:last-child)::after {
    content: '–';
}

p {
    margin: 0;
}

@media (768px <= width < 992px) {
    .container {
        max-width: 100%;
    }
}
/* EOF unset default styles */

/* Base */
:root {
    --ts-hero-height: 485px;
    --color-blue: oklch(0.6626 0.1546 241.33);
    --color-darkblue: oklch(0.33 0.1 256.33);
    --color-darkestblue: oklch(0.32 0.09 254.37);
    --color-orange: oklch(0.699 0.1949 46.2);
    --color-blue-bg: oklch(0.9672 0.0131 251.56);
    --color-grey: oklch(0.9719 0.0025 228.78);
    --color-warning-bg: oklch(0.9585 0.0202 2.27);
    --color-warning-text: oklch(0.6392 0.2412 23.91);
    --color-black: oklch(0.26 0.02 250.14);
    --color-text-muted: oklch(0.4684 0.0136 252.21);
    --ts-border: 1px solid oklch(0.9539 0.0237 244.13);
    --radius-small: 6px;
    --radius: 12px;
    --transition-data: .35s ease;
    --shadow-small: 2px 2px 8px #00000044;
}

section h2 {
    margin: 0;
    color: var(--color-darkestblue);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.5rem;
}
/* EOF Base */

/* Hero section */
.ts-hero {
    position: relative;
    width: 100%;
    min-height: var(--ts-hero-height);
    display: flex;
    flex-direction: column;
}

.ts-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.ts-hero__inner {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ts-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
    flex: 1;
}

.ts-hero__content {
    padding: 1rem 1rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    &::before {
        content: '';
        position: absolute;
        inset: 8%;
        background:  color-mix(in oklch, var(--color-blue-bg), transparent 18%);
        z-index: -1;
        filter: blur(23px);
        border-radius: 2rem;
    }
}

.ts-hero__badge {
    display: block;
    width: max-content;
    padding: .5rem 1rem;
    background: var(--color-blue);
    color: var(--color-blue-bg);
    border-radius: 3rem;
    text-transform: uppercase;
    font-size: .85rem;
    line-height: 1.3;
}

.ts-hero__title {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-darkestblue);
    font-size: clamp(2rem, 2.4vw, 3.2rem);
    margin: 0;
    margin-top: .5rem;
}

.ts-hero__lead {
    color: var(--color-darkblue);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.3;
}

.ts-hero__text {
    color: var(--color-text-muted);
}

.ts-hero__features {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin: 1rem 0 1.5rem;
    position: relative;
}

.ts-hero__feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    span {
        line-height: 1.2;
        font-size: .85rem;
        color: var(--color-darkestblue);
    }
}

.ts-hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button-primary,
.button-ghost {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-small);
    border: 1px solid transparent;
    box-shadow: var(--shadow-small);
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--transition-data),
        color var(--transition-data),
        border-color var(--transition-data),
        box-shadow var(--transition-data),
        transform var(--transition-data);
}

.button-primary {
    background: var(--color-orange);
    color: var(--color-blue-bg);
    border-color: var(--color-orange);
    min-width: 160px;
}

.button-ghost {
    background: var(--color-blue-bg);
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.button-primary:hover {
    background: var(--color-black);
    border-color: var(--color-black);
}

.button-ghost:hover {
    background: color-mix(in oklch, var(--color-orange) 5%, var(--color-blue-bg));
    color: var(--color-blue);
    border-color: var(--color-blue);
    text-decoration: none;
}

.button-primary:active,
.button-ghost:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 4px #00000033;
}

.button-primary:focus,
.button-ghost:focus {
    outline: none;
}

.button-primary:focus-visible,
.button-ghost:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.button-primary:disabled,
.button-ghost:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (width <= 1200px) {
    .ts-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-primary, .button-ghost {
        width: 100%;
    }
}

@media (768px <= width < 992px) {
    .ts-hero__feature {
        flex-direction: column;
        align-items: center;
        gap: .25rem;
        span {
            text-align: center;
        }
    }
}

@media (width <= 768px) {
    .ts-hero__layout {
        grid-template-columns: 1fr;
    }

    .ts-hero__media {
        margin: 0 auto;
    }
}

@media (width <= 576px) {
    .ts-hero__features {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* EOF Hero section */

/* Products section */
.ts-products {
    margin-block: 2rem;
}

.ts-products__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.ts-products__item {
    position: relative;
    background: var(--color-blue-bg);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    &::before {
        content: '';
        position: absolute;
        z-index: 2;
        width: 100%;
        height: 3.5rem;
        inset: 0 0 auto 0;
        background: linear-gradient(180deg, var(--color-blue-bg) 25%, transparent 100%);
    }
}

.ts-products__item-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 100%;
    img {
        width: auto;
        height: 100%;
    }
}

.ts-products__item-content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
    position: relative;
    z-index: 4;
}

.ts-products__item-content > *:not(.ts-products__item-actions) {
    width: min(75%, 380px);
}

.ts-products__item-subtitle {
    color: var(--color-blue);
    font-weight: 600;
    line-height: 1.3;
    margin-top: -.25rem;
}

.ts-products__item-text {
    color: var(--color-text-muted);
    line-height: 1.3;
}

.ts-products__item-list {
    list-style: none;
    padding-left: .5rem;
}

.ts-products__item-list-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    &::before {
        content: '';
        background: url(/assets/images/ts-chlor/list.png);
        width: 1rem;
        height: 1rem;
        background-size: 16px 16px;
        flex-shrink: 0;
        margin-top: .25rem;
    }
}

.ts-products__item-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
}

.ts-products__item-price {
    color: var(--color-darkblue);
    font-weight: 600;
}

.ts-products__item-price-value {
    font-size: 1.3rem;
    font-weight: 600;
}

@media (width <= 1200px) {
    .ts-products__item-image {
        height: auto;
    }

    .button-primary {
        width: inherit;
    }
}

@media (width <= 768px) {
    .ts-products__inner {
        grid-template-columns: 1fr;
    }
}

@media (width <= 576px) {
    .ts-products__item-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .button-primary {
        width: 100%;
    }
}
/* EOF Products section */

/* Packs section */
.ts-packs {
    margin-block: 2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ts-packs__subtitle {
    color: var(--color-text-muted);
}

.ts-packs__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ts-packs__item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    border: var(--ts-border);
    border-width: 2px;
    border-radius: var(--radius);
}

.ts-packs__item-meta {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    picture {
        flex: 0 1 100px;
    }
}

.ts-packs__item-content :is(h3, p) {
    color: var(--color-darkestblue);
    font-weight: 600;
}

.ts-packs__item-content .ts-packs__item-pack {
    font-weight: 400;
    width: max-content;
    font-size: 1.7rem;
    color: var(--color-orange);
}

.ts-packs__description {
    color: var(--color-text-muted);
}

@media (width <= 768px) {
    .ts-packs__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 576px) {
    .ts-packs__inner {
        grid-template-columns: 1fr;
    }
}
/* EOF Packs section */

/* Runaway section */
.ts-runaway {
    margin-block: 2rem;
}

.ts-runaway > h3 {
    font-size: 1.25rem;
    color: var(--color-darkblue);
}

.ts-runaway__subtitle {
    color: var(--color-darkblue);
    font-weight: 600;
}

.ts-runaway__inner {
    margin-block: 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.ts-runaway__prices, .ts-tech__inner, .ts-usage__dosage-inner {
    overflow: hidden;
    padding: 0;
    border: var(--ts-border);
    border-radius: var(--radius);
}

.ts-runaway__prices table, .ts-tech__inner table, .ts-usage__dosage-inner table {
    border: none;
    border-collapse: collapse;
    margin: 0;
}

.ts-runaway__prices .table-striped tbody tr:nth-of-type(odd),
.ts-tech__inner .table-striped tbody tr:nth-of-type(odd),
.ts-usage__dosage-inner .table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.ts-runaway__prices .table-striped tbody tr:first-child,
.ts-tech__inner .table-striped tbody tr:first-child,
.ts-usage__dosage-inner .table-striped tbody tr:first-child {
    background-color: var(--color-blue-bg);
    font-weight: 600;
}

.ts-runaway__prices .table-bordered td,
.ts-tech__inner .table-bordered td,
.ts-usage__dosage-inner .table-bordered td {
    border: none;
}

.ts-runaway__prices .table-bordered tr:not(:last-child) td,
.ts-tech__inner .table-bordered tr:not(:last-child) td,
.ts-usage__dosage-inner .table-bordered tr:not(:last-child) td {
    border-bottom: var(--ts-border);
}
/* EOF Runaway section */

/* Advantages section */
.ts-advantages {
    margin-block: 2rem;
}

.ts-advantages__wrapper {
    padding: 1rem;
    background: url(/assets/images/ts-chlor/water-bg.jpg);
    border-radius: var(--radius);
    color: var(--color-darkestblue);
}

.ts-advantages__inner {
    margin-block: .75rem;
    padding: 1rem;
    background: color-mix(in oklch, var(--color-blue-bg), transparent 15%);
    border-radius: var(--radius-small);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.ts-advantages__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    img {
        flex: 1 1 70px;
        width: 70px;
        height: auto;
    }
}

.ts-advantages__item-title {
    font-size: 1rem;
    font-weight: 600;
}

@media (width <= 992px) {
    .ts-advantages__inner {
        grid-template-columns: 1fr;
    }

    .ts-advantages__item {
        align-items: center;
    }

    .ts-advantages__item img {
        flex: inherit;
        width: 80px;
    }

    .ts-advantages__item-title {
        font-size: 1.2rem;
    }
}

@media (width <= 576px) {
    .ts-advantages__item {
        align-items: flex-start;
    }

    .ts-advantages__item img {
        width: 64px;
    }
}
/* EOF Advantages section */

/* Tech section (см. также Runaway section выше) */
.ts-tech {
    margin-block: 2rem;
    padding-bottom: 2rem;
    border-bottom: solid 2px var(--color-blue-bg);
}

.note-text {
    margin-top: .5rem;
    color: var(--color-text-muted);
    font-style: italic;
}

@media (width <= 576px) {
    .ts-tech__inner {
        overflow-x: auto;
    }
}
/* EOF Tech section */

/* Usage section */
.ts-usage {
    margin-block: 2rem;
    padding-bottom: 2rem;
    border-bottom: solid 2px var(--color-blue-bg);
}

.ts-usage__title, .ts-usage__dosage-title {
    margin-bottom: 1rem;
}

.ts-usage__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: stretch;
}

.ts-usage__howto-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: usageItems;
}

.ts-usage__howto-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    counter-increment: usageItems;
    &::before {
        content: counter(usageItems);
        font-size: 2.1rem;
        color: var(--color-blue);
    }
}

.ts-usage__howto-item-inner {
    display: flex;
    flex-direction: column;
}

.ts-usage__howto-item-title {
    color: var(--color-darkblue);
    font-weight: 600;
    font-size: 1.1rem;
}

.ts-usage__howto-item-text {
    color: var(--color-text-muted);
}

.ts-usage__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ts-usage__dosage-note {
    font-size: .85rem;
}

.ts-usage__warn {
    background: var(--color-warning-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ts-usage__warn-icon img {
    width: 56px;
    height: auto;
}

.ts-usage__warn-text {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.ts-usage__warn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-warning-text);
    line-height: 1;
    margin-bottom: 0;
}

.ts-usage__warn-text-content {
    color: var(--color-text-muted);
}

@media (width <= 768px) {
    .ts-usage__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* EOF Usage section */

/* FAQ section */
.ts-faq {
    margin-block: 2.5rem;
    padding-block: 2.5rem;
    background: linear-gradient(
        180deg,
        color-mix(in oklch, var(--color-blue-bg) 65%, white) 0%,
        var(--color-blue-bg) 100%
    );
}

.ts-faq__intro {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.ts-faq__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: color-mix(in oklch, white 70%, var(--color-blue) 30%);
    color: var(--color-darkblue);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ts-faq__title {
    margin: 0;
    text-transform: none;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.25;
}

.ts-faq__lead {
    color: var(--color-text-muted);
}

.ts-faq__list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ts-faq__item {
    background: #fff;
    border: var(--ts-border);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px color-mix(in oklch, var(--color-darkblue) 6%, transparent);
    transition: box-shadow var(--transition-data);
}

.ts-faq__item.is-open {
    box-shadow: 0 10px 28px color-mix(in oklch, var(--color-blue) 14%, transparent);
}

.ts-faq__trigger {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .85rem 1rem;
    padding: 1rem 1.15rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.ts-faq__trigger:focus {
    outline: none;
}

.ts-faq__trigger:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.ts-faq__num {
    font-size: 1.15rem;
    font-weight: 700;
    color: color-mix(in oklch, var(--color-blue) 65%, white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ts-faq__question {
    color: var(--color-darkestblue);
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.35;
}

.ts-faq__icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    flex-shrink: 0;
    transition: background var(--transition-data), border-color var(--transition-data);
}

.ts-faq__icon::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid var(--color-darkblue);
    border-bottom: 2px solid var(--color-darkblue);
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition-data);
}

.ts-faq__item.is-open .ts-faq__icon::before {
    transform: translateY(2px) rotate(225deg);
}

.ts-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.ts-faq__item.is-open .ts-faq__panel {
    grid-template-rows: 1fr;
}

.ts-faq__panel-inner {
    min-height: 0;
    overflow: hidden;
}

.ts-faq__panel-inner p {
    margin: 0;
    padding: 0 1.15rem 1.15rem;
    padding-left: calc(1.15rem + 1.15rem + 1rem);
    color: var(--color-text-muted);
    font-size: .98rem;
    line-height: 1.5;
}

@media (width <= 576px) {
    .ts-faq__trigger {
        gap: .65rem .75rem;
        padding: .9rem 1rem;
    }

    .ts-faq__panel-inner p {
        padding: 0 1rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-faq__item,
    .ts-faq__panel,
    .ts-faq__icon,
    .ts-faq__icon::before {
        transition: none;
    }
}
/* EOF FAQ section */

/* Documents section */
.ts-documents {
    margin-block: 2rem;
}

.ts-documents__title {
    margin-bottom: 1rem;
}

.ts-documents__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
}

.ts-documents__item {
    padding: 1rem;
    background: var(--color-blue-bg);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    img {
        width: 56px;
        height: auto;
    }
}

.ts-documents__item-title {
    color: var(--color-darkestblue);
    font-weight: 600;
}

.ts-documents__item-text {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: .95rem;
}

.ts-documents__item-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    width: 100%;
    padding: .5rem 1rem;
    background: color-mix(in oklch, var(--color-blue-bg), var(--color-blue) 15%);
    border-radius: var(--radius-small);
}

.ts-documents__item-link:hover {
    text-decoration: none;
}

.ts-documents__item .ts-documents__item-icon {
    width: 20px;
}

.ts-documents__item-title-link {
    color: var(--color-darkestblue);
    font-weight: 600;
}

@supports (text-decoration-inset: 0 100%) {
    .ts-documents__item-title-link {
        text-decoration: underline;
        text-decoration-inset: 0 100%;
        transition: text-decoration-inset .5s ease-out;
        text-decoration-thickness: 2px;
    }

    .ts-documents__item-link:hover .ts-documents__item-title-link {
        text-decoration-inset: 0 0;
    }
}

.ts-documents__item-arrow {
    margin-left: auto;
    font-weight: 600;
    font-size: 1rem;
}

@media (width <= 992px) {
    .ts-documents__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 576px) {
    .ts-documents__inner {
        grid-template-columns: 1fr;
    }
}
/* EOF Documents section */