:root {
    --color-primary: #d35400;
    --color-secondary: #e67e22;
    --color-accent: #c0392b;
    --color-bg: #fef5e7;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #f0d2b4;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 28px;
    --space-xl: 48px;
    --font-head: "Montserrat", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --header-h: 84px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-h);
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(230, 126, 34, 0.28), transparent 60%),
        radial-gradient(900px 420px at 110% 8%, rgba(192, 57, 43, 0.18), transparent 55%),
        var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
}

h1, h2, h3, p, ul, ol, figure {
    margin: 0;
}

ul, ol {
    padding-left: 1.2rem;
}

.plm-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.plm-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.plm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.plm-center {
    text-align: center;
    align-items: center;
}

.plm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.plm-mag {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: var(--space-lg);
    align-items: start;
}

.plm-mag--feat {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.plm-kicker {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.plm-h1,
.plm-h2,
.plm-h3,
.plm-app__name {
    font-family: var(--font-head);
    line-height: 1.2;
    color: #3a220f;
}

.plm-h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    max-width: 18ch;
}

.plm-center .plm-h1 {
    max-width: 20ch;
}

.plm-h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.plm-h3 {
    font-size: 1.15rem;
}

.plm-lead {
    max-width: 62ch;
    color: var(--color-text);
}

.plm-prose {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 74ch;
}

.plm-prose h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    margin-top: 0.6rem;
}

.plm-fine {
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.plm-textlink {
    font-family: var(--font-head);
    font-weight: 700;
    text-underline-offset: 3px;
}

.plm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-h);
    background: rgba(254, 245, 231, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plm-header__bar {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plm-header__logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.plm-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}

.plm-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-left: auto;
    min-width: 0;
}

.plm-nav a {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a220f;
    text-decoration: none;
    padding: 8px 7px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 8px;
}

.plm-nav a.is-active,
.plm-nav a:hover {
    color: var(--color-primary);
    background: rgba(211, 84, 0, 0.1);
}

.plm-nav__x {
    display: none;
}

.plm-burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.plm-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #3a220f;
    border-radius: 2px;
}

.plm-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 180;
    display: none;
}

.plm-nav-overlay.is-open {
    display: block;
}

.plm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: #3a2414;
    background: linear-gradient(180deg, #ffe7cf, #ffd0a6);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 0 #c47a45;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.plm-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 4px 0 #c47a45;
}

.plm-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #c47a45;
}

.plm-btn--primary {
    color: #fffaf5;
    background: linear-gradient(180deg, #ef8b34, #d35400);
    box-shadow: 0 5px 0 #8a3208;
}

.plm-btn--primary:hover {
    box-shadow: 0 4px 0 #8a3208;
}

.plm-btn--primary:active {
    box-shadow: 0 1px 0 #8a3208;
}

.plm-hero {
    padding: 36px 0 28px;
    background: linear-gradient(165deg, rgba(255, 214, 170, 0.2), rgba(254, 245, 231, 0) 70%);
}

.plm-band {
    padding: var(--space-xl) 0;
}

.plm-band--alt {
    background: linear-gradient(180deg, rgba(230, 126, 34, 0.08), rgba(192, 57, 43, 0.05));
}

.plm-cta {
    padding: 56px 0 72px;
    background: linear-gradient(160deg, #e67e22, #d35400 55%, #c0392b);
    color: #fff8f2;
}

.plm-cta .plm-h2,
.plm-cta p {
    color: #fff8f2;
}

.plm-card {
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(255, 244, 232, 0.96));
    border-radius: 0;
    padding: 20px;
    animation: plm-glow 3.8s ease-in-out infinite;
}

.plm-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plm-shot {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.plm-shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #fff6ea;
    display: block;
}

.plm-shot figcaption {
    flex: 0 0 auto;
    padding: 8px 10px 10px;
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.plm-shot--hero {
    margin-top: 8px;
}

.plm-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
}

.plm-mosaic .plm-shot:first-child {
    grid-row: span 2;
}

.plm-app__badges {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.plm-app__head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 12px 0;
}

.plm-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.plm-app__dev,
.plm-app__note,
.plm-app__checked {
    color: var(--color-text-light);
}

.plm-app__facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.plm-app__checked {
    font-weight: 700;
    color: #3a220f;
    margin-bottom: 14px;
}

.plm-page {
    padding: 36px 0 72px;
}

.plm-note__band {
    height: 72px;
    margin: -20px -20px 16px;
    background: linear-gradient(120deg, #d35400, #e67e22);
}

.plm-note__band--b {
    background: linear-gradient(120deg, #c0392b, #e67e22);
}

.plm-note__band--c {
    background: linear-gradient(120deg, #a84312, #d35400);
}

.plm-note h2 {
    margin-bottom: 8px;
}

.plm-note h2 a {
    color: #3a220f;
    text-decoration: none;
}

.plm-note h2 a:hover {
    color: var(--color-primary);
}

.plm-crumbs {
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.plm-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plm-faq summary {
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    min-height: 40px;
}

.plm-faq details p {
    margin-top: 10px;
}

.plm-versions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plm-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
}

.plm-field input,
.plm-field textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: #fff;
    color: var(--color-text);
}

.plm-form__err {
    color: var(--color-accent);
    font-weight: 700;
}

.plm-footer {
    background: linear-gradient(180deg, #3a220f, #2a180b);
    color: #f8e6d4;
    padding: 36px 0 48px;
}

.plm-footer a {
    color: #ffd7b0;
}

.plm-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
}

.plm-footer__links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plm-footer .plm-kicker {
    color: #ffb27a;
}

.plm-footer .plm-fine {
    color: #f0d2b4;
    margin-top: 12px;
}

.plm-cookie[hidden] {
    display: none;
}

.plm-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff8f1;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(58, 34, 15, 0.18);
}

.plm-cookie p {
    margin: 0;
    font-size: 0.95rem;
}

.plm-in {
    animation: plm-scale-in 0.35s ease both;
}

@keyframes plm-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes plm-glow {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.28);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.55), 0 0 16px rgba(192, 57, 43, 0.22);
    }
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .plm-header {
    z-index: 200;
}

@media (max-width: 1100px) {
    .plm-header__logo img {
        width: 150px;
    }

    .plm-nav a {
        font-size: 0.72rem;
        padding: 8px 5px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 72px;
    }

    .plm-header__logo img {
        width: 100px;
    }

    .plm-burger {
        display: flex;
    }

    .plm-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 360px;
        margin-left: 0;
        background: var(--color-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 190;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 16px 12px 32px;
        gap: 4px;
    }

    .plm-nav.is-open {
        transform: translateX(0);
    }

    .plm-nav a {
        display: flex;
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
        white-space: normal;
    }

    .plm-nav__x {
        display: inline-flex;
        align-self: flex-end;
        min-width: 44px;
        min-height: 44px;
        margin-bottom: 8px;
        padding: 10px 14px;
        border: 0;
        background: transparent;
        font-family: var(--font-head);
        font-weight: 700;
        cursor: pointer;
    }

    .plm-mag,
    .plm-mag--feat,
    .plm-mosaic,
    .plm-footer__cols {
        grid-template-columns: 1fr;
    }

    .plm-mosaic .plm-shot:first-child {
        grid-row: auto;
    }

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

    .plm-cookie {
        flex-direction: column;
        align-items: stretch;
    }

    .plm-app__head {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .plm-wrap {
        width: min(1120px, calc(100% - 28px));
    }

    .plm-grid {
        grid-template-columns: 1fr;
    }

    .plm-app__icon {
        width: 72px;
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plm-in,
    .plm-card {
        animation: none;
    }
}
