@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Noto+Serif+Display:ital,wdth,wght@0,75,400;0,75,500;1,75,400&display=swap');

:root {
    --blue: #0d132d;
    --ivory: #f5f1e8;
    --pearl: #eae0c8;
    --bronze: #a67c52
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--blue);
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent
}

button,
a {
    touch-action: manipulation
}

button {
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 4px
}

header {
    height: 108px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--blue-20);
    gap: 24px
}

.brand img {
    width: 183px;
    display: block
}

.brand span {
    font-size: 11px;
    letter-spacing: 3px;
    display: block;
    text-align: center;
    margin-top: 5px
}

nav {
    display: flex;
    gap: 38px;
    align-items: center
}

nav button {
    border: 0;
    background: none;
    color: inherit
}

nav button span {
    border: 1px solid var(--blue-20);
    border-radius: 50%;
    font-size: 12px;
    padding: 3px 6px;
    margin-left: 5px
}

.head-cta {
    border-bottom: 1px solid var(--bronze);
    padding: 9px 0
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--blue);
    color: var(--ivory)
}

.hero-copy {
    padding: 65px 7% 30px 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.2px
}

.hero .eyebrow {
    color: #c4a27c
}

.stripes {
    display: inline-block;
    font-size: 24px;
    vertical-align: middle;
    margin-right: 12px;
    color: var(--bronze)
}

h1,
h2,
h3,
i,
.price {
    font-family: 'Noto Serif Display', Georgia, serif;
    font-weight: 400
}

h1 {
    font-size: clamp(42px, 4.7vw, 76px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin: 37px 0 24px
}

h1 em {
    color: #d4bf9b
}

.hero-copy p {
    line-height: 1.9;
    color: var(--blue-20);
    margin: 0 0 34px
}

.light-button {
    background: var(--ivory);
    color: var(--blue);
    padding: 17px 23px;
    min-width: 230px;
    display: flex;
    justify-content: space-between;
    gap: 30px
}

.light-button:hover {
    background: var(--pearl)
}

.hero-bottom {
    margin-top: auto;
    padding-top: 55px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.hero-bottom i {
    font-size: 25px;
    color: #d4bf9b
}

.hero-bottom span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #a5a7b4
}

.hero-photo {
    position: relative;
    min-width: 0;
    overflow: hidden
}

.hero-photo>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
    position: absolute
}

.photo-label {
    position: absolute;
    bottom: 26px;
    left: 28px;
    padding: 12px 17px;
    background: #f5f1e8e8;
    font-size: 13px
}

.principles {
    padding: 27px 5%;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--blue-20)
}

.principles span {
    color: var(--bronze);
    font-size: 13px
}

.principles b {
    font-weight: 500;
    color: var(--blue);
    margin-left: 20px;
    font-size: 15px
}

.catalog {
    padding: 78px 5% 90px
}

.catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.catalog-heading h2 {
    font-size: clamp(36px, 3.8vw, 58px);
    margin: 16px 0 25px;
    line-height: 1.1;
    letter-spacing: -1px
}

.catalog-heading h2 span {
    color: var(--bronze)
}

.catalog-heading p {
    font-size: 15px;
    line-height: 1.8;
    color: #676a76
}

.demo {
    font-size: 13px;
    color: var(--blue-60);
    margin-bottom: 30px;
    padding-left: 12px;
    border-left: 2px solid var(--bronze)
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 0;
    border-top: 1px solid var(--blue-20);
    border-bottom: 1px solid var(--blue-20)
}

.tabs {
    display: flex;
    gap: 8px
}

.tabs button {
    background: none;
    border: 1px solid transparent;
    color: var(--blue);
    padding: 11px 18px
}

.tabs .active {
    background: var(--blue);
    color: var(--ivory)
}

.tools {
    display: flex;
    gap: 13px
}

.tools input,
.tools select {
    border: 0;
    border-bottom: 1px solid #bdb9b0;
    border-radius: 0;
    background: transparent;
    color: var(--blue);
    font-size: 14px;
    padding: 10px;
    max-width: 180px
}

.result-line {
    display: flex;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 13px;
    color: var(--blue-60)
}

.result-line button {
    background: none;
    border: 0;
    color: inherit;
    font-size: 13px
}

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

.card {
    min-width: 0
}

