/* TAMASA MEBEL | warm editorial furniture studio */
:root {
    --bg: #17191B;
    --paper: #222629;
    --ink: #F0EEE9;
    --muted: #A5A19A;
    --line: rgba(255,255,255,.12);
    --orange: #D4774B;
    --orange-deep: #B85F38;
    --cream: #292D30;
    --dark: #111315;
    --font: 'DM Sans',sans-serif;
    --display: 'Manrope',sans-serif;
    --shadow: 0 24px 70px rgba(0,0,0,.32);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}
body.sheet-open,body.fullscreen-open {
    overflow: hidden;
}
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: .11;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
.wrap {
    width: min(1220px,calc(100% - 80px));
    margin-inline: auto;
}
.header {
    height: 86px;
    padding: 0 max(40px,calc((100vw - 1220px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(23,25,27,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}
.brand-logo {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--orange);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    position: relative;
    z-index: 2;
}
.brand-fallback {
    font: 800 26px var(--display);
    color: #fff;
}
.brand-logo:after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255,255,255,.5);
    transform: rotate(45deg);
}
.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name b {
    font: 800 19px var(--display);
    letter-spacing: .1em;
}
.brand-name small {
    font-size: 8px;
    letter-spacing: .24em;
    color: var(--muted);
    margin-top: 6px;
}
.nav {
    display: flex;
    gap: 27px;
}
.nav a {
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    transition: color .2s;
}
.nav a:hover {
    color: var(--orange-deep);
}
.header-action {
    border: 1px solid var(--line);
    background: transparent;
    padding: 13px 16px;
    font: 600 10px var(--font);
    cursor: pointer;
}
.header-action span {
    color: var(--orange);
    margin-left: 15px;
}
.menu-button {
    display: none;
}
.hero {
    min-height: 670px;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    gap: 65px;
    position: relative;
    padding-top: 55px;
    padding-bottom: 85px;
}
.overline,.eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--muted);
}
.overline {
    display: flex;
    align-items: center;
    gap: 11px;
}
.overline span {
    width: 26px;
    height: 1px;
    background: var(--orange);
}
h1,h2 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.06em;
}
h1 {
    font-size: clamp(49px,6vw,79px);
    line-height: 1.04;
    margin: 28px 0 24px;
}
h1 em,h2 em {
    font-style: normal;
    color: var(--orange);
}
.hero-lead {
    max-width: 455px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-top: 34px;
}
.btn {
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 0;
    border-radius: 2px;
    font: 600 11px var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s,background .25s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--ink);
    color: #fff;
}
.btn-dark:hover {
    background: #403d37;
}
.btn-orange {
    background: var(--orange);
    color: #fff;
}
.btn-orange:hover {
    background: var(--orange-deep);
}
.btn-paper {
    background: var(--cream);
    color: var(--ink);
}
.under-link {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--orange);
    padding-bottom: 8px;
}
.under-link span {
    color: var(--orange);
    margin-left: 12px;
}
.hero-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 57px;
    font-size: 9px;
    color: var(--muted);
}
.proof-mark {
    color: var(--orange);
    font-size: 18px;
}
.hero-art {
    position: relative;
    padding: 0 28px 27px 0;
}
.hero-art-main {
    aspect-ratio: .91/1;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg,#dfd4c6,#c9b8a4 58%,#e9e1d6);
}
.hero-art-main:before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px solid rgba(255,255,255,.5);
}
.placeholder-frame {
    width: 67%;
    aspect-ratio: 1;
    border: 1px solid rgba(75,61,48,.42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    color: #514438;
}
.placeholder-frame:before,.placeholder-frame:after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--orange);
    border-style: solid;
}
.placeholder-frame:before {
    left: -1px;
    top: -1px;
    border-width: 1px 0 0 1px;
}
.placeholder-frame:after {
    right: -1px;
    bottom: -1px;
    border-width: 0 1px 1px 0;
}
.placeholder-logo {
    font: 500 48px var(--display);
    color: var(--orange);
}
.placeholder-frame strong,.placeholder-frame b {
    font: 800 10px var(--display);
    letter-spacing: .19em;
}
.placeholder-frame small {
    font-size: 7px;
    letter-spacing: .15em;
    color: #766a5e;
}
.art-corner {
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-size: 7px;
    letter-spacing: .17em;
    color: #64574a;
}
.hero-art-note {
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 132px;
    height: 132px;
    background: var(--orange);
    color: white;
    padding: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(3deg);
}
.hero-art-note span {
    font-size: 7px;
    letter-spacing: .2em;
}
.hero-art-note b {
    font: 700 17px/1.05 var(--display);
}
.hero-art-note i {
    position: absolute;
    right: 13px;
    top: 11px;
    font-style: normal;
    font-size: 18px;
}
.hero-side-label {
    position: absolute;
    right: -24px;
    top: 25px;
    writing-mode: vertical-rl;
    font-size: 7px;
    letter-spacing: .2em;
    color: var(--muted);
}
.hero-bottom {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: .15em;
    color: var(--muted);
}
.hero-bottom a {
    color: var(--orange-deep);
    text-decoration: none;
}
.section-space {
    padding-top: 115px;
    padding-bottom: 115px;
}
.about {
    border-top: 1px solid var(--line);
}
.eyebrow span {
    color: var(--orange);
    padding-inline: 7px;
}
.about-layout {
    display: grid;
    grid-template-columns: 1.15fr .65fr;
    gap: 90px;
    align-items: end;
    margin-top: 28px;
}
.about h2,.section-head h2,.process h2,.contact-inner h2 {
    font-size: clamp(37px,4.6vw,59px);
    line-height: 1.12;
    margin: 0;
}
.about-text p,.section-head>p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0 0 22px;
}
.principles {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    border-top: 1px solid var(--line);
    margin-top: 72px;
    padding-top: 25px;
}
.principles article {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 12px;
    align-items: center;
}
.principle-icon {
    grid-row: span 2;
    color: var(--orange);
    font-size: 23px;
}
.principles b {
    font-size: 11px;
}
.principles small {
    font-size: 9px;
    color: var(--muted);
    margin-top: 5px;
}
.services {
    background: var(--dark);
    color: var(--bg);
}
.services .eyebrow {
    color: #aaa197;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 45px;
    margin-bottom: 48px;
}
.section-head h2 {
    margin-top: 19px;
}
.section-head>p {
    max-width: 320px;
    margin-bottom: 5px;
}
.light-head>p {
    color: #aaa197;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 17px;
}
/* Направления: четыре каталога в одной ровной линии, индивидуальный проект по центру ниже */
.service-grid {
    align-items: stretch;
}
.service-card-link {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.service-card-link > p {
    flex: 1;
}
.service-card-custom {
    grid-column: 2 / span 2;
    width: calc((100% - 17px) / 2);
    justify-self: center;
}

.square-placeholder,.project-placeholder {
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg,#d9cbbb,#bfae99);
}
.square-placeholder:after,.project-placeholder:after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255,255,255,.48);
    pointer-events: none;
}
.square-placeholder .placeholder-frame,.project-placeholder .placeholder-frame {
    width: 68%;
}
.tone-two {
    background: linear-gradient(145deg,#cfc6b9,#b1a18e);
}
.tone-three {
    background: linear-gradient(145deg,#e1d9ce,#bba992);
}
.tone-four {
    background: linear-gradient(145deg,#d7c8b7,#c2b7aa);
}
.service-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 17px;
}
.service-title h3 {
    font: 600 16px var(--display);
    margin: 0;
}
.service-title span {
    color: var(--orange);
    font-size: 19px;
}
.service-card p {
    font-size: 10px;
    color: #aaa197;
    line-height: 1.7;
    margin: 8px 0 0;
}
.materials .section-head {
    margin-bottom: 45px;
}
.material-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}
.material-tile {
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.material-tile:after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,.46);
}
.material-tile span {
    padding: 18px 14px;
    border: 1px solid rgba(65,54,43,.4);
    font: 700 9px var(--display);
    letter-spacing: .18em;
    color: #594b3e;
    z-index: 1;
}
.material-wood {
    background: repeating-linear-gradient(7deg,#b79b7b 0,#b79b7b 9px,#c7ae91 10px,#c7ae91 19px);
}
.material-stone {
    background: linear-gradient(135deg,#c9c5bc,#e3ddd3 48%,#aaa69d);
}
.material-solid {
    background: linear-gradient(145deg,#e0d3c2,#b7a58f 60%,#d8cabc);
}
.material-grid h3 {
    font: 600 15px var(--display);
    margin: 17px 0 6px;
}
.material-grid p {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
}
.projects {
    background: #eee8df;
}
.project-grid {
    display: grid;
    grid-template-columns: 1.28fr 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.project-feature {
    margin-top: 38px;
}
.project-placeholder {
    background: linear-gradient(145deg,#d6c7b5,#b9a68f);
}
.project-placeholder.shade-a {
    background: linear-gradient(145deg,#d8d0c4,#b5a795);
}
.project-placeholder.shade-b {
    background: linear-gradient(145deg,#e0d5c8,#c0ad98);
}
.project-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.project-caption b {
    font: 600 14px var(--display);
    display: block;
}
.project-caption small {
    display: block;
    margin-top: 7px;
    font-size: 7px;
    letter-spacing: .15em;
    color: var(--muted);
}
.project-caption>span {
    color: var(--orange);
    font-size: 19px;
}
.before-after {
    border-top: 1px solid var(--line);
}
.compare-box {
    max-width: 940px;
    margin: 0 auto;
}
.compare-stage {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #d2c5b5;
    user-select: none;
    touch-action: pan-y;
}
.compare-photo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.before-photo {
    background: linear-gradient(145deg,#d6cbbd,#c0ad98);
}
.after-photo {
    background: linear-gradient(145deg,#e4d7c8,#bda58d);
    clip-path: inset(0 0 0 50%);
}
.compare-placeholder {
    width: 29%;
    aspect-ratio: 1;
    border: 1px solid rgba(69,55,43,.46);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #57493c;
}
.compare-placeholder span {
    font: 500 52px var(--display);
    color: var(--orange);
}
.compare-placeholder b {
    font: 800 10px var(--display);
    letter-spacing: .16em;
}
.compare-placeholder small {
    font-size: 7px;
    letter-spacing: .15em;
}
.compare-tag {
    position: absolute;
    top: 19px;
    padding: 9px 12px;
    background: rgba(38,37,34,.82);
    color: #fff;
    font-size: 8px;
    letter-spacing: .2em;
    z-index: 2;
}
.tag-before {
    left: 19px;
}
.tag-after {
    right: 19px;
}
.compare-grip {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    padding: 0;
    border: 0;
    background: #fff;
    transform: translateX(-50%);
    z-index: 4;
    cursor: ew-resize;
}
.compare-grip:before {
    content: "";
    position: absolute;
    inset: 0 -17px;
}
.compare-grip span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 47px;
    height: 47px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 17px;
    box-shadow: 0 5px 20px #0003;
}
.compare-grip span+span {
    margin-left: 9px;
}
.expand-compare {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(38,37,34,.82);
    color: #fff;
    font-size: 22px;
    z-index: 5;
    cursor: pointer;
}
.compare-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
}
.compare-choice,.compare-reset {
    background: none;
    border: 0;
    font: 600 10px var(--font);
    color: var(--muted);
    cursor: pointer;
    padding: 7px 0;
}
.compare-choice.active,.compare-choice:hover,.compare-reset:hover {
    color: var(--orange-deep);
}
.compare-slider {
    flex: 1;
    accent-color: var(--orange);
    min-width: 70px;
}
.compare-toolbar input {
    flex: 1;
    accent-color: var(--orange);
    min-width: 70px;
}
.process {
    border-top: 1px solid var(--line);
}
.process h2 {
    margin-top: 20px;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
    margin-top: 60px;
}
.process-grid article {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.process-grid article>span {
    color: var(--orange);
    font-size: 20px;
}
.process-grid h3 {
    font: 600 15px var(--display);
    margin: 25px 0 9px;
}
.process-grid p {
    font-size: 10px;
    line-height: 1.8;
    color: var(--muted);
}
.contact-band {
    background: var(--orange);
    color: #fff;
    padding: 68px 0;
}
.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}
.contact-inner .eyebrow {
    color: rgba(255,255,255,.75);
}
.contact-inner h2 {
    margin-top: 18px;
}
.contact-inner h2 em {
    color: #402f25;
}
.contact-inner p {
    font-size: 11px;
    color: rgba(255,255,255,.82);
    margin: 14px 0 0;
}
.footer {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer>span {
    font-size: 8px;
    letter-spacing: .13em;
    color: var(--muted);
}
.footer .brand-logo {
    width: 37px;
    height: 37px;
}
.footer .brand-name b {
    font-size: 16px;
}
.mobile-calc-trigger {
    display: none;
}
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(24,22,20,.43);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s,visibility .28s;
}
.sheet-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.calculator-sheet {
    position: fixed;
    z-index: 71;
    right: 0;
    top: 0;
    height: 100dvh;
    width: min(510px,100%);
    background: var(--bg);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.2,.75,.2,1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}
.calculator-sheet.open {
    transform: translateX(0);
    visibility: visible;
}
.sheet-top {
    padding: 30px 32px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.sheet-top h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 12px 0 0;
}
.sheet-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    flex-shrink: 0;
}
.sheet-scroll {
    overflow: auto;
    padding: 25px 32px max(28px,env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}
.sheet-scroll form>label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 17px;
}
.sheet-scroll select,.sheet-scroll input:not([type=checkbox]) {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255,255,255,.32);
    padding: 0 12px;
    font: 11px var(--font);
    color: var(--ink);
    outline: none;
}
.sheet-scroll select:focus,.sheet-scroll input:focus {
    border-color: var(--orange);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}
.form-grid label {
    font-size: 9px;
    font-weight: 600;
}
.form-grid input {
    padding: 0 8px!important;
}
.check-label {
    display: flex!important;
    align-items: center;
    gap: 10px;
    font-weight: 500!important;
}
.check-label input {
    accent-color: var(--orange);
    width: 15px;
    height: 15px;
}
.sheet-separator {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}
.form-privacy,.form-note {
    font-size: 9px;
    line-height: 1.65;
    color: var(--muted);
}
.hp-field {
    position: absolute!important;
    left: -10000px!important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.estimate-result {
    display: none;
    padding: 13px 15px;
    margin: 14px 0;
    background: #eee5d9;
    font-size: 10px;
    line-height: 1.6;
}
.estimate-result.show {
    display: block;
}
.estimate-result strong {
    display: block;
    font: 700 22px var(--display);
    color: var(--orange-deep);
    margin: 3px 0;
}
.submit-estimate {
    width: 100%;
    margin-top: 10px;
}
.form-note {
    margin: 12px 0 0;
}
.fullscreen-compare {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20,19,18,.97);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6vw;
}
.fullscreen-compare.open {
    display: flex;
}
.fullscreen-compare>button {
    position: absolute;
    right: 25px;
    top: 13px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}
.fullscreen-compare>p {
    position: absolute;
    bottom: 18px;
    color: #ccc;
    font-size: 9px;
    letter-spacing: .1em;
}
.fullscreen-compare #fullscreenCompareMount {
    width: min(1250px,100%);
}
.fullscreen-compare .compare-stage {
    width: 100%;
}
@media(max-width:1050px) {
    .nav {
        gap: 16px;
    }
    .nav a {
        font-size: 10px;
    }
    .hero {
        gap: 35px;
    }
    .wrap {
        width: calc(100% - 56px);
    }
    .header {
        padding-inline: 28px;
    }
}
@media(max-width:800px) {
    .header {
        height: 74px;
    }
    .menu-button {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        border: 0;
        background: none;
    }
    .menu-button i {
        display: block;
        width: 22px;
        height: 1px;
        background: var(--ink);
    }
    .nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 25px 28px 30px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--line);
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        font-size: 13px;
    }
    .header-action {
        display: none;
    }
    .hero {
        grid-template-columns: 1fr .86fr;
        gap: 25px;
        min-height: 590px;
    }
    .hero-art-note {
        width: 108px;
        height: 108px;
    }
    .hero-art-note b {
        font-size: 14px;
    }
    .about-layout {
        gap: 40px;
    }
    .service-grid {
        grid-template-columns: repeat(2,1fr);
        row-gap: 30px;
    }
    .service-card-custom {
        grid-column: 1 / -1;
        width: calc((100% - 12px) / 2);
    }
    .process-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width:560px) {
    html {
        scroll-padding-top: 75px;
    }
    .wrap {
        width: calc(100% - 36px);
    }
    .header {
        padding-inline: 18px;
    }
    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 38px;
        padding-top: 52px;
        padding-bottom: 78px;
    }
    .hero h1 {
        font-size: clamp(43px,12vw,57px);
    }
    .hero-lead {
        font-size: 12px;
    }
    .hero-buttons {
        gap: 18px;
        flex-wrap: wrap;
    }
    .hero-proof {
        margin-top: 33px;
    }
    .hero-art {
        width: 86%;
        margin-left: auto;
        padding-right: 12px;
    }
    .hero-art-main {
        aspect-ratio: 1;
    }
    .hero-art-note {
        right: -20px;
    }
    .hero-side-label {
        right: -21px;
    }
    .hero-bottom {
        bottom: 18px;
        font-size: 7px;
    }
    .section-space {
        padding-top: 78px;
        padding-bottom: 80px;
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about h2,.section-head h2,.process h2,.contact-inner h2 {
        font-size: 39px;
    }
    .principles {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-top: 42px;
    }
    .section-head {
        display: block;
        margin-bottom: 32px;
    }
    .section-head>p {
        margin-top: 19px;
    }
    .services {
        padding-top: 78px;
    }
    .service-grid {
        gap: 23px 12px;
    }
    .placeholder-frame {
        width: 72%;
    }
    .placeholder-logo {
        font-size: 35px;
    }
    .placeholder-frame b,.placeholder-frame strong {
        font-size: 8px;
    }
    .placeholder-frame small {
        font-size: 6px;
    }
    .service-title h3 {
        font-size: 13px;
    }
    .service-card p {
        font-size: 9px;
    }
    .materials .section-head {
        margin-bottom: 32px;
    }
    .material-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 12px;
    }
    .material-grid article:last-child {
        grid-column: span 2;
        width: calc(50% - 6px);
    }
    .material-tile span {
        font-size: 7px;
        padding: 14px 8px;
    }
    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 12px;
    }
    .project-feature {
        grid-column: span 2;
        margin-top: 0;
    }
    .project-caption b {
        font-size: 11px;
    }
    .project-caption small {
        font-size: 6px;
    }
    .compare-stage {
        aspect-ratio: 1/1;
    }
    .compare-placeholder {
        width: 43%;
    }
    .compare-placeholder span {
        font-size: 37px;
    }
    .compare-placeholder b {
        font-size: 8px;
    }
    .compare-toolbar {
        gap: 10px;
        flex-wrap: wrap;
    }
    .compare-toolbar input {
        order: 2;
        flex-basis: 100%;
    }
    .compare-choice,.compare-reset {
        font-size: 9px;
    }
    .process-grid {
        gap: 22px 14px;
        margin-top: 40px;
    }
    .process-grid h3 {
        font-size: 13px;
        margin-top: 18px;
    }
    .contact-band {
        padding: 45px 0 110px;
    }
    .contact-inner {
        display: block;
    }
    .contact-inner h2 {
        font-size: 39px;
    }
    .contact-inner .btn {
        margin-top: 25px;
    }
    .footer {
        padding-block: 23px;
        min-height: 0;
        flex-wrap: wrap;
    }
    .footer>span {
        font-size: 7px;
    }
    .footer>span:nth-child(2) {
        order: 3;
        width: 100%;
    }
    .mobile-calc-trigger {
        display: flex;
        position: fixed;
        z-index: 60;
        left: 12px;
        right: 12px;
        bottom: max(12px,env(safe-area-inset-bottom));
        height: 55px;
        border: 0;
        border-radius: 4px;
        background: var(--ink);
        color: #fff;
        align-items: center;
        justify-content: space-between;
        padding: 0 19px;
        font: 600 12px var(--font);
        box-shadow: 0 8px 30px #0003;
        cursor: pointer;
        transition: transform .2s,opacity .2s;
    }
    .mobile-calc-trigger b {
        width: 31px;
        height: 31px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--orange);
        font-size: 16px;
    }
    .mobile-calc-trigger:active {
        transform: scale(.985);
    }
    .calculator-sheet {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: min(88dvh,820px);
        border-radius: 16px 16px 0 0;
        transform: translateY(105%);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .calculator-sheet.open {
        transform: translateY(0);
    }
    .sheet-top {
        padding: 20px 21px 16px;
    }
    .sheet-top h2 {
        font-size: 25px;
    }
    .sheet-close {
        width: 35px;
        height: 35px;
    }
    .sheet-scroll {
        padding: 20px 21px 25px;
    }
    .fullscreen-compare {
        padding: 14px;
    }
    .fullscreen-compare .compare-stage {
        aspect-ratio: 1/1;
    }
    .fullscreen-compare>button {
        right: 12px;
        top: 4px;
    }
    .fullscreen-compare>p {
        font-size: 8px;
        bottom: 8px;
    }
}
@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior: auto!important;
        transition: none!important;
        animation: none!important;
    }
}
/* =========================================
   CALCULATOR SHOWCASE — DESKTOP + MOBILE
========================================= */
.calculator-showcase {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 18% 45%,rgba(223,117,65,.09),transparent 42%),#eee8df;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px,4.5vw,68px);
    align-items: center;
}
.calculator-intro {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr .76fr;
    align-items: center;
    gap: 12px;
}
.calculator-intro-copy {
    position: relative;
    z-index: 2;
}
.calculator-intro-copy h2 {
    font-size: clamp(34px,3.8vw,52px);
    line-height: 1.08;
    margin: 20px 0;
}
.calculator-intro-copy>p {
    max-width: 360px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}
