/* ============================================================================
   Цветомания — страница /principles/
   Manifesto-стиль в брендинге tsvetomania.ru
   Tilda Sans · #A11826 (primary) · #F13A5F (accent) · max-width 1700px
   Namespace .pr-* — изолирован от всего остального сайта.
============================================================================ */

/* ---------------------------- VARIABLES & RESET ---------------------------- */
.principles-page {
    --pr-primary: #A11826;
    --pr-primary-dark: #7d101b;
    --pr-primary-soft: #fbecee;
    --pr-accent: #F13A5F;
    --pr-text: #1a1a1a;
    --pr-text-muted: #5a5a5a;
    --pr-text-light: #8a8a8a;
    --pr-border: #ececec;
    --pr-border-soft: #f4f4f4;
    --pr-bg: #ffffff;
    --pr-bg-soft: #fafaf8;

    --pr-radius: 8px;
    --pr-radius-lg: 16px;
    --pr-radius-xl: 28px;

    --pr-shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
    --pr-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
    --pr-shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.08);
    --pr-shadow-accent: 0 8px 28px rgba(161, 24, 38, 0.18);

    --pr-ease: cubic-bezier(0.22, 1, 0.36, 1);

    font-family: 'Tilda Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--pr-text);
    font-size: 16px;
    line-height: 1.5;
    background: var(--pr-bg);
    overflow-x: hidden;
}

.principles-page *,
.principles-page *::before,
.principles-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.principles-page ul,
.principles-page ol {
    list-style: none;
}

.principles-page a {
    color: var(--pr-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--pr-ease), color 0.2s var(--pr-ease);
}

.principles-page a:hover {
    border-bottom-color: currentColor;
}

.principles-page strong,
.principles-page b {
    font-weight: 600;
    color: var(--pr-text);
}

.pr-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 150px;
    width: 100%;
}

/* ------------------------------- EYEBROW --------------------------------- */
.pr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pr-primary);
    margin-bottom: 24px;
}

.pr-eyebrow__dash {
    width: 24px;
    height: 1px;
    background: var(--pr-primary);
    flex-shrink: 0;
}

/* --------------------------------- BUTTONS -------------------------------- */
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--pr-ease), background 0.2s var(--pr-ease),
                color 0.2s var(--pr-ease), border-color 0.2s var(--pr-ease),
                box-shadow 0.2s var(--pr-ease);
    white-space: nowrap;
    text-align: center;
}

.pr-btn:hover {
    border-bottom-color: transparent;
    transform: translateY(-1px);
}

.pr-btn--lg {
    padding: 20px 36px;
    font-size: 16px;
}

/* Specificity — перебить .principles-page a { color: primary } */
.principles-page .pr-cta .pr-btn--primary {
    background: #fff;
    color: var(--pr-primary);
}

.principles-page .pr-cta .pr-btn--primary:hover {
    background: var(--pr-bg-soft);
    color: var(--pr-primary-dark);
}

.principles-page .pr-cta .pr-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.principles-page .pr-cta .pr-btn--outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------- HERO ---------------------------------- */
.pr-hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pr-hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(161, 24, 38, 0.045), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.pr-hero .pr-container {
    position: relative;
    z-index: 1;
}

.pr-hero .pr-eyebrow {
    margin-bottom: 28px;
}

.pr-hero__title {
    font-family: inherit;
    font-size: clamp(48px, 7vw, 120px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--pr-text);
    margin-bottom: 36px;
}

.pr-hero__title-accent {
    color: var(--pr-primary);
    font-style: italic;
    font-weight: 500;
}

.pr-hero__lede {
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.6;
    color: var(--pr-text-muted);
    max-width: 820px;
    margin: 0 auto;
}

/* ---------------------------- MISSION QUOTE ------------------------------- */
.pr-mission {
    padding: 60px 0 100px;
}

