:root {
    --primary: #FF9500;
    --primary-hover: #E68600;
    --secondary: #1A1A1A;
    --background: #FFFFFF;
    --surface: #F9FAFB;
    --surface-secondary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --accent-subtle: #FFF7ED;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

.text-muted {
    color: #4B5563 !important;
}

.transition-standard {
    transition: all 300ms ease-in-out;
}

/* ===== header ===== */
.livingpattern-header .js-dropdown-menu.is-active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.livingpattern-header .js-mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.livingpattern-header .nav-link-active {
    color: #FF9500;
}

.livingpattern-header .js-mobile-menu.is-visible {
    display: flex !important;
}

/* ===== hero ===== */
.living-pattern-hero {
    font-family: 'Inter', sans-serif;
}

.living-pattern-hero__main-img {
    animation: livingPatternFloat 6s ease-in-out infinite;
}

@keyframes livingPatternFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.living-pattern-hero__btn-primary,
.living-pattern-hero__btn-secondary,
.living-pattern-hero__pill {
    text-decoration: none;
}

.living-pattern-hero__bg-text {
    user-select: none;
}

@media (max-width: 767px) {
    .living-pattern-hero {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

/* ===== routine_map ===== */
.routine-map-section .routine-card {
    height: 100%;
}

.routine-map-section .routine-flow::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: repeating-linear-gradient(to bottom,
            #E5E7EB,
            #E5E7EB 5px,
            transparent 5px,
            transparent 10px);
    z-index: 0;
}

.routine-map-section .js-routine-step {
    position: relative;
    z-index: 1;
}

.routine-map-section .js-routine-step:hover span:first-child {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
}

.routine-map-section .js-routine-step span:first-child {
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .routine-map-section .routine-flow::before {
        left: 15px;
    }
}

/* ===== movement_conflicts ===== */
.movement-conflicts .container {
    position: relative;
    z-index: 1;
}

.movement-conflicts h2,
.movement-conflicts h3 {
    color: #111827 !important;
}

.movement-conflicts .hidden {
    display: none;
}

.movement-conflicts .js-toggle-conflict.active {
    background-color: #FF9500;
    color: white;
    border-color: #FF9500;
}

/* ===== furniture_purpose ===== */
.fp-analysis-section {
    font-family: 'Inter', sans-serif;
}

.fp-analysis-section .js-analysis-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.fp-analysis-section .js-analysis-card:hover {
    transform: translateY(-4px);
}

.fp-analysis-section .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .fp-analysis-section h2 {
        hyphens: auto;
    }
}

/* ===== weekday_weekend ===== */
.weekday-weekend-comparison .comparison-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.weekday-weekend-comparison .js-tab-btn.active {
    pointer-events: none;
}

.weekday-weekend-comparison .js-tab-panel {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.weekday-weekend-comparison .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .weekday-weekend-comparison .js-tab-btn {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }
}

/* ===== shared_space ===== */
.shared-space-block .js-filter-btn.active {
    background-color: #FF9500;
    color: #FFFFFF;
}

.shared-space-block .js-conflict-card {
    display: flex;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease allow-discrete;
}

.shared-space-block .js-conflict-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

@media (max-width: 767px) {
    .shared-space-block .js-filter-container {
        justify-content: center;
    }

    .shared-space-block h2 {
        text-align: center;
    }

    .shared-space-block p {
        text-align: center;
    }
}

/* ===== better_pattern ===== */
.better-pattern-block .js-tab-btn.active {
    background-color: #FF9500 !important;
    color: #FFFFFF !important;
    border-color: #FF9500 !important;
}

.better-pattern-block .js-pattern-card {
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.better-pattern-block .js-pattern-card:hover {
    transform: translateY(-4px);
}

/* ===== tools_platforms ===== */
.tools-platforms-section .js-tool-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tools-platforms-section .js-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.tools-platforms-section .container {
    max-width: 1200px;
}

/* ===== problem_solution ===== */
.problem-solution-block .problem-card,
.problem-solution-block .solution-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.problem-solution-block .problem-card:hover,
.problem-solution-block .solution-card:hover {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.problem-solution-block li span {
    line-height: 1.5;
}

@media (max-width: 767px) {
    .problem-solution-block h2 {
        hyphens: auto;
    }
}

/* ===== numbers_counters ===== */
.numbers-counters-section .counter-card {
    height: 100%;
    transform: translateY(0);
}

.numbers-counters-section .counter-card:hover {
    transform: translateY(-4px);
}

.numbers-counters-section .js-counter {
    font-variant-numeric: tabular-nums;
}

/* ===== cost_calculator ===== */
.cost-calculator-block .js-calc-option.active {
    border-color: #FF9500;
    background-color: #FFF7ED;
    box-shadow: 0 4px 6px -1px rgba(255, 149, 0, 0.05), 0 2px 4px -1px rgba(255, 149, 0, 0.03);
}

.cost-calculator-block .js-calc-option.active i {
    color: #FF9500;
}

.cost-calculator-block .js-calc-option {
    cursor: pointer;
    outline: none;
    user-select: none;
}

.cost-calculator-block .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .cost-calculator-block .js-calc-option {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 16px !important;
        text-align: left;
    }

    .cost-calculator-block .js-calc-option i {
        margin-bottom: 0 !important;
        margin-right: 12px !important;
        font-size: 20px !important;
    }

    .cost-calculator-block .js-calc-option span {
        display: block;
    }
}

/* ===== tariff ===== */
.livingpattern-tariff .tariff-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.livingpattern-tariff .js-billing-toggle.active {
    background-color: #FF9500;
}

.livingpattern-tariff .js-billing-toggle.active .js-toggle-knob {
    transform: translateX(24px);
}

.livingpattern-tariff h2,
.livingpattern-tariff h3 {
    color: #111827 !important;
}

@media (max-width: 767px) {
    .livingpattern-tariff .tariff-card {
        transform: none !important;
    }
}

/* ===== categories_grid ===== */
.categories-grid-section .category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-grid-section .category-card img {
    filter: grayscale(10%);
}

.categories-grid-section .category-card:hover img {
    filter: grayscale(0%);
}

.categories-grid-section .category-card h3 a {
    display: inline-block;
    position: relative;
}

.categories-grid-section .category-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FF9500;
    transition: width 0.3s ease;
}

.categories-grid-section .category-card:hover h3 a::after {
    width: 100%;
}

/* ===== footer ===== */
.lp-footer .lp-footer__logo {
    max-height: 50px;
    object-fit: contain;
}

.lp-footer .lp-footer__link {
    text-decoration: none;
    display: inline-block;
}

.lp-footer .lp-footer__contact i {
    flex-shrink: 0;
}

@media (max-width: 767px) {

    .lp-footer .lp-footer__brand,
    .lp-footer .lp-footer__nav,
    .lp-footer .lp-footer__legal,
    .lp-footer .lp-footer__contact {
        text-align: left;
        border-bottom: 1px solid #374151;
        padding-bottom: 24px;
    }

    .lp-footer .lp-footer__contact {
        border-bottom: none;
    }
}

/* ===== PAGE: anthropometry ===== */
.anthropometry-grid-block .js-lesson-card { height: 100%; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.anthropometry-grid-block .js-lesson-card:hover { transform: translateY(-4px); }
.anthropometry-grid-block input::placeholder { color: #9CA3AF; }
.anthropometry-grid-block .js-filter-btn.active { background-color: #FF9500; color: #FFFFFF; }

/* ===== PAGE: scenarios ===== */
.scenarios-library .js-scenario-card {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.scenarios-library .js-scenario-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.scenarios-library .js-filter-btn.active {
  background-color: #FF9500;
  color: white;
  border-color: #FF9500;
}
.scenarios-library .js-grid-container {
  min-height: 400px;
}
.scenarios-library .line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== PAGE: guides ===== */
.guides-grid-section .js-guide-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.guides-grid-section .js-guides-search:focus {
  box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.1);
}
.guides-grid-section article a img {
  transform: translateZ(0);
  backface-visibility: hidden;
}
.guides-grid-section .js-guide-card:hover h3 {
  color: #FF9500;
}

/* ===== PAGE: sweet-home-3d ===== */
.sweet-home-content .js-checkbox.active { background-color: #FF9500; border-color: #FF9500; }
.sweet-home-content .js-checkbox.active i { display: block; }
.sweet-home-content .js-tab-content.hidden { display: none; }
.sweet-home-content .js-tab-btn.active { background-color: #FFFFFF; border-bottom-color: #FF9500; color: #111827; }
.trust-block p { max-width: 800px; margin: 0 auto; }

/* ===== PAGE: contacts ===== */
.contacts-section .contact-card { min-height: 240px; display: flex; flex-direction: column; justify-content: flex-start; } .contacts-section .contact-card:hover { transform: translateY(-4px); }

/* ===== PAGE: privacy ===== */
.privacy-section .privacy-card {
  background-color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.privacy-section .content-block h2 {
  color: #111827;
}

.privacy-section .content-block h3 {
  color: #111827;
  letter-spacing: 0.05em;
}

.privacy-section .privacy-content ul li::marker {
  color: #FF9500;
}

.privacy-section .content-block i {
  flex-shrink: 0;
}

.privacy-section a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.privacy-section a:hover {
  border-bottom-color: #E68600;
}

@media (max-width: 767px) {
  .privacy-section .privacy-card {
    padding: 24px 16px;
    border-radius: 8px;
    border: none;
    box-shadow: none;
  }
  
  .privacy-section .content-block {
    margin-bottom: 32px;
  }
}

/* ===== PAGE: terms ===== */
.terms-content .js-toc-link.active {
  color: #FF9500;
  font-weight: 600;
}
.terms-content i {
  font-size: 18px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .terms-content p, .terms-content span {
    text-align: justify;
    hyphens: auto;
  }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-block .disclaimer-section { transition: transform 0.3s ease, box-shadow 0.3s ease; }.disclaimer-block .disclaimer-section:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }.disclaimer-block p { hyphens: auto; }

.main-comment-card {
    border: 1px solid #E5E7EB;
    position: relative;
}

.avatar-initials {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF7ED;
    color: #FF9500;
    font-weight: 700;
    border-radius: 50%;
}

.action-btn i {
    font-size: 1.1rem;
}

.comment-body {
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .main-comment-card {
        padding: 1rem;
    }

    .avatar-initials {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

.reply-card {
    border-left: 3px solid #FF9500;
    background-color: #F9FAFB;
}

.avatar-initials {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-container::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 50%;
    width: 20px;
    border-left: 2px solid #E5E7EB;
    border-bottom: 2px solid #E5E7EB;
    border-bottom-left-radius: 8px;
}

@media (max-width: 640px) {
    .reply-container {
        margin-left: 1rem;
    }

    .reply-container::before {
        left: -12px;
        width: 12px;
    }
}


/* ===== PAGE TEMPLATE: anthropometry-lessons ===== */
.livingpattern-header .js-dropdown-menu.is-active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.livingpattern-header .js-mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.livingpattern-header .js-mobile-menu.is-visible {
    display: flex !important;
}

.lp-footer .lp-footer__logo {
    max-height: 50px;
    object-fit: contain;
}

.lp-footer .lp-footer__link {
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 767px) {

    .lp-footer .lp-footer__brand,
    .lp-footer .lp-footer__nav,
    .lp-footer .lp-footer__legal,
    .lp-footer .lp-footer__contact {
        text-align: left;
        border-bottom: 1px solid #374151;
        padding-bottom: 24px;
    }

    .lp-footer .lp-footer__contact {
        border-bottom: none;
    }
}

.anthropometry-content-block .article-body-wrapper h2 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-left: 4px solid #FF9500;
    padding-left: 1rem;
}

@media (min-width: 768px) {
    .anthropometry-content-block .article-body-wrapper h2 {
        font-size: 26px;
    }
}

.anthropometry-content-block .article-body-wrapper p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #4B5563;
}

.anthropometry-content-block .article-body-wrapper ul {
    list-style: none !important;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.anthropometry-content-block .article-body-wrapper li {
    position: relative;
    margin-bottom: 0.75rem;
}

.anthropometry-content-block .article-body-wrapper li::before {
    content: none;
}

/* ===== PAGE TEMPLATE: scenarios-reviews ===== */
.livingpattern-header .js-dropdown-menu.is-active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.livingpattern-header .js-mobile-menu.is-visible {
    display: flex !important;
}

.scenario-rich-content h1,
.scenario-rich-content h2,
.scenario-rich-content h3 {
    color: #111827;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    line-height: 1.3;
}

.scenario-rich-content h2 {
    font-size: 26px;
}

.scenario-rich-content h3 {
    font-size: 20px;
}

.scenario-rich-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 16px;
}

.scenario-rich-content ul,
.scenario-rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.scenario-rich-content ul li {
    list-style-type: none;
    margin-bottom: 0.5rem;
}

.scenario-rich-content strong {
    color: #111827;
    font-weight: 600;
}

.scenario-detail-hero .breadcrumb {
    margin-bottom: 8px;
}

.lp-footer .lp-footer__logo {
    max-height: 50px;
    object-fit: contain;
}

.lp-footer .lp-footer__link {
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 767px) {
    .scenario-rich-content h2 {
        font-size: 16px;
    }

    .scenario-rich-content h3 {
        font-size: 14px;
    }

    .scenario-rich-content p {
        font-size: 14px;
    }

    .lp-footer .lp-footer__brand,
    .lp-footer .lp-footer__nav,
    .lp-footer .lp-footer__legal,
    .lp-footer .lp-footer__contact {
        text-align: left;
        border-bottom: 1px solid #374151;
        padding-bottom: 24px;
    }

    .lp-footer .lp-footer__contact {
        border-bottom: none;
    }
}

.js-comments-list .reply-container ml-8 md:ml-16 relative before:content-[''] before:absolute before:left-[-24px] before:top-[-24px] before:bottom-6 before:w-[2px] before:bg-[#E5E7EB] {}

/* ===== PAGE TEMPLATE: guides-instructions ===== */
.livingpattern-header .js-dropdown-menu.is-active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.livingpattern-header .js-mobile-menu.is-visible {
    display: flex !important;
}

.guide-rich-text h2 {
    color: #111827;
    margin-bottom: 24px;
}

.guide-rich-text h3 {
    color: #111827;
    margin-top: 32px;
    margin-bottom: 16px;
}

.guide-rich-text p {
    margin-bottom: 20px;
    line-height: 1.75;
}

.lp-footer .lp-footer__logo {
    max-height: 50px;
    object-fit: contain;
}

.lp-footer .lp-footer__link {
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 767px) {

    .lp-footer .lp-footer__brand,
    .lp-footer .lp-footer__nav,
    .lp-footer .lp-footer__legal,
    .lp-footer .lp-footer__contact {
        text-align: left;
        border-bottom: 1px solid #374151;
        padding-bottom: 24px;
    }

    .lp-footer .lp-footer__contact {
        border-bottom: none;
    }
}