/*
Theme Name: Remont Tyumen
Theme URI: https://remonttmn.ru
Author: Remont Tyumen Team
Author URI: https://remonttmn.ru
Description: Премиальная тема для компании по ремонту квартир в Тюмени.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0+
Text Domain: remont-tyumen
Tags: one-column, custom-menu, featured-images, blog
*/

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: #3F3F46; background: #F5F2ED; margin: 0; }
@media (min-width: 640px) { body { font-size: 17px; } }
h1, h2, h3, h4, .font-heading { font-family: 'Onest', system-ui, sans-serif; font-weight: 700; color: #141414; letter-spacing: -0.02em; line-height: 1.1; }
h1, .h1 { letter-spacing: -0.03em; line-height: 1.02; }
h2, .h2 { letter-spacing: -0.025em; line-height: 1.08; }
h3, .h3 { letter-spacing: -0.015em; line-height: 1.18; }
h4, .h4 { letter-spacing: -0.01em; line-height: 1.25; }
.font-accent { font-family: 'Onest', system-ui, sans-serif; font-weight: 500; font-style: italic; letter-spacing: -0.02em; }
.eyebrow { font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }
@media (min-width: 640px) { .eyebrow { font-size: 13px; letter-spacing: 0.12em; } }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
a, button { font-family: inherit; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
::selection { background: #B8654B; color: #FAF8F4; }
.header-blur { backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); background-color: rgba(245, 242, 237, 0.72); border-bottom: 1px solid rgba(20,20,20,0.06); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee-track { display: flex; gap: 4rem; animation: marquee 40s linear infinite; flex-shrink: 0; padding-right: 4rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.magnetic { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.card-premium { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card-premium:hover { transform: translateY(-8px); }
.card-premium .card-img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card-premium:hover .card-img { transform: scale(1.06); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: rgba(20,20,20,.2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: #B8654B; cursor: pointer; border-radius: 50%; border: 3px solid #FAF8F4; box-shadow: 0 4px 20px rgba(184,101,75,.4); }
input[type="checkbox"], input[type="radio"] { accent-color: #B8654B; }
.ba-wrap { position: relative; overflow: hidden; user-select: none; cursor: ew-resize; }
.ba-wrap img { display:block; width:100%; height:100%; object-fit: cover; pointer-events: none; }
.ba-after { position:absolute; inset:0; clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top:0; bottom:0; left:50%; width: 2px; background: rgba(255,255,255,.9); transform: translateX(-50%); pointer-events:none; }
.ba-handle::before { content: ""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: #FAF8F4; box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 0 0 1px rgba(20,20,20,.08); }
.ba-handle::after { content: ""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width: 24px; height: 24px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8654B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 7l-5 5 5 5'/><path d='M16 7l5 5-5 5'/></svg>"); background-repeat: no-repeat; background-position: center; z-index: 2; }
.ba-label { position: absolute; top: 24px; padding: 10px 18px; border-radius: 999px; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.ba-label.before { left: 24px; }
.ba-label.after { right: 24px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(20,20,20,.6); backdrop-filter: blur(10px); z-index: 100; align-items: center; justify-content: center; padding: 1rem; }
.modal.active { display: flex; }
.mobile-menu { position: fixed; inset: 0; z-index: 50; background: #F5F2ED; transform: translateX(100%); transition: transform .5s cubic-bezier(.7,0,.3,1); }
.mobile-menu.active { transform: translateX(0); }
.timeline-item { position: relative; padding-left: 2.5rem; padding-bottom: 2.5rem; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 10px; height: 10px; background: #B8654B; border-radius: 50%; box-shadow: 0 0 0 4px rgba(184,101,75,.15); }
.timeline-item::after { content: ""; position: absolute; left: 4.5px; top: 1.5rem; bottom: 0; width: 1px; background: rgba(20,20,20,.12); }
.timeline-item:last-child::after { display: none; }
.timeline-item:last-child { padding-bottom: 0; }
body.no-scroll { overflow: hidden; }
.img-slot { position: relative; background-color: #E8E2D5; background-image: radial-gradient(circle at 30% 40%, rgba(184,101,75,0.15) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(20,20,20,0.08) 0%, transparent 50%); overflow: hidden; }
.img-slot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #E8E2D5 8%, #F5F2ED 18%, #E8E2D5 33%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; z-index: 1; transition: opacity .6s ease; }
.img-slot.loaded::before { opacity: 0; pointer-events: none; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.img-slot .fallback-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .35; z-index: 0; pointer-events: none; }
.img-slot img { position: relative; z-index: 2; }
.article-card { transition: transform .6s cubic-bezier(.2,.8,.2,1); cursor: pointer; }
.article-card:hover { transform: translateY(-6px); }
.article-card .article-img { transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.article-card:hover .article-img { transform: scale(1.05); }
.single-post-content { max-width: 720px; margin: 0 auto; }
.single-post-content h2 { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: #141414; margin: 48px 0 20px; }
.single-post-content h3 { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; color: #141414; margin: 36px 0 16px; }
.single-post-content p { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.7; color: #3F3F46; margin: 0 0 20px; }
.single-post-content ul, .single-post-content ol { margin: 0 0 20px 24px; }
.single-post-content ul { list-style: none; padding-left: 0; margin-left: 0; }
.single-post-content ul li { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.7; color: #3F3F46; padding-left: 20px; position: relative; margin-bottom: 8px; }
.single-post-content ul li::before { content: "—"; position: absolute; left: 0; color: #B8654B; font-weight: 600; }
.single-post-content ol li { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.7; color: #3F3F46; margin-bottom: 8px; }
.single-post-content strong { color: #141414; font-weight: 600; }
.single-post-content blockquote { border-left: 3px solid #B8654B; padding: 16px 24px; margin: 32px 0; background: rgba(184,101,75,0.05); border-radius: 0 16px 16px 0; font-style: italic; color: #141414; }
.single-post-content blockquote p { margin: 0; font-size: 18px; }
.single-post-content a { color: #B8654B; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(184,101,75,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.single-post-content a:hover { text-decoration-color: #B8654B; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 24px 0; }
.cta-block { background: #141414; color: #FAF8F4; border-radius: 24px; padding: 40px 32px; margin: 56px 0 24px; }
.cta-block h4 { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; color: #FAF8F4; margin-bottom: 12px; margin-top: 0; }
.cta-block p { color: rgba(250,248,244,.75) !important; font-size: 16px !important; margin-bottom: 24px !important; }
.cta-block .cta-btn { display: inline-block; background: #B8654B; color: #FAF8F4; padding: 14px 28px; border-radius: 999px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s; cursor: pointer; border: none; }
.cta-block .cta-btn:hover { background: #9A523C; }
.breadcrumbs { font-family: 'Inter', sans-serif; font-size: 14px; color: #71717A; margin-bottom: 32px; }
.breadcrumbs a { color: #71717A; text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: #B8654B; }
.breadcrumbs span { margin: 0 8px; }
.author-box { display: flex; gap: 20px; align-items: center; background: #FAF8F4; border: 1px solid rgba(20,20,20,0.08); border-radius: 24px; padding: 24px; margin: 40px 0; }
.author-box .author-avatar { width: 64px; height: 64px; border-radius: 50%; background: #B8654B; color: #FAF8F4; display: flex; align-items: center; justify-content: center; font-family: 'Onest', sans-serif; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.author-box .author-info { flex: 1; }
.author-box .author-name { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 16px; color: #141414; margin-bottom: 4px; }
.author-box .author-role { font-size: 13px; color: #71717A; line-height: 1.5; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 60px 0 40px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(20,20,20,0.08); background: #FAF8F4; color: #141414; text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; transition: all .2s; }
.pagination a:hover { background: #B8654B; color: #FAF8F4; border-color: #B8654B; }
.pagination span.current { background: #141414; color: #FAF8F4; border-color: #141414; }
.form-message { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-top: 12px; display: none; }
.form-message.success { background: rgba(34,197,94,0.1); color: #166534; display: block; }
.form-message.error { background: rgba(239,68,68,0.1); color: #991b1b; display: block; }
.form-message.loading { background: rgba(184,101,75,0.1); color: #9A523C; display: block; }
.bg-graphite { background-color: #141414; }
.bg-charcoal { background-color: #1C1C1C; }
.bg-cream { background-color: #F5F2ED; }
.bg-ivory { background-color: #FAF8F4; }
.bg-copper { background-color: #B8654B; }
.bg-copper-dark { background-color: #9A523C; }
.bg-sand { background-color: #E8E2D5; }
.text-ivory { color: #FAF8F4; }
.text-graphite { color: #141414; }
.text-stone { color: #3F3F46; }
.text-stone-soft { color: #71717A; }
.text-copper { color: #B8654B; }
.border-line { border-color: rgba(20,20,20,0.08); }

/* services-card-contrast */
#services h3, #services .num { color: #fff9f1; }

/* Calculator choices and quote */
#calculator :is(label, form, fieldset, input:not([type=radio]):not([type=checkbox])) { min-width: 0; }
#calculator label.cursor-pointer > div { height: 100%; padding: 12px 5px; display: grid; place-items: center; min-height: 48px; }
#calculator label.cursor-pointer > div > div, #calculator button { white-space: normal; overflow-wrap: anywhere; }
#calculator label.cursor-pointer input:checked + div { border-color: #ae5c40; background: #f4e5dc; }
#calculator label.cursor-pointer input:focus-visible + div { outline: 2px solid #89402a; outline-offset: 2px; }
#calculator .calc-package { margin: 0 0 16px; padding: 0; border: 0; }
#calculator .calc-package legend { font-weight: 700; margin-bottom: 8px; }
#calculator .calc-package label { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid #c9bbb2; border-radius: 12px; cursor: pointer; }
#calculator .calc-package label:has(input:checked) { border-color: #ae5c40; background: #f4e5dc; }
#calculator .calc-package p, #calcAreaHint { font-size: .875rem; }
#calculator .calc-price { flex-wrap: wrap; }
#calculator #totalCost { font-size: clamp(1.75rem, 5.6vw, 3.75rem); min-width: 0; overflow-wrap: anywhere; }
#calculator [hidden] { display: none !important; }
@media (max-width: 520px) {
  #calculator label.cursor-pointer > div > div { font-size: .8125rem; }
  #calculator label.cursor-pointer:has(input[type=radio]) { width: 100%; }
  #calculator :is(.grid, form):has(> label > input[name=objectType]),
  #calculator :is(.grid, form):has(> label > input[name=repairType]) { grid-template-columns: minmax(0, 1fr); }
  #calculator :is(input[type=text], input[type=tel], button[type=submit]) { width: 100%; }
}

/* Bathroom quote builder */
#calculator .bath-builder:not([hidden]),#calculator #apartmentChoices:not([hidden]) { animation: bath-reveal .24s ease-out; }
@keyframes bath-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
#calculator .bath-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
#calculator .bath-group:last-child { margin-bottom: 0; }
#calculator .bath-choice { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 8px; padding: 10px; min-height: 48px; margin-bottom: 8px; border: 1px solid #c9bbb2; border-radius: 12px; cursor: pointer; font-size: .875rem; }
#calculator .bath-choice input { width: 18px; height: 18px; accent-color: #b8654b; }
#calculator .bath-choice:has(input:checked) { border-color: #ae5c40; background: #f4e5dc; }
#calculator .bath-choice small { font-weight: 600; text-align: right; color: #86452f; }
#calculator .bath-quote-note { line-height: 1.5; font-size: .875rem; color: #fff9f1; }
#calculator:has(#bathBuilder:not([hidden])) #totalCost { font-size: clamp(1.55rem,3vw,2.6rem); line-height: 1.2; }
@media (max-width: 520px) { #calculator .bath-choice { grid-template-columns: 20px minmax(0,1fr); } #calculator .bath-choice small { grid-column: 2; text-align: left; } #calculator .bath-step { padding: 10px; } }
@media(prefers-reduced-motion:reduce) { #calculator .bath-builder, #calculator #apartmentChoices { animation: none !important; } }