.calculator-points {
    display: grid;
    gap: 17px;
    margin-top: 30px;
}
.calculator-points>div {
    display: flex;
    align-items: center;
    gap: 11px;
}
.calculator-points>div>span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    background: rgba(223,117,65,.12);
    color: var(--orange-deep);
    font-size: 16px;
    border-radius: 50%;
}
.calculator-points p {
    display: grid;
    gap: 4px;
    margin: 0;
}
.calculator-points b {
    font-size: 10px;
}
.calculator-points small {
    font-size: 9px;
    line-height: 1.5;
    color: var(--muted);
}
.iphone-scene {
    min-width: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0 48px;
    perspective: 1000px;
}
.iphone {
    width: min(100%,225px);
    padding: 7px;
    position: relative;
    z-index: 2;
    border-radius: 38px;
    background: linear-gradient(145deg,#626262,#171717 35%,#555 70%,#151515);
    box-shadow: 18px 25px 45px rgba(28,25,22,.25),inset 0 0 0 1px rgba(255,255,255,.35);
    transform: rotate(-7deg) rotateY(-7deg);
    transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.iphone:hover {
    transform: rotate(-3deg) rotateY(0) translateY(-6px);
}
.iphone-frame {
    padding: 3px;
    overflow: hidden;
    border-radius: 32px;
    background: #090909;
}
.iphone-screen {
    min-height: 445px;
    position: relative;
    overflow: hidden;
    border-radius: 29px;
    background: #f8f5ef;
    color: var(--ink);
}
.iphone-island {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 5;
    width: 76px;
    height: 21px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #050505;
}
.iphone-status {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px 0;
    font-size: 7px;
    font-weight: 700;
}
.iphone-app {
    padding: 31px 14px 22px;
}
.iphone-app-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(38,37,34,.1);
}
.iphone-mini-logo {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--dark);
}
.iphone-mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.iphone-app-head>div:nth-child(2) {
    display: grid;
    gap: 2px;
}
.iphone-app-head b {
    font: 800 10px var(--display);
    letter-spacing: .12em;
}
.iphone-app-head small {
    font-size: 5px;
    letter-spacing: .2em;
    color: var(--muted);
}
.iphone-menu {
    margin-left: auto;
    letter-spacing: 2px;
    font-size: 14px;
}
.iphone-heading {
    padding: 20px 0 17px;
}
.iphone-heading>small {
    color: var(--orange-deep);
    font-size: 6px;
    letter-spacing: .2em;
    font-weight: 700;
}
.iphone-heading h3 {
    font: 700 24px/1.05 var(--display);
    letter-spacing: -.06em;
    margin: 9px 0;
}
.iphone-heading p {
    font-size: 7px;
    color: var(--muted);
    margin: 0;
}
.iphone-option-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin: 11px 0 8px;
}
.iphone-option-title b {
    font-size: 8px;
}
.iphone-option-title small {
    font-size: 6px;
    color: var(--muted);
}
.iphone-options {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
}
.iphone-option {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    position: relative;
    border: 1px solid rgba(38,37,34,.12);
    border-radius: 5px;
    background: #fff;
}
.iphone-option>span {
    color: var(--orange-deep);
    font-size: 14px;
}
.iphone-option b {
    font-size: 7px;
}
.iphone-option.selected {
    border-color: var(--orange);
    background: #fff8f2;
}
.iphone-option i {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 7px;
    font-style: normal;
}
.iphone-materials {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 7px;
}
.iphone-material {
    display: grid;
    gap: 5px;
    text-align: center;
    font-size: 7px;
}
.material-swatch {
    display: block;
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgba(38,37,34,.1);
}
.swatch-one {
    background: linear-gradient(135deg,#d7c6ad,#a88d70);
}
.swatch-two {
    background: linear-gradient(135deg,#e7e1d8,#b9ada0);
}
.swatch-three {
    background: linear-gradient(135deg,#49433d,#171615);
}
.iphone-material.active .material-swatch {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
.iphone-preview-total {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 10px;
    border-radius: 5px;
    background: #eee8df;
}
.iphone-preview-total small {
    font-size: 5px;
    letter-spacing: .16em;
    color: var(--muted);
}
.iphone-preview-total b {
    font: 700 11px var(--display);
}
.iphone-fake-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--orange);
    color: white;
    font-size: 8px;
    font-weight: 700;
}
.iphone-home-indicator {
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 75px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: #252525;
}
.iphone-shadow {
    position: absolute;
    width: 190px;
    height: 35px;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) rotate(-7deg);
    background: rgba(30,25,20,.22);
    filter: blur(19px);
}
.iphone-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: max-content;
    max-width: 100%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
}
.iphone-caption>span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}
.iphone-caption div {
    display: grid;
    gap: 4px;
}
.iphone-caption b {
    font-size: 9px;
}
.iphone-caption small {
    font-size: 6px;
    letter-spacing: .15em;
    color: var(--muted);
}
.calculator-card {
    min-width: 0;
    background: var(--cream);
    border: 1px solid rgba(38,37,34,.1);
    box-shadow: 0 25px 70px rgba(43,34,25,.08);
}
.calculator-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 28px 19px;
    border-bottom: 1px solid var(--line);
}
.calculator-card-head h3 {
    font: 600 25px/1.15 var(--display);
    letter-spacing: -.045em;
    margin: 11px 0 7px;
}
.calculator-card-head p {
    font-size: 10px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}
