@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* RESET */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial;
    text-align: center;
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at top left, rgba(91, 170, 35, 0.25), transparent 35%),
        linear-gradient(135deg, rgb(238, 249, 231), rgb(255, 255, 255) 55%, rgb(230, 244, 220));
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(45, 112, 64, 0.42);
    outline-offset: 4px;
}

/* TEXT */

h1 {
    width: 100%;
    margin: 58px auto 18px;
    padding: 0 48px;
    color: rgb(91, 170, 35);
    font-size: clamp(36px, 7vw, 70px);
    text-align: center;
    text-shadow: 0 0 8px rgba(125, 189, 79, 0.2);
}

h2 {
    color: rgb(91, 170, 35);
    font-size: clamp(22px, 3vw, 40px);
}

p {
    color: rgb(91, 170, 35);
    font-size: clamp(16px, 2vw, 28px);
    line-height: 1.6;
}

/* NAVBAR */

.navbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;

    margin: 0 auto;
    padding: 8px 8px;
    width: fit-content;
    max-width: calc(100% - 32px);

    border: 2px solid rgb(91, 170, 35);
    border-radius: 18px;
    background: rgba(91, 170, 35, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* základní styl všech odkazů */
.navbar a {
    text-decoration: none;
    color: rgb(91, 170, 35);
    font-size: clamp(13px, 3.6vw, 18px);
    font-weight: 600;
    padding: 6px clamp(4px, 1.3vw, 8px);
    border-radius: 12px;
    white-space: nowrap;

    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* normální odkazy v navbaru */
.navbar > a:hover {
    background: rgba(91, 170, 35, 0.15);
    color: rgb(59, 115, 23);
    transform: translateY(-1px);
}

/* DROPDOWN */

.dropdown {
    position: relative;
}

/* hover efekt pro "Články" (dropdown parent) */
.dropdown:hover > a {
    background: rgba(91, 170, 35, 0.15);
    color: rgb(59, 115, 23);
    transform: translateY(-1px);
}

.dropdown:focus-within > a {
    background: rgba(91, 170, 35, 0.15);
    color: rgb(59, 115, 23);
}

/* dropdown menu box */
.dropdown-menu {
    z-index: 30;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: white;
    border: 1px solid rgba(125, 189, 79, 0.2);

    padding: 10px;
    flex-direction: column;
    gap: 10px;
}

/* otevření dropdownu */
.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown:focus-within .dropdown-menu {
    display: flex;
}

/* hover pro položky v dropdown menu */
.dropdown-menu a:hover {
    background: rgba(91, 170, 35, 0.15);
    color: rgb(59, 115, 23);
    transform: translateY(-1px);
}

/* TOPBAR LAYOUT */

.topbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;

    padding: 16px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* ICONS RIGHT SIDE */

.icons-right {
    position: fixed;
    top: 12px;
    right: 12px;

    display: flex;
    align-items: center;
    gap: 10px;
} 

/* HOME HERO */

main {
    overflow: hidden;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: center;

    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 54px 0 46px;
    text-align: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    animation: fadeInUp 0.7s ease both;
}

.hero h2 {
    color: rgb(31, 45, 29);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero p {
    max-width: 640px;
    margin: 22px auto 0;
    color: rgb(104, 116, 101);
    font-size: 19px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    padding: 0 22px;
    color: white;
    background: rgb(91, 170, 35);
    box-shadow: 0 12px 24px rgba(91, 170, 35, 0.22);
}

.button-primary:hover {
    background: rgb(70, 137, 26);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(91, 170, 35, 0.28);
}

.button-secondary {
    padding: 0 4px;
    color: rgb(70, 137, 26);
}

.button-secondary:hover {
    color: rgb(31, 45, 29);
    transform: translateY(-2px);
}

.hero__visual {
    position: absolute;
    z-index: 1;
    inset: 24px auto auto 50%;
    width: min(360px, 72vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    opacity: 0.58;
    pointer-events: none;
}

.hero__visual::before,
.hero__visual::after,
.hero__visual span {
    content: "";
    position: absolute;
    border-radius: 38% 62% 48% 52%;
}

.hero__visual::before {
    inset: 12%;
    background: linear-gradient(135deg, rgba(91, 170, 35, 0.32), rgba(97, 190, 178, 0.18));
    filter: blur(26px);
}

.hero__visual::after {
    inset: 25% 10% 10% 30%;
    border: 1px solid rgba(91, 170, 35, 0.28);
}

.hero__visual span {
    inset: 4% 22% 24% 6%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(215, 242, 203, 0.42));
    box-shadow: inset 0 0 34px rgba(91, 170, 35, 0.12);
}

.statement {
    width: min(820px, calc(100% - 32px));
    margin: 10px auto 0;
    padding: 74px 0 88px;
    border-radius: 24px;
    text-align: center;
}

.statement p {
    color: rgb(94, 105, 92);
    font-size: 28px;
    line-height: 1.45;
    font-weight: 650;
}

.problem-grid,
.latest-section,
.products-section,
.quote-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0 76px;
}

.problem-card {
    min-height: 190px;
    padding: 24px;
    text-align: left;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 170, 35, 0.34);
    box-shadow: 0 18px 34px rgba(48, 92, 18, 0.12);
}

.problem-card__icon {
    display: block;
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1;
}

.problem-card h3 {
    color: rgb(31, 45, 29);
    font-size: 21px;
    line-height: 1.25;
}

.problem-card ul {
    display: grid;
    gap: 7px;
    margin-top: 28px;
    list-style: none;
}

.problem-card li {
    color: rgb(104, 116, 101);
    font-size: 16px;
    line-height: 1.4;
}

.latest-section,
.products-section {
    padding: 10px 0 78px;
    text-align: center;
}

.section-kicker {
    color: rgb(131, 143, 128);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.latest-section h2,
.products-section h2 {
    margin-top: 18px;
    color: rgb(31, 45, 29);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.article-list {
    display: grid;
    gap: 14px;
    width: min(760px, 100%);
    margin: 34px auto 0;
}

.article-list a {
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 0 24px;
    text-align: left;
    text-decoration: none;
    color: rgb(31, 45, 29);
    font-size: 19px;
    font-weight: 700;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(48, 92, 18, 0.07);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-list a:hover {
    color: rgb(70, 137, 26);
    transform: translateY(-2px);
    border-color: rgba(91, 170, 35, 0.36);
    box-shadow: 0 16px 30px rgba(48, 92, 18, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
}

.product-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 22px 22px;
    text-align: left;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 170, 35, 0.34);
    box-shadow: 0 18px 34px rgba(48, 92, 18, 0.12);
}

.product-card h3 {
    color: rgb(31, 45, 29);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.08;
}

.product-card p {
    margin-top: auto;
    color: rgb(104, 116, 101);
    font-size: 17px;
    line-height: 1.5;
}

.product-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    margin-top: 22px;
    padding: 0 16px;
    text-decoration: none;
    color: rgb(70, 137, 26);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(91, 170, 35, 0.32);
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-card a:hover {
    color: white;
    background: rgb(91, 170, 35);
    transform: translateY(-1px);
}

.quote-section {
    padding: 12px 0 96px;
}

.quote-section blockquote {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 54px 24px;
    color: rgb(62, 73, 59);
    font-size: 27px;
    font-weight: 650;
    line-height: 1.45;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
}

/* PRODUCT CATALOG */

.product-catalog {
    width: min(1040px, calc(100% - 32px));
    margin: 50px auto 92px;
}

.catalog-category {
    padding: 34px 0;
    border-top: 1px solid rgba(91, 170, 35, 0.16);
}

.catalog-category__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.catalog-category__header span {
    font-size: 26px;
    line-height: 1;
}

.catalog-category__header h2 {
    color: rgb(31, 45, 29);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.catalog-product {
    min-height: 200px;
    padding: 26px 24px;
    text-align: left;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-product:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 170, 35, 0.34);
    box-shadow: 0 18px 34px rgba(48, 92, 18, 0.12);
}

.catalog-product--signature {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 248, 225, 0.78));
}

.catalog-product h3 {
    color: rgb(31, 45, 29);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.catalog-product p {
    margin-top: 22px;
    color: rgb(104, 116, 101);
    font-size: 18px;
    line-height: 1.55;
}

.catalog-product strong {
    display: inline-block;
    margin-top: 24px;
    padding: 7px 10px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(91, 170, 35, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.catalog-product .catalog-product__contact {
    font-size: 16px;
    white-space: nowrap;
}

.catalog-product a {
    color: rgb(70, 137, 26);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.catalog-product a:hover {
    color: rgb(31, 45, 29);
    text-decoration: underline;
}

/* ABOUT PAGE */

.about-section {
    padding: 46px 0;
    border-top: 1px solid rgba(91, 170, 35, 0.16);
    margin: 50px auto 92px;
}

.about-section h2,
.about-philosophy h2 {
    color: rgb(31, 45, 29);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.about-copy {
    width: min(700px, 100%);
    margin: 26px auto 0;
    text-align: center;
}

.about-copy p,
.about-note,
.about-philosophy p {
    color: rgb(104, 116, 101);
    font-size: 19px;
    line-height: 1.7;
}

.about-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(720px, 100%);
    margin: 28px auto;
    list-style: none;
}

.about-list li {
    padding: 16px 18px;
    color: rgb(31, 45, 29);
    font-size: 17px;
    font-weight: 700;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.about-note {
    width: min(760px, 100%);
    margin: 0 auto;
    text-align: center;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(900px, calc(100% - 32px));
    margin: 32px auto 0;
}

.about-pillars article {
    min-height: 210px;
    padding: 26px 24px;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-pillars article:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 170, 35, 0.34);
    box-shadow: 0 18px 34px rgba(48, 92, 18, 0.12);
}

.about-pillars span {
    display: block;
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1;
}

.about-pillars h3 {
    color: rgb(31, 45, 29);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.about-pillars p {
    margin-top: 18px;
    color: rgb(104, 116, 101);
    font-size: 17px;
    line-height: 1.55;
}

.about-philosophy {
    width: min(840px, 100%);
    margin: 34px auto 92px;
    padding: 52px 28px;
    text-align: center;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(232, 248, 225, 0.62));
}

.about-philosophy p {
    margin-top: 18px;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.about-values span {
    padding: 10px 14px;
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 800;
    border: 1px solid rgba(91, 170, 35, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.about-philosophy blockquote {
    margin-top: 34px;
    color: rgb(62, 73, 59);
    font-size: 25px;
    font-weight: 650;
    line-height: 1.45;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PAGE */

.page {
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 0 16px;
    text-align: center;
}

.page-kicker {
    margin: 0 auto 12px;
    color: rgb(91, 170, 35);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.page h1.page-kicker {
    width: fit-content;
    margin: 10px auto 18px;
    padding: 0;
    color: var(--green-dark);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
}

.home-title {
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 58px auto 18px;
    padding: 16px clamp(18px, 6vw, 42px);
    border: 1px solid rgba(91, 170, 35, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(48, 92, 18, 0.12);
    backdrop-filter: blur(6px);
}

.page-intro {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 18px 16px;
    color: var(--green-dark);
    border: 1px solid rgba(91, 170, 35, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(48, 92, 18, 0.12);
    backdrop-filter: blur(6px);
}

.page-intro--compact {
    width: min(400px, 100%);
    margin: 0 auto;
    padding: 18px 16px;
    border: 1px solid rgba(91, 170, 35, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(48, 92, 18, 0.12);
    backdrop-filter: blur(6px);
}

.page p {
    font-size: clamp(12px, 2vw, 20px);
    line-height: 1.6;
}

.page h1 {
    margin-top: 10px;
    font-size: clamp(40px, 7vw, 70px);
    text-decoration: underline;
    text-decoration-color: rgb(91, 170, 35);
    text-decoration-thickness: 3px;
    text-underline-offset: 20px;
}

.page__content {
    width: min(680px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

.topic-articles {
    display: grid;
    gap: 16px;
    width: min(820px, calc(100% - 32px));
    margin-bottom: 90px;
}

.article-preview {
    padding: 26px 24px;
    text-align: left;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-preview h2 {
    color: rgb(31, 45, 29);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.article-preview p {
    margin-top: 16px;
    color: rgb(104, 116, 101);
    font-size: 17px;
    line-height: 1.65;
}

.article-preview a,
.article-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    margin-top: 20px;
    padding: 0 16px;
    text-decoration: none;
    color: rgb(70, 137, 26);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(91, 170, 35, 0.32);
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-preview a:hover,
.article-preview a:focus-visible,
.article-back:hover,
.article-back:focus-visible {
    color: white;
    background: rgb(91, 170, 35);
    transform: translateY(-1px);
}

.article-preview--empty {
    opacity: 0.72;
}

.article-page {
    width: min(820px, calc(100% - 32px));
    margin: 36px auto 96px;
    text-align: left;
}

.article-back {
    margin-top: 0;
    margin-bottom: 28px;
}

.article-header {
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(91, 170, 35, 0.16);
}

.article-header h1 {
    width: auto;
    margin: 0;
    padding: 0;
    color: rgb(31, 45, 29);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    text-align: left;
    text-shadow: none;
}

.article-header p,
.article-page p,
.article-page li {
    color: rgb(89, 101, 86);
    font-size: 18px;
    line-height: 1.75;
}

.article-header p {
    margin-top: 20px;
    font-size: 20px;
}

.article-page section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(91, 170, 35, 0.12);
}

.article-page h2 {
    margin-bottom: 16px;
    color: rgb(31, 45, 29);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
}

.article-page p + p {
    margin-top: 14px;
}

.article-page ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0 22px;
}

.article-page li + li {
    margin-top: 2px;
}

/* KONTAKT CONTAINER */

.contact-page {
    width: min(1040px, calc(100% - 32px));
    margin: 38px auto 92px;
}

.contact-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 86px;
    padding: 20px;
    text-align: left;
    text-decoration: none;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-option:hover {
    transform: none;
    border-color: rgba(91, 170, 35, 0.34);
    box-shadow: 0 18px 34px rgba(48, 92, 18, 0.12);
}

.contact-option span {
    display: grid;
    gap: 4px;
    color: rgb(104, 116, 101);
    font-size: 16px;
    line-height: 1.35;
}

.contact-option strong {
    color: rgb(31, 45, 29);
    font-size: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.contact-panel,
.contact-aside {
    text-align: left;
    border: 1px solid rgba(91, 170, 35, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(48, 92, 18, 0.08);
}

.contact-panel {
    padding: 28px;
}

.contact-aside {
    padding: 26px 24px;
}

.contact-panel h2,
.contact-aside h2 {
    color: rgb(31, 45, 29);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.contact-panel p {
    margin-top: 12px;
    color: rgb(104, 116, 101);
    font-size: 17px;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.contact-form label {
    color: rgb(62, 73, 59);
    font-size: 14px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: rgb(31, 45, 29);
    font: inherit;
    border: 1px solid rgba(91, 170, 35, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(91, 170, 35, 0.58);
    box-shadow: 0 0 0 4px rgba(91, 170, 35, 0.1);
}

.contact-form button {
    min-height: 46px;
    margin-top: 10px;
    color: white;
    font: inherit;
    font-weight: 800;
    border: 0;
    border-radius: 12px;
    background: rgb(91, 170, 35);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(91, 170, 35, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    background: rgb(70, 137, 26);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(91, 170, 35, 0.28);
}

.contact-form__notice {
    max-height: 0;
    margin: 0;
    padding: 0 14px;
    overflow: hidden;
    color: #245f32;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(216, 230, 212, 0.7);
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease, opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.contact-form__notice.is-visible {
    max-height: 90px;
    margin-top: 2px;
    padding: 12px 14px;
    border-color: rgba(45, 112, 64, 0.18);
    opacity: 1;
    transform: translateY(0);
}

.contact-aside ul {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    list-style: none;
}

.contact-aside li {
    padding: 12px 14px;
    color: rgb(62, 73, 59);
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(91, 170, 35, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.contact-aside blockquote {
    margin-top: 28px;
    color: rgb(62, 73, 59);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.45;
}

.contact-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    width: min(600px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 18px 16px;
    text-align: center;

    border: 1px solid rgba(91, 170, 35, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(48, 92, 18, 0.12);
    backdrop-filter: blur(6px);
}

/* IG CONTACT (TEXT + ICON) */

.ig-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    font-size: 22px;

    transition: 0.2s;
}

.ig-contact:hover {
    color: rgb(59, 115, 23);
}

.ig-contact:hover .ig-icon {
    transform: scale(1.2);
}

/* IG ICON (HEADER VERSION) */

.ig-icon {
    font-size: 28px !important;
    color: var(--green-dark);
    transition: 0.2s;
}

.ig-link:hover .ig-icon {
    transform: scale(1.15);
    color: var(--green-dark);
}

/* EMAIL */

.email {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: rgb(91, 170, 35);
    font-size: 22px;

    transition: 0.2s;
}

.email:hover {
    color: rgb(59, 115, 23);
}

.email-icon {
    font-size: 28px !important;
    color: var(--green-dark);
    transition: 0.2s;
}

.email:hover .email-icon {
    transform: scale(1.2);
}

/* TABLET */

@media (min-width: 768px) {

    .navbar {
        flex-direction: row;
        gap: 15px;
        max-width: calc(100% - 40px);
        padding: 12px 22px;
    }

    .navbar a {
        font-size: 22px;
    }

    .topbar {
        padding: 10px 20px;
    }

    .icons-right {
        top: 15px;
        right: 15px;
        gap: 15px;
    }

    .ig-icon {
        font-size: 40px !important;
    }

    .hero {
        margin-top: 36px;
        padding: 72px 0 62px;
    }

    .hero h2 {
        font-size: 56px;
    }

    .hero p {
        font-size: 21px;
    }

    .statement p {
        font-size: 34px;
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .problem-card {
        border-radius: 0;
    }

    .problem-card:first-child {
        border-radius: 8px 0 0 8px;
    }

    .problem-card:last-child {
        border-radius: 0 8px 8px 0;
    }

    .problem-card + .problem-card {
        border-left: 0;
    }

    .latest-section h2,
    .products-section h2 {
        font-size: 31px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quote-section blockquote {
        font-size: 32px;
        padding: 66px 42px;
    }

    .catalog-category {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 28px;
        align-items: start;
        padding: 42px 0;
    }

    .catalog-category__header {
        justify-content: flex-start;
        margin-bottom: 0;
        text-align: left;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero {
        padding: 46px 48px;
    }

    .about-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-pillars {
        grid-template-columns: repeat(3, minmax(0, 300px));
        justify-content: center;
    }

    .about-philosophy {
        padding: 62px 48px;
    }

    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
        gap: 20px;
    }

    .contact-panel {
        padding: 34px;
    }

}

/* DESKTOP */

@media (min-width: 1024px) {

    .hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
        min-height: 480px;
        padding: 74px 0 70px;
        text-align: left;
    }

    .hero__content {
        max-width: 690px;
        margin: 0;
    }

    .hero h2 {
        font-size: 68px;
    }

    .hero p {
        margin-left: 0;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__visual {
        position: relative;
        inset: auto;
        width: min(390px, 100%);
        margin: 0 auto;
        transform: none;
        opacity: 0.9;
    }

    .page {
        padding: 0 18px;
    }
}

/* LARGE DESKTOP */

@media (min-width: 1200px) {

    .page {
        width: min(760px, calc(100% - 32px));
        margin: 28px auto 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero__content,
    .statement {
        animation: none;
    }

    .button-primary,
    .button-secondary,
    .navbar a,
    .ig-icon,
    .problem-card,
    .article-list a,
    .product-card,
    .product-card a,
    .catalog-product,
    .about-pillars article,
    .contact-option,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .contact-form button {
        transition: none;
    }
}

/* MODERNI BACK2LIVE VRSTVA */

:root {
    --green: rgb(82, 156, 50);
    --green-dark: rgb(38, 94, 47);
    --mint: rgb(112, 184, 161);
    --ink: rgb(30, 42, 34);
    --muted: rgb(95, 108, 98);
    --paper: rgba(255, 255, 250, 0.84);
    --line: rgba(82, 156, 50, 0.18);
    --shadow: 0 16px 44px rgba(39, 79, 43, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(250, 254, 245, 0.94), rgba(244, 251, 239, 0.96)),
        radial-gradient(circle at 14% 10%, rgba(112, 184, 161, 0.28), transparent 28%),
        radial-gradient(circle at 86% 16%, rgba(246, 188, 96, 0.22), transparent 26%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 94, 47, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 94, 47, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

.home-title {
    color: var(--green-dark);
    border-color: var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 250, 0.72);
    box-shadow: var(--shadow);
}

.navbar {
    position: sticky;
    top: 12px;
    width: min(720px, calc(100% - 28px));
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 250, 0.82);
    box-shadow: 0 12px 30px rgba(35, 74, 39, 0.1);
    backdrop-filter: blur(12px);
}

.navbar a {
    color: var(--green-dark);
}

.navbar > a:hover,
.dropdown:hover > a,
.dropdown:focus-within > a,
.dropdown-menu a:hover,
.navbar a.is-current {
    color: white;
    background: var(--green-dark);
}

.dropdown-menu {
    width: min(260px, calc(100vw - 32px));
    min-width: 220px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 250, 0.96);
    box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu {
    display: grid;
}

.dropdown:focus-within .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    text-align: center;
}

.hero {
    width: min(1160px, calc(100% - 32px));
    min-height: 520px;
    margin-top: 24px;
}

.hero h2 {
    color: var(--ink);
    text-wrap: balance;
}

.hero p,
.statement p,
.article-preview p,
.product-card p,
.catalog-product p,
.about-copy p,
.about-note,
.about-philosophy p,
.article-page p,
.article-page li,
.contact-panel p {
    color: var(--muted);
}

.hero__visual {
    border-radius: 42% 58% 48% 52%;
    background:
        linear-gradient(145deg, rgba(255, 255, 250, 0.94), rgba(226, 246, 216, 0.72)),
        radial-gradient(circle at 30% 24%, rgba(112, 184, 161, 0.42), transparent 34%);
    box-shadow:
        inset 0 0 42px rgba(82, 156, 50, 0.14),
        0 26px 60px rgba(38, 94, 47, 0.16);
}

.hero__visual::before {
    inset: 18%;
    filter: none;
    background: rgba(255, 255, 250, 0.72);
}

.hero__visual::after {
    inset: 16% 21% 22% 16%;
    border: 2px solid rgba(82, 156, 50, 0.34);
}

.hero__visual span {
    inset: 30% 18% 18% 28%;
    border-radius: 999px 999px 42% 42%;
    background: linear-gradient(145deg, var(--green), var(--mint));
}

.button-primary,
.contact-form button {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.button-primary:hover,
.contact-form button:hover {
    background: linear-gradient(135deg, rgb(30, 75, 38), var(--green-dark));
}

.button-secondary,
.product-card a,
.article-preview a,
.article-back,
.catalog-product a {
    color: var(--green-dark);
}

.problem-card,
.product-card,
.article-list a,
.article-preview,
.catalog-product,
.about-list li,
.about-pillars article,
.about-philosophy,
.contact-option,
.contact-panel,
.contact-aside,
.page-intro,
.page-intro--compact,
.quote-section blockquote {
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.problem-card,
.product-card,
.article-preview,
.catalog-product,
.about-pillars article,
.contact-option {
    cursor: pointer;
}

.problem-card:hover,
.problem-card.is-active,
.product-card:hover,
.product-card.is-active,
.article-preview:hover,
.article-preview.is-active,
.catalog-product:hover,
.catalog-product.is-active,
.about-pillars article:hover,
.about-pillars article.is-active,
.contact-option:hover {
    transform: translateY(-5px);
    border-color: rgba(82, 156, 50, 0.42);
    box-shadow: 0 22px 54px rgba(39, 79, 43, 0.16);
}

.contact-option:hover {
    transform: none;
}

.contact-option {
    cursor: default;
}

a.contact-option {
    cursor: pointer;
}

.problem-card.is-active,
.product-card.is-active,
.article-preview.is-active,
.catalog-product.is-active,
.about-pillars article.is-active {
    background: linear-gradient(145deg, rgba(255, 255, 250, 0.95), rgba(232, 248, 225, 0.82));
}

.problem-card__icon,
.catalog-category__header span,
.about-pillars span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(82, 156, 50, 0.1);
}

.catalog-category__header span {
    flex: 0 0 44px;
    color: var(--green-dark);
}

.section-kicker,
.page-kicker {
    color: var(--green-dark);
}

.latest-section h2,
.products-section h2,
.catalog-category__header h2,
.about-section h2,
.about-philosophy h2,
.article-page h2,
.contact-panel h2,
.contact-aside h2 {
    color: var(--ink);
}

.article-list a::after {
    content: "->";
    margin-left: auto;
    color: var(--green);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .navbar {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .icons-right {
        position: absolute;
    }

    .hero {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* MODERN ARTICLE HOMEPAGE */

.modern-home {
    --home-card-gap: 18px;
    --home-page-gutter: 20px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    text-align: left;
    color: #18251d;
    background:
        linear-gradient(180deg, #f6f8f1 0%, #eef5e8 42%, #f8faf4 100%),
        radial-gradient(circle at 82% 8%, rgba(248, 191, 91, 0.22), transparent 24%);
}

.modern-home::before {
    opacity: 0.45;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: 4px;
    background: rgba(35, 92, 50, 0.08);
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #235c32;
    box-shadow: 0 0 18px rgba(35, 92, 50, 0.28);
}

.site-header {
    width: min(1120px, calc(100% - (var(--home-page-gutter) * 2)));
    margin: 36px auto 0;
}

.brand {
    display: block;
    width: fit-content;
    margin: 0 auto 18px;
    color: #235c32;
    font-size: clamp(34px, 7vw, 60px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0;
}

.modern-home .topbar {
    padding: 0;
}

.modern-home .navbar {
    width: min(680px, 100%);
    max-width: 100%;
    border-radius: 18px;
}

.modern-home .icons-right {
    top: 20px;
    right: 20px;
}

.article-shell {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--home-card-gap);
    width: min(1180px, calc(100% - (var(--home-page-gutter) * 2)));
    margin: 24px auto 28px;
    overflow: visible;
}

.article-shell > * {
    margin-top: 0;
}

.modern-home .article-hero {
    grid-column: 1 / -1;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: clamp(42px, 7vw, 72px);
    text-align: left;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 250, 0.92), rgba(235, 247, 229, 0.82)),
        radial-gradient(circle at 82% 18%, rgba(112, 184, 161, 0.22), transparent 32%);
    box-shadow: 0 24px 70px rgba(37, 95, 50, 0.13);
}

.modern-home .article-hero > * {
    animation: slideInFromBottom 0.75s ease both;
}

.article-hero h1 {
    width: auto;
    margin: 10px 0 0;
    padding: 0;
    color: #17231c;
    font-size: clamp(38px, 7vw, 66px);
    font-weight: 900;
    line-height: 1.02;
    text-align: left;
    text-shadow: none;
    text-wrap: balance;
}

.article-hero p {
    max-width: 610px;
    margin: 22px 0 0;
    color: #536257;
    font-size: 19px;
    line-height: 1.75;
}

.modern-home .section-kicker {
    margin: 0;
    color: #2d7040;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    color: #263a2d;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.wellness-illustration {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
    overflow: visible;
}

.wellness-illustration::before,
.wellness-illustration::after {
    display: none;
}

.wellness-illustration .orbit {
    position: absolute;
    border: 1px solid rgba(45, 112, 64, 0.18);
    border-radius: 999px;
}

.orbit-one {
    width: 330px;
    height: 330px;
}

.orbit-two {
    width: 230px;
    height: 230px;
    transform: rotate(26deg);
    border-style: dashed;
}

.wellness-card {
    position: absolute;
    display: grid;
    gap: 10px;
    place-items: center;
    width: 138px;
    min-height: 116px;
    padding: 14px 12px;
    color: #203329;
    font-size: 15px;
    font-weight: 800;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(37, 95, 50, 0.14);
}

.wellness-card i {
    color: #2d7040;
    font-size: 36px;
}

.wellness-card span {
    position: static;
    display: inline;
    color: inherit;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.wellness-card.sleep {
    top: 18px;
    left: 8px;
}

.wellness-card.focus {
    top: 118px;
    right: -10px;
}

.wellness-card.routine {
    bottom: 22px;
    left: 92px;
    padding: 10px 10px;
}

.content-panel,
.fact-quote {
    width: 100%;
    margin: 0;
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 48px rgba(37, 95, 50, 0.1);
    backdrop-filter: blur(12px);
}

.shade-panel {
    background: #edf5e8;
}

.toc-panel {
    grid-column: 1 / span 7;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(245, 250, 239, 0.82)),
        radial-gradient(circle at 92% 12%, rgba(112, 184, 161, 0.2), transparent 30%);
}

.content-panel h2 {
    margin-top: 10px;
    color: #17231c;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.12;
    text-wrap: balance;
}

.toc-list {
    counter-reset: toc-step;
    display: grid;
    gap: 10px;
    list-style: none;
}

.toc-list a {
    display: block;
    color: #203329;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.toc-list li {
    counter-increment: toc-step;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #2d7040;
    border-radius: 14px;
    background: rgba(45, 112, 64, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.toc-list li::before {
    content: counter(toc-step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: #245f32;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    border-radius: 12px;
    background: rgba(45, 112, 64, 0.12);
}

.toc-list li:hover,
.toc-list li:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(37, 95, 50, 0.12);
}

.toc-list a:hover,
.toc-list a:focus-visible {
    color: #2d7040;
}

.modern-home .statement {
    grid-column: 8 / -1;
    display: grid;
    align-content: center;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background: #fff8e9;
    box-shadow: 0 18px 48px rgba(37, 95, 50, 0.1);
    backdrop-filter: blur(12px);
    text-align: center;
}

.modern-home .statement p {
    color: #27372d;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 850;
    line-height: 1.28;
}

.info-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-card-gap);
    margin-top: 0;
}

.info-box {
    padding: 28px;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.09);
}

.info-box:first-child {
    background:
        linear-gradient(145deg, #ffffff, #f3f8ed);
}

.info-box--accent {
    background: #263a2d;
}

.info-box span {
    color: #2d7040;
    font-size: 13px;
    font-weight: 900;
}

.info-box h3 {
    margin-top: 18px;
    color: #17231c;
    font-size: 24px;
    line-height: 1.12;
}

.info-box p {
    margin-top: 12px;
    color: #5c6b60;
    font-size: 16px;
    line-height: 1.65;
}

.info-box--accent span,
.info-box--accent h3,
.info-box--accent p {
    color: #f7fbf3;
}

.modern-home .problem-grid,
.modern-home .product-grid {
    width: 100%;
    margin-top: var(--home-card-gap);
    padding: 0;
    gap: var(--home-card-gap);
}

.modern-home #pilire {
    grid-column: 1 / -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(239, 247, 234, 0.84));
}

.sleep-chart {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: var(--home-card-gap);
    align-items: center;
    margin-top: var(--home-card-gap);
    padding: 24px;
    border: 1px solid rgba(38, 94, 47, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 244, 0.72)),
        radial-gradient(circle at 84% 20%, rgba(112, 184, 161, 0.18), transparent 34%);
    overflow: hidden;
}

.sleep-chart__copy {
    display: grid;
    gap: 18px;
    align-content: center;
}

.chart-badge {
    width: fit-content;
    padding: 9px 12px;
    color: #245f32;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(38, 94, 47, 0.14);
    border-radius: 999px;
    background: rgba(45, 112, 64, 0.08);
}

.sleep-chart__copy p {
    color: #526157;
    font-size: 16px;
    line-height: 1.68;
}

.chart-legend {
    display: grid;
    gap: 10px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #263a2d;
    font-size: 14px;
    font-weight: 800;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.legend-dot--rested {
    background: #2d7040;
}

.legend-dot--short {
    background: #f8bf5b;
}

.legend-dot--deprived {
    background: #d85c4a;
}

.chart-source {
    padding-top: 8px;
    color: #748076 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.sleep-chart__figure {
    position: relative;
    min-height: 360px;
    padding: 12px;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(37, 95, 50, 0.11);
}

.sleep-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.chart-grid line {
    stroke: rgba(38, 94, 47, 0.09);
    stroke-width: 1;
}

.chart-axis line {
    stroke: rgba(38, 94, 47, 0.35);
    stroke-width: 2;
}

.chart-axis text,
.chart-labels text {
    fill: #617067;
    font-size: 14px;
    font-weight: 800;
}

.chart-labels text {
    fill: #203329;
}

.chart-area {
    opacity: 0.12;
}

.chart-area--deprived {
    fill: #d85c4a;
}

.chart-reference {
    fill: none;
    stroke: rgba(45, 112, 64, 0.42);
    stroke-dasharray: 8 8;
    stroke-width: 2;
}

.chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 6;
}

.chart-line--rested {
    stroke: #2d7040;
}

.chart-line--short {
    stroke: #f8bf5b;
}

.chart-line--deprived {
    stroke: #d85c4a;
}

.chart-notes text {
    fill: #203329;
    font-size: 14px;
    font-weight: 800;
}

.sleep-chart--performance {
    background: #f7f7f4;
}

.sleep-chart--performance .chart-badge,
.sleep-chart--performance .chart-legend span {
    color: #181818;
}

.sleep-chart--performance .legend-dot--rested {
    background: #181818;
}

.sleep-chart--performance .legend-dot--deprived {
    background: #6d6d66;
}

.sleep-chart--performance .chart-source,
.sleep-chart--performance .sleep-chart__copy p {
    color: #55554f !important;
}

.sleep-chart--performance .sleep-chart__figure {
    background: #ffffff;
    border-color: rgba(24, 24, 24, 0.14);
}

.sleep-chart--performance .chart-grid line {
    stroke: rgba(24, 24, 24, 0.09);
}

.sleep-chart--performance .chart-axis line {
    stroke: rgba(24, 24, 24, 0.36);
}

.sleep-chart--performance .chart-axis text,
.sleep-chart--performance .chart-labels text,
.sleep-chart--performance .chart-notes text {
    fill: #181818;
}

.performance-bar {
    fill: #181818;
}

.performance-bar--base {
    fill: #d8d8d2;
}

.performance-bar--high {
    fill: #4a4a45;
}

.sleep-duration-card {
    grid-column: 1 / span 5;
    display: grid;
    gap: var(--home-card-gap);
    align-content: start;
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff, #f2f2ee);
    box-shadow: 0 18px 48px rgba(24, 24, 24, 0.08);
}

.sleep-duration-card__header h2 {
    margin-top: 10px;
    color: #181818;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.12;
}

.sleep-duration-card__header p:last-child {
    margin-top: 16px;
    color: #55554f;
    font-size: 16px;
    line-height: 1.65;
}

.sleep-duration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-card-gap);
}

.sleep-duration-grid article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px;
    border: 1px solid rgba(24, 24, 24, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
}

.sleep-duration-grid span {
    color: #55554f;
    font-size: 13px;
    font-weight: 800;
}

.sleep-duration-grid strong {
    color: #181818;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.chart-points circle {
    fill: #ffffff;
    stroke: #d85c4a;
    stroke-width: 4;
}

.chart-points .chart-point--reference {
    stroke: #2d7040;
}

.chart-callout {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 4px;
    width: min(230px, calc(100% - 48px));
    padding: 14px 16px;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 30px rgba(37, 95, 50, 0.1);
}

.chart-callout strong {
    color: #17231c;
    font-size: 14px;
    font-weight: 900;
}

.chart-callout span {
    color: #526157;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.modern-home .problem-card,
.modern-home .product-card,
.habit-list article,
.related-grid a {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.09);
}

.modern-home .problem-card {
    min-height: 230px;
}

.modern-home .problem-card p {
    margin-top: 18px;
    color: #5c6b60;
    font-size: 16px;
    line-height: 1.65;
}

.fact-quote {
    grid-column: 1 / span 5;
    display: grid;
    gap: 14px;
    align-content: center;
    justify-items: center;
    text-align: center;
    background: #24382b;
}

.fact-quote span {
    color: #b7e5a7;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fact-quote p {
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.32;
}

.fact-quote--soft {
    background: #fff8e9;
}

.fact-quote--soft span {
    color: #9b6a18;
}

.fact-quote--soft p {
    color: #2b2518;
}

.section-heading {
    max-width: 680px;
}

.modern-home #navyky {
    grid-column: 6 / -1;
    min-height: 100%;
    background:
        linear-gradient(145deg, #edf5e8, #ffffff);
}

.modern-home #navyky .habit-list {
    grid-template-columns: 1fr;
}

.modern-home #navyky .habit-list article {
    min-height: auto;
    padding: 24px 24px 18px;
}

.modern-home #produkty {
    grid-column: 1 / span 8;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 241, 0.86));
}

.modern-home .fact-quote--soft {
    grid-column: 1 / -1;
}

.modern-home .site-footer {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 18px 0 0;
    text-align: center;
}

.modern-home .site-footer strong {
    color: #17231c;
    font-size: 18px;
    font-weight: 900;
}

.modern-home .site-footer p {
    margin: 0;
    color: #526157;
    font-size: 14px;
    line-height: 1.4;
}

.modern-home #souvisejici {
    grid-column: 1 / -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 246, 231, 0.86));
}

.modern-home .content-panel > .section-heading,
.modern-home .content-panel > .section-kicker,
.modern-home .content-panel > h2 {
    max-width: 760px;
}

.habit-list,
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-card-gap);
    width: 100%;
    min-width: 0;
    margin-top: var(--home-card-gap);
}

.habit-list article {
    min-width: 0;
    min-height: 230px;
    padding: 26px;
    overflow-wrap: anywhere;
}

.habit-list i,
.habit-list .svg-inline--fa {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    box-sizing: border-box;
    padding: 12px;
    color: #2d7040;
    font-size: 22px;
    border-radius: 16px;
    background: rgba(45, 112, 64, 0.1);
}

.habit-list h3,
.related-grid strong {
    display: block;
    margin-top: 22px;
    color: #17231c;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.18;
}

.habit-list p {
    margin-top: 14px;
    color: #5c6b60;
    font-size: 16px;
    line-height: 1.62;
}

.modern-home .product-card {
    min-height: 250px;
}

.modern-home .product-card h3 {
    color: #17231c;
}

.modern-home .product-card p {
    color: #5c6b60;
}

.modern-home .product-card a {
    color: #245f32;
}

.related-grid a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 130px;
    padding: 18px;
    color: #17231c;
    text-align: left;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-grid a:hover,
.related-grid a:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(37, 95, 50, 0.14);
}

.related-grid span {
    color: #2d7040;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border: 0;
    border-radius: 16px;
    background: #245f32;
    box-shadow: 0 16px 36px rgba(37, 95, 50, 0.24);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top::before {
    content: "↑";
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.back-to-top i {
    display: none;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .back-to-top {
        display: none;
    }

    .modern-home .article-hero {
        grid-template-columns: minmax(0, 1.12fr) minmax(410px, 0.88fr);
    }
}

@media (max-width: 860px) {
    .article-shell {
        display: block;
    }

    .article-shell > * + * {
        margin-top: 22px;
    }

    .modern-home .article-shell > * + * {
        margin-top: 0;
    }

    .toc-panel,
    .info-grid,
    .sleep-duration-grid,
    .habit-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .modern-home .problem-grid,
    .modern-home .product-grid {
        grid-template-columns: 1fr;
    }

    .modern-home .sleep-chart {
        grid-template-columns: 1fr;
        gap: var(--home-card-gap);
        padding: 18px;
    }

    .sleep-chart__figure {
        min-height: auto;
    }

    .chart-callout {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .modern-home #navyky .habit-list {
        grid-template-columns: 1fr;
    }

    .modern-home #navyky .habit-list article {
        min-height: auto;
    }

    .modern-home .problem-card:first-child,
    .modern-home .problem-card:last-child,
    .modern-home .problem-card {
        border-radius: 20px;
    }
}

@media (max-width: 620px) {
    .site-header,
    .article-shell {
        width: min(100% - 24px, 1120px);
    }

    .modern-home .article-hero,
    .content-panel,
    .fact-quote {
        border-radius: 20px;
        padding: 26px;
    }

    .wellness-illustration {
        min-height: 250px;
    }

    .wellness-card {
        width: 96px;
        min-height: 84px;
        padding: 14px 12px;
    }

    .modern-home .navbar {
        width: 100%;
    }

    .modern-home .icons-right {
        position: absolute;
        top: 12px;
        right: 12px;
    }
}

/* SITEWIDE MODERN VISUALS */

body:not(.modern-home) {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    text-align: left;
    color: #18251d;
    background:
        linear-gradient(180deg, #f6f8f1 0%, #eef5e8 42%, #f8faf4 100%),
        radial-gradient(circle at 12% 12%, rgba(112, 184, 161, 0.2), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(248, 191, 91, 0.18), transparent 24%);
}

body:not(.modern-home)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 94, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 94, 47, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body:not(.modern-home) a {
    color: #245f32;
}

body:not(.modern-home) main {
    overflow: visible;
}

body:not(.modern-home) p,
body:not(.modern-home) li {
    color: #526157;
}

body:not(.modern-home) .page {
    width: min(1120px, calc(100% - 40px));
    margin: 44px auto 0;
    padding: clamp(34px, 6vw, 58px);
    text-align: left;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 250, 0.92), rgba(235, 247, 229, 0.82)),
        radial-gradient(circle at 86% 18%, rgba(112, 184, 161, 0.22), transparent 34%);
    box-shadow: 0 24px 70px rgba(37, 95, 50, 0.13);
}

body:not(.modern-home) .page-kicker,
body:not(.modern-home) .page h1.page-kicker {
    width: auto;
    margin: 0;
    color: #17231c;
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 900;
    line-height: 1.02;
    text-align: left;
    text-decoration: none;
}

body:not(.modern-home) .page-intro,
body:not(.modern-home) .page-intro--compact {
    width: min(760px, 100%);
    margin: 22px 0 0;
    padding: 0;
    color: #526157;
    font-size: 19px;
    line-height: 1.75;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body:not(.modern-home):has(.product-catalog) .page,
body:not(.modern-home):has(.about-section) .page,
body:not(.modern-home):has(.contact-page) .page {
    padding: clamp(26px, 4.5vw, 42px);
}

body:not(.modern-home) .topic-articles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(1120px, calc(100% - 40px));
    margin: 24px auto 90px;
}

body:not(.modern-home) .article-preview {
    position: relative;
    min-height: 260px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 42px rgba(37, 95, 50, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body:not(.modern-home) .article-preview::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(45, 112, 64, 0.14), rgba(112, 184, 161, 0.1));
}

body:not(.modern-home) .article-preview:hover,
body:not(.modern-home) .article-preview:focus-within {
    transform: translateY(-5px);
    border-color: rgba(38, 94, 47, 0.28);
    box-shadow: 0 24px 60px rgba(37, 95, 50, 0.14);
}

body:not(.modern-home) .article-preview h2 {
    max-width: calc(100% - 86px);
    color: #17231c;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.15;
}

body:not(.modern-home) .article-preview p {
    margin-top: 18px;
    color: #526157;
    font-size: 16px;
    line-height: 1.66;
}

body:not(.modern-home) .article-preview a,
body:not(.modern-home) .article-back {
    min-height: 42px;
    padding: 0 16px;
    color: #245f32;
    font-size: 14px;
    font-weight: 900;
    border: 1px solid rgba(38, 94, 47, 0.18);
    border-radius: 14px;
    background: rgba(45, 112, 64, 0.08);
}

body:not(.modern-home) .article-preview a:hover,
body:not(.modern-home) .article-preview a:focus-visible,
body:not(.modern-home) .article-back:hover,
body:not(.modern-home) .article-back:focus-visible {
    color: #ffffff;
    background: #245f32;
}

body:not(.modern-home) .article-page {
    counter-reset: article-section;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    width: min(1120px, calc(100% - 40px));
    margin: 40px auto 96px;
}

body:not(.modern-home) .article-back {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0;
    text-decoration: none;
}

body:not(.modern-home) .article-header {
    grid-column: 1 / -1;
    padding: clamp(34px, 6vw, 60px);
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 250, 0.92), rgba(235, 247, 229, 0.82)),
        radial-gradient(circle at 86% 18%, rgba(248, 191, 91, 0.18), transparent 30%);
    box-shadow: 0 24px 70px rgba(37, 95, 50, 0.13);
}

body:not(.modern-home) .article-header h1 {
    max-width: 850px;
    color: #17231c;
    font-size: clamp(38px, 6vw, 66px);
    font-weight: 900;
    line-height: 1.02;
    text-wrap: balance;
}

body:not(.modern-home) .article-header p {
    max-width: 780px;
    margin-top: 22px;
    color: #526157;
    font-size: 20px;
    line-height: 1.72;
}

body:not(.modern-home) .article-page section {
    counter-increment: article-section;
    position: relative;
    grid-column: 1 / span 8;
    padding: 32px;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 42px rgba(37, 95, 50, 0.09);
}

body:not(.modern-home) .article-page section:nth-of-type(2n) {
    grid-column: 5 / -1;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 234, 0.82));
}

body:not(.modern-home) .article-page section::before {
    content: counter(article-section, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    color: #245f32;
    font-size: 13px;
    font-weight: 900;
    border-radius: 16px;
    background: rgba(45, 112, 64, 0.1);
}

body:not(.modern-home) .article-page section:first-of-type {
    grid-column: 1 / -1;
    background: #fff8e9;
}

body:not(.modern-home) .article-page h2 {
    margin-bottom: 16px;
    color: #17231c;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.12;
}

body:not(.modern-home) .article-page p,
body:not(.modern-home) .article-page li {
    max-width: 68ch;
    color: #526157;
    font-size: 18px;
    line-height: 1.78;
}

body:not(.modern-home) .article-page section > p,
body:not(.modern-home) .article-page section > ul {
    max-width: 68ch;
}

body:not(.modern-home) .article-page ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

body:not(.modern-home) .article-page li {
    position: relative;
    padding: 12px 14px 12px 42px;
    border-radius: 14px;
    background: rgba(45, 112, 64, 0.07);
}

body:not(.modern-home) .article-page li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 18px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2d7040;
}

body:not(.modern-home) .article-page section:last-of-type {
    grid-column: 1 / -1;
    background: #24382b;
}

body:not(.modern-home) .article-page section:last-of-type h2,
body:not(.modern-home) .article-page section:last-of-type p,
body:not(.modern-home) .article-page section:last-of-type li,
body:not(.modern-home) .article-page section:last-of-type a {
    color: #ffffff;
}

body:not(.modern-home) .article-page section:last-of-type::before {
    color: #b7e5a7;
    background: rgba(255, 255, 255, 0.1);
}

body:not(.modern-home) .product-catalog,
body:not(.modern-home) .contact-page {
    width: min(1120px, calc(100% - 40px));
}

body:not(.modern-home) .about-section {
    width: min(1120px, calc(100% - 40px));
    margin: 24px auto 0;
    padding: clamp(30px, 5vw, 46px);
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 42px rgba(37, 95, 50, 0.09);
}

body:not(.modern-home) .about-section h2,
body:not(.modern-home) .about-philosophy h2 {
    color: #17231c;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    text-align: left;
}

body:not(.modern-home) .about-copy,
body:not(.modern-home) .about-note {
    width: min(760px, 100%);
    margin-left: 0;
    text-align: left;
}

body:not(.modern-home) .about-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

body:not(.modern-home) .about-list li,
body:not(.modern-home) .about-values span {
    border-radius: 16px;
    background: rgba(45, 112, 64, 0.08);
}

body:not(.modern-home) .about-philosophy {
    width: min(1120px, calc(100% - 40px));
    margin: 24px auto 90px;
    padding: clamp(30px, 5vw, 52px);
    text-align: left;
    background: #24382b;
}

body:not(.modern-home) .about-philosophy h2,
body:not(.modern-home) .about-philosophy p,
body:not(.modern-home) .about-philosophy blockquote {
    color: #ffffff;
}

body:not(.modern-home) .about-values {
    justify-content: flex-start;
}

body:not(.modern-home) .about-values span {
    color: #b7e5a7;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

body:not(.modern-home) .catalog-category {
    margin-top: 20px;
    padding: 30px;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 42px rgba(37, 95, 50, 0.09);
}

body:not(.modern-home) .catalog-product,
body:not(.modern-home) .contact-panel,
body:not(.modern-home) .contact-aside,
body:not(.modern-home) .contact-option,
body:not(.modern-home) .about-pillars article,
body:not(.modern-home) .about-philosophy {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
    body:not(.modern-home) .page,
    body:not(.modern-home) .topic-articles,
    body:not(.modern-home) .article-page,
    body:not(.modern-home) .product-catalog,
    body:not(.modern-home) .contact-page,
    body:not(.modern-home) .about-section,
    body:not(.modern-home) .about-philosophy {
        width: min(100% - 24px, 1120px);
    }

    body:not(.modern-home) .topic-articles,
    body:not(.modern-home) .article-page {
        display: block;
    }

    body:not(.modern-home) .article-preview + .article-preview,
    body:not(.modern-home) .article-page > * + * {
        margin-top: 18px;
    }

    body:not(.modern-home) .article-page section,
    body:not(.modern-home) .article-page section:nth-of-type(2n),
    body:not(.modern-home) .article-page section:first-of-type,
    body:not(.modern-home) .article-page section:last-of-type {
        grid-column: auto;
    }

    body:not(.modern-home) .catalog-category {
        display: block;
    }

    body:not(.modern-home) .about-list {
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .catalog-category__header {
        justify-content: flex-start;
        margin-bottom: 20px;
    }
}

@media (max-width: 560px) {
    body:not(.modern-home):has(.product-catalog) .page,
    body:not(.modern-home):has(.about-section) .page,
    body:not(.modern-home):has(.contact-page) .page,
    body:not(.modern-home):has(.product-catalog) .catalog-category,
    body:not(.modern-home):has(.about-section) .about-section,
    body:not(.modern-home):has(.about-section) .about-philosophy,
    body:not(.modern-home):has(.contact-page) .contact-panel,
    body:not(.modern-home):has(.contact-page) .contact-aside {
        padding: 20px;
    }

    body:not(.modern-home) .page,
    body:not(.modern-home) .article-header,
    body:not(.modern-home) .article-page section,
    body:not(.modern-home) .catalog-category {
        padding: 24px;
        border-radius: 20px;
    }

    body:not(.modern-home) .article-preview h2 {
        max-width: none;
    }

    body:not(.modern-home) .article-preview::before {
        opacity: 0.28;
    }

    body:not(.modern-home) .article-header p,
    body:not(.modern-home) .article-page p,
    body:not(.modern-home) .article-page li {
        font-size: 16px;
        line-height: 1.72;
    }
}

/* ABOUT PAGE REFINEMENT */

body:not(.modern-home) .about-philosophy {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    gap: 26px;
    align-items: start;
    color: #181818;
    border-color: rgba(24, 24, 24, 0.12);
    background:
        linear-gradient(145deg, #ffffff, #f2f2ee);
}

body:not(.modern-home) .about-philosophy h2,
body:not(.modern-home) .about-philosophy p {
    color: #181818;
}

body:not(.modern-home) .about-philosophy h2 {
    grid-column: 1 / -1;
}

body:not(.modern-home) .about-philosophy > p {
    margin-top: 0;
    color: #55554f;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.45;
}

body:not(.modern-home) .about-values {
    display: grid;
    grid-column: 2;
    grid-row: 2 / span 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

body:not(.modern-home) .about-values span {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 16px;
    color: #181818;
    text-align: center;
    border: 1px solid rgba(24, 24, 24, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(24, 24, 24, 0.06);
}

body:not(.modern-home) .about-philosophy blockquote {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 24px 28px;
    color: #ffffff;
    border-radius: 20px;
    background: #181818;
    box-shadow: 0 18px 42px rgba(24, 24, 24, 0.14);
}

@media (max-width: 860px) {
    body:not(.modern-home) .about-philosophy {
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .about-values {
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: 1fr;
    }
}

/* VISUAL RESTORE */

body:not(.modern-home) .page {
    position: relative;
    width: min(1120px, calc(100% - 40px));
    margin: 24px auto 0;
    min-height: clamp(230px, 24vw, 292px);
    padding: clamp(28px, 5vw, 46px);
    padding-right: clamp(210px, 27vw, 330px);
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 250, 0.92), rgba(235, 247, 229, 0.82)),
        radial-gradient(circle at 86% 18%, rgba(112, 184, 161, 0.22), transparent 34%);
    box-shadow: 0 20px 56px rgba(37, 95, 50, 0.12);
}

body:not(.modern-home) .topic-icon {
    position: absolute;
    top: 50%;
    right: clamp(28px, 5vw, 58px);
    z-index: 0;
    display: grid;
    place-items: center;
    width: clamp(170px, 20vw, 250px);
    aspect-ratio: 1;
    margin: 0;
    color: #245f32;
    opacity: 0.22;
    transform: translateY(-50%);
    pointer-events: none;
}

body:not(.modern-home) .topic-icon svg {
    width: 100%;
    height: 100%;
}

body:not(.modern-home) .topic-icon__bg {
    fill: rgba(91, 170, 35, 0.18);
}

body:not(.modern-home) .topic-icon__fill {
    fill: #245f32;
}

body:not(.modern-home) .topic-icon__leaf {
    fill: #5baa23;
}

body:not(.modern-home) .topic-icon__leaf--light {
    fill: #8fd15a;
}

body:not(.modern-home) .topic-icon__line {
    fill: none;
    stroke: #5baa23;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body:not(.modern-home) .topic-icon__line--small {
    stroke-width: 4;
}

body:not(.modern-home) .topic-icon__brain {
    fill: rgba(36, 95, 50, 0.58);
    stroke: #245f32;
    stroke-width: 4.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body:not(.modern-home) .topic-icon__brain-line {
    fill: none;
    stroke: #245f32;
    stroke-width: 4.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body:not(.modern-home) .page-kicker,
body:not(.modern-home) .page-intro {
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    body:not(.modern-home) .page {
        min-height: 0;
        padding-right: clamp(24px, 5vw, 32px);
    }

    body:not(.modern-home) .topic-icon {
        right: -18px;
        width: clamp(150px, 42vw, 190px);
        opacity: 0.13;
    }
}

body:not(.modern-home) .page-kicker,
body:not(.modern-home) .page h1.page-kicker {
    width: auto;
    margin: 0;
    padding: 0;
    color: #17231c;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.04;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
}

body:not(.modern-home) .page-intro,
body:not(.modern-home) .page-intro--compact {
    width: min(760px, 100%);
    margin: 18px 0 0;
    padding: 0;
    color: #526157;
    font-size: 18px;
    line-height: 1.65;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body:not(.modern-home) .about-section,
body:not(.modern-home) .about-philosophy,
body:not(.modern-home) .contact-page,
body:not(.modern-home) .product-catalog {
    width: min(1120px, calc(100% - 40px));
}

body:not(.modern-home) .about-section {
    margin: 18px auto 0;
    padding: clamp(22px, 3.5vw, 34px);
    text-align: left;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.09);
}

body:not(.modern-home) .about-section h2,
body:not(.modern-home) .about-philosophy h2 {
    color: #17231c;
    font-size: clamp(25px, 3.6vw, 34px);
    font-weight: 900;
    text-align: left;
}

body:not(.modern-home) .about-copy,
body:not(.modern-home) .about-note {
    width: min(760px, 100%);
    margin-left: 0;
    text-align: left;
}

body:not(.modern-home) .about-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
}

body:not(.modern-home) .about-list li {
    border-radius: 16px;
    color: #17231c !important;
    background: rgba(45, 112, 64, 0.08);
}

body:not(.modern-home) .about-philosophy {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    gap: 22px;
    align-items: start;
    margin: 18px auto 34px;
    padding: clamp(22px, 3.5vw, 34px);
    text-align: left;
    border: 1px solid rgba(38, 94, 47, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(145deg, #ffffff, #edf7e9);
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.1);
}

body:not(.modern-home) .about-philosophy h2 {
    grid-column: 1 / -1;
}

body:not(.modern-home) .about-philosophy p {
    margin-top: 0;
    color: #526157;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

body:not(.modern-home) .about-values {
    display: grid;
    grid-column: 2;
    grid-row: 2 / span 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

body:not(.modern-home) .about-values span {
    display: grid;
    place-items: center;
    min-height: 78px;
    padding: 12px;
    color: #245f32;
    text-align: center;
    border: 1px solid rgba(45, 112, 64, 0.16);
    border-radius: 18px;
    background: rgba(45, 112, 64, 0.08);
    box-shadow: none;
}

body:not(.modern-home) .about-philosophy blockquote {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 18px 22px;
    color: #ffffff;
    border-radius: 20px;
    background: #245f32;
    box-shadow: 0 18px 42px rgba(37, 95, 50, 0.16);
}

body:not(.modern-home) .contact-page {
    margin: 18px auto 34px;
}

body:not(.modern-home):has(.contact-page) .contact-intro {
    width: min(900px, 100%);
}

@media (min-width: 1024px) {
    body:not(.modern-home):has(.contact-page) .contact-intro br {
        display: none;
    }
}

body:not(.modern-home) .contact-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

body:not(.modern-home) .contact-option {
    min-height: 82px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

body:not(.modern-home) .contact-option--aside {
    min-height: auto;
    margin-top: 22px;
    padding: 16px;
}

body:not(.modern-home) .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
    gap: 18px;
    align-items: start;
}

body:not(.modern-home) .contact-panel,
body:not(.modern-home) .contact-aside {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
}

body:not(.modern-home) .contact-panel {
    padding: 20px;
}

body:not(.modern-home) .contact-aside {
    display: grid;
    align-content: start;
    padding: 20px;
}

body:not(.modern-home) .contact-form {
    gap: 8px;
    margin-top: 18px;
}

body:not(.modern-home) .contact-form input,
body:not(.modern-home) .contact-form select,
body:not(.modern-home) .contact-form textarea {
    padding: 11px 13px;
}

body:not(.modern-home) .contact-form textarea {
    min-height: 106px;
}

body:not(.modern-home) .product-catalog {
    margin: 28px auto 60px;
}

body:not(.modern-home) .catalog-category {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(38, 94, 47, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 233, 0.78));
    box-shadow: 0 16px 42px rgba(37, 95, 50, 0.09);
}

body:not(.modern-home) .catalog-category__header {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    align-self: start;
    margin: 0;
    padding: 16px 14px;
    text-align: center;
    border: 1px solid rgba(38, 94, 47, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(145deg, #ffffff, #edf7e9);
    box-shadow: 0 12px 30px rgba(37, 95, 50, 0.08);
}

body:not(.modern-home) .catalog-category__header span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #245f32;
    border-radius: 14px;
    background: rgba(45, 112, 64, 0.1);
}

body:not(.modern-home) .catalog-category__header h2 {
    color: #17231c;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.14;
    text-align: center;
}

.sleep-chart--performance {
    border-color: rgba(45, 112, 64, 0.16);
    background:
        linear-gradient(145deg, #edf7e9, #ffffff);
    box-shadow: 0 18px 48px rgba(37, 95, 50, 0.1);
}

.sleep-chart--performance .chart-badge {
    color: #245f32;
    background: rgba(45, 112, 64, 0.1);
}

.sleep-chart--performance .chart-legend span {
    color: #203329;
}

.sleep-chart--performance .legend-dot--rested {
    background: #526157;
}

.sleep-chart--performance .legend-dot--deprived {
    background: #245f32;
}

.sleep-chart--performance .sleep-chart__figure {
    border-color: rgba(45, 112, 64, 0.16);
    background:
        linear-gradient(180deg, #ffffff, #f3faf0);
}

.sleep-chart--performance .chart-grid line {
    stroke: rgba(45, 112, 64, 0.1);
}

.sleep-chart--performance .chart-axis line {
    stroke: rgba(36, 95, 50, 0.4);
}

.sleep-chart--performance .chart-axis text,
.sleep-chart--performance .chart-labels text,
.sleep-chart--performance .chart-notes text {
    fill: #245f32;
}

.sleep-chart--performance .performance-bar {
    fill: #526157;
}

.sleep-chart--performance .performance-bar--base {
    fill: #d8e6d4;
}

.sleep-chart--performance .performance-bar--high {
    fill: #245f32;
}

.sleep-chart--performance .performance-bar {
    transform-box: fill-box;
    transform-origin: center bottom;
    transform: scaleY(0);
    transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sleep-chart--performance .performance-bar:nth-of-type(2) {
    transition-delay: 0.12s;
}

.sleep-chart--performance .performance-bar:nth-of-type(3) {
    transition-delay: 0.24s;
}

.sleep-chart--performance .chart-notes {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease 0.75s, transform 0.45s ease 0.75s;
}

.sleep-chart--performance.is-animated .performance-bar {
    transform: scaleY(1);
}

.sleep-chart--performance.is-animated .chart-notes {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .sleep-chart--performance .performance-bar,
    .sleep-chart--performance .chart-notes {
        transform: none;
        transition: none;
    }

    .sleep-chart--performance .chart-notes {
        opacity: 1;
    }
}

.sleep-duration-card {
    border-color: rgba(45, 112, 64, 0.16);
    background:
        linear-gradient(145deg, #edf7e9, #ffffff);
    box-shadow: 0 18px 48px rgba(37, 95, 50, 0.1);
}

.sleep-age-chart {
    display: grid;
    gap: 14px;
}

.sleep-age-chart article {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(160px, 1fr);
    gap: 14px;
    align-items: center;
}

.sleep-age-chart > article > span {
    color: #526157;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.sleep-age-chart__track {
    position: relative;
    min-height: 34px;
}

.sleep-age-chart__track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(183, 229, 167, 0.34), rgba(45, 112, 64, 0.22));
    transform: translateY(-50%);
}

.sleep-age-chart__track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--pos);
    width: 16px;
    height: 16px;
    border: 4px solid #ffffff;
    border-radius: 999px;
    background: #245f32;
    box-shadow: 0 8px 18px rgba(37, 95, 50, 0.22);
    transform: translate(-50%, -50%);
}

.sleep-age-chart__track strong {
    position: absolute;
    top: 50%;
    left: var(--pos);
    z-index: 1;
    padding: 5px 8px;
    color: #245f32;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(45, 112, 64, 0.14);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 95, 50, 0.1);
    transform: translate(calc(-50% + 28px), -50%);
}

@media (min-width: 920px) {
    body:not(.modern-home):has(.contact-page) {
        overflow-y: auto;
    }

    body:not(.modern-home):has(.contact-page) .page,
    body:not(.modern-home):has(.about-section) .page {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

@media (max-width: 860px) {
    body:not(.modern-home) .about-list,
    body:not(.modern-home) .about-philosophy,
    body:not(.modern-home) .about-values,
    body:not(.modern-home) .contact-options,
    body:not(.modern-home) .contact-layout,
    body:not(.modern-home) .catalog-category {
        display: grid;
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .about-values {
        grid-column: auto;
        grid-row: auto;
    }

    .sleep-age-chart article {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .sleep-age-chart__track strong {
        transform: translate(-50%, -132%);
    }
}

/* GREEN PROJECT PHILOSOPHY OVERRIDE */

body:not(.modern-home) .about-philosophy {
    border-color: rgba(38, 94, 47, 0.16) !important;
    background:
        linear-gradient(145deg, #ffffff, #edf7e9) !important;
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.1) !important;
}

body:not(.modern-home) .about-philosophy h2 {
    color: #17231c !important;
}

body:not(.modern-home) .about-philosophy p {
    color: #526157 !important;
}

body:not(.modern-home) .about-philosophy .about-values span {
    color: #17231c !important;
    border-color: rgba(45, 112, 64, 0.16) !important;
    background: rgba(45, 112, 64, 0.08) !important;
}

body:not(.modern-home) .about-philosophy blockquote {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, #526157, #2d7040) !important;
    box-shadow: 0 18px 42px rgba(82, 97, 87, 0.18) !important;
}

@media (max-width: 860px) {
    body:not(.modern-home) .about-philosophy .about-values {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body:not(.modern-home) .about-philosophy .about-values span {
        min-height: auto;
        padding: 16px 18px;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.35;
        text-align: left;
        justify-items: start;
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    body:not(.modern-home) .about-philosophy .about-values {
        gap: 12px;
    }

    body:not(.modern-home) .about-philosophy .about-values span {
        padding: 16px 18px;
        font-size: 17px;
    }
}

body:not(.modern-home) .contact-form button {
    background:
        linear-gradient(135deg, #526157, #2d7040) !important;
    box-shadow: 0 16px 28px rgba(82, 97, 87, 0.18) !important;
}

body:not(.modern-home) .contact-form button:hover {
    background:
        linear-gradient(135deg, #445149, #245f32) !important;
    box-shadow: 0 18px 32px rgba(82, 97, 87, 0.22) !important;
}

.modern-home .button-primary {
    background:
        linear-gradient(135deg, #526157, #2d7040) !important;
    box-shadow: 0 16px 28px rgba(82, 97, 87, 0.18) !important;
}

.modern-home .button-primary:hover {
    background:
        linear-gradient(135deg, #445149, #245f32) !important;
    box-shadow: 0 18px 32px rgba(82, 97, 87, 0.22) !important;
}

/* REMOVE TOPIC CARD CORNER DECORATION */

body:not(.modern-home) .article-preview::before {
    display: none !important;
}

body:not(.modern-home) .article-preview h2 {
    max-width: none !important;
}

/* SLEEP RANGE TEXT BADGES */

.sleep-age-chart__track::after {
    display: none !important;
}

.sleep-age-chart__track strong {
    width: 72px !important;
    min-width: 72px !important;
    color: #245f32 !important;
    text-align: center !important;
    border: 1px solid #245f32 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.sleep-duration-card .sleep-age-chart article {
    opacity: 0;
    transform: translateX(-22px);
    transition: opacity 0.48s ease, transform 0.48s ease;
    transition-delay: var(--sleep-row-delay, 0s);
}

.sleep-duration-card .sleep-age-chart article:nth-child(1) {
    --sleep-row-delay: 0.04s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(2) {
    --sleep-row-delay: 0.1s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(3) {
    --sleep-row-delay: 0.16s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(4) {
    --sleep-row-delay: 0.22s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(5) {
    --sleep-row-delay: 0.28s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(6) {
    --sleep-row-delay: 0.34s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(7) {
    --sleep-row-delay: 0.4s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(8) {
    --sleep-row-delay: 0.46s;
}

.sleep-duration-card .sleep-age-chart article:nth-child(9) {
    --sleep-row-delay: 0.52s;
}

.sleep-duration-card .sleep-age-chart__track::before {
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--sleep-row-delay, 0s);
}

.sleep-duration-card .sleep-age-chart__track strong {
    opacity: 0;
    transition: opacity 0.36s ease, transform 0.48s ease;
    transition-delay: calc(var(--sleep-row-delay, 0s) + 0.18s);
    transform: translate(calc(-50% + 4px), -50%);
}

.sleep-duration-card.is-animated .sleep-age-chart article {
    opacity: 1;
    transform: translateX(0);
}

.sleep-duration-card.is-animated .sleep-age-chart__track::before {
    transform: translateY(-50%) scaleX(1);
}

.sleep-duration-card.is-animated .sleep-age-chart__track strong {
    opacity: 1;
    transform: translate(calc(-50% + 28px), -50%);
}

@media (prefers-reduced-motion: reduce) {
    .sleep-duration-card .sleep-age-chart article,
    .sleep-duration-card .sleep-age-chart__track::before,
    .sleep-duration-card .sleep-age-chart__track strong {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .sleep-duration-card .sleep-age-chart__track::before {
        transform: translateY(-50%);
    }

    .sleep-duration-card .sleep-age-chart__track strong {
        transform: translate(calc(-50% + 28px), -50%);
    }
}

/* PRODUCT SHOP CARDS */

body:not(.modern-home) .catalog-product {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 214px;
    padding: 18px;
    border-color: rgba(82, 97, 87, 0.16) !important;
    background:
        linear-gradient(180deg, #ffffff, #f8faf6) !important;
    box-shadow: 0 14px 34px rgba(82, 97, 87, 0.12) !important;
}

body:not(.modern-home) .catalog-product::before {
    display: none;
}

body:not(.modern-home) .catalog-product h3 {
    padding-right: 124px;
    color: #17231c;
    font-size: 22px;
    font-weight: 900;
}

body:not(.modern-home) .catalog-product__description {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 58px;
    margin-top: 14px !important;
    padding: 12px;
    color: #526157 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    border: 1px solid rgba(82, 97, 87, 0.12);
    border-radius: 16px;
    background: rgba(82, 97, 87, 0.06);
}

body:not(.modern-home) .catalog-product__emoji {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #245f32;
    font-size: 20px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(82, 97, 87, 0.12);
}

body:not(.modern-home) .catalog-product strong {
    position: absolute;
    top: 18px;
    right: 18px;
    width: fit-content;
    margin-top: 0;
    color: #17231c;
    border-color: rgba(82, 97, 87, 0.16);
    background: rgba(216, 230, 212, 0.58);
}

body:not(.modern-home) .catalog-product .catalog-product__contact {
    margin-top: 14px;
    color: #526157 !important;
    font-size: 15px !important;
    white-space: normal;
}

body:not(.modern-home) .catalog-category__header {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center !important;
    justify-self: center;
    align-self: center;
    width: min(100%, 168px) !important;
    margin: 0 auto 14px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    place-items: center;
}

body:not(.modern-home) .catalog-category__header span {
    justify-self: center !important;
    margin: 0 auto !important;
}

body:not(.modern-home) .catalog-category__header h2 {
    width: 100%;
    margin: 0 !important;
    font-size: 18px !important;
    text-align: center !important;
    text-wrap: balance;
}

@media (min-width: 920px) {
    body:not(.modern-home) .product-catalog {
        margin: 14px auto 28px;
    }

    body:not(.modern-home) .catalog-category {
        grid-template-columns: minmax(160px, 190px) minmax(0, 1fr);
        gap: 16px;
        margin-top: 14px;
        padding: 18px;
    }

    body:not(.modern-home) .catalog-category__header {
        display: inline-grid;
        justify-self: center;
        align-self: center;
        width: min(100%, 168px);
        padding: 12px 10px;
        place-items: center;
    }

    body:not(.modern-home) .catalog-category__header span {
        width: 36px;
        height: 36px;
    }

    body:not(.modern-home) .catalog-category__header h2 {
        font-size: 18px;
        text-align: center;
        text-wrap: balance;
    }

    body:not(.modern-home) .catalog-grid {
        gap: 12px;
    }

    body:not(.modern-home) .catalog-product {
        min-height: 158px;
        padding: 18px;
    }

    body:not(.modern-home) .catalog-product h3 {
        padding-right: 120px;
        font-size: 20px;
    }

    body:not(.modern-home) .catalog-product__description {
        min-height: 48px;
        margin-top: 12px !important;
        padding: 10px 12px;
        font-size: 15px !important;
    }

    body:not(.modern-home) .catalog-product__emoji {
        width: 36px;
        height: 36px;
        font-size: 17px;
        border-radius: 12px;
    }

    body:not(.modern-home) .catalog-product strong {
        top: 18px;
        right: 18px;
        margin-top: 0;
        padding: 6px 9px;
        font-size: 13px;
    }

    body:not(.modern-home) .catalog-product .catalog-product__contact {
        margin-top: 10px;
        font-size: 14px !important;
    }
}

@media (max-width: 860px) {
    body:not(.modern-home) .catalog-product {
        min-height: auto;
    }

    body:not(.modern-home) .catalog-product__description {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 420px) {
    body:not(.modern-home) .catalog-product__description {
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .catalog-product__emoji {
        justify-self: start;
    }
}

/* PRODUCT CATEGORY ROWS */

body:not(.modern-home) .catalog-category {
    display: block !important;
}

body:not(.modern-home) .catalog-category__header {
    display: grid !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 12px 4px 10px !important;
    text-align: center !important;
    align-items: center !important;
    justify-items: center !important;
    border-bottom: 1px solid rgba(82, 97, 87, 0.14);
    background: transparent !important;
    box-shadow: none !important;
}

body:not(.modern-home) .catalog-category__header span {
    display: none !important;
}

body:not(.modern-home) .catalog-category__header h2 {
    width: 100%;
    margin: 0 !important;
    color: #17231c;
    font-size: clamp(22px, 3vw, 30px) !important;
    text-align: center !important;
}

@media (min-width: 920px) {
    body:not(.modern-home) .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* HOME RESPONSIVE POLISH */

@media (max-width: 1023px) {
    .modern-home .site-header {
        width: calc(100% - (var(--home-page-gutter) * 2));
        max-width: none;
        margin-top: 22px;
    }

    .modern-home .brand {
        margin-bottom: 14px;
        font-size: clamp(34px, 8vw, 52px);
    }

    .modern-home .topbar {
        display: grid;
        gap: 12px;
        justify-items: center;
    }

    .modern-home .icons-right {
        position: absolute;
        top: 12px;
        right: 12px;
        justify-self: auto;
    }

    .article-shell {
        display: grid;
        grid-template-columns: 1fr;
        width: calc(100% - (var(--home-page-gutter) * 2));
        max-width: none;
        gap: var(--home-card-gap);
        margin-top: 18px;
        margin-bottom: 48px;
    }

    .modern-home .article-hero,
    .toc-panel,
    .modern-home .statement,
    .modern-home #pilire,
    .sleep-duration-card,
    .modern-home #navyky,
    .modern-home #souvisejici,
    .modern-home .fact-quote--soft {
        grid-column: 1 / -1 !important;
    }

    .modern-home .article-hero {
        grid-template-columns: 1fr;
        gap: var(--home-card-gap);
        padding: clamp(30px, 6vw, 46px);
        text-align: left;
    }

    .article-hero h1 {
        max-width: 11ch;
        font-size: clamp(40px, 8vw, 56px);
    }

    .article-hero p {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.65;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .article-meta {
        display: none;
    }

    .wellness-illustration {
        display: none;
    }

    .orbit-one {
        width: 220px;
        height: 220px;
    }

    .orbit-two {
        width: 150px;
        height: 150px;
    }

    .wellness-card.sleep {
        top: 18px;
        left: max(18px, calc(50% - 140px));
    }

    .wellness-card.focus {
        top: 88px;
        right: max(18px, calc(50% - 150px));
    }

    .wellness-card.routine {
        bottom: 20px;
        left: max(54px, calc(50% - 96px));
    }

    .content-panel,
    .sleep-duration-card,
    .fact-quote {
        padding: clamp(24px, 5vw, 34px);
        border-radius: 20px;
    }

    .sleep-chart {
        grid-template-columns: 1fr;
    }

    .sleep-chart__figure {
        min-height: auto;
        overflow-x: visible;
    }

    .sleep-chart svg {
        min-width: 0;
        width: 100%;
    }

    .habit-list,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .modern-home {
        --home-page-gutter: 8px;
    }

    .modern-home .site-header,
    .article-shell {
        width: calc(100% - (var(--home-page-gutter) * 2));
    }

    .modern-home .sleep-duration-card {
        display: none;
    }

    .modern-home .navbar {
        display: flex;
        gap: 8px;
        width: 100%;
        padding: 10px;
        border-radius: 16px;
        overflow: visible;
    }

    .modern-home .navbar .dropdown,
    .modern-home .navbar a {
        width: 100%;
    }

    .modern-home .navbar a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .modern-home .article-hero {
        padding: 26px 22px;
    }

    .article-hero h1 {
        max-width: 10ch;
        font-size: clamp(36px, 11vw, 46px);
    }

    .article-hero p {
        margin-top: 16px;
        font-size: 16px;
    }

    .modern-home .button-primary {
        width: 100%;
    }

    .article-meta span {
        min-height: 34px;
        padding: 0 11px;
        font-size: 13px;
    }

    .wellness-illustration {
        min-height: 230px;
    }

    .wellness-card {
        width: 88px;
        min-height: 78px;
        padding: 12px 10px;
        border-radius: 16px;
    }

    .wellness-card i {
        font-size: 21px;
    }

    .wellness-card.sleep {
        left: 12px;
    }

    .wellness-card.focus {
        right: 10px;
    }

    .wellness-card.routine {
        left: calc(50% - 44px);
    }

    .content-panel,
    .sleep-duration-card,
    .fact-quote {
        padding: 22px;
    }

    .content-panel h2,
    .sleep-duration-card__header h2 {
        font-size: clamp(24px, 8vw, 31px);
    }

    .toc-list li {
        padding: 12px;
    }

    .toc-list a {
        font-size: 15px;
    }

    .modern-home .statement p,
    .fact-quote p {
        font-size: clamp(22px, 7vw, 28px);
    }

    .chart-legend span {
        width: 100%;
        font-size: 13px;
        line-height: 1.35;
    }

    .sleep-chart svg {
        min-width: 0;
    }

    .chart-callout {
        width: 100%;
        margin-top: 12px;
    }

    .chart-callout strong {
        font-size: 13px;
    }

    .chart-callout span {
        font-size: 12px;
    }

    .sleep-age-chart {
        gap: 18px;
    }

    .sleep-age-chart article {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .sleep-age-chart__track {
        min-height: 42px;
    }

    .sleep-age-chart__track strong {
        transform: translate(-50%, -138%) !important;
    }

    .habit-list article,
    .related-grid a {
        min-height: auto;
        padding: 20px;
    }

    .modern-home #navyky .habit-list article {
        min-height: auto;
        padding: 20px 20px 14px;
    }
}

@media (max-width: 1023px) and (orientation: landscape) {
    .modern-home {
        --home-page-gutter: 6px;
    }

    .modern-home .site-header,
    .article-shell {
        width: calc(100% - (var(--home-page-gutter) * 2));
    }
}

@media (max-width: 1023px) and (max-height: 620px) {
    .modern-home {
        --home-page-gutter: 6px;
    }

    .modern-home .site-header,
    .article-shell {
        width: calc(100% - (var(--home-page-gutter) * 2));
        max-width: none;
    }
}

@media (max-width: 390px) {
    .modern-home .navbar {
        grid-template-columns: 1fr;
    }

    .article-hero h1 {
        max-width: 9ch;
    }

    .sleep-chart svg {
        min-width: 0;
    }
}
/* Stabilize mobile habit cards after iOS orientation changes */
@media (max-width: 620px) and (orientation: portrait) {
    .modern-home #navyky .habit-list {
        gap: 14px;
        margin-top: 16px;
    }

    .modern-home #navyky .habit-list article {
        min-height: auto;
        padding: 20px 20px 14px;
    }

    .modern-home #navyky .habit-list article p {
        margin-bottom: 0;
    }
}

/* Compact intro cards on utility pages without topic artwork */
body:not(.modern-home):has(.product-catalog) .page,
body:not(.modern-home):has(.about-section) .page,
body:not(.modern-home):has(.contact-page) .page {
    min-height: auto;
    padding: clamp(24px, 4vw, 36px) clamp(26px, 4.5vw, 42px) clamp(18px, 3vw, 28px);
    padding-right: clamp(26px, 4.5vw, 42px);
}

/* ABOUT PAGE CONTENT LAYOUT */
body:not(.modern-home) .about-page {
    display: grid;
    gap: 18px;
    width: min(1120px, calc(100% - 40px));
    margin: 18px auto 70px;
}

body:not(.modern-home) .about-page > * {
    margin: 0 !important;
}

@media (max-width: 860px) {
    body:not(.modern-home) .about-page {
        width: min(100% - 24px, 1120px);
    }
}

body:not(.modern-home) .about-page .page,
body:not(.modern-home) .about-page .about-section,
body:not(.modern-home) .about-page .about-philosophy {
    width: 100%;
}

body:not(.modern-home) .about-page .about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: clamp(26px, 4.2vw, 40px);
    padding-right: clamp(26px, 4.2vw, 40px);
}

body:not(.modern-home) .about-page .about-hero .section-kicker {
    margin: 0;
}

body:not(.modern-home) .about-page .page-kicker,
body:not(.modern-home) .about-section--story h2,
body:not(.modern-home) .about-philosophy__copy h2 {
    white-space: nowrap;
}

body:not(.modern-home) .about-page .page-intro {
    max-width: 900px;
    margin-top: 4px;
    font-size: clamp(17px, 1.8vw, 20px);
}

@media (max-width: 1023px) {
    body:not(.modern-home) .about-page .about-intro-break {
        display: none;
    }
}

body:not(.modern-home) .about-hero__mark {
    width: clamp(62px, 8vw, 104px);
    height: auto;
    opacity: 0.9;
}

body:not(.modern-home) .about-section--story {
    display: block;
}

body:not(.modern-home) .about-section--highlight {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body:not(.modern-home) .about-section--story .about-copy {
    display: grid;
    gap: 12px;
    width: min(760px, 100%);
    max-width: none;
    margin: 0;
    padding: clamp(22px, 3.5vw, 34px);
    border: 1px solid rgba(38, 94, 47, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(237, 247, 233, 0.86));
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.1);
}

body:not(.modern-home) .about-section--story h2,
body:not(.modern-home) .about-philosophy__copy h2 {
    margin: 0;
}

body:not(.modern-home) .about-section--story .about-copy p {
    max-width: 68ch;
    margin-top: 0;
    font-size: 17px;
    line-height: 1.68;
}

body:not(.modern-home) .about-page .about-philosophy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: center;
    border-color: rgba(38, 94, 47, 0.14) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(237, 247, 233, 0.86)) !important;
    box-shadow: 0 14px 36px rgba(37, 95, 50, 0.1) !important;
    margin-bottom: 0;
}

body:not(.modern-home) .about-philosophy__copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

body:not(.modern-home) .about-philosophy__copy p {
    max-width: 68ch;
    margin-top: 0;
    font-size: 17px;
    line-height: 1.68;
}

body:not(.modern-home) .about-funnel {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

body:not(.modern-home) .about-funnel__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

body:not(.modern-home) .about-funnel__steps span,
body:not(.modern-home) .about-funnel strong {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 10px;
    color: #245f32;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    border: 1px solid rgba(45, 112, 64, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
}

body:not(.modern-home) .about-funnel__path {
    width: 100%;
    height: 44px;
}

body:not(.modern-home) .about-funnel__path svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

body:not(.modern-home) .about-funnel__path path {
    fill: none;
    stroke: rgba(45, 112, 64, 0.28);
    stroke-width: 2;
    stroke-linecap: round;
}

body:not(.modern-home) .about-funnel strong {
    min-height: 42px;
    width: min(190px, 56%);
    min-width: 148px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #526157, #2d7040);
    box-shadow: 0 12px 24px rgba(82, 97, 87, 0.16);
}

body:not(.modern-home) .about-page .about-philosophy blockquote {
    grid-column: 1 / -1;
    margin-top: 18px;
    padding: 18px 22px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 850;
    line-height: 1.3;
}

@media (max-width: 760px) {
    body:not(.modern-home) .about-page .about-philosophy {
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .about-page .about-hero {
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .about-page .page-kicker {
        font-size: clamp(24px, 7vw, 34px);
    }

    body:not(.modern-home) .about-section--story h2,
    body:not(.modern-home) .about-philosophy__copy h2 {
        font-size: clamp(20px, 5.8vw, 28px);
    }

    body:not(.modern-home) .about-hero__mark {
        display: none;
    }
}

@media (max-width: 560px) {
    body:not(.modern-home):has(.product-catalog) .page,
    body:not(.modern-home):has(.about-section) .page,
    body:not(.modern-home):has(.contact-page) .page {
        padding: 20px 20px 16px;
    }

    body:not(.modern-home) .about-page .about-hero,
    body:not(.modern-home) .about-page .about-section,
    body:not(.modern-home) .about-page .about-philosophy {
        padding: 20px;
    }

    body:not(.modern-home) .about-page {
        width: min(100% - 24px, 1120px);
        margin-bottom: 48px;
    }

    body:not(.modern-home) .about-page .about-section--story {
        padding: 0;
    }

    body:not(.modern-home) .about-section--story .about-copy {
        width: 100%;
        padding: 20px;
    }

    body:not(.modern-home) .about-page .page-kicker {
        font-size: clamp(23px, 6.4vw, 28px);
    }

    body:not(.modern-home) .about-section--story h2,
    body:not(.modern-home) .about-philosophy__copy h2 {
        font-size: clamp(18px, 5.1vw, 22px);
    }

    body:not(.modern-home) .about-funnel__steps {
        grid-template-columns: 1fr;
    }

    body:not(.modern-home) .about-funnel__path {
        height: 34px;
    }
}

/* Full-width mobile/tablet landscape layout after rotation */
@media (max-width: 1023px) and (orientation: landscape) {
    .modern-home {
        --home-page-gutter: max(18px, env(safe-area-inset-left), env(safe-area-inset-right));
    }

    .modern-home .site-header,
    .modern-home .article-shell {
        width: calc(100% - (var(--home-page-gutter) * 2));
        max-width: none;
    }

    .modern-home .article-shell {
        margin-left: auto;
        margin-right: auto;
    }
}
/* Remove visual side gutters from mobile/tablet landscape panels */
@media (max-width: 1023px) and (orientation: landscape) {
    html,
    body {
        overflow-x: hidden;
    }

    .modern-home .article-hero,
    .modern-home .toc-panel,
    .modern-home .statement,
    .modern-home #pilire,
    .modern-home .sleep-duration-card,
    .modern-home #navyky,
    .modern-home #souvisejici,
    .modern-home .fact-quote--soft {
        width: calc(100vw - (var(--home-page-gutter) * 2));
        max-width: calc(100vw - (var(--home-page-gutter) * 2));
        margin-left: calc(50% - 50vw + var(--home-page-gutter));
        margin-right: calc(50% - 50vw + var(--home-page-gutter));
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}
/* Paint iOS landscape safe-area edges */
@supports (padding: max(0px)) {
    html,
    body,
    .modern-home {
        background-color: #f6f8f1;
    }
}
