/* ikorniydom.com polish (05.12.2026), loaded after style.css.
   1 header height · 2 catalog cards and product photo (sharp, hairline frame) · 3 footer watermark
   4 phone header and menu · 5 contacts (phone/email rows, separate request block on a phone) · 6 photo viewer
   7 phone catalog grid and category switcher · 8 inverted text selection
   Form language of the site: sharp blocks and hairlines everywhere, only buttons are pills. */

:root {
    --rk-line: rgba(220, 216, 207, 0.12);
    --rk-line-strong: rgba(220, 216, 207, 0.28);
    --rk-ease: cubic-bezier(.4, 0, .2, 1);
    --rk-dur: .35s;
    --rk-dur-slow: .5s;
}

.rk-only-mob { display: none; }
@media screen and (max-width: 1023px) {
    .rk-only-desk { display: none; }
    .rk-only-mob { display: revert; }
}

/* ---------- 1. Header: more air, the active underline gets room under the label ---------- */
.rk-header__inner {
    padding-top: clamp(16px, 1.6vw, 22px);
    padding-bottom: clamp(16px, 1.6vw, 22px);
}
.rk-header .menu li a {
    padding: 10px 0 9px;
}

/* ---------- 2. Catalog cards: no box, no rounded corners. A framed photo plate (hairline, same navy
   gradient as the product page) and the name under it with a short red rule that runs out on hover —
   the same underline idea as the header menu. No lift on hover: the frame lights up, the photo eases in. ---------- */
.rk-catalog-page .catalogList:not(.owl-carousel) .item {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    transition: none;
}
.rk-catalog-page .catalogList:not(.owl-carousel) .item:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}
.rk-catalog-page .catalogList:not(.owl-carousel) .item .photo {
    border: 1px solid var(--rk-line);
    background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.045) 0%, rgba(15, 27, 53, 0.85) 72%);
    transition: border-color var(--rk-dur) var(--rk-ease);
}
.rk-catalog-page .catalogList:not(.owl-carousel) .item .photo a img {
    transform: scale(1.1);    /* the product sits in the middle of a 1402×1122 canvas: a touch larger in the same frame */
    transition: transform .7s var(--rk-ease);
}
.rk-catalog-page .catalogList:not(.owl-carousel) .item > a {
    position: relative;
    padding: 18px 0 22px;
}
@media (hover: hover) {
    .rk-catalog-page .catalogList:not(.owl-carousel) .item:hover .photo { border-color: var(--rk-line-strong); }
    .rk-catalog-page .catalogList:not(.owl-carousel) .item:hover .photo a img { transform: scale(1.14); }
}

/* product page: the same plate */
.rk-product-page .rk-product-view__photo,
.rk-catalog-page .rk-product-view__photo {
    border-radius: 0;
    border-color: var(--rk-line);
    background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.045) 0%, rgba(15, 27, 53, 0.85) 72%);
}
.rk-catalog-page .rk-product-view__spec { border-radius: 0; }
.rk-product-page .rk-product-view__photo a img,
.rk-catalog-page .rk-product-view__photo a img { transform: scale(1.1); }
.rk-product-page .rk-product-view__thumbs a { border-color: var(--rk-line); transition: border-color var(--rk-dur) var(--rk-ease); }
.rk-product-page .rk-product-view__thumbs a:hover { border-color: var(--rk-line-strong); }

/* ---------- 3. Footer watermark: desktop = one «IKORNIY DOM» across 100% of the width, no dot;
   up to 900px (marquee) every copy keeps its dot. Width: Cinzel 700 «IKORNIY DOM» with .035em tracking
   is 7.90 em wide, so 100cqw / 7.90 = 12.65cqw (vw fallback a touch smaller for the scrollbar). ---------- */
@media screen and (min-width: 901px) {
    .rk-footer__watermark { container-type: inline-size; justify-content: center; }
    .rk-footer__watermark-scroll { width: 100%; justify-content: center; }
    .rk-footer__watermark-track { padding: 0; gap: 0; }
    .rk-footer__watermark-track + .rk-footer__watermark-track,
    .rk-footer__watermark-text + .rk-footer__watermark-text,
    .rk-footer__watermark-dot { display: none; }
    .rk-footer__watermark-text {
        font-size: 12.4vw;
        font-size: 12.6cqw;
        margin-right: -0.035em; /* trailing tracking after the last letter */
        position: relative;
        left: -0.0175em;        /* centring then sits on the letters, not on the box with the trailing tracking */
    }
}

