:root {
    --page-bg: #ffffff;
    --text: #222222;
    --muted: #6f6f6f;
    --border: #ebebeb;
    --panel: #f5f5f5;
    --panel-strong: #efefef;
    --blue: #4f76d2;
    --black: #171717;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito', Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.desktop-nav,
.desktop-tools {
    display: none;
}

.brand img {
    width: 179px;
    height: 53px;
    object-fit: contain;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}


.icon-button span {
    width: 26px;
    height: 2px;
    background: #333333;
    border-radius: 999px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    background: var(--black);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-cta--inline {
    width: fit-content;
}

.hero-copy {
    padding-top: 18px;
}

.hero-copy h1,
.page-intro h1,
.detail-page h1 {
    margin: 0;
    color: #222222;
    font-size: clamp(15px, 3vw, 18px);
    font-weight: 600;
    line-height: 1.3;
}

.promo-grid,
.section-block,
.page-intro,
.detail-page {
    padding-bottom: 26px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 18px;
}

.promo-card {
    display: grid;
    gap: 18px;
    padding: 22px 30px 28px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
    min-height: 470px;
    --icon-shift-x: 0px;
    --icon-shift-y: 0px;
    --icon-scale: 1.16;
}

.promo-card__copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.promo-card__copy p,
.section-heading p,
.page-intro p,
.article-card__tag,
.detail-hero span {
    margin: 0;
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
}

.promo-card__copy h2,
.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4.1vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.05em;
    color: #1f1f1f;
}

.promo-card__copy h3,
.page-intro__lead,
.detail-page__lead,
.section-heading__lead {
    margin: 0;
    color: #2c2c2c;
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 500;
    line-height: 1.45;
}

.promo-card__button {
    margin-top: 12px;
    display: inline-flex;
    width: fit-content;
    min-height: 46px;
    padding: 0 24px;
    align-items: center;
    border-radius: 10px;
    background: var(--black);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-card__art {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

.promo-card__art img {
    width: min(60vw, 300px);
    opacity: 0.98;
    transform: translate(var(--icon-shift-x), var(--icon-shift-y)) scale(var(--icon-scale));
    transform-origin: center;
    transition: transform 180ms ease;
    will-change: transform;
}

.promo-card:hover {
    --icon-scale: 1.28;
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading--centered {
    justify-items: center;
    text-align: center;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 34px;
}

.section-heading--centered .section-heading__lead {
    max-width: 1380px;
}

.category-grid,
.resource-grid,
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.category-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.category-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px;
}

.category-slider__track::-webkit-scrollbar {
    display: none;
}

.category-slide {
    min-width: 0;
    scroll-snap-align: start;
}

.category-slider__arrow {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #8b8b8b;
    font-size: 58px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
}

.category-slider__arrow:hover {
    color: #1f1f1f;
}

.article-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.article-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px;
}

.article-slider__track::-webkit-scrollbar {
    display: none;
}

.article-slide {
    min-width: 0;
    scroll-snap-align: start;
}

.article-slider__arrow {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #8b8b8b;
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
}

.article-slider__arrow:hover {
    color: #1f1f1f;
}

.category-card,
.resource-card,
.article-card,
.detail-hero,
.form-shell,
.footer-box {
    background: var(--panel);
    border-radius: var(--radius-md);
}

.category-card {
    overflow: hidden;
    min-height: 100%;
}

.category-card__thumb {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.category-card__thumb,
.resource-card__media,
.article-card__media,
.detail-hero {
    min-height: 180px;
    background: linear-gradient(135deg, #282828, #5f5f5f 55%, #dadada);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-card__thumb::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    opacity: 0.9;
}

.category-card__emoji {
    position: relative;
    z-index: 1;
    font-size: clamp(54px, 7vw, 86px);
    line-height: 1;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.14));
}

.category-card--copper .category-card__thumb,
.resource-card--copper .resource-card__media,
.article-card--copper .article-card__media,
.detail-hero--copper {
    background: linear-gradient(135deg, #35251a, #9d5c32, #f5d9c2);
}

.category-card--forest .category-card__thumb,
.resource-card--forest .resource-card__media,
.article-card--forest .article-card__media,
.detail-hero--forest {
    background: linear-gradient(135deg, #12251f, #2d7f5c, #d0f1e3);
}

.category-card--berry .category-card__thumb,
.resource-card--berry .resource-card__media,
.article-card--berry .article-card__media,
.detail-hero--berry {
    background: linear-gradient(135deg, #2c1725, #8f2e68, #f6d6ea);
}

.category-card--sky .category-card__thumb,
.resource-card--sky .resource-card__media,
.article-card--sky .article-card__media,
.detail-hero--sky {
    background: linear-gradient(135deg, #18223f, #3d63b8, #d8e5ff);
}

.category-card--violet .category-card__thumb {
    background: linear-gradient(135deg, #2b2336, #6650a5, #ddd8f2);
}

.category-card--olive .category-card__thumb,
.resource-card--olive .resource-card__media,
.article-card--olive .article-card__media,
.detail-hero--olive {
    background: linear-gradient(135deg, #23271d, #758148, #ecf0d9);
}

.category-card--sand .category-card__thumb,
.resource-card--sand .resource-card__media,
.article-card--sand .article-card__media,
.detail-hero--sand {
    background: linear-gradient(135deg, #312822, #b49271, #f5e8d8);
}

.category-card--ruby .category-card__thumb,
.resource-card--ruby .resource-card__media,
.article-card--ruby .article-card__media,
.detail-hero--ruby {
    background: linear-gradient(135deg, #2a171a, #8a2f39, #f7d2d7);
}

.category-card--teal .category-card__thumb,
.resource-card--teal .resource-card__media,
.article-card--teal .article-card__media,
.detail-hero--teal {
    background: linear-gradient(135deg, #112326, #2f8c8c, #d6f2ef);
}

.category-card__meta,
.resource-card,
.article-card__body,
.detail-copy,
.demo-form {
    padding: 18px;
}

.category-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.category-card__meta h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #1f1f1f;
}

.resource-card h3,
.article-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.category-card__meta span,
.resource-card p,
.article-card ul,
.article-card p,
.detail-copy p,
.account-note {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.resource-card {
    overflow: hidden;
    padding: 0;
}

.resource-card__media,
.article-card__media,
.detail-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.resource-card__media::before,
.article-card__media::before,
.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

.resource-card__media > *,
.article-card__media > *,
.detail-hero > * {
    position: relative;
    z-index: 1;
}

.resource-card__media span,
.resource-card__media strong,
.article-card__media span,
.article-card__media strong,
.detail-hero strong {
    font-weight: 800;
}

.resource-card h3,
.resource-card p {
    padding-left: 18px;
    padding-right: 18px;
}

.resource-card h3 {
    padding-top: 18px;
}

.resource-card p {
    margin: 10px 0 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tabbar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tabbar button {
    border: 1px solid var(--border);
    background: #ffffff;
    color: #202020;
    border-radius: 999px;
    min-height: 40px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 700;
}

.tabbar button.is-active {
    background: var(--black);
    border-color: var(--black);
    color: #ffffff;
}

.article-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.article-card__media {
    min-height: 194px;
}

.article-card__media span,
.article-card__media strong {
    width: fit-content;
    background: #ffffff;
    color: #2b2b2b;
    padding: 6px 12px;
    border-radius: 8px;
}

.article-card__media span {
    font-size: 22px;
    line-height: 1;
}

.article-card__media strong {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.article-card ul {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 14px 0 10px;
}

.article-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-card__author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.article-card__tag {
    display: inline-flex;
    align-self: center;
    margin: -30px auto 18px;
    min-height: 28px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #171717;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.article-card__tag--standalone {
    margin-top: 16px;
}

.article-card__body {
    display: grid;
    gap: 12px;
    text-align: center;
    background: #ffffff;
}

.article-card__body h3 {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 500;
}

.article-card__body ul {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: #5f5f5f;
}

.article-card__body p {
    display: none;
}

.page-intro,
.detail-page {
    padding-top: 28px;
}

.category-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 42px;
    background: #232323;
    color: #ffffff;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px),
        radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px),
        radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px),
        linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.1) 48% 52%, transparent 52% 100%);
    background-size: 180px 140px, 220px 180px, 200px 160px, 180px 180px;
}

.category-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.category-hero__emoji {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
}

.category-hero__inner h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.category-layout {
    display: grid;
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 36px;
}

.category-layout__sidebar {
    display: grid;
    gap: 10px;
    align-content: start;
}

.category-select-label {
    color: #8a8a8a;
    font-size: 13px;
}

.category-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    background: #ffffff;
}

.category-layout__content {
    display: grid;
    gap: 18px;
}

.category-layout__lead {
    margin: 0;
    color: #7b7b7b;
    font-size: 15px;
    line-height: 1.55;
}

.category-layout__title {
    margin: 0;
    color: #222222;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.category-toolbar {
    display: grid;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.category-toolbar__breadcrumbs,
.category-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #7b7b7b;
    font-size: 14px;
}

.category-toolbar__breadcrumbs strong,
.category-toolbar__count {
    color: #232323;
}

.category-layout .resource-card--category-detail {
    background: #f3f3f3;
}

.category-layout .resource-card--category-detail h3 a {
    color: #222222;
}

.category-layout .resource-card--category-detail p,
.category-layout .catalog-search-note {
    color: #5e5e5e;
}

.category-toolbar__divider {
    color: #bbbbbb;
}

.resource-grid--category-detail {
    grid-template-columns: 1fr;
    gap: 22px;
}

.resource-card--category-detail .resource-card__media {
    min-height: 220px;
}

.resource-card--category-detail h3 {
    font-size: 18px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.resource-card--category-detail p {
    color: #7b7b7b;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6px;
}

.catalog-pagination__page,
.catalog-pagination__arrow,
.catalog-pagination__ellipsis {
    min-width: 30px;
    min-height: 30px;
    padding: 0 6px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #222222;
    font-weight: 700;
}

.catalog-pagination__page,
.catalog-pagination__arrow {
    text-decoration: none;
}

.catalog-pagination__page.is-active {
    background: #171717;
    color: #ffffff;
    min-width: 42px;
    min-height: 42px;
}

.catalog-pagination__ellipsis {
    min-width: 22px;
}

.page-intro__lead,
.detail-page__lead {
    margin-top: 14px;
}

.detail-copy {
    padding: 22px 0 0;
    background: transparent;
}

.detail-shelf {
    padding-top: 28px;
    padding-bottom: 22px;
}

.detail-shelf .section-heading h2 {
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.detail-shelf__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.detail-shelf__track::-webkit-scrollbar {
    display: none;
}

.detail-shelf__card {
    min-width: 0;
    text-align: center;
    scroll-snap-align: start;
}

.detail-shelf__media {
    min-height: 210px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

.detail-shelf__media span {
    position: absolute;
    top: 10px;
    left: 10px;
    min-height: 32px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-shelf__media::after,
.similar-shelf__media::after {
    content: 'ПЕРЕЙТИ';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 23, 23, 0.86);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.detail-shelf__card:hover .detail-shelf__media::after,
.similar-shelf__card:hover .similar-shelf__media::after {
    opacity: 1;
    transform: translateY(0);
}

.detail-shelf__card h3,
.detail-shelf__card p {
    margin: 0;
}

.detail-shelf__card h3 {
    font-size: 18px;
    line-height: 1.3;
    color: #202020;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.detail-shelf__card p {
    margin-top: 8px;
    color: #7a7a7a;
}

.detail-page--resource {
    padding-top: 6px;
    padding-bottom: 36px;
}

.detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #777777;
    font-size: 15px;
}

.detail-breadcrumbs strong {
    color: #202020;
    font-weight: 700;
}

.resource-layout {
    display: grid;
    gap: 28px;
}

.resource-layout__side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.resource-layout__media {
    min-height: 420px;
}

.resource-layout__media strong a {
    color: inherit;
    text-decoration: none;
}

.resource-layout__media strong a:hover {
    text-decoration: underline;
}

.resource-layout__body {
    display: grid;
    align-content: start;
    gap: 18px;
}

.resource-layout__body h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    color: #1e1e1e;
}

.resource-layout__cta {
    width: 100%;
    min-height: 48px;
    border-radius: 6px;
}

.resource-service-config {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
}

.resource-service-config__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.resource-service-config__tab {
    min-height: 40px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.resource-service-config__tab.is-active {
    border-color: #171717;
    background: #171717;
    color: #ffffff;
}

.resource-service-config__panel {
    display: grid;
    gap: 10px;
}

.resource-service-config__panel[hidden] {
    display: none;
}

.resource-service-config__desc {
    margin: 0;
    color: #595959;
    font-size: 14px;
    line-height: 1.45;
}

.resource-service-config__meta {
    margin: 0;
    color: #3d3d3d;
    font-size: 14px;
}

.resource-service-config__meta strong {
    color: #1a1a1a;
}

.resource-service-config__panel label {
    display: grid;
    gap: 6px;
}

.resource-service-config__panel label span {
    color: #565656;
    font-size: 13px;
    font-weight: 700;
}

.resource-service-config__panel input,
.resource-service-config__panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #ffffff;
}

.resource-service-config__price {
    margin: 2px 0 0;
    color: #373737;
    font-size: 14px;
}

.resource-service-config__notice {
    margin: 0;
    color: #1f6f43;
    font-size: 13px;
    font-weight: 700;
}

.resource-service-config__notice.is-error {
    color: #9f2e2e;
}

.resource-service-config__price strong {
    color: #151515;
    font-size: 18px;
}

.resource-service-config__pay {
    width: 100%;
}

.resource-service-config__applied {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px dashed #d6d6d6;
    border-radius: 10px;
    background: #ffffff;
}

.resource-service-config__applied h3 {
    margin: 0;
    font-size: 14px;
    color: #222222;
}

.resource-service-config__applied-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-service-config__applied-item {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #171717;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.resource-placement {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
}

.resource-placement[hidden] {
    display: none;
}

.resource-placement h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #1f1f1f;
}

.resource-placement p {
    margin: 0;
    color: #676767;
    font-size: 14px;
}

.resource-placement__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-placement__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #171717;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}

.resource-placement__item::after {
    content: attr(data-expiry);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    background: #202020;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.resource-placement__item:hover::after {
    opacity: 1;
    visibility: visible;
}

.resource-category-link {
    color: #222222;
    text-decoration: none;
}

.resource-category-link:hover {
    color: #4f76d2;
}

.resource-layout__share {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid #ececec;
    color: #555555;
}

.resource-layout__share span {
    margin-right: auto;
    color: #444444;
}

.resource-layout__share a {
    font-size: 18px;
    color: #555555;
}

.resource-info {
    display: grid;
    gap: 18px;
}

.resource-info h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.1;
    color: #1f1f1f;
}

.resource-info__grid {
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid #ececec;
}

.resource-info__grid div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 12px 0;
}

.resource-info__grid dt {
    color: #777777;
}

.resource-info__grid dd {
    margin: 0;
    color: #222222;
    font-weight: 600;
}

.detail-copy--resource {
    padding-top: 0;
}

.similar-shelf {
    padding-top: 10px;
    padding-bottom: 44px;
}

.similar-shelf .section-heading h2 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.similar-shelf__track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.similar-shelf__card {
    display: grid;
    gap: 12px;
}

.similar-shelf__media {
    min-height: 220px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.similar-shelf__media span {
    position: absolute;
    top: 10px;
    left: 10px;
    min-height: 30px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.similar-shelf__card h3,
.similar-shelf__card p {
    margin: 0;
}

.similar-shelf__card h3 {
    font-size: 24px;
    line-height: 1.2;
    color: #1f1f1f;
}

.similar-shelf__card p {
    color: #6f6f6f;
}

.form-shell {
    padding: 12px;
}

.demo-form {
    display: grid;
    gap: 14px;
    background: #ffffff;
    border-radius: var(--radius-sm);
}

.demo-form label {
    display: grid;
    gap: 8px;
}

.demo-form span {
    font-weight: 700;
}

.demo-form input,
.demo-form select,
.demo-form textarea,
.drawer-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 48px;
    padding: 12px 14px;
    background: #fbfbfb;
}

.demo-form input[type="file"] {
    padding: 10px 12px;
    background: #ffffff;
    border-style: dashed;
}

.drawer-search {
    display: grid;
    gap: 10px;
}

.drawer-search__results {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.drawer-search button,
.drawer-close {
    border: 0;
    cursor: pointer;
}

.drawer-search button {
    min-height: 46px;
    border-radius: 12px;
    background: var(--black);
    color: #ffffff;
    font-weight: 800;
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 16, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}
.search-sheet {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: rgba(16, 16, 16, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 35;
}
.search-sheet.is-open {
    opacity: 1;
    visibility: visible;
}
.search-sheet__panel {
    width: min(100%, 100vw);
    min-height: 320px;
    max-height: min(76vh, 720px);
    overflow-y: auto;
    padding: 20px 20px 28px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.12);
}
.search-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.search-sheet__head strong {
    font-size: 22px;
    color: #1f1f1f;
}
.search-sheet__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--panel);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}
.search-sheet__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 16px;
}
.search-sheet__form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fafafa;
}
.search-sheet__form button {
    min-width: 120px;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: #171717;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
}
.search-sheet__results {
    display: grid;
    gap: 10px;
}
.search-sheet__hint {
    margin: 0;
    color: #6f6f6f;
    font-size: 15px;
}
.search-sheet__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #ededed;
    border-radius: 16px;
    background: #fbfbfb;
}
.search-sheet__item-kind {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.search-sheet__item strong {
    color: #202020;
    font-size: 17px;
    line-height: 1.3;
}
.search-sheet__item small {
    color: #6d6d6d;
    font-size: 14px;
}
.catalog-search-note {
    margin: 0 0 18px;
    color: #666666;
    font-size: 15px;
}
.catalog-empty {
    display: grid;
    gap: 10px;
    padding: 26px;
    border-radius: var(--radius-md);
    background: #fafafa;
}
.catalog-empty h2,
.catalog-empty p {
    margin: 0;
}

.mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer__panel {
    width: min(92vw, 420px);
    height: 100%;
    overflow-y: auto;
    padding: 22px 18px 110px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--panel);
    font-size: 24px;
}

.drawer-nav,
.drawer-categories {
    display: grid;
    gap: 10px;
}

.drawer-categories {
    margin-top: 14px;
}

.drawer-nav {
    margin: 16px 0;
}

.drawer-categories a,
.drawer-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--panel);
    font-weight: 700;
}

.not-found {
    min-height: calc(100vh - 245px);
    display: grid;
    align-items: center;
    gap: 42px;
    padding-top: 44px;
    padding-bottom: 64px;
}

.not-found__copy {
    display: grid;
    justify-items: start;
    gap: 16px;
    max-width: 620px;
}

.not-found__eyebrow {
    margin: 0;
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
}

.not-found h1 {
    margin: 0;
    color: #1f1f1f;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: 0;
}

.not-found__lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.not-found__catalog-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    border-bottom: 2px solid #202020;
    color: #202020;
    font-size: 15px;
    font-weight: 800;
}