.card-visual {
    position: relative;
    background: #ebe7df;
    border: 1px solid #e2dcd1;
    height: 355px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.open-product {
    border: 0;
    background: none;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 26px
}

.open-product img {
    height: 100%;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(5px 9px 5px #0d132d18);
    transition: transform .3s
}

.open-product:hover img {
    transform: scale(1.035)
}

.card-number {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 11px;
    color: #898578;
    pointer-events: none;
    letter-spacing: 1px
}

.favorite {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    background: #f5f1e8bb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 21px;
    color: var(--blue)
}

.favorite[aria-pressed=true] {
    color: #5e1a1d
}

.card-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #7c7d87;
    margin: 18px 0 6px
}

.card h3 {
    font-size: 26px;
    margin: 0
}

.card h3 button {
    font: inherit;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    text-align: left
}

.card-price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dcd6cc;
    margin-top: 15px;
    padding-top: 14px
}

.price {
    font-size: 26px
}

.card-price-line small {
    font-size: 11px;
    color: var(--blue-60)
}

.arrow {
    border: 1px solid #b9ac98;
    background: none;
    padding: 7px 11px;
    color: var(--blue)
}

.about {
    position: relative;
    background: var(--blue);
    color: var(--ivory);
    padding: 75px 8%;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 50px;
    overflow: hidden
}

.about .eyebrow {
    color: #b8976f;
    padding-top: 16px
}

.about h2 {
    font-size: 58px;
    line-height: 1.08;
    margin: 0 0 28px
}

.about h2 em {
    color: #c5a57e
}

.about p {
    max-width: 440px;
    color: var(--blue-20);
    line-height: 1.9
}

.about a {
    display: inline-block;
    margin-top: 18px;
    border-bottom: 1px solid var(--bronze);
    padding-bottom: 9px
}

.about-mark {
    position: absolute;
    font-size: 280px;
    right: -20px;
    bottom: -110px;
    color: #a67c521a;
    pointer-events: none
}

footer {
    padding: 45px 5%;
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap
}

footer img {
    width: 155px
}

footer i {
    font-size: 24px;
    border-left: 1px solid var(--bronze);
    padding-left: 25px
}

footer p {
    margin-left: auto;
    font-size: 13px
}

footer small {
    flex-basis: 100%;
    font-size: 12px;
    color: var(--blue-60)
}

footer small a {
    text-decoration: underline
}

dialog {
    border: 0;
    background: var(--ivory);
    color: var(--blue);
    max-width: 900px;
    width: 90%;
    padding: 50px
}

dialog::backdrop {
    background: #0d132dcc;
    backdrop-filter: blur(4px)
}

.close {
    position: absolute;
    top: 12px;
    right: 17px;
    background: none;
    border: 0;
    font-size: 32px;
    color: var(--blue)
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px
}

.detail-image {
    background: #ebe7df;
    padding: 25px;
    display: flex;
    justify-content: center
}

.detail-image img {
    height: 380px;
    max-width: 100%;
    object-fit: contain
}

.detail-copy h2 {
    font-size: 42px;
    margin: 12px 0 20px
}

.detail-copy p {
    line-height: 1.8;
    color: var(--blue-60);
    font-size: 14px
}

.detail-copy select {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    background: transparent;
    border: 1px solid #bab5ab;
    color: var(--blue)
}

.detail-copy .price {
    font-size: 40px
}

.detail-copy .light-button {
    border: 1px solid var(--blue);
    margin: 20px 0 12px;
    width: 100%;
    font-size: 14px
}

.detail-copy small {
    font-size: 12px;
    color: var(--blue-60)
}

.source {
    display: block;
    margin-top: 20px;
    font-size: 13px;
    text-decoration: underline
}

#empty {
    text-align: center;
    padding: 50px
}

#empty h3 {
    font-size: 32px
}

@media(min-width:1600px) {
    .hero {
        min-height: 700px
    }

    .card-visual {
        height: 420px
    }
}

@media(max-width:1050px) {
    header {
        height: 90px
    }

    nav {
        gap: 20px
    }

    .hero {
        min-height: 560px
    }

    .hero-copy {
        padding: 45px 8%
    }

    .toolbar {
        flex-direction: column;
        gap: 12px
    }

    .tools input {
        max-width: none;
        width: 50%
    }

    .tools select {
        max-width: none;
        width: 50%
    }

    .grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .card-visual {
        height: 330px
    }
}