/* ---------- 4. Phone header and menu ---------- */
@media screen and (max-width: 900px) {
    .rk-mobile-header { min-height: 60px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
    .rk-mobile-header__brand { gap: 14px; }
    .rk-mobile-header__logo img { height: 26px; max-width: 112px; }
    .rk-mobile-header__titles { padding-left: 14px; border-left: 1px solid var(--rk-line); }
    .rk-mobile-header__title--secondary {
        font-size: 9px;
        letter-spacing: .2em;
        line-height: 1.5;
        max-width: 16em;
        color: rgba(220, 216, 207, .78);
    }
}
.rk-mobile-header__toggle-lines span { border-radius: 0; height: 1px; }
.rk-mobile-header__toggle-lines span:nth-child(2) { top: 6.5px; }

.rk-mobile-nav-overlay {
    justify-content: flex-start;
    padding: calc(60px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transition: opacity var(--rk-dur) var(--rk-ease);
}
.rk-mobile-nav-overlay.is-open { opacity: 1; }
.rk-mobile-nav-overlay__menu {
    flex: 0 0 auto;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px 0 0;
    counter-reset: none;
}
.rk-mobile-nav-overlay__menu a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 18px 0 17px;
    border-bottom: 1px solid var(--rk-line);
    font-size: clamp(1.6rem, 7.4vw, 2rem);
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    line-height: 1.15;
    color: rgba(220, 216, 207, .92);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--rk-dur-slow) var(--rk-ease), transform var(--rk-dur-slow) var(--rk-ease), color .2s var(--rk-ease);
}
.rk-mobile-nav-overlay.is-open .rk-mobile-nav-overlay__menu a { opacity: 1; transform: none; }
.rk-mobile-nav-overlay.is-open .rk-mobile-nav-overlay__menu a:nth-child(2) { transition-delay: .04s; }
.rk-mobile-nav-overlay.is-open .rk-mobile-nav-overlay__menu a:nth-child(3) { transition-delay: .08s; }
.rk-mobile-nav-overlay.is-open .rk-mobile-nav-overlay__menu a:nth-child(4) { transition-delay: .12s; }
.rk-mnav__num {
    flex: 0 0 auto;
    min-width: 2.2em;
    font: 500 10px/1 Montserrat, "Segoe UI", Arial, sans-serif;
    letter-spacing: .24em;
    color: rgba(220, 216, 207, .4);
}
.rk-mobile-nav-overlay__menu a.is-current { color: #fff; }
.rk-mobile-nav-overlay__menu a.is-current .rk-mnav__label { font-style: italic; }
.rk-mobile-nav-overlay__menu a.is-current .rk-mnav__num { color: var(--rk-accent); }

.rk-mobile-nav-overlay__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
    padding-top: 36px;
    opacity: 0;
    transition: opacity var(--rk-dur-slow) var(--rk-ease) .16s;
}
.rk-mobile-nav-overlay.is-open .rk-mobile-nav-overlay__foot { opacity: 1; }
.rk-mnav__eyebrow {
    margin-bottom: 8px;
    font: 600 10px/1 Montserrat, "Segoe UI", Arial, sans-serif;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--rk-accent);
}
.rk-mnav__tel {
    font: 400 22px/1.3 Lora, Georgia, serif;
    color: #fff;
    text-decoration: none;
}
.rk-mnav__mail {
    font: 400 14px/1.5 Montserrat, "Segoe UI", Arial, sans-serif;
    letter-spacing: .04em;
    color: rgba(220, 216, 207, .72);
    text-decoration: none;
}
.rk-mnav__msgs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 22px; }
.rk-mnav__msgs a {
    font: 500 10px/1 Montserrat, "Segoe UI", Arial, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(220, 216, 207, .62);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid var(--rk-line);
}
.rk-mobile-nav-overlay__foot .rk-mobile-nav-overlay__btn { align-self: stretch; }
.rk-mobile-nav-overlay__foot .rk-mobile-nav-overlay__btn + .rk-mobile-nav-overlay__btn { margin-top: 10px; }
.rk-mobile-nav-overlay__btn--ghost {
    border: 1px solid rgba(255, 255, 255, .85);
    background: transparent;
    color: #fff;
}
.rk-mobile-nav-overlay__btn--ghost:active { background: rgba(255, 255, 255, .08); }
@media (hover: hover) { .rk-mobile-nav-overlay__btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; } }
@media (prefers-reduced-motion: reduce) {
    .rk-mobile-nav-overlay, .rk-mobile-nav-overlay__menu a, .rk-mobile-nav-overlay__foot { transition: none; }
}