.calculator-card-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(223,117,65,.13);
    color: var(--orange-deep);
}
.calculator-form-slot {
    padding: 23px 28px 28px;
}
.calculator-form-slot form>label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 16px;
}
.calculator-form-slot select,.calculator-form-slot input:not([type=checkbox]) {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255,255,255,.32);
    padding: 0 12px;
    font: 11px var(--font);
    color: var(--ink);
    outline: none;
}
.calculator-form-slot select:focus,.calculator-form-slot input:focus {
    border-color: var(--orange);
}
.calculator-form-slot .form-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}
.calculator-form-slot .form-grid label {
    font-size: 9px;
    font-weight: 600;
}
.calculator-form-slot .form-grid input {
    padding: 0 8px!important;
}
.calculator-form-slot .check-label {
    display: flex!important;
    align-items: center;
    gap: 10px;
    font-weight: 500!important;
}
.calculator-form-slot .check-label input {
    accent-color: var(--orange);
    width: 15px;
    height: 15px;
}
.calculator-form-slot .sheet-separator {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}
.calculator-form-slot .form-privacy,.calculator-form-slot .form-note {
    font-size: 9px;
    line-height: 1.65;
    color: var(--muted);
}
.calculator-form-slot .estimate-result {
    display: none;
    padding: 13px 15px;
    margin: 14px 0;
    background: #eee5d9;
    font-size: 10px;
    line-height: 1.6;
}
.calculator-form-slot .estimate-result.show {
    display: block;
}
.calculator-form-slot .estimate-result strong {
    display: block;
    font: 700 22px var(--display);
    color: var(--orange-deep);
    margin: 3px 0;
}
.calculator-form-slot .submit-estimate {
    width: 100%;
    margin-top: 10px;
}
@media(max-width:1050px) {
    .calculator-layout {
        gap: 25px;
    }
    .calculator-intro {
        grid-template-columns: 1fr .68fr;
        gap: 5px;
    }
    .calculator-card-head {
        padding: 22px 20px 17px;
    }
    .calculator-form-slot {
        padding: 20px;
    }
    .iphone {
        width: min(100%,195px);
    }
}
@media(max-width:800px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .calculator-intro {
        grid-template-columns: 1fr .75fr;
        max-width: 650px;
        margin-inline: auto;
        width: 100%;
    }
    .calculator-card {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }
}
@media(max-width:560px) {
    .calculator-showcase {
        padding-top: 70px;
        padding-bottom: 95px;
    }
    .calculator-layout {
        gap: 22px;
    }
    .calculator-intro {
        grid-template-columns: 1fr .72fr;
        gap: 0;
    }
    .calculator-intro-copy h2 {
        font-size: clamp(28px,7.8vw,38px);
        margin: 14px 0;
    }
    .calculator-intro-copy>p {
        font-size: 10px;
        line-height: 1.7;
    }
    .calculator-points {
        gap: 11px;
        margin-top: 17px;
    }
    .calculator-points>div {
        gap: 7px;
    }
    .calculator-points>div>span {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 12px;
    }
    .calculator-points b {
        font-size: 8px;
    }
    .calculator-points small {
        font-size: 7px;
    }
    .iphone-scene {
        padding: 18px 0 39px;
    }
    .iphone {
        width: min(100%,170px);
        border-radius: 30px;
        transform: rotate(-6deg);
    }
    .iphone-screen {
        min-height: 355px;
        border-radius: 23px;
    }
    .iphone-frame {
        border-radius: 26px;
    }
    .iphone-app {
        padding: 28px 10px 19px;
    }
    .iphone-heading h3 {
        font-size: 19px;
    }
    .iphone-option {
        min-height: 49px;
        padding: 5px;
    }
    .iphone-preview-total {
        margin-top: 12px;
        padding: 8px;
    }
    .iphone-preview-total b {
        font-size: 9px;
    }
    .iphone-caption {
        gap: 5px;
    }
    .iphone-caption b {
        font-size: 7px;
    }
    .iphone-caption small {
        font-size: 5px;
    }
    .calculator-card {
        display: none;
    }
    .calculator-sheet .sheet-scroll {
        padding: 20px 21px 25px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .iphone,.iphone:hover {
        transform: none;
    }
}
/* =========================================
   CALCULATOR SHOWCASE — DESIGN REFINEMENT
========================================= */

/* Большие экраны */
@media (min-width: 1051px) {
    .calculator-intro {
        grid-template-columns: minmax(0, 1fr) 275px;
        gap: 5px;
    }

    .iphone {
        width: 260px;
        max-width: none;
    }

    .iphone-scene {
        min-width: 275px;
    }
}

/* Обычный экран и VS Code Preview */
@media (min-width: 801px) and (max-width: 1050px) {
    .calculator-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 25px;
    }

    .calculator-intro {
        grid-template-columns: minmax(0, 1fr) 245px;
        gap: 0;
    }

    .iphone-scene {
        min-width: 245px;
        padding-inline: 0;
    }

    .iphone {
        width: 240px;
        max-width: none;
    }

    .calculator-intro-copy h2 {
        font-size: 38px;
    }

    .calculator-points {
        gap: 14px;
    }

    .calculator-card-head {
        padding: 24px 24px 18px;
    }

    .calculator-form-slot {
        padding: 22px 24px 26px;
    }
}