@media(max-width:700px) {
    header {
        height: 86px;
        padding: 0 6%
    }

    .brand img {
        width: 145px
    }

    .brand span {
        font-size: 10px
    }

    .head-cta {
        display: none
    }

    nav {
        gap: 12px;
        font-size: 13px
    }

    nav a:nth-child(2) {
        display: none
    }

    nav button {
        font-size: 13px
    }

    .hero {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 35px 6% 25px
    }

    .hero h1 {
        font-size: 49px;
        margin: 26px 0 20px
    }

    .hero-copy p {
        font-size: 14px
    }

    .hero-bottom {
        padding-top: 32px
    }

    .hero-photo {
        height: 300px
    }

    .principles {
        padding: 22px 6%;
        gap: 20px
    }

    .principles span {
        font-size: 11px
    }

    .principles b {
        display: block;
        font-size: 12px;
        margin: 8px 0 0
    }

    .catalog {
        padding: 45px 6% 55px
    }

    .catalog-heading {
        display: block
    }

    .catalog-heading h2 {
        font-size: 39px
    }

    .catalog-heading p {
        display: none
    }

    .demo {
        font-size: 12px;
        line-height: 1.8
    }

    .tabs {
        gap: 2px;
        justify-content: space-between
    }

    .tabs button {
        font-size: 13px;
        padding: 10px 9px
    }

    .tools {
        gap: 5px
    }

    .tools input,
    .tools select {
        font-size: 13px;
        min-width: 0
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px
    }

    .card-visual {
        height: 255px
    }

    .open-product {
        padding: 25px 15px
    }

    .card h3 {
        font-size: 23px
    }

    .price {
        font-size: 23px
    }

    .card-price-line small {
        display: none
    }

    .card-label {
        font-size: 11px;
        letter-spacing: 1px
    }

    .card-number {
        font-size: 11px;
        left: 9px;
        top: 13px
    }

    .favorite {
        right: 7px;
        top: 8px;
        width: 28px;
        height: 28px
    }

    .about {
        padding: 42px 6%;
        grid-template-columns: 1fr;
        gap: 25px
    }

    .about h2 {
        font-size: 46px
    }

    .about p {
        font-size: 14px
    }

    footer {
        padding: 35px 6%;
        gap: 20px
    }

    footer i {
        font-size: 20px
    }

    footer p {
        margin-left: 0
    }

    footer small {
        line-height: 1.8
    }

    dialog {
        padding: 45px 22px 25px
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .detail-image img {
        height: 260px
    }

    .detail-copy h2 {
        font-size: 34px
    }

    .detail-copy .price {
        font-size: 32px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

/* Manrope for headings across the catalog, product and company pages. */
h1,
h2,
h3,
.product-info h1,
.product-details h2,
.related-title h2,
.company-heading h1,
.meaning h2,
.values h2,
.approach h2,
.audience h2,
.company-cta h2,
.company-image p,
.product-intro,
.meaning-copy .lead {
    font-family: Manrope, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -.035em
}

h1 em,
h2 em,
h3 em,
.company-image p em {
    font-style: normal;
    font-weight: 400
}

/* Keep the expanded navigation readable on smaller screens. */
@media(max-width:700px) {
    header {
        height: auto;
        min-height: 100px;
        padding-top: 20px;
        padding-bottom: 16px;
        flex-wrap: wrap;
        gap: 18px
    }

    header nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px
    }

    header nav a:nth-child(2) {
        display: inline
    }

    header nav a,
    header nav button {
        font-size: 13px
    }

    header .head-cta {
        display: none
    }
}

/* Header demo phone */
.head-phone {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap
}

.head-phone>span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .2px
}

.head-phone small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--blue-60);
    letter-spacing: .3px;
    margin-top: 5px
}

@media(max-width:1200px) {
    header {
        gap: 18px
    }

    header nav {
        gap: 18px
    }

    .head-phone>span {
        font-size: 16px
    }

    .brand img {
        max-width: 165px
    }
}

@media(max-width:900px) and (min-width:701px) {
    header {
        height: auto;
        flex-wrap: wrap;
        padding-top: 20px;
        padding-bottom: 18px
    }

    header nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 28px
    }

    .head-phone {
        margin-left: auto
    }
}