/* ---------- 5. Contacts: phone and email rows in the list, values in their own case ---------- */
.rk-contacts__msg--value .rk-contacts__msg-name {
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: none;
    opacity: .85;
}
.rk-contacts__msg-icon svg { display: block; }

/* phone: «Свяжитесь с нами» and «Оставьте заявку» are two blocks */
@media screen and (max-width: 1023px) {
    .rk-contacts__messengers { margin-top: 32px; }
    .rk-contacts__form-placeholder {
        box-sizing: border-box;
        width: auto;
        margin: 8px calc(-1 * clamp(24px, 6vw, 96px)) 0;
        padding: clamp(48px, 10vw, 72px) clamp(24px, 6vw, 96px) 0;
        border-top: 1px solid var(--rk-line);
        scroll-margin-top: 0;
    }
    .rk-contacts__form-mhead { margin-bottom: 36px; }
    .rk-contacts__form-mhead .rk-contacts__eyebrow { display: block; margin-bottom: 14px; }
    .rk-contacts__form-mhead .rk-contacts__form-heading { margin-bottom: 16px; }
}

/* ---------- 6. Photo viewer (js/rk-lightbox.js): navy field, light hairline controls ---------- */
html.rk-lb-open { overflow: hidden; }
.rk-lb:focus { outline: none; }
.rk-lb { position: fixed; inset: 0; z-index: 10050; background: rgba(13, 25, 50, .97); opacity: 0; transition: opacity var(--rk-dur-slow) var(--rk-ease); }
.rk-lb[hidden] { display: none; }
.rk-lb.is-open { opacity: 1; }
.rk-lb__stage {
    position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
    padding: 80px clamp(16px, 8vw, 136px); cursor: zoom-out;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 60%);
}
.rk-lb__img {
    display: block; flex: 0 1 auto; width: auto; height: auto; min-width: 0; min-height: 0;
    max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none;
    opacity: 0; transform: scale(.985); transition: opacity var(--rk-dur-slow) var(--rk-ease), transform var(--rk-dur-slow) var(--rk-ease);
}
.rk-lb.is-shown .rk-lb__img { opacity: 1; transform: none; }
.rk-lb__btn {
    position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; margin: 0;
    border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--rk-beige); cursor: pointer;
    transition: border-color .2s var(--rk-ease), color .2s var(--rk-ease);
}
.rk-lb__btn[hidden] { display: none; }
.rk-lb__btn:focus { outline: none; }
.rk-lb__btn:focus-visible { border-color: var(--rk-line-strong); }
@media (hover: hover) { .rk-lb__btn:hover { border-color: var(--rk-line-strong); color: #fff; } }
.rk-lb__close { top: 20px; right: 24px; }
.rk-lb__close::before, .rk-lb__close::after { content: ""; grid-area: 1 / 1; width: 22px; height: 1px; background: currentColor; transform: rotate(45deg); }
.rk-lb__close::after { transform: rotate(-45deg); }
.rk-lb__nav { top: 50%; margin-top: -24px; }
.rk-lb__nav--prev { left: 24px; }
.rk-lb__nav--next { right: 24px; }
.rk-lb__nav::before { content: ""; width: 12px; height: 12px; border: solid currentColor; border-width: 0 0 1px 1px; transform: translateX(3px) rotate(45deg); }
.rk-lb__nav--next::before { transform: translateX(-3px) rotate(-135deg); }
.rk-lb__count {
    position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center; pointer-events: none;
    font: 500 11px/1 Montserrat, "Segoe UI", Arial, sans-serif; letter-spacing: .3em; color: rgba(220, 216, 207, .55);
    font-variant-numeric: tabular-nums;
}
.rk-lb__count[hidden] { display: none; }
a[rel^="prettyPhoto"] img, a[data-lightbox] img { cursor: zoom-in; }
@media (max-width: 767px) {
    .rk-lb__stage { padding: 64px 0; }
    .rk-lb__nav { top: auto; bottom: 8px; margin: 0; }
    .rk-lb__nav--prev { left: 8px; }
    .rk-lb__nav--next { right: 8px; }
    .rk-lb__close { top: 8px; right: 8px; }
    .rk-lb__count { bottom: 26px; }
}

/* legacy «h2 span» (style.css) paints spans blue; the desktop/phone variants of the contacts headings keep the heading colour */
.rk-contacts__form-heading .rk-only-desk,
.rk-contacts__form-heading .rk-only-mob { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ---------- 7. Phone catalog: two products per row, category switcher in the site's sharp language ---------- */
@media screen and (max-width: 560px) {
    .rk-catalog-page .catalogList:not(.owl-carousel) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }
    .rk-catalog-page .catalogList:not(.owl-carousel) .item { margin: 0; }
    .rk-catalog-page .catalogList:not(.owl-carousel) .item .photo a img { padding: 6px; }
    .rk-catalog-page .catalogList:not(.owl-carousel) .item > a {
        padding: 12px 0 4px;
        font-size: .95rem;
        line-height: 1.3;
        letter-spacing: .01em;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
}

@media screen and (max-width: 900px) {
    /* toggle: a hairline bar, label on the left, plus/minus on the right */
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open {
        position: relative;
        justify-content: flex-start;
        margin: 4px 0 0 !important;
        padding: 18px 40px 17px 0;
        border: 0;
        border-top: 1px solid var(--rk-line-strong);
        border-bottom: 1px solid var(--rk-line-strong);
        border-radius: 0;
        background: transparent;
        color: rgba(220, 216, 207, .92);
    }
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open:hover,
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open:active,
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open:focus {
        transform: none;
        background: transparent;
        border-color: var(--rk-line-strong);
        color: #fff;
    }
    .rk-catalog-page .catalogmenu_mobile .catalogmenu_open u {
        justify-content: flex-start;
        width: auto;
        font-weight: 600;
        letter-spacing: .3em;
        text-align: left;
    }
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open::before,
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open::after {
        content: "";
        position: absolute;
        right: 2px;
        top: 50%;
        width: 14px;
        height: 1px;
        background: currentColor;
        transition: transform var(--rk-dur) var(--rk-ease);
    }
    .rk-catalog-page .catalogmenu_mobile a.catalogmenu_open::after { transform: rotate(90deg); }
    .rk-catalog-page .catalogmenu_mobile.is-open a.catalogmenu_open::after { transform: rotate(0deg); }

    /* list: no box, hairline rows, the current category in white italic with a red tick */
    .rk-catalog-page .catalogmenu_mobile ul {
        margin: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }
    .rk-catalog-page .catalogmenu_mobile ul li a {
        position: relative;
        padding: 15px 0 14px 22px;
        border: 0;
        border-bottom: 1px solid var(--rk-line);
        background: transparent;
        font: 400 1.05rem/1.3 Lora, Georgia, "Times New Roman", serif;
        letter-spacing: 0;
        text-transform: none;
        color: rgba(220, 216, 207, .82);
        transition: color .2s var(--rk-ease);
    }
    .rk-catalog-page .catalogmenu_mobile ul li:first-child a { border-top: 0; }
    .rk-catalog-page .catalogmenu_mobile ul li:hover a { background: transparent; color: rgba(220, 216, 207, .82); border-top-color: transparent; }
    .rk-catalog-page .catalogmenu_mobile ul li.active a,
    .rk-catalog-page .catalogmenu_mobile ul li.active:hover a {
        background: transparent;
        color: #fff;
        font-style: italic;
    }
    .rk-catalog-page .catalogmenu_mobile ul li.active a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 12px;
        height: 1px;
        background: var(--rk-accent);
    }
    @media (hover: hover) {
        .rk-catalog-page .catalogmenu_mobile ul li:hover a { color: #fff; }
    }
}

/* ---------- 8. Text selection, inverted: light on the dark field, dark on the beige/white blocks ---------- */
::selection { background: var(--rk-beige, #dcd8cf); color: var(--rk-navy, #132344); text-shadow: none; }
::-moz-selection { background: var(--rk-beige, #dcd8cf); color: var(--rk-navy, #132344); text-shadow: none; }
.rk-contacts__loc--beige ::selection, .rk-contacts__loc--beige::selection,
.rk-history-step--beige ::selection, .rk-history-step--beige::selection,
.rk-links__card--moscow ::selection, .rk-links__card--moscow::selection,
.wf-captcha__row input::selection {
    background: var(--rk-navy, #132344);
    color: var(--rk-beige, #dcd8cf);
}
.rk-contacts__loc--beige ::-moz-selection, .rk-history-step--beige ::-moz-selection, .rk-links__card--moscow ::-moz-selection {
    background: var(--rk-navy, #132344);
    color: var(--rk-beige, #dcd8cf);
}
img::selection { background: rgba(220, 216, 207, .25); }