.pr-mission__box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 80px;
    background: linear-gradient(135deg, var(--pr-primary-soft) 0%, #fff 100%);
    border: 1px solid var(--pr-border-soft);
    border-radius: var(--pr-radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pr-mission__box::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(161, 24, 38, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pr-mission__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pr-primary);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.pr-mission__quote {
    font-family: inherit;
    font-size: clamp(24px, 2.4vw, 42px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--pr-text);
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}

.pr-mission__mark {
    font-family: 'Tilda Sans', Georgia, serif;
    font-size: 1.6em;
    font-style: italic;
    color: var(--pr-primary);
    font-weight: 500;
    line-height: 0.6;
    display: inline-block;
    vertical-align: -0.12em;
    margin-right: 0.08em;
}

.pr-mission__footnote {
    margin-top: 32px;
    font-size: 15px;
    color: var(--pr-text-muted);
    position: relative;
    z-index: 1;
}

/* ------------------------------ SECTION HEAD ------------------------------ */
.pr-section-head {
    text-align: center;
    margin-bottom: 72px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pr-section-head .pr-eyebrow {
    justify-content: center;
}

.pr-section-head__title {
    font-family: inherit;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--pr-text);
}

/* ------------------------------- LIST GRID -------------------------------- */
.pr-list {
    padding: 40px 0 120px;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pr-card {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-xl);
    position: relative;
    transition: transform 0.35s var(--pr-ease), border-color 0.35s var(--pr-ease),
                box-shadow 0.35s var(--pr-ease);
    overflow: hidden;
}

.pr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pr-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--pr-ease);
}

.pr-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--pr-shadow-lg);
}

.pr-card:hover::before {
    transform: scaleX(1);
}

.pr-card__num {
    display: block;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--pr-primary);
    margin-bottom: 24px;
}

.pr-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--pr-primary-soft);
    border-radius: 18px;
    margin-bottom: 24px;
    transition: background 0.35s var(--pr-ease);
}

.pr-card:hover .pr-card__icon {
    background: var(--pr-primary);
}

.pr-card:hover .pr-card__icon svg path,
.pr-card:hover .pr-card__icon svg circle,
.pr-card:hover .pr-card__icon svg rect {
    stroke: #fff;
}

.pr-card:hover .pr-card__icon svg circle[fill="#A11826"] {
    fill: #fff;
    stroke: none;
}

.pr-card__icon svg path,
.pr-card__icon svg circle,
.pr-card__icon svg rect {
    transition: stroke 0.35s var(--pr-ease);
}

.pr-card__title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pr-text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.pr-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--pr-text-muted);
}

/* ----------------------------------- CTA ---------------------------------- */
.pr-cta {
    padding: 40px 0 120px;
}

.pr-cta__box {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px;
    background: linear-gradient(135deg, var(--pr-primary) 0%, #7d101b 100%);
    color: #fff;
    border-radius: var(--pr-radius-xl);
    position: relative;
    overflow: hidden;
}

.pr-cta__box::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.pr-cta__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.pr-cta__title {
    font-family: inherit;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 20px;
}

.pr-cta__lede {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
}

.pr-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ------------------------- SCROLL REVEAL ANIMATION ------------------------ */
.pr-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--pr-ease), transform 0.7s var(--pr-ease);
}

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

@media (prefers-reduced-motion: reduce) {
    .principles-page *,
    .principles-page *::before,
    .principles-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .pr-reveal { opacity: 1; transform: none; }
}

/* =============================== RESPONSIVE =============================== */

/* ≤ 1440px */
@media (max-width: 1440px) {
    .pr-container {
        padding: 0 80px;
    }
    .pr-mission__box {
        padding: 64px 56px;
    }
    .pr-cta__box {
        padding: 64px;
    }
}

/* ≤ 1200px */
@media (max-width: 1200px) {
    .pr-container {
        padding: 0 40px;
    }

    .pr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pr-cta__box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 56px;
    }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .pr-container {
        padding: 0 20px;
    }

    .pr-hero {
        padding: 48px 0 40px;
    }

    .pr-hero__title {
        margin-bottom: 24px;
    }

    .pr-mission {
        padding: 40px 0 64px;
    }

    .pr-mission__box {
        padding: 44px 28px;
        border-radius: var(--pr-radius-lg);
    }

    .pr-section-head {
        margin-bottom: 48px;
    }

    .pr-list {
        padding: 24px 0 64px;
    }

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

    .pr-card {
        padding: 32px 26px;
        border-radius: var(--pr-radius-lg);
    }

    .pr-card__title {
        font-size: 20px;
    }

    .pr-cta {
        padding: 24px 0 64px;
    }

    .pr-cta__box {
        padding: 40px 24px;
        border-radius: var(--pr-radius-lg);
    }

    .pr-cta__actions .pr-btn {
        width: 100%;
    }

    .pr-btn--lg {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* ≤ 480px */
@media (max-width: 480px) {
    .pr-container {
        padding: 0 12px;
    }
}