@media(max-width:700px) {
    header .brand {
        order: 0
    }

    header .head-phone {
        order: 1;
        margin-left: auto
    }

    header nav {
        order: 2
    }

    .head-phone>span {
        font-size: 14px
    }

    .head-phone small {
        font-size: 10px
    }

    .brand img {
        max-width: 140px
    }
}

body>header {
    height: 108px;
    min-height: 0;
    padding: 0 5%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--blue-20);
    background: var(--ivory);
    color: var(--blue)
}

body>header .brand {
    order: 0;
    flex-shrink: 0
}

body>header .brand img {
    width: 165px;
    max-width: none;
    display: block
}

body>header .brand span {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-align: center;
    margin-top: 5px
}

body>header nav {
    order: 1;
    display: flex;
    width: auto;
    gap: 28px;
    align-items: center;
    justify-content: center
}

body>header nav a,
body>header nav a:nth-child(2) {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    padding: 7px 0;
    border-bottom: 1px solid transparent
}

body>header nav a[aria-current=page] {
    border-bottom-color: var(--bronze)
}

body>header nav a:hover {
    color: var(--bronze)
}

body>header .head-phone {
    order: 2;
    flex-shrink: 0;
    margin-left: 0;
    text-align: right
}

body>header .head-phone>span {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .2px
}

body>header .head-phone small {
    font-size: 11px;
    margin-top: 5px;
    color: var(--blue-60)
}

.catalog-favorites {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px
}

.catalog-favorites button {
    background: none;
    border: 1px solid var(--blue-20);
    padding: 8px 13px;
    font-size: 13px;
    color: var(--blue)
}

.catalog-favorites button span {
    margin-left: 8px;
    font-size: 12px
}

body>header a:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 5px
}

@media(max-width:1000px) {
    body>header {
        height: auto;
        padding-top: 20px;
        padding-bottom: 17px;
        flex-wrap: wrap;
        gap: 17px
    }

    body>header nav {
        order: 3;
        width: 100%;
        gap: 30px
    }

    body>header .head-phone {
        margin-left: auto
    }
}

@media(max-width:700px) {
    body>header {
        padding-left: 6%;
        padding-right: 6%
    }

    body>header .brand img {
        width: 140px
    }

    body>header .brand span {
        font-size: 10px;
        letter-spacing: 2px
    }

    body>header .head-phone>span {
        font-size: 14px
    }

    body>header .head-phone small {
        font-size: 10px
    }

    body>header nav {
        justify-content: space-between;
        gap: 12px
    }

    body>header nav a,
    body>header nav a:nth-child(2) {
        font-size: 13px
    }
}

/* Navigation with collections on all pages. */
body>header nav {
    gap: 22px
}

@media(max-width:1150px) and (min-width:1001px) {
    body>header nav {
        gap: 15px
    }

    body>header nav a {
        font-size: 13px
    }

    body>header .head-phone>span {
        font-size: 15px
    }
}

@media(max-width:700px) {
    body>header nav {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: space-between
    }

    body>header nav a,
    body>header nav a:nth-child(2) {
        font-size: 12px
    }
}

/* Меню крупнее на десктопе */
@media (min-width: 1201px) {
    body>header nav {
        gap: 34px;
    }

    body>header nav a,
    body>header nav a:nth-child(2) {
        font-size: 17px;
    }
}

@media (min-width: 1500px) {
    body>header nav {
        gap: 44px;
    }

    body>header nav a,
    body>header nav a:nth-child(2) {
        font-size: 18px;
    }
}

/* ===== Товары miniShop2: общее для каталога, карточек и страницы двери ===== */
.price.price-ask {
    font-family: Manrope, Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.01em
}

.card h3 a:hover {
    color: var(--bronze)
}

.card[hidden] {
    display: none
}

.card-label .card-art {
    letter-spacing: .5px;
    color: var(--blue-60)
}


/* Погонаж: карточки деталей (чанк f.pogonazh) — вкладка двери и страница /pogonazh/ */
.pog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px
}

.pog-card {
    margin: 0;
    display: flex;
    flex-direction: column
}

.pog-img {
    aspect-ratio: 4 / 3;
    background: var(--blue-8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.pog-img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.pog-card h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500
}

.pog-size {
    margin: 0;
    font-size: 14px;
    color: var(--blue)
}

.pog-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--blue-60)
}

.config-panel .pog-group {
    margin: 6px 0 18px
}

.pog-more {
    color: var(--blue);
    white-space: nowrap
}
