body { background: #fffaf4; }
.site-nav a.dictionary-nav, .site-nav a.dictionary-nav[aria-current="page"] { color: #315875; background: #e3f0f7; border: 1px solid rgba(49,88,117,.16); box-shadow: 0 5px 14px rgba(49,88,117,.1); }
.dictionary-hero, .dictionary-catalog { width: min(1476px, calc(100% - 56px)); margin-inline: auto; }
.dictionary-hero { position: relative; display: flex; min-height: 570px; align-items: center; margin-top: 28px; padding: clamp(38px,7vw,96px); overflow: hidden; background: #fbf5ea url("../assets/dictionary/dictionary-hero-glass.webp") center/cover; border-radius: 18px; box-shadow: 0 24px 54px rgba(191,174,155,.2); }
.dictionary-hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg,rgba(251,246,238,.99),rgba(251,246,238,.91) 39%,rgba(251,246,238,.42) 68%,rgba(251,246,238,.04)); }
.dictionary-hero__copy { position: relative; z-index: 1; max-width: 760px; }
.dictionary-hero h1 { margin: 18px 0 24px; color: var(--navy); font-size: clamp(56px,8vw,112px); line-height: .94; letter-spacing: -.055em; }
.dictionary-hero__copy > p:not(.eyebrow) { max-width: 680px; margin: 0; color: #275f88; font-size: clamp(20px,2vw,29px); line-height: 1.45; }
.dictionary-hero__button, .dictionary-card__button { display: inline-flex; align-items: center; gap: 14px; border: 0; color: #fff; background: var(--coral); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.dictionary-hero__button { margin-top: 32px; padding: 15px 22px; border-radius: 8px; box-shadow: 0 12px 24px rgba(217,101,77,.25); }
.dictionary-catalog { padding: 82px 0 110px; }
.dictionary-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.dictionary-heading h2 { margin: 8px 0 0; color: var(--navy); font-size: clamp(34px,4vw,56px); line-height: 1.05; }
.dictionary-search { position: relative; display: grid; gap: 8px; width: min(360px,100%); color: #5f6f7e; font-size: 14px; font-weight: 700; }
.dictionary-search input { width: 100%; padding: 15px 46px 15px 17px; border: 1px solid rgba(34,60,78,.18); border-radius: 12px; color: var(--navy); background: #fff; font: inherit; font-size: 16px; box-shadow: 0 8px 22px rgba(37,51,63,.06); }
.dictionary-search input:focus { outline: 3px solid rgba(78,153,199,.25); border-color: #4e99c7; }
.dictionary-search__icon { position: absolute; right: 16px; bottom: 10px; color: #4e718b; font-size: 28px; pointer-events: none; }
.dictionary-section { margin-top: 48px; }
.dictionary-section[hidden] { display: none; }
.dictionary-section > h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(27px,3vw,40px); line-height: 1.08; }
.dictionary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,300px)); justify-content: center; width: 100%; max-width: 1280px; margin-inline: auto; gap: 18px; align-items: stretch; }
.dictionary-card { overflow: hidden; border: 1px solid rgba(27,46,60,.1); border-radius: 18px; background: #fff; box-shadow: 0 16px 38px rgba(33,44,52,.08); transition: transform .22s ease, box-shadow .22s ease; }
.dictionary-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(33,44,52,.14); }
.dictionary-card[hidden] { display: none; }
.dictionary-card__cover { position: relative; display: block; width: 100%; aspect-ratio: 2/3; padding: 0; border: 0; background: #f2ede5; cursor: zoom-in; overflow: hidden; }
.dictionary-card__cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease, filter .3s ease; }
.dictionary-card__cover:hover img, .dictionary-card__cover:focus-visible img { transform: scale(1.025); filter: saturate(.88); }
.dictionary-card__cover-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 13px; border-radius: 999px; color: #0b2234; background: rgba(255,250,242,.94); font-weight: 800; box-shadow: 0 5px 16px rgba(0,0,0,.16); }
.dictionary-card__body { padding: 24px; }
.dictionary-card__tag { margin: 0 0 10px; color: #bd664f; font-size: 13px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.dictionary-card h3 { margin: 0 0 14px; color: #1c2934; font-size: clamp(23px,2vw,29px); line-height: 1.12; }
.dictionary-card__text, .dictionary-card__full { color: #5e6d7d; font-size: 17px; line-height: 1.6; }
.dictionary-card__text { margin: 0 0 12px; }
.dictionary-card__full { margin: 0; }
.dictionary-card__button { margin-top: 22px; padding: 12px 16px; border-radius: 8px; }
.dictionary-card__button:hover, .dictionary-hero__button:hover { filter: brightness(.96); transform: translateY(-1px); }
.dictionary-empty { padding: 28px; border-radius: 14px; color: #5e6d7d; background: #fff; text-align: center; }
.dictionary-gallery { width: min(94vw,980px); max-width: 980px; max-height: 94vh; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; color: #fff; background: #101923; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.dictionary-gallery::backdrop { background: rgba(4,12,20,.82); backdrop-filter: blur(4px); }
.dictionary-gallery__top, .dictionary-gallery__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dictionary-gallery__top p { margin: 0; font-weight: 800; }
.dictionary-gallery__close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.dictionary-gallery__stage { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; justify-items: center; gap: 8px; margin: 10px 0; }
.dictionary-gallery__stage img { display: block; max-width: min(100%,500px); max-height: calc(94vh - 150px); object-fit: contain; border-radius: 5px; }
.dictionary-gallery__arrow { width: 42px; height: 56px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); font-size: 38px; line-height: 1; cursor: pointer; }
.dictionary-gallery__bottom { color: #d7e1e9; font-size: 14px; }
.dictionary-gallery__dots { display: flex; gap: 7px; }
.dictionary-gallery__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #71808c; cursor: pointer; }
.dictionary-gallery__dots button[aria-current="true"] { background: #f08a70; transform: scale(1.25); }
@media (max-width: 1100px) { .dictionary-grid { grid-template-columns: repeat(auto-fit,minmax(260px,300px)); } }
@media (max-width: 640px) { .dictionary-hero,.dictionary-catalog { width: min(100% - 28px,1476px); } .dictionary-hero { min-height: 480px; margin-top: 14px; padding: 32px 25px; background-position: 58% center; } .dictionary-hero::before { background: linear-gradient(90deg,rgba(251,246,238,.97),rgba(251,246,238,.78) 68%,rgba(251,246,238,.22)); } .dictionary-hero h1 { font-size: clamp(46px,13vw,72px); } .dictionary-heading { align-items: stretch; flex-direction: column; } .dictionary-search { width: 100%; } .dictionary-grid { grid-template-columns: 1fr; gap: 18px; } .dictionary-gallery { padding: 10px; } .dictionary-gallery__stage { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 4px; } .dictionary-gallery__stage img { max-height: calc(94vh - 160px); } .dictionary-gallery__arrow { width: 34px; height: 46px; font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