/* Более аккуратное расположение */
.calculator-intro {
    align-items: center;
}

.iphone {
    transform: rotate(-7deg) rotateY(-5deg);
    transform-origin: center center;
}

.iphone:hover {
    transform: rotate(-3deg) rotateY(0deg) translateY(-9px);
    box-shadow: 20px 30px 55px rgba(28, 25, 22, .3);
}

.iphone-screen {
    background: #f8f5ef;
}

/* Чуть больше воздуха в заголовке калькулятора */
.calculator-card-head h3 {
    font-size: 27px;
    line-height: 1.15;
}

/* Мобильную версию оставляем компактной */
@media (max-width: 560px) {
    .iphone {
        width: min(100%, 175px);
    }
}
/* Уменьшаем текст в презентационной части калькулятора */

.calculator-intro-copy h2 {
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.12;
    margin: 17px 0 15px;
}

.calculator-intro-copy > p {
    font-size: 11px;
    line-height: 1.75;
    max-width: 330px;
}

.calculator-points {
    gap: 13px;
    margin-top: 25px;
}

.calculator-points b {
    font-size: 10px;
}

.calculator-points small {
    font-size: 8px;
    line-height: 1.5;
}

.calculator-points > div > span {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    font-size: 14px;
}

@media (max-width: 560px) {
    .calculator-intro-copy h2 {
        font-size: 28px;
    }

    .calculator-intro-copy > p {
        font-size: 9px;
    }
}
/* BEFORE / AFTER — минималистичный разделитель */