.not-found__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #202020;
    font-size: 92px;
    font-weight: 800;
    line-height: 1;
}

.not-found__mark {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    transform: rotate(-7deg);
}

.not-found__mark img {
    width: 54px;
    height: 54px;
    filter: invert(1);
}

.site-footer {
    padding: 18px 0 90px;
}

.footer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: nowrap;
    padding: 18px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.footer-brand img {
    width: 125px;
    height: 37px;
    object-fit: contain;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.footer-links a {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-weight: 700;
}

.footer-box p {
    margin: 0;
    color: var(--muted);
    margin-left: auto;
    white-space: nowrap;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px 8px 14px;
    color: #262626;
    font-size: 14px;
}

.bottom-nav__icon {
    font-size: 28px;
    line-height: 1;
}

[data-tab-item].is-hidden {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

@media (min-width: 700px) {
    .not-found {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 56px;
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .not-found h1 {
        font-size: 76px;
    }

    .not-found__visual {
        gap: 18px;
        font-size: 132px;
    }

    .not-found__mark {
        width: 108px;
        height: 108px;
    }

    .not-found__mark img {
        width: 70px;
        height: 70px;
    }

    .detail-shelf__track {
        grid-auto-columns: calc((100% - 44px) / 3);
    }

    .brand img {
        width: 179px;
        height: 53px;
    }

    .hero-copy h1,
    .page-intro h1,
    .detail-page h1 {
        font-size: 22px;
    }

    .promo-card {
        grid-template-columns: minmax(0, 1.6fr) 260px;
        align-items: start;
        min-height: 280px;
    }

    .promo-card__copy {
        align-content: start;
    }

    .promo-card__art {
        margin-top: 0;
        align-self: center;
        justify-content: center;
        padding-left: 0;
        transform: translate(0, -4px);
    }

    .promo-card__copy h2 {
        font-size: clamp(25px, 2.5vw, 34px);
    }

    .promo-card__copy h3 {
        font-size: clamp(14px, 1.2vw, 17px);
        max-width: 46ch;
    }

    .promo-card__art img {
        width: 205px;
        max-width: 100%;
    }

    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-grid--category-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-slider__track {
        grid-auto-columns: calc((100% - 36px) / 3);
    }

    .article-slider__track {
        grid-auto-columns: calc((100% - 22px) / 2);
    }

    .similar-shelf__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .detail-shelf__track {
        grid-auto-columns: calc((100% - 88px) / 5);
    }

    .resource-layout {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
        align-items: start;
        gap: 42px;
    }

    .resource-layout__body {
        max-width: 780px;
    }

    .category-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: start;
        gap: 34px;
    }

    .category-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .resource-grid--category-detail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .resource-card--category-detail .resource-card__media {
        min-height: 170px;
    }

    .resource-layout__media {
        min-height: 360px;
    }

    .similar-shelf__track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .similar-shelf__media {
        min-height: 170px;
    }

    .similar-shelf__card h3 {
        font-size: 20px;
    }

    .detail-shelf__media::after,
    .similar-shelf__media::after {
        font-size: 13px;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 36px;
        padding-top: 24px;
        padding-bottom: 14px;
    }

    .icon-button,
    .site-header .header-cta {
        display: none;
    }

    .desktop-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
        font-size: 14px;
        font-weight: 600;
        color: #202020;
    }

    .desktop-tools {
        display: inline-flex;
        align-items: center;
        gap: 18px;
        justify-self: end;
        font-size: 13px;
        color: #333333;
        white-space: nowrap;
    }

    .desktop-tools button {
        border: 0;
        background: transparent;
        padding: 0;
        color: inherit;
        font: inherit;
        cursor: pointer;
    }

    .desktop-tools__search::before {
        content: '⌕';
        margin-right: 6px;
    }

    .desktop-tools__account::before {
        content: '◌';
        margin-right: 6px;
    }

    .hero-copy {
        padding-top: 6px;
    }

    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-slider__track {
        grid-auto-columns: calc((100% - 72px) / 5);
    }

    .article-slider__track {
        grid-auto-columns: calc((100% - 66px) / 4);
    }

    .bottom-nav {
        display: none;
    }

    .site-footer {
        padding-bottom: 32px;
    }
}

@media (max-width: 1023px) {
    .category-slider {
        grid-template-columns: 1fr;
    }

    .category-slider__arrow {
        display: none;
    }

    .article-slider {
        grid-template-columns: 1fr;
    }

    .article-slider__arrow {
        display: none;
    }
}