.compare-grip {
    width: 2px;
    background: #fff;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.12);
    cursor: ew-resize;
}

/* Убираем оранжевый круг и стрелки */
.compare-grip span {
    display: none !important;
}

/* Сохраняем удобную область для перетаскивания */
.compare-grip::before {
    content: "";
    position: absolute;
    inset: 0 -18px;
}


/* =====================================================
   TAMASA MEBEL
   MOBILE RESPONSIVE DESIGN
   Все настройки ниже относятся только к телефонам.
   ===================================================== */


/* -----------------------------------------------------
   1. ОБЩИЕ НАСТРОЙКИ
   ----------------------------------------------------- */

@media (max-width: 560px) {

    html {
        scroll-padding-top: 75px;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    .wrap {
        width: calc(100% - 36px);
    }

    .section-space {
        padding-top: 65px;
        padding-bottom: 65px;
    }


    /* -------------------------------------------------
       2. ШАПКА И НАВИГАЦИЯ
       ------------------------------------------------- */

    .header {
        height: 70px;
        padding-inline: 18px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name b {
        font-size: 16px;
    }

    .brand-name small {
        font-size: 7px;
    }

    .menu-button {
        padding: 10px;
    }

    .nav {
        top: 70px;
        padding: 22px 20px 26px;
        gap: 20px;
    }

    .nav a {
        font-size: 13px;
    }


    /* -------------------------------------------------
       3. ГЛАВНЫЙ ЭКРАН
       ------------------------------------------------- */

    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding-top: 42px;
        padding-bottom: 75px;
    }

    .hero h1 {
        font-size: clamp(42px, 11vw, 56px);
        line-height: 1.04;
        margin: 20px 0;
    }

    .hero-lead {
        font-size: 11px;
        line-height: 1.8;
        max-width: 100%;
    }

    .hero-buttons {
        margin-top: 25px;
        gap: 15px;
    }

    .hero-buttons .btn {
        min-height: 47px;
        padding-inline: 14px;
        font-size: 10px;
        gap: 15px;
    }

    .hero-proof {
        margin-top: 27px;
        font-size: 8px;
    }

    .hero-art {
        width: 88%;
        margin-left: auto;
        padding: 0 12px 20px 0;
    }

    .hero-art-main {
        aspect-ratio: 1 / 1;
    }

    .hero-art-note {
        width: 95px;
        height: 95px;
        right: -12px;
        padding: 12px;
    }

    .hero-art-note b {
        font-size: 13px;
    }

    .hero-side-label {
        right: -18px;
    }

    .hero-bottom {
        bottom: 17px;
        font-size: 6px;
    }


    /* -------------------------------------------------
       4. КАЛЬКУЛЯТОР: ПРЕЗЕНТАЦИЯ
       ------------------------------------------------- */

    .calculator-showcase {
        padding-top: 65px;
        padding-bottom: 95px;
    }

    .calculator-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .calculator-intro {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .calculator-intro-copy {
        width: 100%;
    }

    .calculator-intro-copy h2 {
        font-size: clamp(31px, 8.5vw, 39px);
        line-height: 1.1;
        margin: 16px 0;
    }

    .calculator-intro-copy > p {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.8;
    }

    .calculator-points {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 23px;
    }

    .calculator-points > div {
        gap: 10px;
    }

    .calculator-points > div > span {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 13px;
    }

    .calculator-points b {
        font-size: 10px;
    }

    .calculator-points small {
        font-size: 8px;
        line-height: 1.5;
    }


    /* -------------------------------------------------
       5. IPHONE
       ------------------------------------------------- */

    .iphone-scene {
        width: 100%;
        min-width: 0;
        min-height: 390px;
        padding: 20px 0 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .iphone {
        width: 205px;
        max-width: 75%;
        border-radius: 34px;
        transform: rotate(-6deg);
    }

    .iphone:hover {
        transform: rotate(-6deg);
    }

    .iphone-frame {
        border-radius: 29px;
    }

    .iphone-screen {
        min-height: 410px;
        border-radius: 26px;
    }

    .iphone-app {
        padding: 31px 12px 22px;
    }

    .iphone-heading {
        padding: 20px 0 17px;
    }

    .iphone-heading h3 {
        font-size: 22px;
    }

    .iphone-heading p {
        font-size: 7px;
    }

    .iphone-option {
        min-height: 55px;
        padding: 6px;
    }

    .iphone-option b {
        font-size: 7px;
    }

    .iphone-materials {
        gap: 8px;
    }

    .material-swatch {
        height: 34px;
    }

    .iphone-preview-total {
        margin-top: 15px;
        padding: 9px;
    }

    .iphone-preview-total b {
        font-size: 10px;
    }

    .iphone-caption {
        bottom: 0;
        gap: 8px;
    }

    .iphone-caption b {
        font-size: 8px;
    }

    .iphone-caption small {
        font-size: 6px;
    }


    /* -------------------------------------------------
       6. КАЛЬКУЛЯТОР: МОБИЛЬНАЯ ПАНЕЛЬ
       ------------------------------------------------- */

    .calculator-card {
        display: none;
    }

    .mobile-calc-trigger {
        display: flex;
        position: fixed;
        z-index: 60;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));

        height: 55px;
        padding: 0 18px;

        align-items: center;
        justify-content: space-between;

        border: none;
        border-radius: 5px;

        background: var(--ink);
        color: white;

        font: 600 12px var(--font);

        box-shadow: 0 8px 30px rgba(0, 0, 0, .2);

        cursor: pointer;
    }

    .mobile-calc-trigger b {
        width: 32px;
        height: 32px;

        display: grid;
        place-items: center;

        border-radius: 50%;
        background: var(--orange);

        font-size: 16px;
    }

    .calculator-sheet {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;

        width: 100%;
        height: min(88dvh, 820px);

        border-radius: 17px 17px 0 0;

        transform: translateY(105%);

        padding-bottom: env(safe-area-inset-bottom);
    }

    .calculator-sheet.open {
        transform: translateY(0);
    }

    .sheet-top {
        padding: 20px 21px 16px;
    }

    .sheet-top h2 {
        font-size: 25px;
    }

    .sheet-close {
        width: 36px;
        height: 36px;
    }

    .sheet-scroll {
        padding: 20px 21px 28px;
    }

    .sheet-scroll form > label {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .sheet-scroll select,
    .sheet-scroll input:not([type=checkbox]) {
        height: 46px;
        font-size: 12px;
    }

    .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .form-grid label {
        font-size: 8px;
    }

    .check-label {
        font-size: 10px !important;
    }

    .submit-estimate {
        min-height: 52px;
    }


    /* -------------------------------------------------
       7. О КОМПАНИИ
       ------------------------------------------------- */

    .about-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 24px;
    }

    .about h2 {
        font-size: 36px;
        line-height: 1.12;
    }

    .about-text p {
        font-size: 11px;
        line-height: 1.8;
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-top: 35px;
        padding-top: 22px;
    }

    .principles article {
        grid-template-columns: 34px 1fr;
    }

    .principles b {
        font-size: 10px;
    }

    .principles small {
        font-size: 8px;
    }


    /* -------------------------------------------------
       8. НАПРАВЛЕНИЯ
       ------------------------------------------------- */

    .services {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-head {
        display: block;
        margin-bottom: 30px;
    }

    .section-head h2 {
        font-size: 36px;
        line-height: 1.12;
        margin-top: 15px;
    }

    .section-head > p {
        font-size: 10px;
        line-height: 1.8;
        margin-top: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 23px 12px;
    }
    .service-card-custom {
        grid-column: 1 / -1;
        width: calc((100% - 12px) / 2);
        justify-self: center;
    }

    .square-placeholder {
        aspect-ratio: 1 / 1;
    }

    .placeholder-frame {
        width: 72%;
    }

    .placeholder-logo {
        font-size: 32px;
    }

    .placeholder-frame b,
    .placeholder-frame strong {
        font-size: 7px;
    }

    .placeholder-frame small {
        font-size: 5px;
    }

    .service-title {
        margin-top: 12px;
    }

    .service-title h3 {
        font-size: 12px;
    }

    .service-title span {
        font-size: 15px;
    }

    .service-card p {
        font-size: 8px;
        line-height: 1.6;
    }


    /* -------------------------------------------------
       9. МАТЕРИАЛЫ
       ------------------------------------------------- */

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

    .material-grid article:last-child {
        grid-column: auto;
        width: 100%;
    }

    .material-tile {
        aspect-ratio: 1 / 1;
    }

    .material-tile span {
        font-size: 7px;
        padding: 12px 8px;
    }

    .material-grid h3 {
        font-size: 12px;
        margin: 12px 0 5px;
    }

    .material-grid p {
        font-size: 8px;
        line-height: 1.7;
    }


    /* -------------------------------------------------
       10. ПРОЕКТЫ И ПОРТФОЛИО
       ------------------------------------------------- */

    .projects {
        padding-top: 70px;
        padding-bottom: 70px;
    }

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

    .project-feature {
        grid-column: span 2;
        margin-top: 0;
    }

    .project-placeholder {
        aspect-ratio: 1 / 1;
    }

    .project-caption {
        margin-top: 11px;
    }

    .project-caption b {
        font-size: 11px;
    }

    .project-caption small {
        font-size: 6px;
    }


    /* -------------------------------------------------
       11. СРАВНЕНИЕ ДО / ПОСЛЕ
       ------------------------------------------------- */

    .compare-box {
        width: 100%;
    }

    .compare-stage {
        aspect-ratio: 1 / 1;
    }

    .compare-placeholder {
        width: 43%;
    }

    .compare-placeholder span {
        font-size: 35px;
    }

    .compare-placeholder b {
        font-size: 7px;
    }

    .compare-placeholder small {
        font-size: 6px;
    }

    .compare-tag {
        top: 12px;
        padding: 7px 9px;
        font-size: 7px;
    }

    .tag-before {
        left: 12px;
    }

    .tag-after {
        right: 12px;
    }

    .compare-grip {
        width: 2px;
    }

    .compare-grip span {
        display: none !important;
    }

    .compare-toolbar {
        gap: 12px;
        flex-wrap: wrap;
        padding-top: 14px;
    }

    .compare-toolbar input {
        order: 2;
        flex-basis: 100%;
        width: 100%;
    }

    .compare-choice,
    .compare-reset {
        font-size: 9px;
    }

    .expand-compare {
        width: 34px;
        height: 34px;
        right: 10px;
        bottom: 10px;
    }


    /* -------------------------------------------------
       12. ЭТАПЫ РАБОТЫ
       ------------------------------------------------- */

    .process h2 {
        font-size: 36px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
        margin-top: 35px;
    }

    .process-grid article {
        padding-top: 14px;
    }

    .process-grid article > span {
        font-size: 17px;
    }

    .process-grid h3 {
        font-size: 12px;
        margin: 17px 0 7px;
    }

    .process-grid p {
        font-size: 8px;
        line-height: 1.7;
    }


    /* -------------------------------------------------
       13. КОНТАКТЫ
       ------------------------------------------------- */

    .contact-band {
        padding: 45px 0 90px;
    }

    .contact-inner {
        display: block;
    }

    .contact-inner h2 {
        font-size: 36px;
        line-height: 1.12;
    }

    .contact-inner p {
        font-size: 10px;
        line-height: 1.7;
    }

    .contact-inner .btn {
        margin-top: 22px;
        min-height: 49px;
    }


    /* -------------------------------------------------
       14. ПОДВАЛ
       ------------------------------------------------- */

    .footer {
        min-height: auto;
        padding-block: 23px;

        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer > span {
        font-size: 7px;
    }

    .footer > span:nth-child(2) {
        order: 3;
        width: 100%;
    }

    .footer .brand-logo {
        width: 34px;
        height: 34px;
    }

    .footer .brand-name b {
        font-size: 14px;
    }


    /* -------------------------------------------------
       15. ПОЛНОЭКРАННОЕ СРАВНЕНИЕ
       ------------------------------------------------- */

    .fullscreen-compare {
        padding: 14px;
    }

    .fullscreen-compare .compare-stage {
        aspect-ratio: 1 / 1;
    }

    .fullscreen-compare > button {
        right: 12px;
        top: 5px;
    }

    .fullscreen-compare > p {
        font-size: 7px;
        bottom: 8px;
    }

}


/* =====================================================
   EXTRA SMALL PHONES
   Экраны до 380px
   ===================================================== */

@media (max-width: 380px) {

    .wrap {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: 41px;
    }

    .calculator-intro-copy h2 {
        font-size: 29px;
    }

    .iphone {
        width: 185px;
    }

    .iphone-scene {
        min-height: 355px;
    }

    .service-title h3 {
        font-size: 11px;
    }

    .form-grid {
        gap: 6px;
    }

    .sheet-scroll {
        padding-inline: 16px;
    }

}


/* =====================================================
   TOUCH DEVICES
   Удобное управление пальцем
   ===================================================== */

@media (hover: none) and (pointer: coarse) {

    .btn,
    .header-action,
    .mobile-calc-trigger,
    .sheet-close,
    .compare-choice,
    .compare-reset {
        -webkit-tap-highlight-color: transparent;
    }

    .btn:hover,
    .iphone:hover {
        transform: none;
    }

    .compare-grip {
        cursor: grab;
    }

}


/* =====================================================
   ACCESSIBILITY
   Уменьшение анимации по настройкам устройства
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .iphone,
    .iphone:hover {
        transform: none;
    }

    .mobile-calc-trigger,
    .calculator-sheet,
    .sheet-backdrop {
        transition: none;
    }

}
/* MOBILE IPHONE — WIDTH REFINEMENT */

@media (max-width: 560px) {
    .iphone {
        width: 265px;
        max-width: none;
    }

    .iphone-scene {
        min-height: 530px;
    }
}

@media (max-width: 380px) {
    .iphone {
        width: 245px;
    }

    .iphone-scene {
        min-height: 500px;
    }
}

/* =====================================================
   ДОРАБОТКИ: КАТАЛОГИ И АДАПТИВНОСТЬ
===================================================== */
.service-card-link{display:block;color:inherit;text-decoration:none;transition:transform .25s ease,opacity .25s ease}
.service-card-link:hover{transform:translateY(-5px)}
.service-card-hint{display:inline-flex;align-items:center;gap:8px;margin-top:13px;color:var(--orange);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.service-card-link:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
img{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
@media(max-width:760px){
  .wrap{width:min(100% - 36px,1220px)}
  .header{padding-inline:18px}
}
@media(max-width:420px){
  .wrap{width:calc(100% - 28px)}
  .header{height:72px;padding-inline:14px}
}


/* ЮРИДИЧЕСКАЯ ИНФОРМАЦИЯ И СОГЛАСИЕ */
.legal-page{background:var(--bg);color:var(--ink);min-height:100vh}.legal-wrap{width:min(900px,calc(100% - 40px));margin:0 auto;padding:55px 0 90px}.legal-back{display:inline-block;margin-bottom:45px;color:var(--orange);text-decoration:none;font-weight:700}.legal-wrap h1{font:600 clamp(38px,6vw,68px)/1.05 var(--display);letter-spacing:-.06em;margin:14px 0 28px}.legal-wrap section{padding:22px 0;border-top:1px solid var(--line)}.legal-wrap h2{font:700 19px var(--display);margin:0 0 12px}.legal-wrap p{font-size:14px;line-height:1.85;color:var(--muted)}.legal-warning{padding:18px 20px;background:var(--paper);border-left:3px solid var(--orange);color:var(--ink)!important}.legal-date{padding-top:25px;border-top:1px solid var(--line)}.footer-legal{display:grid;grid-template-columns:1.3fr 1fr;gap:30px;padding:24px 0 32px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.footer-legal b{color:var(--ink)}.footer-legal p{margin:7px 0;line-height:1.6}.footer-legal strong{color:var(--ink);font-weight:600}.footer-legal-links{display:flex;flex-direction:column;gap:9px;align-items:flex-start}.footer-legal-links a{color:var(--orange);text-decoration:none}.footer-legal-links span{font-size:10px;line-height:1.6}@media(max-width:650px){.footer-legal{grid-template-columns:1fr;gap:18px}.legal-wrap{padding-top:30px}}.consent-row{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.6;color:var(--muted)}.consent-row input{width:17px;height:17px;flex:0 0 17px;margin-top:1px;accent-color:var(--orange)}.consent-row a{color:var(--orange);text-decoration:underline}.service-card-custom{cursor:pointer}


/* ЕДИНАЯ ГРАФИТОВАЯ ТЕМА TAMASA */
body, .catalog-page, .legal-page { background: var(--bg); color: var(--ink); }
.header { background: rgba(23,25,27,.94); border-bottom-color: rgba(255,255,255,.09); }
.brand, .nav a { color: var(--ink); }
.brand-logo { background: transparent; }
.brand-logo:after { display:none; }
.brand-logo img { object-fit: contain; padding: 0; }
.btn-dark, .header-action { background: var(--orange); color: #17191B; }
.btn-dark:hover, .header-action:hover { background: var(--orange-deep); color: #fff; }
section, .about, .materials, .projects, .contacts { color: var(--ink); }
input, select, textarea { background: #222629; color: var(--ink); border-color: rgba(255,255,255,.14); }
::selection { background: rgba(212,119,75,.35); color: #fff; }


/* =====================================================
   TAMASA — PREMIUM GRAPHITE REFINEMENT
   Исправление контраста, светлых блоков и мобильной типографики
===================================================== */

:root {
    --bg: #202326;
    --paper: #292D30;
    --ink: #F3F1ED;
    --muted: #B2AEA7;
    --line: rgba(255,255,255,.12);
    --orange: #D4774B;
    --orange-deep: #BC633D;
    --cream: #303538;
    --dark: #171A1C;
    --shadow: 0 24px 70px rgba(0,0,0,.30);
}

html { scroll-behavior: smooth; }
body {
    background: #202326;
    color: #F3F1ED;
}

/* Главный визуальный блок: вместо бежевого постера — графитовая поверхность */
.hero-art-main {
    background:
        radial-gradient(ellipse at 50% 42%, rgba(212,119,75,.13), transparent 48%),
        linear-gradient(145deg, #34393C 0%, #292D30 54%, #222629 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 24px 65px rgba(0,0,0,.18);
}
.hero-art-main:before { border-color: rgba(255,255,255,.16); }
.placeholder-frame {
    border-color: rgba(255,255,255,.24);
    color: #F3F1ED;
}
.placeholder-frame small { color: #B2AEA7; }
.art-corner { color: #B2AEA7; }

/* Каталоги и остальные поверхности */
.service-card,
.material-card,
.project-card,
.about-card,
.feature-card {
    background-color: #292D30;
    color: #F3F1ED;
    border-color: rgba(255,255,255,.10);
}
.service-card p,
.material-card p,
.project-card p,
.about-card p,
.feature-card p { color: #B2AEA7; }

/* Калькулятор теперь в той же премиальной тёмной теме */
.calculator-showcase {
    background:
        radial-gradient(ellipse at 18% 45%, rgba(212,119,75,.12), transparent 43%),
        linear-gradient(135deg, #25292C 0%, #202326 56%, #292D30 100%);
    color: #F3F1ED;
}
.calculator-intro-copy h2,
.calculator-intro-copy .eyebrow,
.calculator-points b { color: #F3F1ED; }
.calculator-intro-copy > p,
.calculator-points small { color: #B2AEA7; }
.calculator-points > div > span {
    background: rgba(212,119,75,.15);
    color: #E18A5D;
}
.calculator-card {
    background: #292D30;
    color: #F3F1ED;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 25px 65px rgba(0,0,0,.28);
}
.calculator-card-head { border-bottom-color: rgba(255,255,255,.12); }
.calculator-card-head h3 { color: #F3F1ED; }
.calculator-card-head p,
.calculator-card .form-note { color: #B2AEA7; }

/* Смартфон: цельный тёмный макет, без белого экрана и пропадающего текста */
.iphone-screen {
    min-height: 470px;
    background: linear-gradient(160deg, #303538 0%, #24282B 100%);
    color: #F3F1ED;
}
.iphone-app-head { border-bottom-color: rgba(255,255,255,.13); }
.iphone-app-head b,
.iphone-heading h3,
.iphone-option-title b,
.iphone-preview-total b { color: #F3F1ED; }
.iphone-app-head small,
.iphone-heading p,
.iphone-option-title small,
.iphone-material small,
.iphone-preview-total small { color: #B2AEA7; }
.iphone-option {
    background: #34393C;
    color: #F3F1ED;
    border-color: rgba(255,255,255,.10);
}
.iphone-option.selected {
    background: rgba(212,119,75,.13);
    border-color: #D4774B;
}
.iphone-preview-total {
    background: #191C1E;
    border: 1px solid rgba(255,255,255,.08);
}
.iphone-material.active .material-swatch { outline-color: #D4774B; }
.iphone-mini-logo { background: #171A1C; }
.iphone-caption b { color: #F3F1ED; }
.iphone-caption small { color: #B2AEA7; }

/* Поля калькулятора: читаемые подписи и контрастные значения */
.calculator-card input,
.calculator-card select,
.calculator-card textarea,
.calculator-sheet input,
.calculator-sheet select,
.calculator-sheet textarea {
    background: #34393C;
    color: #F3F1ED;
    border-color: rgba(255,255,255,.16);
}
.calculator-card label,
.calculator-sheet label { color: #E9E6E0; }
.calculator-card input::placeholder,
.calculator-sheet input::placeholder { color: #AAA69F; }

/* Мобильная типографика: увеличиваем мелкий текст и интервалы */
@media (max-width: 760px) {
    body { font-size: 16px; }
    .hero-lead { font-size: 15px; line-height: 1.75; }
    .overline, .eyebrow { font-size: 10px; }
    .hero-proof { font-size: 11px; }
    .hero-bottom { font-size: 9px; }
    .calculator-showcase { padding-top: 54px; padding-bottom: 78px; }
    .calculator-intro-copy h2 {
        font-size: clamp(34px, 9vw, 43px);
        line-height: 1.12;
    }
    .calculator-intro-copy > p {
        font-size: 14px;
        line-height: 1.75;
    }
    .calculator-points { gap: 16px; }
    .calculator-points b { font-size: 13px; }
    .calculator-points small { font-size: 11px; line-height: 1.55; }
    .iphone-scene {
        min-height: 0;
        padding: 28px 0 58px;
        overflow: visible;
    }
    .iphone {
        width: min(250px, 72vw);
        max-width: 250px;
        transform: rotate(-3deg);
    }
    .iphone:hover { transform: rotate(-3deg); }
    .iphone-screen { min-height: 470px; }
    .iphone-app { padding: 34px 14px 24px; }
    .iphone-heading h3 { font-size: 23px; }
    .iphone-heading p { font-size: 10px; }
    .iphone-option b { font-size: 10px; }
    .iphone-option-title b { font-size: 11px; }
    .iphone-option-title small,
    .iphone-material small { font-size: 9px; }
    .iphone-preview-total b { font-size: 12px; }
    .iphone-preview-total small { font-size: 8px; }
    .iphone-fake-button { font-size: 10px; }
    .iphone-caption b { font-size: 11px; }
    .iphone-caption small { font-size: 8px; }
    .btn, .under-link { font-size: 13px; }
    .service-card-hint { font-size: 11px; }
}
@media (max-width: 420px) {
    .wrap { width: calc(100% - 34px); }
    .hero h1 { font-size: clamp(38px, 10.8vw, 46px); }
    .hero-lead { font-size: 14px; }
    .calculator-intro-copy h2 { font-size: 35px; }
    .iphone { width: min(238px, 72vw); }
    .iphone-scene { padding-bottom: 62px; }
}
@media (max-width: 360px) {
    .hero h1 { font-size: 36px; }
    .calculator-intro-copy h2 { font-size: 32px; }
    .iphone { width: min(220px, 70vw); }
}

/* Ссылки и кнопки сохраняют читаемость на графите */
a { text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #D4774B;
    outline-offset: 3px;
}


/* =====================================================
   TAMASA HOME STYLE — ФИНАЛЬНАЯ ВИЗУАЛЬНАЯ СБОРКА
   Логотип, портфолио, CTA и ссылка входа
===================================================== */

/* Логотип: используем утверждённый знак башен */
.brand-logo {
    background: transparent !important;
    overflow: visible;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
    filter: drop-shadow(0 2px 8px rgba(212,119,75,.18));
}

/* Полный знак в центральной композиции первого экрана */
.hero-brand-mark {
    display: block;
    width: min(76%, 310px);
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.38));
}
.hero-art-main {
    background:
      radial-gradient(ellipse at 50% 45%, rgba(212,119,75,.11), transparent 48%),
      linear-gradient(145deg,#303538 0%,#262A2D 58%,#202326 100%) !important;
}
.hero-art-main:before { border-color:rgba(255,255,255,.13); }
.hero-art .placeholder-frame {
    border-color:rgba(255,255,255,.14);
    color:#F3F1ED;
}

/* Портфолио: убираем светлую секцию и выравниваем с общей темой */
.projects {
    background:#202326 !important;
    color:#F3F1ED !important;
    padding-top:clamp(64px,8vw,110px);
    padding-bottom:clamp(64px,8vw,110px);
}
.projects .section-head h2 { color:#F3F1ED; }
.projects .section-head p { color:#B2AEA7; }
.projects .project {
    min-width:0;
    color:#F3F1ED;
}
.projects .project-placeholder {
    background:
      radial-gradient(ellipse at 50% 45%,rgba(212,119,75,.12),transparent 50%),
      linear-gradient(145deg,#34393C,#222629 72%) !important;
    border:1px solid rgba(255,255,255,.10);
}
.projects .project-placeholder:before {
    border-color:rgba(255,255,255,.15);
}
.projects .project-placeholder .placeholder-frame {
    border-color:rgba(255,255,255,.19);
    color:#F3F1ED;
    background:rgba(18,20,21,.12);
}
.projects .portfolio-mark {
    width:clamp(74px,10vw,112px);
    height:clamp(95px,13vw,142px);
    object-fit:contain;
    opacity:.86;
    filter:drop-shadow(0 5px 18px rgba(212,119,75,.15));
}
.projects .project-placeholder b {
    color:#F3F1ED;
    font-size:10px;
    letter-spacing:.18em;
}
.projects .project-placeholder small {
    color:#B2AEA7;
    font-size:8px;
    letter-spacing:.13em;
}
.projects .project-caption b { color:#F3F1ED; }
.projects .project-caption small { color:#A9A59E; }
.projects .project-caption > span { color:#D4774B; }

/* Оранжевая полоса: логотип-знак сбоку, приглушённый и не доминирующий */
.contact-band {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:linear-gradient(112deg,#D4774B 0%,#C96F45 58%,#B85F38 100%);
}
.contact-band:before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(90deg,rgba(20,22,23,.05),rgba(20,22,23,.14));
}
.contact-inner { position:relative; z-index:2; }
.contact-brand-mark {
    position:absolute;
    z-index:1;
    width:clamp(150px,19vw,260px);
    height:90%;
    max-height:280px;
    right:max(5vw,calc((100vw - 1220px)/2 + 20px));
    top:50%;
    transform:translateY(-50%);
    object-fit:contain;
    opacity:.20;
    filter:brightness(.28) saturate(.8);
    pointer-events:none;
}
.contact-inner h2 em { color:#292D30 !important; }
.contact-inner .btn-paper {
    position:relative;
    z-index:3;
    background:#292D30;
    color:#F3F1ED;
}
.contact-inner .btn-paper:hover { background:#171A1C; }

/* Ссылка входа в футере — тихая, но заметная */
.admin-login-link {
    display:inline-flex;
    align-items:center;
    width:max-content;
    margin-top:10px;
    color:#8F918F !important;
    font-size:10px;
    letter-spacing:.08em;
    text-decoration:none;
    transition:color .2s ease;
}
.admin-login-link:hover { color:#D4774B !important; }

@media(max-width:760px) {
    .hero-brand-mark { width:min(72%,250px); }
    .projects { padding-top:58px; padding-bottom:58px; }
    .projects .project-placeholder { min-height:210px; }
    .projects .portfolio-mark { width:76px; height:100px; }
    .contact-band { padding-block:54px; }
    .contact-brand-mark {
        width:145px;
        height:75%;
        right:-18px;
        opacity:.15;
    }
    .contact-inner { gap:22px; }
}
@media(max-width:420px) {
    .projects .project-placeholder { min-height:185px; }
    .contact-brand-mark { width:125px; right:-24px; }
}


/* Saved photographs: hide branded placeholders and decorative overlays for every visitor. */
[hidden] { display: none !important; }
.has-custom-image::before,
.has-custom-image::after {
  display: none !important;
  content: none !important;
}
.has-custom-image {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}


/* Admin controls for before/after comparison: outside the draggable stage. */
.compare-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    column-gap: 20px;
    align-items: center;
}
.compare-stage {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}
.tamasa-compare-admin-tools {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
}
.tamasa-compare-admin-group {
    display: flex;
    flex-direction: column;
}
.tamasa-compare-admin-button {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(212,119,75,.55);
    border-radius: 4px;
    background: rgba(212,119,75,.12);
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.tamasa-compare-admin-button:hover {
    background: rgba(212,119,75,.22);
    border-color: var(--orange);
}
.compare-toolbar {
    grid-column: 1 / -1;
}
@media (max-width: 760px) {
    .compare-box {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 14px;
    }
    .compare-stage {
        grid-column: 1;
        grid-row: 1;
    }
    .tamasa-compare-admin-tools {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .compare-toolbar {
        grid-column: 1;
        grid-row: 3;
    }
}


/* Admin image removal controls on the homepage and comparison section. */
.tamasa-image-delete {
  min-height:34px; padding:7px 11px; border:1px solid rgba(212,119,75,.48);
  background:rgba(212,119,75,.12); color:inherit; font:inherit; font-size:11px;
  cursor:pointer; position:relative; z-index:8;
}
.tamasa-image-delete:hover { background:rgba(212,119,75,.22); }
.tamasa-image-delete[hidden] { display:none !important; }
.tamasa-compare-admin-group .tamasa-image-delete { width:100%; margin-top:6px; }


/* FINAL REFINEMENTS: comparison proportions, mobile flow, language control */
.compare-placeholder { width: min(46%, 420px); min-width: 250px; gap: 12px; }
.compare-placeholder span { font-size: clamp(58px, 7vw, 88px); }
.compare-placeholder b { font-size: clamp(11px, 1.1vw, 14px); }
.compare-placeholder small { font-size: clamp(8px, .8vw, 10px); }
.compare-stage { width:100%; }
.language-switch { display:flex; align-items:center; gap:4px; border:1px solid var(--line); padding:4px; border-radius:3px; flex-shrink:0; }
.language-switch button { border:0; background:transparent; color:var(--ink); padding:8px 10px; font:700 10px var(--font); cursor:pointer; opacity:.65; }
.language-switch button.active { background:var(--orange); color:#17191B; opacity:1; }
.hero-buttons .btn-orange { min-width:190px; }
.hero-instagram { color:var(--ink); }
.hero-instagram:hover { color:var(--orange); }
@media (max-width:760px) {
  .language-switch { margin-left:auto; margin-right:12px; }
  .compare-placeholder { width:56%; min-width:0; }
}
@media (max-width:560px) {
  /* On phones the estimator is opened only by the fixed "Calculate cost" action. */
  .calculator-showcase { display:none !important; }
  .mobile-calc-trigger { display:flex !important; }
  .hero-buttons { display:grid; grid-template-columns:1fr; align-items:stretch; gap:12px; }
  .hero-buttons .btn-orange { justify-content:center; width:100%; }
  .hero-instagram { justify-content:center; padding:10px 0; }
  .language-switch button { padding:7px 8px; font-size:9px; }
  .compare-placeholder { width:64%; }
}


/* =====================================================
   MOBILE FINAL POLISH
   Fixed mobile project CTA: TAMASA orange, readable text.
===================================================== */
@media (max-width: 560px) {
  .mobile-calc-trigger {
    background: var(--orange, #D4774B) !important;
    color: #17191B !important;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
  }
  .mobile-calc-trigger b {
    background: #17191B !important;
    color: #F3F1ED !important;
  }
  .mobile-calc-trigger:focus-visible {
    outline: 2px solid #F3F1ED;
    outline-offset: 3px;
  }
}

/* Low-end mobile rendering: defer off-screen sections and avoid costly effects. */
@media (max-width: 560px) {
  .about,
  .calculator-showcase,
  .materials,
  .projects,
  .before-after,
  .process,
  .contact-band {
    content-visibility: auto;
    contain-intrinsic-size: auto 620px;
  }
}


/* Mobile footer: keep staff login visible beside the privacy link. */
@media (max-width: 560px) {
  .footer-legal-links {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
    width: 100%;
  }
  .footer-legal-links > a:first-child { grid-column: 1; grid-row: 1; }
  .footer-legal-links > .admin-login-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(212,119,75,.55);
    border-radius: 3px;
    color: #D4774B !important;
    font-size: 11px;
    letter-spacing: .04em;
  }
  .footer-legal-links > a:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .footer-legal-links a { line-height: 1.5; }
  .footer-legal { padding-bottom: 92px; }
}
